jss update

Mario Fetka <[email protected]>
Newsgroups gmane.linux.gentoo.java
Organization Privat
Message-ID <[email protected]>
Hallo,

the jss-4.2 package is installing into slot 3.4 (bug) it shoud go into 4

onby my update for jss-4.2.5

wfg
Mario
jss-4.2.5.ebuild (text/plain, 2.1 KB)
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-java/jss/jss-4.2.ebuild,v 1.2 2007/02/16 21:23:43 betelgeuse Exp $

inherit eutils java-pkg-2 versionator

RTM_NAME="JSS_${PV//./_}_RTM"
DESCRIPTION="Network Security Services for Java (JSS)"
HOMEPAGE="http://www.mozilla.org/projects/security/pki/jss/"
# To prepare this tarball
# cvs -d :pserver:anonymous-tHTLB/[email protected]:/cvsroot export \
#    -r JSS_4_2_5_RTM mozilla/security/coreconf
# cvs -d :pserver:anonymous-tHTLB/[email protected]:/cvsroot export \
#    -r JSS_4_2_5_RTM mozilla/security/jss
# tar cvjf jss-4.2.5.tar.bz2 mozilla
SRC_URI="ftp://mars.arge.at/pub/${P}.tar.bz2
	http://ftp.mars.arge.at/pub/${P}.tar.bz2"

LICENSE="MPL-1.1"
SLOT="4"
KEYWORDS="~x86"
IUSE="doc examples source"

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
		dev-util/pkgconfig
		>=sys-apps/sed-4"

S=${WORKDIR}/mozilla

src_unpack() {
	unpack ${A}
	epatch "${FILESDIR}/${PN}-3.4-target_source.patch"
	epatch "${FILESDIR}/${PN}-4.2.5-pkg-config.patch"

	echo "INCLUDES += -I/usr/include/nss -I/usr/include/nspr" \
		>> "${S}"/security/coreconf/headers.mk || die
}

src_compile() {
	export JAVA_GENTOO_OPTS="-target $(java-pkg_get-target) -source $(java-pkg_get-source)"
	cd "${S}/security/coreconf" || die
	emake -j1 BUILD_OPT=1 || die "coreconf make failed"

	cd "${S}/security/jss" || die
	emake -j1 BUILD_OPT=1 || die "jss make failed"
	if use doc; then
		emake -j1 BUILD_OPT=1 javadoc || die "failed to create javadocs"
	fi
}

src_test() {
	BUILD_OPT=1 perl security/jss/org/mozilla/jss/tests/all.pl dist \
		"${S}"/dist/Linux*.OBJ/
}

src_install() {
	java-pkg_dojar dist/*.jar
	# Use this instead of the one in dist because it is a symlink
	# and doso handles symlinks by just symlinking to the original
	java-pkg_doso ./security/${PN}/lib/*/*.so
	use doc && java-pkg_dojavadoc dist/jssdoc
	use source && java-pkg_dosrc ./security/jss/org
	if use examples; then
		docinto examples
		dodoc ./security/jss/samples/*
	fi
}
jss-4.2.5-pkg-config.patch (text/x-diff, 599 B)
Index: security/jss/lib/config.mk
===================================================================
RCS file: /cvsroot/mozilla/security/jss/lib/config.mk,v
retrieving revision 1.19
diff -u -r1.19 config.mk
--- mozilla/security/jss/lib/config.mk	25 Apr 2004 15:02:19 -0000	1.19
+++ mozilla/security/jss/lib/config.mk	30 Jan 2007 21:08:06 -0000
@@ -72,14 +72,7 @@
 else
 
 EXTRA_SHARED_LIBS += \
-    -L$(NSS_LIB_DIR) \
-    -lnss3 \
-    -lsmime3 \
-    -lssl3 \
-    -L$(NSPR_LIB_DIR) \
-    -lplc4 \
-    -lplds4 \
-    -lnspr4 \
+    `pkg-config --libs nss` \
     $(JAVA_LIBS) \
     $(NULL)
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.