1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-29 05:38:00 +00:00

- 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]
This commit is contained in:
Herve Quiroz 2004-12-09 13:43:09 +00:00
parent 487872e2c3
commit a5d126f540
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=123562
2 changed files with 29 additions and 3 deletions

View File

@ -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>

View File

@ -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>