Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 435468
Collapse All | Expand All

(-)/usr/portage/dev-java/gnu-crypto/gnu-crypto-2.0.1-r2.ebuild (-12 / +13 lines)
Lines 2-7 Link Here
2
# Distributed under the terms of the GNU General Public License v2
2
# Distributed under the terms of the GNU General Public License v2
3
# $Header: /var/cvsroot/gentoo-x86/dev-java/gnu-crypto/gnu-crypto-2.0.1-r2.ebuild,v 1.12 2012/01/01 18:05:56 sera Exp $
3
# $Header: /var/cvsroot/gentoo-x86/dev-java/gnu-crypto/gnu-crypto-2.0.1-r2.ebuild,v 1.12 2012/01/01 18:05:56 sera Exp $
4
4
5
EAPI=4
5
JAVA_PKG_IUSE="doc source"
6
JAVA_PKG_IUSE="doc source"
6
7
7
inherit java-pkg-2 eutils
8
inherit java-pkg-2 eutils
Lines 12-18 Link Here
12
13
13
LICENSE="GPL-2"
14
LICENSE="GPL-2"
14
SLOT="0"
15
SLOT="0"
15
KEYWORDS="amd64 ppc ppc64 x86 ~x86-fbsd"
16
KEYWORDS="amd64 ppc ppc64 x86 ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos"
16
IUSE=""
17
IUSE=""
17
18
18
DEPEND=">=virtual/jdk-1.3"
19
DEPEND=">=virtual/jdk-1.3"
Lines 20-44 Link Here
20
21
21
RESTRICT="test"
22
RESTRICT="test"
22
23
23
src_unpack() {
24
src_prepare() {
24
	unpack ${A}
25
	cd "${S}"
26
27
	epatch "${FILESDIR}/${P}-jdk15.patch"
25
	epatch "${FILESDIR}/${P}-jdk15.patch"
28
}
26
}
29
27
30
src_compile() {
28
src_configure() {
31
	# jikes support disabled, doesnt work: #86655
29
	# jikes support disabled, doesnt work: #86655
32
	econf JAVAC="javac" JAVACFLAGS="$(java-pkg_javac-args)" --with-jce=yes --with-sasl=yes || die
30
	econf JAVAC="javac" JAVACFLAGS="$(java-pkg_javac-args)" --with-jce=yes --with-sasl=yes
33
	emake -j1 || die
31
}
32
33
src_compile() {
34
	emake -j1
34
	if use doc ; then
35
	if use doc ; then
35
		emake -j1 javadoc || die
36
		emake -j1 javadoc
36
	fi
37
	fi
37
}
38
}
38
39
39
src_install() {
40
src_install() {
40
	einstall || die
41
	einstall
41
	rm "${D}"/usr/share/*.jar
42
	rm "${ED}"/usr/share/*.jar
42
43
43
	java-pkg_dojar source/gnu-crypto.jar
44
	java-pkg_dojar source/gnu-crypto.jar
44
	java-pkg_dojar jce/javax-crypto.jar
45
	java-pkg_dojar jce/javax-crypto.jar
Lines 47-51 Link Here
47
	use doc && java-pkg_dojavadoc api
48
	use doc && java-pkg_dojavadoc api
48
	use source && java-pkg_dosrc source/* jce/* security/*
49
	use source && java-pkg_dosrc source/* jce/* security/*
49
50
50
	dodoc AUTHORS ChangeLog NEWS README THANKS || die
51
	dodoc AUTHORS ChangeLog NEWS README THANKS
51
}
52
}

Return to bug 435468