aboutsummaryrefslogtreecommitdiffstats
path: root/java
diff options
context:
space:
mode:
authorale <ale@FreeBSD.org>2012-03-13 16:57:19 +0800
committerale <ale@FreeBSD.org>2012-03-13 16:57:19 +0800
commitce90ae8bd93f60f1e4c9d2a35f573dfbd3202312 (patch)
tree016d2dc59a0f943f5eb998ad5eb736d7eebb0f33 /java
parent6ce0a8b0d368628bce6d4bee0b03a747e6790513 (diff)
downloadfreebsd-ports-graphics-ce90ae8bd93f60f1e4c9d2a35f573dfbd3202312.tar.gz
freebsd-ports-graphics-ce90ae8bd93f60f1e4c9d2a35f573dfbd3202312.tar.zst
freebsd-ports-graphics-ce90ae8bd93f60f1e4c9d2a35f573dfbd3202312.zip
Fix build with OpenJDK7 and add LICENSE.
PR: ports/165774 Submitted by: Volodymyr Kostyrko <c.kworr@gmail.com> Feature safe: yes
Diffstat (limited to 'java')
-rw-r--r--java/jakarta-commons-httpclient/Makefile9
1 files changed, 7 insertions, 2 deletions
diff --git a/java/jakarta-commons-httpclient/Makefile b/java/jakarta-commons-httpclient/Makefile
index d23c44150a4..5a61bf9dd98 100644
--- a/java/jakarta-commons-httpclient/Makefile
+++ b/java/jakarta-commons-httpclient/Makefile
@@ -17,6 +17,8 @@ DISTNAME= ${PORTNAME}-${DISTVERSION}-src
MAINTAINER= ale@FreeBSD.org
COMMENT= A package implementing the client side of the HTTP standard
+LICENSE= AL2
+
BUILD_DEPENDS= ${JAVAJARDIR}/commons-logging.jar:${PORTSDIR}/java/jakarta-commons-logging
BUILD_DEPENDS+= ${JAVAJARDIR}/commons-codec.jar:${PORTSDIR}/java/jakarta-commons-codec
RUN_DEPENDS= ${JAVAJARDIR}/commons-logging.jar:${PORTSDIR}/java/jakarta-commons-logging
@@ -32,8 +34,12 @@ ALL_TARGET= dist
PLIST_FILES= %%JAVAJARDIR%%/${PORTNAME}.jar
-PORTDOCS= LICENSE api
+PORTDOCS= *
+post-patch:
+ @${REINPLACE_CMD} 's/Ortwin Gl.*ck/Ortwin Glueck/' \
+ ${WRKSRC}/src/java/org/apache/commons/httpclient/*.java \
+ ${WRKSRC}/src/java/org/apache/commons/httpclient/*/*.java
do-install:
@${ECHO_MSG} -n ">> Installing JAR file as ${JAVAJARDIR}/${PORTNAME}.jar..."
@${INSTALL_DATA} ${WRKSRC}/dist/${PORTNAME}.jar ${JAVAJARDIR}/
@@ -43,7 +49,6 @@ do-install:
@${MKDIR} ${DOCSDIR}
@cd ${WRKSRC}/dist/docs && ${FIND} api \
| ${CPIO} -pdmu -R ${SHAREOWN}:${SHAREGRP} ${DOCSDIR} > /dev/null 2>&1
- @${INSTALL_DATA} ${WRKSRC}/LICENSE ${DOCSDIR}/
@${ECHO_MSG} " [DONE]"
.endif