aboutsummaryrefslogtreecommitdiff
path: root/textproc/xmlenc
diff options
context:
space:
mode:
authorHerve Quiroz <hq@FreeBSD.org>2004-12-23 15:46:30 +0000
committerHerve Quiroz <hq@FreeBSD.org>2004-12-23 15:46:30 +0000
commitbc924db28f46490a0af867b20d1dce8d705a1258 (patch)
treeca45bb5b927330f12d2d3a2583629c25b524d22a /textproc/xmlenc
parent5e8f2e5862fc4b7a5826d1ca7f743765473de175 (diff)
downloadports-bc924db28f46490a0af867b20d1dce8d705a1258.tar.gz
ports-bc924db28f46490a0af867b20d1dce8d705a1258.zip
- Update to 0.46
- Link API documentation with JDK Standard API documentation, if installed
Notes
Notes: svn path=/head/; revision=124991
Diffstat (limited to 'textproc/xmlenc')
-rw-r--r--textproc/xmlenc/Makefile15
-rw-r--r--textproc/xmlenc/distinfo4
2 files changed, 15 insertions, 4 deletions
diff --git a/textproc/xmlenc/Makefile b/textproc/xmlenc/Makefile
index 4df5924b3265..beb50a6026ad 100644
--- a/textproc/xmlenc/Makefile
+++ b/textproc/xmlenc/Makefile
@@ -6,7 +6,7 @@
#
PORTNAME= xmlenc
-PORTVERSION= 0.44
+PORTVERSION= 0.46
CATEGORIES= textproc java
MASTER_SITES= http://${PORTNAME}.sourceforge.net/
@@ -15,6 +15,7 @@ COMMENT= Light-weight XML encoding library for Java
USE_JAVA= yes
USE_ANT= yes
+USE_REINPLACE= yes
.if defined(NOPORTDOCS)
ALL_TARGET= jar
@@ -25,6 +26,16 @@ PORTDOCS= *
JARFILE= ${PORTNAME}.jar
PLIST_FILES= %%JAVAJARDIR%%/${JARFILE}
+.include <bsd.port.pre.mk>
+
+JDK_API!= (${FIND} -s ${LOCALBASE}/share/doc/jdk1.? -maxdepth 1 -name api -type d 2>/dev/null || ${TRUE}) | ${TAIL} -n 1
+.if ${JDK_API} != ""
+MAKE_ARGS+= -Djavadoc.srcdir.j2se=${JDK_API}
+
+do-configure:
+ ${REINPLACE_CMD} -e 's,http://java.sun.com/j2se/1.3/docs/api,${JDK_API},' ${WRKSRC}/build.xml
+.endif
+
do-install:
@${ECHO_MSG} -n ">> Installing JAR as ${JAVAJARDIR}/${JARFILE}..."
@${MKDIR} ${JAVAJARDIR}
@@ -39,4 +50,4 @@ do-install:
@${ECHO_MSG} " [ DONE ]"
.endif
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
diff --git a/textproc/xmlenc/distinfo b/textproc/xmlenc/distinfo
index 80db15a4eacd..cdde916ae578 100644
--- a/textproc/xmlenc/distinfo
+++ b/textproc/xmlenc/distinfo
@@ -1,2 +1,2 @@
-MD5 (xmlenc-0.44.tar.gz) = 93679b7712c05dc7074e1d424be5f277
-SIZE (xmlenc-0.44.tar.gz) = 92607
+MD5 (xmlenc-0.46.tar.gz) = 7424fa2889c1359f03014772310fb6f5
+SIZE (xmlenc-0.46.tar.gz) = 91028