diff options
author | hq <hq@FreeBSD.org> | 2004-12-09 21:43:09 +0800 |
---|---|---|
committer | hq <hq@FreeBSD.org> | 2004-12-09 21:43:09 +0800 |
commit | 8853b03be0bff1191c53b74a7a7cf42ed2c78794 (patch) | |
tree | ba1c5bbfc6cacf0fa0ead1c06e66bba4cb06ff75 /textproc | |
parent | 012677b1b04a6958fd98cb04264206303678d477 (diff) | |
download | freebsd-ports-gnome-8853b03be0bff1191c53b74a7a7cf42ed2c78794.tar.gz freebsd-ports-gnome-8853b03be0bff1191c53b74a7a7cf42ed2c78794.tar.zst freebsd-ports-gnome-8853b03be0bff1191c53b74a7a7cf42ed2c78794.zip |
- Fix build: required JDK version is 1.4+ [1]
- Link API documention with Jaxen API and JDK Standard API, if installed
- Rephrase some statement to calm portlint
Reported by: krion via pointyhat [1]
Diffstat (limited to 'textproc')
-rw-r--r-- | textproc/jaxup/Makefile | 19 | ||||
-rw-r--r-- | textproc/jaxup/files/patch-build.xml | 13 |
2 files changed, 29 insertions, 3 deletions
diff --git a/textproc/jaxup/Makefile b/textproc/jaxup/Makefile index c21006e6d046..57fa0671c752 100644 --- a/textproc/jaxup/Makefile +++ b/textproc/jaxup/Makefile @@ -24,7 +24,7 @@ USE_ZIP= yes WRKSRC= ${WRKDIR}/${PORTNAME} USE_JAVA= yes -JAVA_VERSION= 1.3+ +JAVA_VERSION= 1.4+ DATADIR= ${JAVASHAREDIR}/${PORTNAME} @@ -42,6 +42,19 @@ PLIST_DIRS= %%DATADIR%% PORTDOCS= LICENSE.txt api index.html jaxup_files xupdate-wd.html xupdate-wd_files .endif +.include <bsd.port.pre.mk> + +.if !defined(NOPORTDOCS) +JDK_API!= (${FIND} -s ${LOCALBASE}/share/doc/jdk1.[4-5] -maxdepth 1 -name api -type d 2>/dev/null || ${TRUE}) | ${TAIL} -n 1 +.if ${JDK_API} != "" +MAKE_ARGS+= -Dj2se.apidocs="${JDK_API}" +.endif +JAXEN_API!= (${FIND} -s ${LOCALBASE}/share/doc/jaxen -maxdepth 1 -name javadoc -type d 2>/dev/null || ${TRUE}) | ${TAIL} -n 1 +.if ${JAXEN_API} != "" +MAKE_ARGS+= -Djaxen.apidocs="${JAXEN_API}" +.endif +.endif + post-extract: @${CP} ${FILESDIR}/build.xml ${WRKSRC}/ @${CP} ${FILESDIR}/DOMXUpdater.java ${WRKDIR}/ @@ -55,7 +68,7 @@ post-build: cd ${WRKDIR} && ${JAR} -cmf MANIFEST jaxup-xupdater.jar DOMXUpdater.class do-install: - @${ECHO_MSG} -n ">> Installing JAR file as ${JAVAJARDIR}/${PORTNAME}.jar..." + @${ECHO_MSG} -n ">> Installing JAR as ${JAVAJARDIR}/${PORTNAME}.jar..." @${MKDIR} ${JAVAJARDIR} @${INSTALL_DATA} ${WRKSRC}/build/lib/${PORTNAME}.jar ${JAVAJARDIR}/ @${ECHO_MSG} " [ DONE ]" @@ -74,4 +87,4 @@ do-install: @${ECHO_MSG} " [ DONE ]" .endif -.include <bsd.port.mk> +.include <bsd.port.post.mk> diff --git a/textproc/jaxup/files/patch-build.xml b/textproc/jaxup/files/patch-build.xml new file mode 100644 index 000000000000..a1c00e37c6b8 --- /dev/null +++ b/textproc/jaxup/files/patch-build.xml @@ -0,0 +1,13 @@ +$FreeBSD$ + +--- build.xml.orig Thu Dec 9 14:14:21 2004 ++++ build.xml Thu Dec 9 14:16:44 2004 +@@ -57,6 +57,8 @@ + <javadoc destdir="${build.apidocs.dir}" windowtitle="${project.fullname}" author="true" version="true" use="true"> + <fileset dir="${src.java.dir}"/> + <classpath refid="project.classpath"/> ++ <link href="${jaxen.apidocs}"/> ++ <link href="${j2se.apidocs}"/> + </javadoc> + </target> + |