diff options
author | 2012-07-22 16:09:51 +0300 | |
---|---|---|
committer | 2012-07-22 16:09:51 +0300 | |
commit | bf615022d2f59f23138f55d507122f614a7b752b (patch) | |
tree | fdd36d395cec34fb8f93799d4f358d350b9a371e | |
parent | new ebuild version for hsqldb (diff) | |
download | dmol-bf615022d2f59f23138f55d507122f614a7b752b.tar.gz dmol-bf615022d2f59f23138f55d507122f614a7b752b.tar.bz2 dmol-bf615022d2f59f23138f55d507122f614a7b752b.zip |
ebuild for bcpg wrt #427636
-rw-r--r-- | dev-java/bcpg/Manifest | 3 | ||||
-rw-r--r-- | dev-java/bcpg/bcpg-1.45.ebuild | 60 | ||||
-rw-r--r-- | dev-java/bcpg/metadata.xml | 7 |
3 files changed, 70 insertions, 0 deletions
diff --git a/dev-java/bcpg/Manifest b/dev-java/bcpg/Manifest new file mode 100644 index 0000000..096fa81 --- /dev/null +++ b/dev-java/bcpg/Manifest @@ -0,0 +1,3 @@ +DIST bcpg-jdk15-145.tar.gz 446133 RMD160 bb5cecce66ff0035ce74b7044acb0a7c4fc4267d SHA1 7d6d40df44e4addceddc3530b48cbecaa3ecaf62 SHA256 2f3bfd017899b5c3f5e338e0c923c364a7321764b54e9c52881dd7a66356db31 +EBUILD bcpg-1.45.ebuild 1231 RMD160 dfc9e48814eff0a657db13fd7f7601730e4a8117 SHA1 9e5d5d7645ba588e6e441d6ab70f7280a4c96ed5 SHA256 923550f3063a35a2435e4fb29ad7db9d5b182ae58822965f10bcd5aee222001c +MISC metadata.xml 205 RMD160 4923bb2153d0eb925ffc86f91fdd806110e016c0 SHA1 da9437a648cf7dd5fcfca1c45c60c4053fed15c4 SHA256 2ff0740a5424b0e10c7888541a248d1bd363a60911b0921b4cfe5c36590498ce diff --git a/dev-java/bcpg/bcpg-1.45.ebuild b/dev-java/bcpg/bcpg-1.45.ebuild new file mode 100644 index 0000000..dca6b49 --- /dev/null +++ b/dev-java/bcpg/bcpg-1.45.ebuild @@ -0,0 +1,60 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-java/bcmail/bcmail-1.45.ebuild,v 1.7 2012/05/12 03:42:10 aballier Exp $ + +EAPI=4 + +JAVA_PKG_IUSE="doc source" + +inherit java-pkg-2 java-ant-2 + +MY_P="${PN}-jdk15-${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" +IUSE="" + +COMMON_DEPEND="~dev-java/bcprov-${PV}" +DEPEND=">=virtual/jdk-1.5 + app-arch/unzip + ${COMMON_DEPEND}" +RDEPEND=">=virtual/jre-1.5 + ${COMMON_DEPEND}" + +S="${WORKDIR}/${MY_P}" + +src_unpack() { + default + cd "${S}" + unpack ./src.zip +} + +java_prepare() { + mkdir "${S}/classes" + + #remove tests + rm -rf org/bouncycastle/openpgp/test \ + org/bouncycastle/openpgp/examples/test +} + +src_compile() { + + find org -name "*.java" > "${T}/src.list" + ejavac -d "${S}/classes" \ + -classpath $(java-pkg_getjars bcprov) \ + "@${T}/src.list" + + cd "${S}/classes" + 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 +} diff --git a/dev-java/bcpg/metadata.xml b/dev-java/bcpg/metadata.xml new file mode 100644 index 0000000..80859ae --- /dev/null +++ b/dev-java/bcpg/metadata.xml @@ -0,0 +1,7 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer> + <email>the.dmol@gmail.com</email> + </maintainer> +</pkgmetadata> |