1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-20 20:09:11 +00:00

- Update to 1.0 final

- Improve launcher shell script: use JAVA_VERSION instead of hardcoding a
  particular JDK
- Use SUB_FILES to generate the launcher shell script
This commit is contained in:
Herve Quiroz 2005-02-21 09:49:04 +00:00
parent 0b84c7f1f9
commit c1261d5553
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=129453
4 changed files with 16 additions and 19 deletions

View File

@ -6,9 +6,10 @@
#
PORTNAME= nux
PORTVERSION= 1.0a5
PORTVERSION= 1.0
PORTEPOCH= 1
CATEGORIES= textproc java
MASTER_SITES= http://dsd.lbl.gov/nux-download/snapshots/
MASTER_SITES= http://dsd.lbl.gov/nux-download/releases/
MAINTAINER= hq@FreeBSD.org
COMMENT= Small open-source XQuery extension of the XOM library
@ -28,24 +29,20 @@ WRKSRC= ${WRKDIR}/${PORTNAME}
.if defined(WITH_VALIDATION_TOOL)
RUN_DEPENDS+= ${JAVALIBDIR}/getopt.jar:${PORTSDIR}/java/java-getopt \
classpath:${PORTSDIR}/java/javavmwrapper
VALIDATION_TOOL=fire-validate
.endif
PLIST_FILES= %%JAVAJARDIR%%/${PORTNAME}.jar
.if defined(WITH_VALIDATION_TOOL)
PLIST_FILES+= bin/${VALIDATION_TOOL}
PLIST_FILES+= bin/fire-validate
.endif
.if !defined(NOPORTDOCS)
PORTDOCS= api bugs.html changelog.html cvs.html dependencies.html \
gettingstarted.html images index.html install.html \
license.html licenses mailing.html readme.html \
relatedwork.html style.css todo.html tutorials.html
PORTDOCS= api changelog.html cvs.html dependencies.html \
gettingstarted.html images index.html license.html licenses \
mailing.html readme.html style.css todo.html
.endif
.if defined(WITH_VALIDATION_TOOL)
do-configure:
${SED} -e 's,%%LOCALBASE%%,${LOCALBASE},g ; s,%%JAVA%%,${JAVA},g' \
${FILESDIR}/${VALIDATION_TOOL}.sh >${WRKSRC}/${VALIDATION_TOOL}
SUB_FILES= fire-validate.sh
.endif
do-install:
@ -55,7 +52,7 @@ do-install:
@${ECHO_MSG} " [ DONE ]"
.if defined(WITH_VALIDATION_TOOL)
@${ECHO_MSG} -n ">> Installing validation tool as ${PREFIX}/bin/${VALIDATION_TOOL}..."
@${INSTALL_SCRIPT} ${WRKSRC}/${VALIDATION_TOOL} ${PREFIX}/bin/
@${INSTALL_SCRIPT} ${WRKDIR}/fire-validate.sh ${PREFIX}/bin/fire-validate
@${ECHO_MSG} " [ DONE ]"
.endif
.if !defined(NOPORTDOCS)

View File

@ -1,2 +1,2 @@
MD5 (nux-1.0a5.tar.gz) = 022ed45119bd6ddb039bc1f3acf1c997
SIZE (nux-1.0a5.tar.gz) = 1235038
MD5 (nux-1.0.tar.gz) = 63568d0927efa051eee4bcb442c19c2c
SIZE (nux-1.0.tar.gz) = 3523718

View File

@ -1,5 +0,0 @@
#!/bin/sh
#
# $FreeBSD$
exec %%JAVA%% -classpath "`%%LOCALBASE%%/bin/classpath`" nux.xom.tests.ValidationCommand $*

View File

@ -0,0 +1,5 @@
#!/bin/sh
#
# $FreeBSD$
JAVA_VERSION="1.4+" "%%LOCALBASE%%/bin/java" -classpath "`%%LOCALBASE%%/bin/classpath`" nux.xom.tests.ValidationCommand "$@"