summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorale <ale@FreeBSD.org>2008-03-31 07:45:29 +0000
committerale <ale@FreeBSD.org>2008-03-31 07:45:29 +0000
commit6d7d73f09d75811e2f8dc96fbdc33f3b2f160f7d (patch)
tree86e3f45905d3bb1e6462fab1caec6df2f8947de3
parent2ab0292c4399dc366a4901f699ec02d2843f7f3a (diff)
downloadFreeBSD-ports-6d7d73f09d75811e2f8dc96fbdc33f3b2f160f7d.zip
FreeBSD-ports-6d7d73f09d75811e2f8dc96fbdc33f3b2f160f7d.tar.gz
Update to 1.39 release:
- build from sources - add documentation - add dependencies
-rw-r--r--java/bouncycastle/Makefile32
-rw-r--r--java/bouncycastle/distinfo6
-rw-r--r--java/bouncycastle/pkg-plist5
3 files changed, 33 insertions, 10 deletions
diff --git a/java/bouncycastle/Makefile b/java/bouncycastle/Makefile
index ef32f6e..9e9b066 100644
--- a/java/bouncycastle/Makefile
+++ b/java/bouncycastle/Makefile
@@ -6,9 +6,9 @@
#
PORTNAME= bouncycastle
-PORTVERSION= 1.38
+PORTVERSION= 1.39
CATEGORIES= java security
-MASTER_SITES= http://www.bouncycastle.org/download/ \
+MASTER_SITES= http://downloads.bouncycastle.org/java/ \
http://polydistortion.net/bc/download/ \
http://bouncycastle.gva.es/download/
DISTNAME= crypto-${DISTVERSION}
@@ -16,24 +16,44 @@ DISTNAME= crypto-${DISTVERSION}
MAINTAINER= ale@FreeBSD.org
COMMENT= Cleanroom build of Java Cryptography Extensions
-NO_BUILD= yes
+BUILD_DEPENDS= ${JAVALIBDIR}/activation.jar:${PORTSDIR}/java/jaf \
+ ${JAVALIBDIR}/mail.jar:${PORTSDIR}/java/javamail \
+ ${JAVALIBDIR}/junit.jar:${PORTSDIR}/java/junit
+RUN_DEPENDS= ${JAVALIBDIR}/activation.jar:${PORTSDIR}/java/jaf \
+ ${JAVALIBDIR}/mail.jar:${PORTSDIR}/java/javamail
+
USE_JAVA= yes
JAVA_VERSION= 1.4+
-JDKMVERSION= ${JAVA_PORT_VERSION:C/^([0-9])\.([0-9])(.*)$/\1\2/}
+JDKMVERSION= ${JAVA_PORT_VERSION:C/^([0-9]\.[0-9])(.*)$/\1/}
+JDKNVERSION= ${JAVA_PORT_VERSION:C/^([0-9])\.([0-9])(.*)$/\1\2/}
+USE_ANT= yes
+MAKE_ENV= ANT_INCLUDE_SHARED_JARS=YES
+MAKE_ARGS= -f jdk${JDKNVERSION}.xml
+ALL_TARGET= build-provider build zip-src
DISTVERSION= ${PORTVERSION:S/.//}
-JARS= bcprov bcmail bctsp bcpg bctest
+JARS= bcprov bcmail bctsp bcpg
PORTDOCS= *
do-install:
+ @${MKDIR} ${DATADIR}
.for jar in ${JARS}
- ${INSTALL_DATA} ${WRKSRC}/jars/${jar}-jdk${JDKMVERSION}-${DISTVERSION}.jar \
+ ${INSTALL_DATA} ${WRKSRC}/build/artifacts/jdk${JDKMVERSION}/jars/${jar}-jdk${JDKNVERSION}-${DISTVERSION}.jar \
${JAVAJARDIR}/${jar}.jar
+ ${INSTALL_DATA} ${WRKSRC}/build/artifacts/jdk${JDKMVERSION}/${jar}-jdk${JDKNVERSION}-${DISTVERSION}/src.zip \
+ ${DATADIR}/${jar}-src.zip
.endfor
+ ${INSTALL_DATA} ${WRKSRC}/jars/bcprov-jdk${JDKNVERSION}-${DISTVERSION}.jar \
+ ${JAVAJARDIR}/bcprov.jar
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/*.html ${DOCSDIR}
+.for jar in ${JARS}
+ @${MKDIR} ${DOCSDIR}/${jar}
+ @cd ${WRKSRC}/build/artifacts/jdk${JDKMVERSION}/${jar}-jdk${JDKNVERSION}-${DISTVERSION}/docs/ && \
+ ${COPYTREE_SHARE} . ${DOCSDIR}/${jar}
+.endfor
.endif
.include <bsd.port.mk>
diff --git a/java/bouncycastle/distinfo b/java/bouncycastle/distinfo
index 532b3ac..a32635b 100644
--- a/java/bouncycastle/distinfo
+++ b/java/bouncycastle/distinfo
@@ -1,3 +1,3 @@
-MD5 (crypto-138.tar.gz) = 4e4d468d254020fceb07b8a857406a72
-SHA256 (crypto-138.tar.gz) = 81f800fccb925cf2d3140d055f8527b13a98fc7e67bf06df9bc3c6027fdb8050
-SIZE (crypto-138.tar.gz) = 23103860
+MD5 (crypto-139.tar.gz) = cb9328acdaa45fcb07ebe55592b2a852
+SHA256 (crypto-139.tar.gz) = a2118e07657e93ba81f4cd7aad98f08742e4264a7be1359e0d3abb3a557ec2f1
+SIZE (crypto-139.tar.gz) = 23473395
diff --git a/java/bouncycastle/pkg-plist b/java/bouncycastle/pkg-plist
index 4f2ad27..706c81c 100644
--- a/java/bouncycastle/pkg-plist
+++ b/java/bouncycastle/pkg-plist
@@ -1,5 +1,8 @@
%%JAVAJARDIR%%/bcmail.jar
%%JAVAJARDIR%%/bcpg.jar
%%JAVAJARDIR%%/bcprov.jar
-%%JAVAJARDIR%%/bctest.jar
%%JAVAJARDIR%%/bctsp.jar
+%%DATADIR%%/bcmail-src.zip
+%%DATADIR%%/bcpg-src.zip
+%%DATADIR%%/bcprov-src.zip
+%%DATADIR%%/bctsp-src.zip
OpenPOWER on IntegriCloud