diff options
Diffstat (limited to 'dev-java/junit/junit-3.8.1-r1.ebuild')
-rw-r--r-- | dev-java/junit/junit-3.8.1-r1.ebuild | 21 |
1 files changed, 14 insertions, 7 deletions
diff --git a/dev-java/junit/junit-3.8.1-r1.ebuild b/dev-java/junit/junit-3.8.1-r1.ebuild index 91e1cc8437dd..e92623f4e7c4 100644 --- a/dev-java/junit/junit-3.8.1-r1.ebuild +++ b/dev-java/junit/junit-3.8.1-r1.ebuild @@ -1,13 +1,13 @@ # Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-java/junit/junit-3.8.1-r1.ebuild,v 1.7 2005/07/09 16:05:44 axxo Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-java/junit/junit-3.8.1-r1.ebuild,v 1.8 2005/08/02 20:55:58 betelgeuse Exp $ inherit java-pkg -NP=${P/-/} -S=${WORKDIR}/${NP} +MY_P=${P/-/} +S=${WORKDIR}/${MY_P} DESCRIPTION="Simple framework to write repeatable tests" -SRC_URI="mirror://sourceforge/${PN}/${NP}.zip" +SRC_URI="mirror://sourceforge/${PN}/${MY_P}.zip" HOMEPAGE="http://www.junit.org/" LICENSE="CPL-1.0" SLOT="0" @@ -34,11 +34,18 @@ src_compile() { } src_install() { - use source && java-pkg_dosrc junit - cd ${NP} + cd ${MY_P} java-pkg_dojar junit.jar dodir /usr/share/ant-core/lib dosym /usr/share/junit/lib/junit.jar /usr/share/ant-core/lib/ - java-pkg_dohtml -r README.html cpl-v10.html + java-pkg_dohtml -r README.html cpl-v10.html || die "failed to install docs" use doc && java-pkg_dohtml -r doc javadoc + + if use source; then + #we need to clean so that we don't install useless class files to the + #src zip file. + cd ${S} + ant clean || die "failed to clean the source tree" + java-pkg_dosrc junit + fi } |