ChangeLog

# ChangeLog for dev-java/bsf
# Copyright 2000-2008 Gentoo Foundation; Distributed under the GPL v2
# $Header: /var/cvsroot/gentoo-x86/dev-java/bsf/ChangeLog,v 1.51 2008/03/09 18:26:59 betelgeuse Exp $

09 Mar 2008; Petteri Räty bsf-2.4.0-r1.ebuild:
Prepare the ebuild for the upcoming generic src_test.

11 Jan 2008; Vlastimil Babka
-files/bsf-2.3.0-classpath.patch, -files/bsf-2.3.0-no-autodetection.patch:
Remove orphaned files.

11 Jan 2008; William L. Thomson Jr.
-bsf-2.3.0-r5.ebuild, -bsf-2.4.0.ebuild:
Removed older versions

25 Nov 2007; Krzysiek Pawlik bsf-2.4.0-r1.ebuild:
Stable on ppc, bug #199235.

18 Nov 2007; Markus Rothe bsf-2.4.0-r1.ebuild:
Stable on ppc64; bug #199235

17 Nov 2007; William L. Thomson Jr.
bsf-2.4.0-r1.ebuild:
amd64 stable, bug #199235.

15 Nov 2007; Markus Meier bsf-2.4.0-r1.ebuild:
x86 stable (bug #199235) and quotes

*bsf-2.4.0-r1 (28 May 2007)

28 May 2007; Vlastimil Babka +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ò bsf-2.4.0.ebuild:
Add ~x86-fbsd keyword as per bug #160813.

09 May 2007; Raúl Porcel bsf-2.4.0.ebuild:
Add ~ia64 wrt #160813

*bsf-2.4.0 (08 May 2007)

08 May 2007; Vlastimil Babka
+files/bsf-2.4.0-build-properties.xml, -bsf-2.3.0-r2.ebuild,
+bsf-2.4.0.ebuild:
Version bump, bug #160813. Same slot as 2.3.0, seems fine. Uses rhino-1.6
instead of 1.5. Renamed jython flag to python, added tcl flag which adds
jacl support. Added examples flag. Added bsf launcher for commandline use.

15 Apr 2007; Markus Rothe bsf-2.3.0-r5.ebuild:
Stable on ppc64

17 Mar 2007; nixnut bsf-2.3.0-r5.ebuild:
Stable on ppc wrt bug 170253

11 Mar 2007; Joshua Nichols bsf-2.3.0-r5.ebuild:
amd64 stable, see bug #170253.

10 Mar 2007; Christian Faulhammer bsf-2.3.0-r5.ebuild:
stable x86, bug 170253

18 Feb 2007; Petteri Räty -bsf-2.3.0-r3.ebuild,
-bsf-2.3.0-r4.ebuild:
Removed unused revisions.

*bsf-2.3.0-r5 (10 Jan 2007)

10 Jan 2007; Vlastimil Babka +bsf-2.3.0-r5.ebuild:
Build xslt engine without xalan dependency - it's using generic
implementation that's part of JDK 1.4+.

09 Jan 2007; Vlastimil Babka bsf-2.3.0-r4.ebuild:
Removed xalan dependency (it's optional)to prevent circular deps reported
in bug #161011 by Darren Dale .

*bsf-2.3.0-r4 (08 Jan 2007)

08 Jan 2007; Vlastimil Babka
+files/bsf-2.3.0-no-autodetection.patch, +bsf-2.3.0-r4.ebuild:
Revbump to fix bug #141647 by proper control of optional dependencies via
USE flags. Added xalan dependency.

07 Dec 2006; Diego Pettenò bsf-2.3.0-r3.ebuild:
Add ~x86-fbsd keyword.

05 Oct 2006; Gustavo Zacarias bsf-2.3.0-r2.ebuild,
bsf-2.3.0-r3.ebuild:
Dropping sparc keywords, see #96229

11 Sep 2006; Joshua Nichols bsf-2.3.0-r3.ebuild:
Added ~ia64 keywords.

06 Aug 2006; Krzysiek Pawlik
+files/bsf-2.3.0-classpath.patch, bsf-2.3.0-r3.ebuild:
Add a fix for classpath handling.

22 Jul 2006; Krzysiek Pawlik bsf-2.3.0-r3.ebuild:
ant_src_unpack -> src_unpack

*bsf-2.3.0-r3 (04 Jul 2006)

04 Jul 2006; Joshua Nichols +bsf-2.3.0-r3.ebuild:
Revision bump to support new Java system.

09 Jul 2005; Thomas Matthijs bsf-2.3.0-r2.ebuild:
fix deps, small cleanups

05 May 2005; Jan Brinkmann -bsf-2.3.0-r1.ebuild,
bsf-2.3.0-r2.ebuild:
did some cleanup, introduced support for the source useflag.

03 Apr 2005; bsf-2.3.0-r2.ebuild:
added ppc keyword

03 Apr 2005; Jason Wever bsf-2.3.0-r2.ebuild:
Stable on SPARC wrt bug #87706.

02 Apr 2005; Jan Brinkmann bsf-2.3.0-r2.ebuild:
stable on amd64 and x86

23 Mar 2005; Thomas Matthijs bsf-2.3.0-r1.ebuild,
bsf-2.3.0-r2.ebuild:
dep ant -> ant-core

29 Jan 2005; Jan Brinkmann bsf-2.3.0-r1.ebuild,
bsf-2.3.0-r2.ebuild:
updated (R)DEPEND to reflect rhino SLOT changes.

26 Jan 2005; Markus Rothe bsf-2.3.0-r2.ebuild:
Stable on ppc64

18 Dec 2004; Markus Rothe bsf-2.3.0-r2.ebuild:
added ~ppc64 to KEYWORDS

16 Dec 2004; Dylan Carlson bsf-2.3.0-r2.ebuild:
Stable on amd64.

16 Nov 2004; Karl Trygve Kalleberg bsf-2.3.0-r2.ebuild:
Added jikes support, better and sensible jdk/jre dependencies, fortified
servletapi dependant parts, should unmask on x86, as -r1 is completely broken.

28 Oct 2004; Jason Wever bsf-2.3.0-r2.ebuild:
Added ~sparc keyword.

20 Oct 2004; Thomas Matthijs bsf-2.3.0-r2.ebuild:
honor use flags better

16 Oct 2004; Thomas Matthijs bsf-2.3.0-r1.ebuild,
bsf-2.3.0-r2.ebuild:
use java-pkg_dohtml instead of dohtml to also install the package-list in
case of api docs: #50740

14 Oct 2004; David Holm bsf-2.3.0-r2.ebuild:
Added to ~ppc.

*bsf-2.3.0-r2 (19 Sep 2004)

19 Sep 2004; Thomas Matthijs +bsf-2.3.0-r2.ebuild:
use servletapi instead of tomcat

04 Sep 2004; Thomas Matthijs bsf-2.3.0-r1.ebuild:
move jython-bin -> jython

23 Aug 2004; Chris Aniszczyk bsf-2.3.0-r1.ebuild,
-bsf-2.3.0.ebuild:
Marking x86

09 Aug 2004; Thomas Matthijs -files/bsf-rhino-1.5.patch,
bsf-2.3.0-r1.ebuild:
fix tomcat location(still a hack), move patch to mirrors(too big for tree)

08 Aug 2004; Stuart Herbert bsf-2.3.0-r1.ebuild,
bsf-2.3.0.ebuild:
Updated dep on tomcat for the net-www split

*bsf-2.3.0-r1 01 Aug 2004

01 Aug 2004; Karl Trygve Kalleberg
Added support for jython and rhino useflags. Fixes #55934, thanks to Howard B.
Golden .

*bsf-2.3.0 (27 Apr 2004)

27 Apr 2004; Karl Trygve Kalleberg bsf-2.3.0.ebuild:
Initial import. Ebuild submitted by myself.

Manifest

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

AUX bsf-2.4.0-build-properties.xml 1984 RMD160 d36e22db74057f1987e02134c59f496c4f3974ee SHA1 4692764eed3f6f3f72a1b6286274f99289e33390 SHA256 517b97081b13f4ac597a56c1d09d4a4961edca316429becf5fe3d440b3770c12
DIST bsf-src-2.4.0.tar.gz 299749 RMD160 e087f8e5c3c291bb34b637f06fbf04f9a0f2535b SHA1 23422d907d085797fcbdf81296237e608a77e54f SHA256 5ab58cf5738c144f4d85a4a442c2f33be2c4c502dca6e29e0c570c2a51ae6ae9
EBUILD bsf-2.4.0-r1.ebuild 2501 RMD160 240e7640b4eb6bb8ffa3a77207b4b7180532d8f4 SHA1 224339c51a3800d30ce36b73035f5edb6dc96253 SHA256 cf64dd53d4b63c208f85472d2154546fa166b5dd8809d8a351176c1588074d36
MISC ChangeLog 6600 RMD160 58b0eeac7039bcb861d151bceb9f2193022c7e94 SHA1 4e0a312c74ebd6d265ea5c7295a5c238fe41d698 SHA256 cd86a339bf7d22565826cb1ab9d2cb7ad0941efed73e503de19bcc9efee1ae87
MISC metadata.xml 829 RMD160 46341bec09dfae6c9d870c92fc1520353a8ed58e SHA1 b4c3798c8d0e0ce8dd99884e47f15a7a09be2aba SHA256 12ff3afd1cc82efa3392c06b9bc411bd50318d1b2180b9765d723a51a7922e10
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.7 (GNU/Linux)

iD8DBQFH1Cv3cxLzpIGCsLQRAnIGAJ94fc5BRlCsGbI6YYJgXJ+2lal/qwCfTypN
hlVxEv2e2219d3nO2y7+Xw8=
=AqnL
-----END PGP SIGNATURE-----

bsf-2.4.0-r1.ebuild

# Copyright 1999-2008 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.7 2008/03/09 18:26:59 betelgeuse 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
}

# does not have any, overwrite the one from java-pkg-2
src_test() {
true;
}

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)"
}

files

metadata.xml





java


Bean Scripting Framework (BSF) is a set of Java classes which provides
scripting language support within Java applications, and access to Java
objects and methods from scripting languages. BSF allows one to write
JSPs in languages other than Java while providing access to the Java
class library. In addition, BSF permits any Java application to be
implemented in part (or dynamically extended) by a language that is
embedded within it. This is achieved by providing an API that permits
calling scripting language engines from within Java, as well as an
object registry that exposes Java objects to these scripting language
engines.