diff options
Diffstat (limited to 'dev-java/bsf/bsf-2.3.0-r2.ebuild')
-rw-r--r-- | dev-java/bsf/bsf-2.3.0-r2.ebuild | 56 |
1 files changed, 28 insertions, 28 deletions
diff --git a/dev-java/bsf/bsf-2.3.0-r2.ebuild b/dev-java/bsf/bsf-2.3.0-r2.ebuild index ca5ee665a01b..783770e5ef80 100644 --- a/dev-java/bsf/bsf-2.3.0-r2.ebuild +++ b/dev-java/bsf/bsf-2.3.0-r2.ebuild @@ -1,49 +1,45 @@ -# Copyright 1999-2004 Gentoo Foundation +# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-java/bsf/bsf-2.3.0-r2.ebuild,v 1.1 2004/09/19 22:00:12 axxo Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-java/bsf/bsf-2.3.0-r2.ebuild,v 1.1.1.1 2005/11/30 09:47:07 chriswhite Exp $ inherit java-pkg eutils DESCRIPTION="Bean Script Framework" HOMEPAGE="http://jakarta.apache.org/bsf/" -SRC_URI="http://cvs.apache.org/dist/jakarta/bsf/v2.3.0rc1/src/bsf-src-2.3.0.tar.gz mirror://gentoo/bsf-rhino-1.5.patch.bz2" +SRC_URI="http://cvs.apache.org/dist/jakarta/bsf/v${PV}rc1/src/${PN}-src-${PV}.tar.gz mirror://gentoo/bsf-rhino-1.5.patch.bz2" LICENSE="Apache-1.1" SLOT="2.3" -KEYWORDS="~x86" -IUSE="doc jython rhino" -DEPEND="jython? ( >=dev-java/jython-2.1-r5 ) - rhino? ( >=dev-java/rhino-1.4 ) - =dev-java/servletapi-2.3* - >=dev-java/ant-1.5.4" +KEYWORDS="x86 ppc sparc amd64 ppc64" +IUSE="doc jikes jython rhino source" + +RDEPEND=">=virtual/jre-1.4 + jython? ( >=dev-java/jython-2.1-r5 ) + rhino? ( =dev-java/rhino-1.5* ) + =dev-java/servletapi-2.3*" +DEPEND=">=virtual/jdk-1.4 + dev-java/ant-core + jikes? ( >=dev-java/jikes-1.18 ) + source? ( app-arch/zip ) + ${RDEPEND}" src_unpack() { unpack ${A} epatch ${WORKDIR}/bsf-rhino-1.5.patch - - cd ${S}/src/build/lib - java-pkg_jar-from rhino || die "Missing rhino" - java-pkg_jar-from jython || die "Missing jython" } src_compile() { - # This ebuild is sensitive to the system classpath, so we need to start with a - # pristine one. - export CLASSPATH= - - local cp=$(java-config -p servletapi-2.3) - - use rhino && cp="${cp}:$(java-config -p rhino)" - use jython && cp="${cp}:$(java-config -p jython)" - - local antflags= + use rhino && cp="${cp}:$(java-pkg_getjars rhino-1.5)" + use jython && cp="${cp}:$(java-pkg_getjars jython)" # karltk: fix this -# use jikes && antflags="${antflags} -Dbuild.compiler=jikes" + use jikes && antflags="${antflags} -Dbuild.compiler=jikes" + + cd ${S}/src/taglib + ant ${antflags} -Dservlet.jar="$(java-pkg_getjars servletapi-2.3)" compile || die "Failed to build taglib" - cd src - export CLASSPATH=${cp} - ant ${antflags} compile || die + cd ${S}/src + ant ${antflags} -Dclasspath=${cp} compile || die "Failed to build main package" if use doc ; then ant ${antflags} javadocs || die fi @@ -52,5 +48,9 @@ src_compile() { src_install() { java-pkg_dojar src/build/lib/bsf.jar - use doc && dohtml -r src/build/javadocs/* + use doc && java-pkg_dohtml -r src/build/javadocs/* + if use source; then + java-pkg_dosrc src/bsf/src/* src/bsf_debug/src/* + java-pkg_dosrc src/jsdb/src/* src/taglib/src/org + fi } |