aboutsummaryrefslogtreecommitdiff
path: root/java/jakarta-commons-logging
diff options
context:
space:
mode:
authorHerve Quiroz <hq@FreeBSD.org>2004-11-28 13:32:55 +0000
committerHerve Quiroz <hq@FreeBSD.org>2004-11-28 13:32:55 +0000
commit556708930c1c1e751b56503de3c498030b2d72eb (patch)
tree0b4765c2742fc163e669fb27bdf5f9e5bb1a3fad /java/jakarta-commons-logging
parentb288b044a3d76c9821ad73dc64f86ff39704f645 (diff)
downloadports-556708930c1c1e751b56503de3c498030b2d72eb.tar.gz
ports-556708930c1c1e751b56503de3c498030b2d72eb.zip
- Update to 1.0.4
- Use %%JAVAJARDIR%% - Use USE_ANT - Chase recent Log4J port rename - Use INSTALL_DATA rather than CP - Use ECHO_MSG rather than ECHO_CMD - Use JAVALIBDIR in place of JAVAJARDIR where appropriate - Various cosmetic improvements
Notes
Notes: svn path=/head/; revision=122663
Diffstat (limited to 'java/jakarta-commons-logging')
-rw-r--r--java/jakarta-commons-logging/Makefile42
-rw-r--r--java/jakarta-commons-logging/distinfo4
2 files changed, 21 insertions, 25 deletions
diff --git a/java/jakarta-commons-logging/Makefile b/java/jakarta-commons-logging/Makefile
index aee46be38e2c..aa5fe4b5564d 100644
--- a/java/jakarta-commons-logging/Makefile
+++ b/java/jakarta-commons-logging/Makefile
@@ -6,23 +6,23 @@
#
PORTNAME= commons-logging
-PORTVERSION= 1.0.3
+PORTVERSION= 1.0.4
CATEGORIES= java
MASTER_SITES= ${MASTER_SITE_APACHE_JAKARTA}
-MASTER_SITE_SUBDIR= commons/logging/source/
+MASTER_SITE_SUBDIR= ${PORTNAME:S,-,/,}/source
PKGNAMEPREFIX= jakarta-
DISTNAME= ${PORTNAME}-${PORTVERSION}-src
MAINTAINER= znerd@FreeBSD.org
COMMENT= Generic logging wrapper library
-BUILD_DEPENDS= ${ANT}:${PORTSDIR}/devel/apache-ant
-
OPTIONS= LOG4J "Enable Jakarta Log4j log factory" on \
LOGKIT "Enable Avalon LogKit log factory" off \
JDK14LOG "Enable JDK 1.4 log factory" off
USE_JAVA= yes
+USE_ANT= yes
+MAKE_ENV+= ANT_INCLUDE_SHARED_JARS=YES
.include <bsd.port.pre.mk>
@@ -33,40 +33,36 @@ JAVA_VERSION= 1.2+
.endif
.if defined(WITH_LOG4J)
-BUILD_DEPENDS+= ${JAVAJARDIR}/log4j.jar:${PORTSDIR}/java/jakarta-log4j
+BUILD_DEPENDS+= ${JAVALIBDIR}/log4j.jar:${PORTSDIR}/devel/log4j
.endif
.if defined(WITH_LOGKIT)
-BUILD_DEPENDS+= ${JAVAJARDIR}/logkit.jar:${PORTSDIR}/java/avalon-logkit
+BUILD_DEPENDS+= ${JAVALIBDIR}/logkit.jar:${PORTSDIR}/java/avalon-logkit
.endif
-ANT?= ${LOCALBASE}/bin/ant
-ANT_TARGET= compile
+ALL_TARGET= compile
.if !defined(NOPORTDOCS)
-ANT_TARGET+= javadoc
+ALL_TARGET+= javadoc
PORTDOCS= api LICENSE
.endif
JARFILE= ${PORTNAME}.jar
-DESTJARFILE= ${PORTNAME}.jar
-PLIST_FILES= ${JAVAJARDIR:S,^${PREFIX}/,,}/${DESTJARFILE}
+PLIST_FILES= %%JAVAJARDIR%%/${JARFILE}
post-extract:
- @${CP} ${PORTSDIR}/java/jakarta-commons-beanutils/files/LICENSE ${WRKDIR}/${PORTNAME}-${PORTVERSION}-src/
-
-do-build:
- @cd ${WRKSRC} && ${SETENV} ANT_INCLUDE_SHARED_JARS=YES ${ANT} ${ANT_TARGET}
+ @${CP} ${PORTSDIR}/java/jakarta-commons-beanutils/files/LICENSE ${WRKSRC}/
do-install:
- @${ECHO_CMD} -n ">> Installing JAR as ${JAVAJARDIR}/${DESTJARFILE}..."
- @${CP} ${WRKSRC}/target/${JARFILE} ${JAVAJARDIR}/${DESTJARFILE}
- @${ECHO_CMD} " [ DONE ]"
+ @${ECHO_MSG} -n ">> Installing JAR as ${JAVAJARDIR}/${JARFILE}..."
+ @${INSTALL_DATA} ${WRKSRC}/target/${JARFILE} ${JAVAJARDIR}/${JARFILE}
+ @${ECHO_MSG} " [ DONE ]"
.if !defined(NOPORTDOCS)
- @${ECHO_CMD} -n ">> Installing documentation in ${DOCSDIR}..."
- @${MKDIR} ${DOCSDIR}
- @${CP} -r ${WRKSRC}/dist/docs/api ${DOCSDIR}/
- @${CP} ${WRKSRC}/LICENSE ${DOCSDIR}/
- @${ECHO_CMD} " ${PORTDOCS} [ DONE ]"
+ @${ECHO_MSG} -n ">> Installing documentation in ${DOCSDIR}/..."
+ @cd ${WRKSRC}/dist/docs \
+ && ${FIND} api -type d -exec ${MKDIR} ${DOCSDIR}/{} \; \
+ && ${FIND} api -type f -exec ${INSTALL_DATA} {} ${DOCSDIR}/{} \;
+ @${INSTALL_DATA} ${WRKSRC}/LICENSE ${DOCSDIR}/
+ @${ECHO_MSG} " ${PORTDOCS} [ DONE ]"
.endif
.include <bsd.port.post.mk>
diff --git a/java/jakarta-commons-logging/distinfo b/java/jakarta-commons-logging/distinfo
index 0a685f443fcd..49ffe1bb5970 100644
--- a/java/jakarta-commons-logging/distinfo
+++ b/java/jakarta-commons-logging/distinfo
@@ -1,2 +1,2 @@
-MD5 (commons-logging-1.0.3-src.tar.gz) = d40606211a1559a9d9fd35eb9091ac15
-SIZE (commons-logging-1.0.3-src.tar.gz) = 45202
+MD5 (commons-logging-1.0.4-src.tar.gz) = db5dc75c89e794f794be92d10df6be1b
+SIZE (commons-logging-1.0.4-src.tar.gz) = 101017