summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKrzysztof Pawlik <nelchael@gentoo.org>2006-08-14 23:03:33 +0000
committerKrzysztof Pawlik <nelchael@gentoo.org>2006-08-14 23:03:33 +0000
commit3de7224d6e9f6cddaaac2f5499f74b30588a274b (patch)
tree1d0d1e6c176ead030591f7930a1a104ba7bd33f3 /dev-java/jss
parentversion bump (diff)
downloadgentoo-2-3de7224d6e9f6cddaaac2f5499f74b30588a274b.tar.gz
gentoo-2-3de7224d6e9f6cddaaac2f5499f74b30588a274b.tar.bz2
gentoo-2-3de7224d6e9f6cddaaac2f5499f74b30588a274b.zip
Migrated to new Java build system.
(Portage version: 2.1.1_pre5-r1)
Diffstat (limited to 'dev-java/jss')
-rw-r--r--dev-java/jss/ChangeLog10
-rw-r--r--dev-java/jss/files/digest-jss-3.42
-rw-r--r--dev-java/jss/files/digest-jss-3.4-r13
-rw-r--r--dev-java/jss/files/jss-3.4-target_source.patch12
-rw-r--r--dev-java/jss/jss-3.4-r1.ebuild65
5 files changed, 90 insertions, 2 deletions
diff --git a/dev-java/jss/ChangeLog b/dev-java/jss/ChangeLog
index 0997265243e9..5a6612072f3f 100644
--- a/dev-java/jss/ChangeLog
+++ b/dev-java/jss/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for dev-java/jss
-# Copyright 2000-2005 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-java/jss/ChangeLog,v 1.7 2005/08/05 16:06:59 betelgeuse Exp $
+# Copyright 2000-2006 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-java/jss/ChangeLog,v 1.8 2006/08/14 23:03:33 nelchael Exp $
+
+*jss-3.4-r1 (14 Aug 2006)
+
+ 14 Aug 2006; Krzysiek Pawlik <nelchael@gentoo.org>
+ +files/jss-3.4-target_source.patch, +jss-3.4-r1.ebuild:
+ Migrated to new Java build system.
05 Aug 2005; Petteri Räty <betelgeuse@gentoo.org> jss-3.4.ebuild:
the ebuild now inherits linux-info.eclass to fix bug 101427
diff --git a/dev-java/jss/files/digest-jss-3.4 b/dev-java/jss/files/digest-jss-3.4
index 80d3ca375f74..f5f7dd4fd22b 100644
--- a/dev-java/jss/files/digest-jss-3.4
+++ b/dev-java/jss/files/digest-jss-3.4
@@ -1 +1,3 @@
MD5 ceeab5fd5adbbe8f3a1c3547b2389abf jss-3.4-src.tar.gz 481774
+RMD160 2c0577de95fd753c176d3d37e9d2cdfbbc7fdf71 jss-3.4-src.tar.gz 481774
+SHA256 53396a99eb8d4024ede7a416ee3e2ece95daeca9353e92b971243d52181b919c jss-3.4-src.tar.gz 481774
diff --git a/dev-java/jss/files/digest-jss-3.4-r1 b/dev-java/jss/files/digest-jss-3.4-r1
new file mode 100644
index 000000000000..f5f7dd4fd22b
--- /dev/null
+++ b/dev-java/jss/files/digest-jss-3.4-r1
@@ -0,0 +1,3 @@
+MD5 ceeab5fd5adbbe8f3a1c3547b2389abf jss-3.4-src.tar.gz 481774
+RMD160 2c0577de95fd753c176d3d37e9d2cdfbbc7fdf71 jss-3.4-src.tar.gz 481774
+SHA256 53396a99eb8d4024ede7a416ee3e2ece95daeca9353e92b971243d52181b919c jss-3.4-src.tar.gz 481774
diff --git a/dev-java/jss/files/jss-3.4-target_source.patch b/dev-java/jss/files/jss-3.4-target_source.patch
new file mode 100644
index 000000000000..e024a0b8b622
--- /dev/null
+++ b/dev-java/jss/files/jss-3.4-target_source.patch
@@ -0,0 +1,12 @@
+diff -Nru jss-3.4-src/mozilla/security/jss/build_java.pl jss-3.4-src.patched/mozilla/security/jss/build_java.pl
+--- jss-3.4-src/mozilla/security/jss/build_java.pl 2002-10-17 02:33:29.000000000 +0200
++++ jss-3.4-src.patched/mozilla/security/jss/build_java.pl 2006-08-15 00:53:05.000000000 +0200
+@@ -190,7 +190,7 @@
+ #
+ if( scalar(@source_list) > 0 ) {
+ ensure_dir_exists($class_dir);
+- print_do("$javac $javac_opt_flag -sourcepath . -d $class_dir " .
++ print_do("$javac $ENV{JAVA_GENTOO_OPTS} $javac_opt_flag -sourcepath . -d $class_dir " .
+ "$classpath " . join(" ",@source_list));
+ }
+
diff --git a/dev-java/jss/jss-3.4-r1.ebuild b/dev-java/jss/jss-3.4-r1.ebuild
new file mode 100644
index 000000000000..2d99ec088818
--- /dev/null
+++ b/dev-java/jss/jss-3.4-r1.ebuild
@@ -0,0 +1,65 @@
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-java/jss/jss-3.4-r1.ebuild,v 1.1 2006/08/14 23:03:33 nelchael Exp $
+
+inherit eutils java-pkg-2 versionator linux-info
+
+RTM_NAME="JSS_${PV//./_}_RTM"
+DESCRIPTION="Network Security Services for Java (JSS)"
+HOMEPAGE="http://www.mozilla.org/projects/security/pki/jss/"
+SRC_URI="ftp://ftp.mozilla.org/pub/mozilla.org/security/${PN}/releases/${RTM_NAME}/src/${P}-src.tar.gz"
+
+LICENSE="MPL-1.1"
+SLOT="3.4"
+KEYWORDS="~amd64 ~sparc ~x86"
+IUSE=""
+
+RDEPEND=">=virtual/jre-1.4
+ >=dev-libs/nspr-4.3
+ >=dev-libs/nss-3.9.2"
+DEPEND=">=virtual/jdk-1.4
+ ${RDEPEND}
+ app-arch/zip
+ >=sys-apps/sed-4"
+
+S=${WORKDIR}/${P}-src
+
+src_unpack() {
+ unpack ${A}
+ epatch "${FILESDIR}/${P}-target_source.patch"
+ cd ${S}/mozilla/security/coreconf
+ cp Linux2.5.mk Linux$(get_version_component_range 1-3 ${KV}).mk
+ cp Linux2.5.mk Linux$(get_version_component_range 1-2 ${KV}).mk
+
+ echo "INCLUDES += -I${ROOT}usr/include/nss -I${ROOT}usr/include/nspr" \
+ >> ${S}/mozilla/security/coreconf/headers.mk
+
+ if use x86; then
+ sed -e 's:-L$(DIST)/lib:-L/usr/lib/nspr -L/usr/lib/nss -L$(JAVA_HOME)/jre/lib/i386 -L$(JAVA_HOME)/jre/lib/i386/server -L$(DIST)/lib:' \
+ -i ${S}/mozilla/security/jss/lib/config.mk
+ elif use amd64; then
+ sed -e 's:-L$(DIST)/lib:-L/usr/lib/nspr -L/usr/lib/nss -L$(JAVA_HOME)/jre/lib/amd64 -L$(JAVA_HOME)/jre/lib/amd64/server -L$(DIST)/lib:' \
+ -i ${S}/mozilla/security/jss/lib/config.mk
+ elif use sparc; then
+ sed -e 's:-L$(DIST)/lib:-L/usr/lib/nspr -L/usr/lib/nss -L$(JAVA_HOME)/jre/lib/sparc -L$(JAVA_HOME)/jre/lib/sparc/server -L$(DIST)/lib:' \
+ -i ${S}/mozilla/security/jss/lib/config.mk
+ fi
+}
+
+src_compile() {
+ export JAVA_GENTOO_OPTS="-target $(java-pkg_get-target) -source $(java-pkg_get-source)"
+ cd ${S}/mozilla/security/coreconf
+ emake -j1 BUILD_OPT=1 || die "coreconf make failed"
+
+ cd ${S}/mozilla/security/jss
+ emake -j1 BUILD_OPT=1 || die "nss make failed"
+}
+
+src_install() {
+ cd ${S}/mozilla/dist/classes*
+ zip -q -r ../jss34.jar . || die "zip failed"
+ java-pkg_dojar ../jss34.jar
+
+ cd ${S}
+ java-pkg_doso mozilla/security/jss/lib/Linux2*/libjss3.so
+}