summaryrefslogtreecommitdiff
path: root/java/apache-commons-httpclient
diff options
context:
space:
mode:
Diffstat (limited to 'java/apache-commons-httpclient')
-rw-r--r--java/apache-commons-httpclient/Makefile55
-rw-r--r--java/apache-commons-httpclient/distinfo2
-rw-r--r--java/apache-commons-httpclient/files/patch-build.xml18
-rw-r--r--java/apache-commons-httpclient/pkg-descr11
4 files changed, 86 insertions, 0 deletions
diff --git a/java/apache-commons-httpclient/Makefile b/java/apache-commons-httpclient/Makefile
new file mode 100644
index 000000000000..e89bea5ba5ea
--- /dev/null
+++ b/java/apache-commons-httpclient/Makefile
@@ -0,0 +1,55 @@
+# Created by: Alex Dupre <ale@FreeBSD.org>
+# $FreeBSD$
+
+PORTNAME= commons-httpclient
+DISTVERSION= 3.1
+PORTREVISION= 2
+CATEGORIES= java www
+MASTER_SITES= APACHE/httpcomponents/${PORTNAME}/source
+PKGNAMEPREFIX= apache-
+DISTNAME= ${PORTNAME}-${DISTVERSION}-src
+
+MAINTAINER= ale@FreeBSD.org
+COMMENT= Package implementing the client side of the HTTP standard
+
+LICENSE= APACHE20
+
+BUILD_DEPENDS= ${JAVALIBDIR}/commons-logging.jar:java/apache-commons-logging
+BUILD_DEPENDS+= ${JAVALIBDIR}/commons-codec.jar:java/apache-commons-codec
+RUN_DEPENDS= ${JAVALIBDIR}/commons-logging.jar:java/apache-commons-logging
+RUN_DEPENDS+= ${JAVALIBDIR}/commons-codec.jar:java/apache-commons-codec
+
+OPTIONS_DEFINE= DOCS
+
+USES+= cpe
+CPE_VENDOR= apache
+USE_JAVA= yes
+USE_ANT= yes
+MAKE_ENV= ANT_INCLUDE_SHARED_JARS=YES
+NO_ARCH= yes
+
+WRKSRC= ${WRKDIR}/${PORTNAME}-${DISTVERSION}
+ALL_TARGET= dist
+
+PLIST_FILES= %%JAVAJARDIR%%/${PORTNAME}.jar
+
+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 ${STAGEDIR}${JAVAJARDIR}/
+ @${ECHO_MSG} " [DONE]"
+
+do-install-DOCS-on:
+ @${ECHO_MSG} -n ">> Installing documentation..."
+ @${MKDIR} ${STAGEDIR}${DOCSDIR}
+ @cd ${WRKSRC}/dist/docs && ${FIND} api \
+ | ${CPIO} -pdmu -R ${SHAREOWN}:${SHAREGRP} ${STAGEDIR}${DOCSDIR} > /dev/null 2>&1
+ @${ECHO_MSG} " [DONE]"
+
+.include <bsd.port.mk>
diff --git a/java/apache-commons-httpclient/distinfo b/java/apache-commons-httpclient/distinfo
new file mode 100644
index 000000000000..d6a8d51ce9ab
--- /dev/null
+++ b/java/apache-commons-httpclient/distinfo
@@ -0,0 +1,2 @@
+SHA256 (commons-httpclient-3.1-src.tar.gz) = f9a496d3418b0e15894fb351652cd4fa5ca434ebfc3ce3bb8da40defd8b097f2
+SIZE (commons-httpclient-3.1-src.tar.gz) = 1882664
diff --git a/java/apache-commons-httpclient/files/patch-build.xml b/java/apache-commons-httpclient/files/patch-build.xml
new file mode 100644
index 000000000000..98ba3dfbfef7
--- /dev/null
+++ b/java/apache-commons-httpclient/files/patch-build.xml
@@ -0,0 +1,18 @@
+--- build.xml.orig 2007-10-28 09:00:18.000000000 +0100
++++ build.xml 2007-10-28 09:00:37.000000000 +0100
+@@ -184,13 +184,13 @@
+ optimize ="${compile.optimize}">
+ <classpath refid="compile.classpath"/>
+ </javac>
+- <javac srcdir ="${source.home}/examples"
++ <!--javac srcdir ="${source.home}/examples"
+ destdir ="${build.home}/examples"
+ debug ="${compile.debug}"
+ deprecation ="${compile.deprecation}"
+ optimize ="${compile.optimize}">
+ <classpath refid="compile.classpath"/>
+- </javac>
++ </javac-->
+ </target>
+
+ <target name="compile.tests" depends="compile"
diff --git a/java/apache-commons-httpclient/pkg-descr b/java/apache-commons-httpclient/pkg-descr
new file mode 100644
index 000000000000..d55e7a9793c5
--- /dev/null
+++ b/java/apache-commons-httpclient/pkg-descr
@@ -0,0 +1,11 @@
+The Jakarta Commons HttpClient component provides an efficient, up-to-date,
+and feature-rich package implementing the client side of the most recent HTTP
+standards and recommendations.
+
+Designed for extension while providing robust support for the base HTTP
+protocol, the HttpClient component may be of interest to anyone building
+HTTP-aware client applications such as web browsers, web service clients,
+or systems that leverage or extend the HTTP protocol for distributed
+communication.
+
+WWW: https://hc.apache.org/httpclient-3.x/