diff options
author | Patrice Clement <monsieurp@gentoo.org> | 2015-08-01 16:33:53 +0000 |
---|---|---|
committer | Patrice Clement <monsieurp@gentoo.org> | 2015-08-01 16:33:53 +0000 |
commit | 012a49dc2b4a6719274c68a57cf7ba2913c24e5b (patch) | |
tree | f7cb02800870ef511cefaaedf4da1799fafd7922 /dev-java | |
parent | ia64 syable wrt bug #556150 (diff) | |
download | historical-012a49dc2b4a6719274c68a57cf7ba2913c24e5b.tar.gz historical-012a49dc2b4a6719274c68a57cf7ba2913c24e5b.tar.bz2 historical-012a49dc2b4a6719274c68a57cf7ba2913c24e5b.zip |
Version bump. Fixes bug 535882.
Signed-off-by: Patrice Clement <monsieurp@gentoo.org>
Package-Manager: portage-2.2.18/cvs/Linux x86_64
Manifest-Sign-Key: 0x93491BB8
Diffstat (limited to 'dev-java')
-rw-r--r-- | dev-java/bcmail/ChangeLog | 7 | ||||
-rw-r--r-- | dev-java/bcmail/Manifest | 18 | ||||
-rw-r--r-- | dev-java/bcmail/bcmail-1.52.ebuild | 84 | ||||
-rw-r--r-- | dev-java/bcpkix/ChangeLog | 7 | ||||
-rw-r--r-- | dev-java/bcpkix/Manifest | 24 | ||||
-rw-r--r-- | dev-java/bcpkix/bcpkix-1.52.ebuild | 101 |
6 files changed, 217 insertions, 24 deletions
diff --git a/dev-java/bcmail/ChangeLog b/dev-java/bcmail/ChangeLog index b2679369d8ac..a51d81426504 100644 --- a/dev-java/bcmail/ChangeLog +++ b/dev-java/bcmail/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for dev-java/bcmail # Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-java/bcmail/ChangeLog,v 1.47 2015/06/14 17:52:47 monsieurp Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-java/bcmail/ChangeLog,v 1.48 2015/08/01 16:33:30 monsieurp Exp $ + +*bcmail-1.52 (01 Aug 2015) + + 01 Aug 2015; Patrice Clement <monsieurp@gentoo.org> +bcmail-1.52.ebuild: + Version bump. Fixes bug 535882. 14 Jun 2015; Patrice Clement <monsieurp@gentoo.org> bcmail-1.50.ebuild: Stable for x86 via ALLARCHES. Fix bug 481960. diff --git a/dev-java/bcmail/Manifest b/dev-java/bcmail/Manifest index c4b1c888ab2c..ddb8a4468ffd 100644 --- a/dev-java/bcmail/Manifest +++ b/dev-java/bcmail/Manifest @@ -4,19 +4,21 @@ Hash: SHA256 DIST bcmail-jdk14-138.tar.gz 386478 SHA256 629bbe7f00c96b201db4b76f777014763110d9de5021593505f906a31fa7bb7c SHA512 1d79aebee02a8d0017dc0b05f68e49fc031a797043eec173aa68ef0148e06b6ebe4d001a1494d6ed95114b1534ece7c47982e119ad8aec2485323babe34f3a13 WHIRLPOOL 272b1c73ffb4a46737a5a4bd5c2105a7411d6cddfcb1dd511688662fc6d55c20027cf1adb30da9a4ce24db34800cff3d71771a60d57e157b1081c1bc7f16eef7 DIST bcmail-jdk15-145.tar.gz 483519 SHA256 e74e2a48135e9396ed3622d9dae64eb66e6e88e4b0d17a3522c8d55ee5e95d62 SHA512 2d3232d5eb1cd75ad56a7316beb32880f3f935fcd3ed0a6cb2cc3e1861dc9f0bece0cbae53471760246505adb5c28328691eb82e11fedb0b160c1248d21c48bb WHIRLPOOL abb41f525717886b21551808dfc375a691ceed1a192eb46603fb91398c132768093229389b0247a49121b098d0338f37980bd8980c0c1a85fb91754f586d411f DIST bcmail-jdk15on-150.tar.gz 221760 SHA256 1005a21cc5bf705801d217fb5eb90d97106bc11bf1f7079573a64b12f3e080c9 SHA512 91727ddc4bf932cfaedd3cb90a807b5fec3120e56fde3e5fc73bb5bf2e97db50a35a63e0b5e342fe29e4b974579c5cdd5d427d01c9dd8e7abd521ccd3d1959f1 WHIRLPOOL 96893e526007a9635f847010c0c37d17974b999cd71baba416cd287a31407e815ddbb6ae0069c46d362479dc369b726926a026d3267e34bfcc23aea9b523eb6f +DIST bcmail-jdk15on-152.tar.gz 240800 SHA256 de826cc84f89b053317a4ba548a5739ed626a925d5c3d82b4192682b4abb99f4 SHA512 e7301991071709b5788e5a813ea765a5e59bb089104a031ca91a509036e7823b851f854e5f96de6a2d2ef817aad4435f78742dea3a9b1dbeb95a6cddf250619e WHIRLPOOL a332507341015a2ebee6ab7ca38af10d48d3eda339191831a126680200b9dc0de468971e5b96df2133f483cb7c044108bfe2f544fb9e09d896fd802d22aac8d3 EBUILD bcmail-1.38-r3.ebuild 1303 SHA256 ed14d462d6a122b30916479c81a3e44da8692c24392cd99f726c7b49c2d8a5f8 SHA512 5aac2bd1e1bbe698f89950908f5c059ddb0b293a714fa77578fd3d42335274c56cc62f1763e20177a785d84715557b76cece9e525490064d08b3bf54b31798ff WHIRLPOOL 2cb83a524231e8f808592e2f85c2eb019d0c97059c15eaf4e37ac3191336339f809eeab83adc845c0494c6e40dcc821f33a8d0a0471620e1faa2727d331225b2 EBUILD bcmail-1.45-r2.ebuild 1273 SHA256 b86cdb59f09aee4a0ecc3b63beed8057fa5350816b35838db9e39b03d92fda4a SHA512 721a8ac5ac7d5fe725f2050c1a6326453a8b03d1ec42b9eb00303aca725ea9d106dc54b92f402137b9f809b6a1246c636e16299e82a8fcb0d0c913b4bce80ce3 WHIRLPOOL c61458b223469f54aa3bba4251264e48993ed687df9fc6486d49ead6cc3ecbc076f2ab7746520a5b978dd8c9baf7d76d710b875d85323e5b33f1aa067f7dd13b EBUILD bcmail-1.50.ebuild 1847 SHA256 dc0ac5f9ec4697512657039dfc80dd06faef1d89a03740a6a3599539785747b0 SHA512 bada32595a8cd8526e58d5b7a028bfa4d47e58422016dc81db4012ecf6f6275023f4ee6f2f7b05eaf54bfe2049968679b122e79c422f9a7fb7a56172a1709cfe WHIRLPOOL d8774409620a483c1510bff8c8eb1445d56c5a947b6dc21cbdfcec1991a97be930ab73ae39b576939935442e151e65849b663d0c5db4ea0d1861730fc55a568f -MISC ChangeLog 6237 SHA256 0c1f6c260b8befd0b20a57622e042d04813766225747fa76bbed6940d37a678a SHA512 86aacb2fe3bf4e6dd010f7cd84071a042c3749e16482b74dd1ecdf080b8518c6cab8bb83800f3e09fcf7bee858fa954bb96f11dacf32f2cfa8ed1b749ca060d8 WHIRLPOOL 86b20d4d6a946ac887f5980ef46b33eadf7c8adf36c2c8505d703b4e0e917088b90536bb3e7af9efb6e10b404c3b1726297be7bb1dd6855b63e9f1f4953a4a26 +EBUILD bcmail-1.52.ebuild 1835 SHA256 9b1d4d770aed4dbe98a36e92788ac3f3222064ec7cfddd0dd56dd60be0ab6c56 SHA512 245d46273537b16716efd0e6511ef99abf47c69df297b199437dd91baff496be1ae64966d7be7db9286fdb69a06f941e2696c16e7860097519e850301e7e29ca WHIRLPOOL 33d6884080444b423fbcb5e920b2ad3ee80b08bf743240403b8629897907d175dc92b3769071aa0a17d3295a3ae97e00b9433cd5a7487cdc5dae1cfb943c7e6d +MISC ChangeLog 6375 SHA256 b68fe62f61b8699c5119feed5fa64f322967f4ed71042907c45d784318893076 SHA512 41d422ea1c36f4e4eb30a94d356e8816251205d6ef6a5be149aa1a29f2cf6e148b1864cc27cf3956653130b74bd309875137c6353bf5f3f69b6f48715a50e1cf WHIRLPOOL 51a903c4ac2b21246b8d5b63c74574e2bebc4b101beef1091cebf9d6cc010978a8109a7d53129de0eadd62b55cbbbf3dc3f17dbc1bad061d75ee2479bbe424ed MISC metadata.xml 291 SHA256 8c4fcd1bc741de757078e811eae3b33f67ea2b30780bb6fd29303216820b58cb SHA512 bba7360c64a44c9a6a48e4604b9af368b28dbce44981599c14e6cb92999fa2556b1d99006091a3556f6563666e884ee28717fbfdf77b3972e1e8871aff713fb4 WHIRLPOOL fb9c248612f30d4b35e58b328e931ee67cf08a91c110df08276aafe6a17406da60d3dd93f9f4404c5e802a10484918aa31696d3381b801defabfc79fe03ed4c4 -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 -iQEcBAEBCAAGBQJVfb7pAAoJEJGRpfGTSRu4ltIIAJiPjTNaZ2q2S+yy/a7dv5Hi -0EBJZ81iunJT+P6szKlKCdtVI6AFpWHBItAeJjtA7a5u1wPzmznCHQyMBaUyym5P -gqQ8S7u0Cpm91fJZ7rSVCS8+uM4OvnKXnqQ8HWxvsTh8dQ54EKbLdtKSSiL0xnx1 -CLF1WVirZemmJKRf7Qy677UwGWvcL82YJ4yGeOGlH4saGcPHl4jsR3havXw0jaaB -16A+WZ9Bwsbjp6AKODh6fAXrap2AgYbdFmyeJxK2WeESyNzd+Hrk0TzgNAY6YUf+ -dbJnw+LB0vd58hy9yLwbsl1qbBqF5cSFBh5pdDiysvhg95C/hGPw1eNW17um478= -=NL31 +iQEcBAEBCAAGBQJVvQMlAAoJEJGRpfGTSRu4WakH/3fI5Wy9eEOr6ejx/K3Y3vEH +/0pG2sNJdU7/IDODsXVs6xFNU1wkb0/hl7YJlJoznWfJ/Fx+sFnTz6ljG+9LO0Rn +irMCCkJtrAMomaG+cvimtgKYf4NgM5atKHnG0TNt9qcK8Jq4uDhzEqCknxXr8vC+ +RjPWrWHe7O7CBf/u6rkspgxB3awdAptvkygSxlpjlglVt+RmKkVDhabPmS5Eguhj +0LfqNcuZ59q8sOq/tI68vcC5ZApf+3NpjKtvIwHVcYhwJzeG/SmTeK88YpYAzyzq +Dm7KukmH+d6TwU6jhuNnFs22j7MNj3D05xwWYm4uVFABFx712yfZLzQWPobx3jY= +=fKBR -----END PGP SIGNATURE----- diff --git a/dev-java/bcmail/bcmail-1.52.ebuild b/dev-java/bcmail/bcmail-1.52.ebuild new file mode 100644 index 000000000000..2fbbeff8dade --- /dev/null +++ b/dev-java/bcmail/bcmail-1.52.ebuild @@ -0,0 +1,84 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-java/bcmail/bcmail-1.52.ebuild,v 1.1 2015/08/01 16:33:30 monsieurp Exp $ + +EAPI="5" + +JAVA_PKG_IUSE="doc source test" + +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 ~amd64-linux ~x86-linux ~x64-macos" + +CDEPEND=">=dev-java/bcprov-${PV}:0[test?] + ~dev-java/bcpkix-${PV}:0[test?] + dev-java/sun-jaf:0 + java-virtuals/javamail:0" + +DEPEND=">=virtual/jdk-1.6 + app-arch/unzip + test? ( + dev-java/junit:0 + ) + ${CDEPEND}" + +RDEPEND=">=virtual/jre-1.6 + ${CDEPEND}" + +S="${WORKDIR}/${MY_P}" + +# Package can't be build with test as bcprov and bcpkix can't be built with test. +RESTRICT="test" + +src_unpack() { + default + cd "${S}" + unpack ./src.zip +} + +java_prepare() { + mkdir "${S}"/classes + + if use test; then + java-pkg_jar-from --build-only junit + fi +} + +src_compile() { + find org -name "*.java" > "${T}"/src.list + + local cp="$(java-pkg_getjars bcprov,bcpkix,sun-jaf,javamail)" + if use test ; then + cp="${cp}:junit.jar" + else + sed -i '/\/test\//d' "${T}"/src.list || die "Failed to remove test classes" + fi + + ejavac -d "${S}"/classes -cp ${cp} "@${T}"/src.list + + cd "${S}"/classes + jar -cf "${S}"/${PN}.jar * || die "failed to create jar" +} + +src_test() { + local cp="${PN}.jar:bcprov.jar:bcpkix.jar:junit.jar" + + java -cp ${cp} org.bouncycastle.mail.smime.test.AllTests | tee mail.tests + + grep -q FAILURES *.tests && die "Tests failed." +} + +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/bcpkix/ChangeLog b/dev-java/bcpkix/ChangeLog index 599bb67ea86e..20566fcfde97 100644 --- a/dev-java/bcpkix/ChangeLog +++ b/dev-java/bcpkix/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for dev-java/bcpkix # Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-java/bcpkix/ChangeLog,v 1.10 2015/05/19 09:06:13 ago Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-java/bcpkix/ChangeLog,v 1.11 2015/08/01 16:31:28 monsieurp Exp $ + +*bcpkix-1.52 (01 Aug 2015) + + 01 Aug 2015; Patrice Clement <monsieurp@gentoo.org> +bcpkix-1.52.ebuild: + Version bump. Fixes bug 535882. 19 May 2015; Agostino Sarubbo <ago@gentoo.org> bcpkix-1.50.ebuild: Stable for x86, wrt bug #485566 diff --git a/dev-java/bcpkix/Manifest b/dev-java/bcpkix/Manifest index 0b83ca7e1202..4fce8ea2e11b 100644 --- a/dev-java/bcpkix/Manifest +++ b/dev-java/bcpkix/Manifest @@ -2,23 +2,19 @@ Hash: SHA256 DIST bcpkix-jdk15on-150.tar.gz 1149901 SHA256 0be5bb948ec481b3d1f30ee80ef593b298b3782697f9eeee5c74cf270689b520 SHA512 17c5a9aa8c04defab46987063f847ee5fdedfc42d51e29ecad5053e3df5895c2c01899edb9222c3dab3ecf204eac9744249163dc2c1572fa2becaaf0924d2eb3 WHIRLPOOL 07197f1271ffc965479badcfd6b75450e5b0744f93031dd3721406dcac04c3f360b0d537cde3efa0f44f9ac06b4427a60f00743bfacd8dc7cf0a3d70193d5b32 +DIST bcpkix-jdk15on-152.tar.gz 1214022 SHA256 518205ea86f215a79267b7a64ea7ce29261f4983be1d3c2f6b6aa533092ce400 SHA512 a30f08aa6ae646219012b6e4763e57bd9021358ddc7d5ea588deb808a5555f67cc212a7d8cdc2a552922f550989d88965ba204521dd5bd9b17cfdb9ed09c3b5f WHIRLPOOL e9f855dc2571643fafaaa2167ba9afb5c34691966d86e6e712a5411467d47bcdac5fa15f5a3f736eb05092c25190e42c2fb40bbbce42d7dadd6fdce63fc8451a EBUILD bcpkix-1.50.ebuild 2544 SHA256 694088d2223fe6043ab19b19ffbb53968d0f362ecdaecc3dbc322512973c1eaf SHA512 d7238f20e07074918af8fe708d5582501922d02abbc9e045bef1822441743713fd9964e5ca89b52af2c73c41cd34b9ffbbc0995112d3ff324b8ce350aba175df WHIRLPOOL 17905431f0249f8a3ccd4f28b114448207f1b177c18540801f3db64223bd46d085f14becc64c1f4c8d274aade7fdb89fbb822709d2fcc911d5380b552be59a91 -MISC ChangeLog 1739 SHA256 c9d922168a9a812bf114eecdcb4feff5dcf2424ec56dcfd8a7ffd38685390f72 SHA512 1b57139a6c3a24e8750855aed4b711d815877d42c3c0a09a090c18f0b4c5b1da5a423926106a273eee98c3c0a12c8209c354b3faac9667b7f6e6c8b135b810b8 WHIRLPOOL 9d7ee2e5caa677390d3d8da1811916ebd4bc1bf29cc3230f99e2dd6f863fb44196cd62988f33a483a0aa6fd8e11a6d71faa98771d3ec6682257a33520dcb5d2b +EBUILD bcpkix-1.52.ebuild 2539 SHA256 8261aefeb063b2eb282c5accec5d38cf9b7aad5146027c9ce20416e638a72eb2 SHA512 b04b74a89c25e550d77f95c18a14c34ffaceb216e5cc55b42dc9f8fe78907e5a8d8f575c68628dfb3655c202c3d3165909ee6db1837f7f336911a72abd1a2c34 WHIRLPOOL 24836a0f2002adb241a7babf5578634072481e11e2ac712f3ad30dee16a52731711f007e33400cd468ae682c15c48167fca5db2b3afbdce35a2027494fdf23f6 +MISC ChangeLog 1883 SHA256 0ebcb6e4aa4dfe160cb9d56af83626bfafdd002a9b9c7c7c332259b3faa38df9 SHA512 c646cff6625dd759487338b3badbc77a344c18d9ecee77f4faa18d458fbc71bdf75910bee9384ff87e1a6f55e320222b792ea0486ac5f2a7710760c2f9955ee2 WHIRLPOOL 8aeb26eba12dc20ce4f588726c6738c20ff04f405195cbd80583f4b8cb115990d6708b69dac9b45f79397571e3c230c108decf814fa0243edb6dda31dc8c8aa5 MISC metadata.xml 158 SHA256 ea882ceccfd160b16cf7e79de423bdcc12b3fa000f124491a6df36f5783894fb SHA512 54f88fc3270968439ba87295b04365a89101c55d33a8c209a56036dc60244e5c73f78ec09484b3e5af28de9dee2159b1dab670cbd5d80a9e0c4543145c0390a3 WHIRLPOOL fcffc4fb6751b5a6eec33aa833f9d7dea0168d3ab67f7e34565370f92fd917ed882bcc57585481bf4d31e601f83a592d99d1c3f50fc793f1c38cd174cc8b2f26 -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 -iQIcBAEBCAAGBQJVWv0GAAoJELp701BxlEWfpdIQALNJz9gMUYmHlTAZalTvIuah -Cgmf3IVt2k5Me6QB/ulSuAR27WM6nR3Yyn4w4lPs4jbWr7EgygCp1U60gGMMppws -bx3MrmMJbvhr2OLYF0Fugfu3SzBAT6hrAvdD30GOgafLqT+vd3znBftkbSo+FhL4 -IPhdTvZuqZzAH+VfeAOVWvtbUgyy+uPUHhakE1qZcIpp7lBnK2A2FuiV23n0qdHO -/U0CFUmsVnhhr5BFqv/zh4aDf9T5HuRQcjrB38D2PHrZASoQrs1AvifevsZaCwNv -9mqx2rrShQ/YIS9dMNlTKPua640s+a8M85+7F9+ZAxJ9jJPXk+PfzXgznNFLckcV -a7twWp1cLITTdIVcYtdk0DWb5BZ9Wth96nQpyv95mk61Dt06H191HvYMhx28gIGv -kQI0d/9FF4IOAHRFQFwjbk4yqVBlqf8SlW14wx3lV+gYezNF+7LEziSsRUejvpH6 -tsZerYn4Kao15pgSpUTMDYhTbJwIBLj3CoIJZjpP4Msz4hK/Sn0UVJf4qrhAvZoP -wqR7JesA1k7yoaoFaEcT7P5sTg8dB2lvHfetN7q8l+oqH+vSxjRaiWf2JjQE6wUG -yy7buR2ex+HV3/4WM08GRO6ycd757uIKTVCT6lxoKmDAArBYCuCqqQ5XG02PPJqY -JIgcm2pLC0HLozv3M2PJ -=c0ck +iQEcBAEBCAAGBQJVvQKcAAoJEJGRpfGTSRu4F9cH/Akyff0xb1S/j9a/xLLcRjEe +tGSkSYHkVqddC272q3jRnh+Ksmc/gNpxehbMBz4ZJnNz4+xLGnl13EgVoL6PoQ3D +zUGUe2jt30Klu9wEv1qQKkw6byWLjf3DQKOPPUL12BA6oJvS87ILgpPm/aG7bIpt +GxXhkG8Q7NzczYUSPBEfyf/HF5B0KZK9TsVd4iEzj5wIeiVcHG43/eRgzjDImGUQ +qLTj8wSkJ7hSYMddpFEa6bwYU5qBkphVY/LXzexLUSouLEWHAZWLEiUAFpGABLBJ +yZuFBU58Fpf2QPG1JwZH6DPZpNCmb1ctRtMYLGT/2+EIkUniEZS4MDcV9EshjSo= +=p25H -----END PGP SIGNATURE----- diff --git a/dev-java/bcpkix/bcpkix-1.52.ebuild b/dev-java/bcpkix/bcpkix-1.52.ebuild new file mode 100644 index 000000000000..080ce4ec42f6 --- /dev/null +++ b/dev-java/bcpkix/bcpkix-1.52.ebuild @@ -0,0 +1,101 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-java/bcpkix/bcpkix-1.52.ebuild,v 1.1 2015/08/01 16:31:28 monsieurp Exp $ + +EAPI="5" + +JAVA_PKG_IUSE="doc source test" + +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 ~amd64-linux ~x86-linux ~x64-macos" + +# Tests are currently broken. Needs further investigation. +# +# - java.lang.RuntimeException: java.security.NoSuchProviderException: +# JCE cannot authenticate the provider BC +# +# - error: package org.bouncycastle.util.test does not exist +RESTRICT="test" + +CDEPEND=" + >=dev-java/bcprov-${PV}:0[test?]" + +DEPEND=">=virtual/jdk-1.6 + app-arch/unzip + test? ( + dev-java/junit:0 + ) + ${CDEPEND}" + +RDEPEND=">=virtual/jre-1.6 + ${CDEPEND}" + +S="${WORKDIR}/${MY_P}" + +src_unpack() { + default + cd "${S}" + unpack ./src.zip +} + +java_prepare() { + mkdir "${S}"/classes + + if use test ; then + java-pkg_jar-from --build-only junit + fi + + java-pkg_jar-from bcprov +} + +src_compile() { + find org -name "*.java" > "${T}"/src.list + + local cp="bcprov.jar" + if use test ; then + cp="${cp}:junit.jar" + else + sed -i '/\/test\//d' "${T}"/src.list || die "Failed to remove test classes" + fi + + ejavac -d "${S}"/classes -cp ${cp} "@${T}"/src.list + + cd "${S}"/classes || die + + jar -cf "${S}"/${PN}.jar * || die "Failed to create jar." +} + +src_test() { + local cp="${PN}.jar:bcprov.jar:junit.jar" + local pkg="org.bouncycastle" + + java -cp ${cp} ${pkg}.tsp.test.AllTests | tee tsp.tests + java -cp ${cp} ${pkg}.pkcs.test.AllTests | tee pkcs.tests + java -cp ${cp} ${pkg}.openssl.test.AllTests | tee openssl.tests + java -cp ${cp} ${pkg}.mozilla.test.AllTests | tee mozilla.tests + java -cp ${cp} ${pkg}.eac.test.AllTests | tee eac.tests + java -cp ${cp} ${pkg}.dvcs.test.AllTests | tee dvcs.tests + java -cp ${cp} ${pkg}.cms.test.AllTests | tee cms.tests + java -cp ${cp} ${pkg}.cert.test.AllTests | tee cert.tests + java -cp ${cp} ${pkg}.cert.ocsp.test.AllTests | tee cert.ocsp.tests + java -cp ${cp} ${pkg}.cert.crmf.test.AllTests | tee cert.crmf.tests + java -cp ${cp} ${pkg}.cert.cmp.test.AllTests | tee cert.cmp.tests + + grep -q FAILURES *.tests && die "Tests failed." +} + +src_install() { + java-pkg_dojar "${S}"/${PN}.jar + + use source && java-pkg_dosrc org + use doc && java-pkg_dojavadoc docs +} |