summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVlastimil Babka <caster@gentoo.org>2007-05-28 23:00:41 +0000
committerVlastimil Babka <caster@gentoo.org>2007-05-28 23:00:41 +0000
commitc2d8cb74735acc065f6948de3ef8eb1cb01f1190 (patch)
tree1f71d11f24fc6071fc66b2cef6c32c575db3fea7 /dev-java/bsf
parentAdded menu entry. Bug #160211 (diff)
downloadgentoo-2-c2d8cb74735acc065f6948de3ef8eb1cb01f1190.tar.gz
gentoo-2-c2d8cb74735acc065f6948de3ef8eb1cb01f1190.tar.bz2
gentoo-2-c2d8cb74735acc065f6948de3ef8eb1cb01f1190.zip
Change local rhino USE flag to global javascript flag with the same meaning. Add optional support for groovy, jruby and beanshell, bug #179686.
(Portage version: 2.1.2.7)
Diffstat (limited to 'dev-java/bsf')
-rw-r--r--dev-java/bsf/ChangeLog8
-rw-r--r--dev-java/bsf/bsf-2.4.0-r1.ebuild85
-rw-r--r--dev-java/bsf/files/digest-bsf-2.4.0-r13
3 files changed, 95 insertions, 1 deletions
diff --git a/dev-java/bsf/ChangeLog b/dev-java/bsf/ChangeLog
index 7f5e48865942..575a77742a7f 100644
--- a/dev-java/bsf/ChangeLog
+++ b/dev-java/bsf/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for dev-java/bsf
# Copyright 2000-2007 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-java/bsf/ChangeLog,v 1.43 2007/05/25 11:16:29 flameeyes Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-java/bsf/ChangeLog,v 1.44 2007/05/28 23:00:41 caster Exp $
+
+*bsf-2.4.0-r1 (28 May 2007)
+
+ 28 May 2007; Vlastimil Babka <caster@gentoo.org> +bsf-2.4.0-r1.ebuild:
+ Change local rhino USE flag to global javascript flag with the same meaning.
+ Add optional support for groovy, jruby and beanshell, bug #179686.
25 May 2007; Diego Pettenò <flameeyes@gentoo.org> bsf-2.4.0.ebuild:
Add ~x86-fbsd keyword as per bug #160813.
diff --git a/dev-java/bsf/bsf-2.4.0-r1.ebuild b/dev-java/bsf/bsf-2.4.0-r1.ebuild
new file mode 100644
index 000000000000..5999cac25686
--- /dev/null
+++ b/dev-java/bsf/bsf-2.4.0-r1.ebuild
@@ -0,0 +1,85 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-java/bsf/bsf-2.4.0-r1.ebuild,v 1.1 2007/05/28 23:00:41 caster Exp $
+
+JAVA_PKG_IUSE="doc examples source"
+inherit java-pkg-2 eutils java-ant-2
+
+DESCRIPTION="Bean Script Framework"
+HOMEPAGE="http://jakarta.apache.org/bsf/"
+SRC_URI="mirror://apache/jakarta/bsf/source/${PN}-src-${PV}.tar.gz"
+LICENSE="Apache-2.0"
+SLOT="2.3"
+KEYWORDS="~amd64 ~ia64 ~ppc ~ppc64 ~x86 ~x86-fbsd"
+IUSE="javascript python tcl"
+
+COMMON_DEP="dev-java/commons-logging
+ dev-java/xalan
+ python? ( >=dev-java/jython-2.1-r5 )
+ javascript? ( =dev-java/rhino-1.6* )
+ tcl? ( dev-java/jacl )"
+# java-config for the register-optional-dependency
+RDEPEND=">=virtual/jre-1.4
+ >=dev-java/java-config-2.0.33-r1
+ ${COMMON_DEP}"
+DEPEND=">=virtual/jdk-1.4
+ ${COMMON_DEP}"
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+
+ rm -v lib/*.jar || die
+ rm samples/*/*.class || die
+
+ java-ant_ignore-system-classes
+ java-ant_rewrite-classpath
+
+ # somebody forgot to add them to source tarball... fetched from svn
+ cp "${FILESDIR}/${P}-build-properties.xml" build-properties.xml || die
+}
+
+src_compile() {
+ local pkgs="commons-logging,xalan"
+ local antflags="-Dxalan.present=true"
+ if use python; then
+ antflags="${antflags} -Djython.present=true"
+ pkgs="${pkgs},jython"
+ fi
+ if use javascript; then
+ antflags="${antflags} -Drhino.present=true"
+ pkgs="${pkgs},rhino-1.6"
+ fi
+ if use tcl; then
+ antflags="${antflags} -Djacl.present=true"
+ pkgs="${pkgs},jacl"
+ fi
+
+
+ local cp="$(java-pkg_getjars ${pkgs})"
+ eant -Dgentoo.classpath="${cp}" ${antflags} jar
+ # stupid clean
+ mv build/lib/${PN}.jar ${S} || die
+ use doc && eant -Dgentoo.classpath="${cp}" ${antflags} javadocs
+}
+
+src_install() {
+ java-pkg_dojar ${PN}.jar
+
+ java-pkg_dolauncher ${PN} --main org.apache.bsf.Main
+
+ dodoc CHANGES.txt NOTICE.txt README.txt RELEASE-NOTE.txt TODO.txt || die
+
+ use doc && java-pkg_dojavadoc build/javadocs
+ use examples && java-pkg_doexamples samples
+ use source && java-pkg_dosrc src/org
+
+ java-pkg_register-optional-dependency bsh,groovy-1,jruby
+}
+
+pkg_postinst() {
+ elog "Support for python, javascript, and tcl is controlled via USE flags."
+ elog "Also, following languages can be supported just by installing"
+ elog "respective package with USE=\"bsf\": BeanShell (dev-java/bsh),"
+ elog "Groovy (dev-java/groovy) and JRuby (dev-java/jruby)"
+}
diff --git a/dev-java/bsf/files/digest-bsf-2.4.0-r1 b/dev-java/bsf/files/digest-bsf-2.4.0-r1
new file mode 100644
index 000000000000..432747b08de4
--- /dev/null
+++ b/dev-java/bsf/files/digest-bsf-2.4.0-r1
@@ -0,0 +1,3 @@
+MD5 7e58b2a009c0f70ab36bbef420b25c07 bsf-src-2.4.0.tar.gz 299749
+RMD160 e087f8e5c3c291bb34b637f06fbf04f9a0f2535b bsf-src-2.4.0.tar.gz 299749
+SHA256 5ab58cf5738c144f4d85a4a442c2f33be2c4c502dca6e29e0c570c2a51ae6ae9 bsf-src-2.4.0.tar.gz 299749