From 21a21bd9ff7456838f603d8f4e641ff7c6c73ce7 Mon Sep 17 00:00:00 2001 From: William Thomson Date: Sun, 25 Mar 2007 17:26:43 +0000 Subject: [PATCH] Initial ebuild, should be pretty identical to bcprov ebuild. Ideal to keep both in sync. Still to do, junit/test stuff, optional dep/compile test run Package-Manager: portage-2.1.2.2 --- dev-java/bcmail/ChangeLog | 8 ++++ dev-java/bcmail/Manifest | 16 ++++++++ dev-java/bcmail/bcmail-1.36.ebuild | 52 ++++++++++++++++++++++++ dev-java/bcmail/files/digest-bcmail-1.36 | 3 ++ dev-java/bcmail/metadata.xml | 17 ++++++++ 5 files changed, 96 insertions(+) create mode 100644 dev-java/bcmail/ChangeLog create mode 100644 dev-java/bcmail/Manifest create mode 100644 dev-java/bcmail/bcmail-1.36.ebuild create mode 100644 dev-java/bcmail/files/digest-bcmail-1.36 create mode 100644 dev-java/bcmail/metadata.xml diff --git a/dev-java/bcmail/ChangeLog b/dev-java/bcmail/ChangeLog new file mode 100644 index 000000000000..984269a1f2ea --- /dev/null +++ b/dev-java/bcmail/ChangeLog @@ -0,0 +1,8 @@ +# ChangeLog for dev-java/bcmail +# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/dev-java/bcmail/ChangeLog,v 1.1 2007/03/25 17:26:43 wltjr Exp $ + + 25 Mar 2007; William L. Thomson Jr. ChangeLog: + Initial ebuild, should be pretty identical to bcprov ebuild. Ideal to keep + both in sync. Still to do, junit/test stuff, optional dep/compile test run + diff --git a/dev-java/bcmail/Manifest b/dev-java/bcmail/Manifest new file mode 100644 index 000000000000..4639d2d50728 --- /dev/null +++ b/dev-java/bcmail/Manifest @@ -0,0 +1,16 @@ +DIST bcmail-jdk14-136.tar.gz 366624 RMD160 750e0ec71e46dcae19b7c5785e48bf5945cdf274 SHA1 12303303c3d4632e8a2e8c64e5d42e97bfa0a21a SHA256 832bc096dfe4e5dcb9c1c8256bffa8de249130b3d4f85ab3a2ffbada3d88a0ea +EBUILD bcmail-1.36.ebuild 1164 RMD160 cd66b64eaa3c3073b5bd7794a6ac9cffc3544c21 SHA1 b5d2d66877a9c690f75f21c845174aa39ebf6a77 SHA256 e4fd1405d625c7658dafba970f6055b549da8f67bd00ba81b82b38975d652db2 +MD5 0487e2ebadb086157287c674a6b66f19 bcmail-1.36.ebuild 1164 +RMD160 cd66b64eaa3c3073b5bd7794a6ac9cffc3544c21 bcmail-1.36.ebuild 1164 +SHA256 e4fd1405d625c7658dafba970f6055b549da8f67bd00ba81b82b38975d652db2 bcmail-1.36.ebuild 1164 +MISC ChangeLog 425 RMD160 30e91b5a5752c6395c1e2a6319609de886f97ae7 SHA1 b6faea5f262221f3ca83e1b4205517367d71cb9f SHA256 62b9a41d153d73ceaa67d338ab9e333736663108c9908ec7d50dc17b21aafa96 +MD5 7df586ad7e003d93e1c90d2b0fe0e94c ChangeLog 425 +RMD160 30e91b5a5752c6395c1e2a6319609de886f97ae7 ChangeLog 425 +SHA256 62b9a41d153d73ceaa67d338ab9e333736663108c9908ec7d50dc17b21aafa96 ChangeLog 425 +MISC metadata.xml 397 RMD160 66a49cc71f9ec786c0e93ae4c4a4eaea8712f6d6 SHA1 0636674b59ec0ea55bd79ec694553958c678bf59 SHA256 9af22e5e76d888769afb48e2958caeb0b589a53e6f6475c45e5064194bd8287f +MD5 a2329cf812b2d7d56bd474ea91543c9c metadata.xml 397 +RMD160 66a49cc71f9ec786c0e93ae4c4a4eaea8712f6d6 metadata.xml 397 +SHA256 9af22e5e76d888769afb48e2958caeb0b589a53e6f6475c45e5064194bd8287f metadata.xml 397 +MD5 fcb1aa98423931f8820c3253c06bec0f files/digest-bcmail-1.36 250 +RMD160 18e792a42fbc9460cf00858f7bf4a55d9b90ac42 files/digest-bcmail-1.36 250 +SHA256 639e1c3d3c2cc87f1780a1f71509812a758ca6517bb345adeaddab5674a18eca files/digest-bcmail-1.36 250 diff --git a/dev-java/bcmail/bcmail-1.36.ebuild b/dev-java/bcmail/bcmail-1.36.ebuild new file mode 100644 index 000000000000..effbe13ea49e --- /dev/null +++ b/dev-java/bcmail/bcmail-1.36.ebuild @@ -0,0 +1,52 @@ +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-java/bcmail/bcmail-1.36.ebuild,v 1.1 2007/03/25 17:26:43 wltjr Exp $ + +JAVA_PKG_IUSE="doc source" + +inherit java-pkg-2 java-ant-2 + +MY_P="${PN}-jdk14-${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 ~x86" + +COMMON_DEPEND="~dev-java/bcprov-${PV} + dev-java/junit + dev-java/sun-javamail" +DEPEND=">=virtual/jdk-1.4 + app-arch/unzip + ${COMMON_DEPEND}" +RDEPEND=">=virtual/jre-1.4 + ${COMMON_DEPEND}" + +S="${WORKDIR}/${MY_P}" + +src_unpack() { + unpack ${A} + cd "${S}" + unpack ./src.zip +} + +src_compile() { + mkdir "${S}/classes" + + find org -name "*.java" > "${T}/src.list" + ejavac -d "${S}/classes" \ + -classpath $(java-pkg_getjars bcprov,junit,sun-javamail) \ + "@${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/bcmail/files/digest-bcmail-1.36 b/dev-java/bcmail/files/digest-bcmail-1.36 new file mode 100644 index 000000000000..b9e805de511b --- /dev/null +++ b/dev-java/bcmail/files/digest-bcmail-1.36 @@ -0,0 +1,3 @@ +MD5 98d3cb5335f43dd31d28d0a0d96dcb10 bcmail-jdk14-136.tar.gz 366624 +RMD160 750e0ec71e46dcae19b7c5785e48bf5945cdf274 bcmail-jdk14-136.tar.gz 366624 +SHA256 832bc096dfe4e5dcb9c1c8256bffa8de249130b3d4f85ab3a2ffbada3d88a0ea bcmail-jdk14-136.tar.gz 366624 diff --git a/dev-java/bcmail/metadata.xml b/dev-java/bcmail/metadata.xml new file mode 100644 index 000000000000..c7cddcf32e6f --- /dev/null +++ b/dev-java/bcmail/metadata.xml @@ -0,0 +1,17 @@ + + + + + java + + + wltjr@gentoo.org + William L. Thomson Jr. + + + + Lightweight Java cryptography APIs that work with everything + from the J2ME to the JDK 1.6 + + + -- 2.26.2