aboutsummaryrefslogtreecommitdiffstats
path: root/textproc/xom/Makefile
blob: 6f905f8664be9a1ee0273e3b63fe0f6ee8e5a3da (plain) (blame)
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
# Created by: Herve Quiroz <hq@FreeBSD.org>
# $FreeBSD$

PORTNAME=   xom
PORTVERSION=    1.1
PORTREVISION=   2
PORTEPOCH=  1
CATEGORIES= textproc java
MASTER_SITES=   http://www.cafeconleche.org/XOM/

MAINTAINER= hq@FreeBSD.org
COMMENT=    Open source (LGPL), tree-based API for processing XML with Java

RUN_DEPENDS=    ${JAVALIBDIR}/xml-apis.jar:${PORTSDIR}/textproc/xerces-j \
        ${JAVALIBDIR}/xalan.jar:${PORTSDIR}/textproc/xalan-j

USE_JAVA=   yes
JAVA_VERSION=   1.6+
NO_BUILD=   yes
WRKSRC=     ${WRKDIR}/XOM

PLIST_FILES=    %%JAVAJARDIR%%/${PORTNAME}.jar
.if !defined(NOPORTDOCS)
PORTDOCS=   overview.html apidocs
PLIST_FILES+=   %%EXAMPLESDIR%%/xom-samples.jar
PLIST_DIRS= %%EXAMPLESDIR%%
.endif

NO_STAGE=   yes
do-install:
    @${ECHO_MSG} -n ">> Installing JAR as ${JAVAJARDIR}/${PORTNAME}.jar..."
    @${MKDIR} ${JAVAJARDIR}
    @${INSTALL_DATA} ${WRKSRC}/${PORTNAME}-${PORTVERSION}.jar ${JAVAJARDIR}/${PORTNAME}.jar
    @${ECHO_MSG} " [ DONE ]"
.if !defined(NOPORTDOCS)
    @${ECHO_MSG} -n ">> Installing samples in ${EXAMPLESDIR}..."
    @${MKDIR} ${EXAMPLESDIR}
    @${INSTALL_DATA} ${WRKSRC}/xom-samples.jar ${EXAMPLESDIR}/
    @${ECHO_MSG} " [ DONE ]"
    @${ECHO_MSG} -n ">> Installing documentation in ${DOCSDIR}..."
    @${MKDIR} ${DOCSDIR}/apidocs
    @cd ${WRKSRC}/ && ${FIND} ${PORTDOCS} \
      | ${CPIO} -pdmu -R ${SHAREOWN}:${SHAREGRP} ${DOCSDIR} > /dev/null 2>&1
    @${ECHO_MSG} " [ DONE ]"
.endif

.include <bsd.port.mk>