summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVlastimil Babka <caster@gentoo.org>2007-05-08 23:22:33 +0000
committerVlastimil Babka <caster@gentoo.org>2007-05-08 23:22:33 +0000
commit65338d41a7107f273ca2d66369b2beac3f8f7902 (patch)
tree17884a365281e99af3b41a7cb8fb3501c59f6b34 /dev-java/bsf
parentReplacing einfo with elog (diff)
downloadgentoo-2-65338d41a7107f273ca2d66369b2beac3f8f7902.tar.gz
gentoo-2-65338d41a7107f273ca2d66369b2beac3f8f7902.tar.bz2
gentoo-2-65338d41a7107f273ca2d66369b2beac3f8f7902.zip
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.
(Portage version: 2.1.2.7)
Diffstat (limited to 'dev-java/bsf')
-rw-r--r--dev-java/bsf/ChangeLog11
-rw-r--r--dev-java/bsf/bsf-2.3.0-r2.ebuild56
-rw-r--r--dev-java/bsf/bsf-2.4.0.ebuild74
-rw-r--r--dev-java/bsf/files/bsf-2.4.0-build-properties.xml44
-rw-r--r--dev-java/bsf/files/digest-bsf-2.3.0-r26
-rw-r--r--dev-java/bsf/files/digest-bsf-2.4.03
6 files changed, 131 insertions, 63 deletions
diff --git a/dev-java/bsf/ChangeLog b/dev-java/bsf/ChangeLog
index 462a244db7e1..576af183fe72 100644
--- a/dev-java/bsf/ChangeLog
+++ b/dev-java/bsf/ChangeLog
@@ -1,6 +1,15 @@
# 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.40 2007/04/15 20:03:45 corsair Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-java/bsf/ChangeLog,v 1.41 2007/05/08 23:22:33 caster Exp $
+
+*bsf-2.4.0 (08 May 2007)
+
+ 08 May 2007; Vlastimil Babka <caster@gentoo.org>
+ +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 <corsair@gentoo.org> bsf-2.3.0-r5.ebuild:
Stable on ppc64
diff --git a/dev-java/bsf/bsf-2.3.0-r2.ebuild b/dev-java/bsf/bsf-2.3.0-r2.ebuild
deleted file mode 100644
index 4326363be9f7..000000000000
--- a/dev-java/bsf/bsf-2.3.0-r2.ebuild
+++ /dev/null
@@ -1,56 +0,0 @@
-# Copyright 1999-2006 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.18 2006/10/05 15:13:27 gustavoz Exp $
-
-inherit java-pkg eutils
-
-DESCRIPTION="Bean Script Framework"
-HOMEPAGE="http://jakarta.apache.org/bsf/"
-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 ppc 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
-}
-
-src_compile() {
- 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"
-
- cd ${S}/src/taglib
- ant ${antflags} -Dservlet.jar="$(java-pkg_getjars servletapi-2.3)" compile || die "Failed to build taglib"
-
- cd ${S}/src
- ant ${antflags} -Dclasspath=${cp} compile || die "Failed to build main package"
- if use doc ; then
- ant ${antflags} javadocs || die
- fi
-}
-
-src_install() {
- java-pkg_dojar src/build/lib/bsf.jar
-
- 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
-}
diff --git a/dev-java/bsf/bsf-2.4.0.ebuild b/dev-java/bsf/bsf-2.4.0.ebuild
new file mode 100644
index 000000000000..5f45a5183f37
--- /dev/null
+++ b/dev-java/bsf/bsf-2.4.0.ebuild
@@ -0,0 +1,74 @@
+# 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.ebuild,v 1.1 2007/05/08 23:22:33 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 ~ppc ~ppc64 ~x86"
+IUSE="python rhino tcl"
+
+COMMON_DEP="dev-java/commons-logging
+ dev-java/xalan
+ python? ( >=dev-java/jython-2.1-r5 )
+ rhino? ( =dev-java/rhino-1.6* )
+ tcl? ( dev-java/jacl )"
+RDEPEND=">=virtual/jre-1.4
+ ${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 rhino; 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
+}
diff --git a/dev-java/bsf/files/bsf-2.4.0-build-properties.xml b/dev-java/bsf/files/bsf-2.4.0-build-properties.xml
new file mode 100644
index 000000000000..6d716ed00563
--- /dev/null
+++ b/dev-java/bsf/files/bsf-2.4.0-build-properties.xml
@@ -0,0 +1,44 @@
+<?xml version="1.0" encoding="utf-8"?>
+<project name="props">
+ <property name="project.name" value="bsf"/>
+ <property name="project.fullName" value="Bean Scripting Framework"/>
+ <property name="project.version" value="2.4.0"/>
+ <property name="project.debug" value="on"/>
+ <property name="project.deprecation" value="on"/>
+
+ <property name="build.file" value="build.xml"/>
+ <property name="build.properties.file" value="build-properties.xml"/>
+ <property name="build.dir" value="build"/>
+ <property name="build.dest" value="build/classes"/>
+ <property name="build.lib" value="build/lib"/>
+ <property name="build.lib.win32" value="build/lib/win32"/>
+ <property name="build.samples" value="build/samples"/>
+ <property name="build.samples.calc" value="build/samples/calc"/>
+ <property name="build.samples.scriptedui" value="build/samples/scriptedui"/>
+ <property name="build.samples.xsl" value="build/samples/xsl"/>
+ <property name="build.javadocs" value="build/javadocs"/>
+ <property name="build.tests" value="build/testcases" />
+
+ <property name="dist.dir" value="dist"/>
+ <property name="dist.dir.root" value="${dist.dir}/${project.name}-${project.version}"/>
+ <property name="dist.bin.file" value="${dist.dir}/${project.name}-bin-${project.version}"/>
+ <property name="dist.src.file" value="${dist.dir}/${project.name}-src-${project.version}"/>
+
+ <property name="packages" value="org.apache.*"/>
+
+ <property name="samples.dir" value="samples"/>
+
+ <property name="site.src" location="xdocs"/>
+ <property name="site.dest" location="docs"/>
+ <property name="site.projectFile" value="stylesheets/project.xml"/>
+
+ <property name="source.level" value="1.4" />
+
+ <property name="src.dir" value="src"/>
+
+ <property name="templ.path" location="xdocs/stylesheets"/>
+
+ <property name="tests.dir" value="test"/>
+
+ <property name="velocity.props" location="${site.src}/velocity.properties"/>
+</project>
diff --git a/dev-java/bsf/files/digest-bsf-2.3.0-r2 b/dev-java/bsf/files/digest-bsf-2.3.0-r2
deleted file mode 100644
index 3c966492a8ca..000000000000
--- a/dev-java/bsf/files/digest-bsf-2.3.0-r2
+++ /dev/null
@@ -1,6 +0,0 @@
-MD5 db5d0f665631f91a13d721f8756df36f bsf-rhino-1.5.patch.bz2 10818
-RMD160 18d4d1f4153855679766c1b60679459c2937797b bsf-rhino-1.5.patch.bz2 10818
-SHA256 62afe966897b6f136a6f38f61a8959871c48ef8552a12fd96ce22c0dfab5d9ad bsf-rhino-1.5.patch.bz2 10818
-MD5 78bae3747ca5734bb7554eed6868b7da bsf-src-2.3.0.tar.gz 1035181
-RMD160 24d378bca1f68950b9b2699192c3138fb2bff7e4 bsf-src-2.3.0.tar.gz 1035181
-SHA256 ed0caf3567d7c084f21c0f0ce38077384c8e4afc80a1df7a2095a53ada777503 bsf-src-2.3.0.tar.gz 1035181
diff --git a/dev-java/bsf/files/digest-bsf-2.4.0 b/dev-java/bsf/files/digest-bsf-2.4.0
new file mode 100644
index 000000000000..432747b08de4
--- /dev/null
+++ b/dev-java/bsf/files/digest-bsf-2.4.0
@@ -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