diff options
author | Tom Wijsman <tomwij@gentoo.org> | 2013-05-21 16:12:54 +0000 |
---|---|---|
committer | Tom Wijsman <tomwij@gentoo.org> | 2013-05-21 16:12:54 +0000 |
commit | f06a84bd9f4e83f7d8262260df9533cdd60abd7c (patch) | |
tree | 7574c784c8a70b5cca162152e0be124f0b446a99 /dev-java/bcprov | |
parent | Stable for HPPA (bug #470288). (diff) | |
download | gentoo-2-f06a84bd9f4e83f7d8262260df9533cdd60abd7c.tar.gz gentoo-2-f06a84bd9f4e83f7d8262260df9533cdd60abd7c.tar.bz2 gentoo-2-f06a84bd9f4e83f7d8262260df9533cdd60abd7c.zip |
Version bump to 1.48. EAPI 5. Clean up the ebuild slightly.
(Portage version: 2.1.11.63/cvs/Linux x86_64, signed Manifest commit with key 6D34E57D)
Diffstat (limited to 'dev-java/bcprov')
-rw-r--r-- | dev-java/bcprov/ChangeLog | 10 | ||||
-rw-r--r-- | dev-java/bcprov/bcprov-1.48.ebuild | 64 |
2 files changed, 71 insertions, 3 deletions
diff --git a/dev-java/bcprov/ChangeLog b/dev-java/bcprov/ChangeLog index 637faabd6b08..60785a08229e 100644 --- a/dev-java/bcprov/ChangeLog +++ b/dev-java/bcprov/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for dev-java/bcprov -# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-java/bcprov/ChangeLog,v 1.43 2012/05/12 03:13:16 aballier Exp $ +# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/dev-java/bcprov/ChangeLog,v 1.44 2013/05/21 16:12:54 tomwij Exp $ + +*bcprov-1.48 (21 May 2013) + + 21 May 2013; Tom Wijsman <TomWij@gentoo.org> +bcprov-1.48.ebuild: + Version bump to 1.48. EAPI 5. Clean up the ebuild slightly. 12 May 2012; Alexis Ballier <aballier@gentoo.org> bcprov-1.45.ebuild: keyword ~amd64-fbsd @@ -165,4 +170,3 @@ 23 Jul 2006; Joshua Nichols <jnichols@gentoo.org> +files/build.xml, +metadata.xml, +bcprov-1.31-r1.ebuild: Initial commit, pulled from java-experimental-overlay. - diff --git a/dev-java/bcprov/bcprov-1.48.ebuild b/dev-java/bcprov/bcprov-1.48.ebuild new file mode 100644 index 000000000000..d58f5102ae00 --- /dev/null +++ b/dev-java/bcprov/bcprov-1.48.ebuild @@ -0,0 +1,64 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-java/bcprov/bcprov-1.48.ebuild,v 1.1 2013/05/21 16:12:54 tomwij Exp $ + +EAPI="5" + +JAVA_PKG_IUSE="doc source" + +inherit java-pkg-2 java-ant-2 + +MY_P="${PN}-jdk15on-${PV/./}" +DESCRIPTION="Java cryptography APIs" +HOMEPAGE="http://www.bouncycastle.org/java.html" +SRC_URI="http://www.bouncycastle.org/download/${MY_P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~ppc64 ~x86 ~amd64-fbsd ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~x64-macos" + +# The src_unpack find needs a new find +# https://bugs.gentoo.org/show_bug.cgi?id=182276 +DEPEND=">=virtual/jdk-1.5 + userland_GNU? ( >=sys-apps/findutils-4.3 ) + app-arch/unzip" +RDEPEND=">=virtual/jre-1.5" + +IUSE="userland_GNU" + +S="${WORKDIR}/${MY_P}" + +src_unpack() { + default + + cd "${S}" || die + unpack ./src.zip +} + +java_prepare() { + # This should eventually split the tests + # and call them separately, it's not clean + # to just throw the tests away. + einfo "Removing testcases' sources:" + find . -path '*test/*.java' -print -delete \ + || die "Failed to delete testcases." + find . -name '*Test*.java' -print -delete \ + || die "Failed to delete testcases." + + mkdir "${S}"/classes || die +} + +src_compile() { + find . -name "*.java" > "${T}"/src.list + ejavac -encoding ISO-8859-1 -d "${S}"/classes "@${T}"/src.list + + cd "${S}"/classes || die + jar -cf "${S}"/${PN}.jar * || die "Failed to create jar." +} + +src_install() { + java-pkg_dojar "${S}"/${PN}.jar + + use source && java-pkg_dosrc org + use doc && java-pkg_dojavadoc docs +} |