blob: 0128ca297033f5f1b22b0e1e842caa28d3d55cdc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
|
# New ports collection makefile for: nux
# Date created: 2004-10-28
# Whom: Herve Quiroz <hq@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= nux
PORTVERSION= 1.0
PORTEPOCH= 1
CATEGORIES= textproc java
MASTER_SITES= http://dsd.lbl.gov/nux-download/releases/
MAINTAINER= hq@FreeBSD.org
COMMENT= Small open-source XQuery extension of the XOM library
RUN_DEPENDS= ${JAVALIBDIR}/xom.jar:${PORTSDIR}/textproc/xom \
${JAVALIBDIR}/saxon8.jar:${PORTSDIR}/textproc/saxon-devel
OPTIONS= VALIDATION_TOOL "Install the XML Schema validation tool" on
USE_JAVA= yes
JAVA_VERSION= 1.4+
NO_BUILD= yes
WRKSRC= ${WRKDIR}/${PORTNAME}
.include <bsd.port.pre.mk>
.if defined(WITH_VALIDATION_TOOL)
RUN_DEPENDS+= ${JAVALIBDIR}/getopt.jar:${PORTSDIR}/java/java-getopt \
classpath:${PORTSDIR}/java/javavmwrapper
.endif
PLIST_FILES= %%JAVAJARDIR%%/${PORTNAME}.jar
.if defined(WITH_VALIDATION_TOOL)
PLIST_FILES+= bin/fire-validate
.endif
.if !defined(NOPORTDOCS)
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)
SUB_FILES= fire-validate.sh
.endif
do-install:
@${ECHO_MSG} -n ">> Installing JAR as ${JAVAJARDIR}/${PORTNAME}.jar..."
@${MKDIR} ${JAVAJARDIR}
@${INSTALL_DATA} ${WRKSRC}/lib/${PORTNAME}.jar ${JAVAJARDIR}/
@${ECHO_MSG} " [ DONE ]"
.if defined(WITH_VALIDATION_TOOL)
@${ECHO_MSG} -n ">> Installing validation tool as ${PREFIX}/bin/${VALIDATION_TOOL}..."
@${INSTALL_SCRIPT} ${WRKDIR}/fire-validate.sh ${PREFIX}/bin/fire-validate
@${ECHO_MSG} " [ DONE ]"
.endif
.if !defined(NOPORTDOCS)
@${ECHO_MSG} -n ">> Installing documentation in ${DOCSDIR}..."
@${MKDIR} ${DOCSDIR}
@cd ${WRKSRC}/doc/ && ${FIND} ${PORTDOCS} \
| ${CPIO} -pdmu -R ${SHAREOWN}:${SHAREGRP} ${DOCSDIR} > /dev/null 2>&1
@${ECHO_MSG} " [ DONE ]"
.endif
.include <bsd.port.post.mk>
|