diff options
Diffstat (limited to 'dev-util/shunit2/shunit2-2.1.3.ebuild')
-rw-r--r-- | dev-util/shunit2/shunit2-2.1.3.ebuild | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/dev-util/shunit2/shunit2-2.1.3.ebuild b/dev-util/shunit2/shunit2-2.1.3.ebuild new file mode 100644 index 0000000..99cef78 --- /dev/null +++ b/dev-util/shunit2/shunit2-2.1.3.ebuild @@ -0,0 +1,40 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +DESCRIPTION="shUnit2 is a unit test framework for Bourne based shell scripts." +HOMEPAGE="http://shunit2.sourceforge.net/" +SRC_URI="mirror://sourceforge/${PN}/${P}.tgz" + +LICENSE="LGPL-2.1" +SLOT="0" +KEYWORDS="~amd64 ~x86 ~x86-fbsd" +IUSE="doc test" + +RDEPEND="" +DEPEND="dev-lang/perl + net-misc/curl" + +RESTRICT="primaryuri" + +src_compile() +{ + local myconf="build" + use doc && myconf="${myconf} docs" + use test && myconf="${myconf} test" + + make ${myconf} +} + +src_install() +{ + if use doc; then + for DOC in build/{docbook/*,shunit2.html,shunit2_shelldoc.xml}; do + dodoc ${DOC} + rm ${DOC} + done + fi + + insinto /usr/share/${PN} + doins build/* +}
\ No newline at end of file |