aboutsummaryrefslogtreecommitdiff
path: root/java/jdom/Makefile
diff options
context:
space:
mode:
authorErnst de Haan <znerd@FreeBSD.org>2004-04-15 20:48:24 +0000
committerErnst de Haan <znerd@FreeBSD.org>2004-04-15 20:48:24 +0000
commit66aec4a7b0b507c08874b8953d17e9a7f7eb10da (patch)
tree2c84075e361cd58d5bf1533ccb9095b5aa73fb8b /java/jdom/Makefile
parentf49d28b85be8679777c4f5193e4066d9f3bef0fe (diff)
downloadports-66aec4a7b0b507c08874b8953d17e9a7f7eb10da.tar.gz
ports-66aec4a7b0b507c08874b8953d17e9a7f7eb10da.zip
Notes
Diffstat (limited to 'java/jdom/Makefile')
-rw-r--r--java/jdom/Makefile43
1 files changed, 29 insertions, 14 deletions
diff --git a/java/jdom/Makefile b/java/jdom/Makefile
index 8cce6702a0d3..c9687d971475 100644
--- a/java/jdom/Makefile
+++ b/java/jdom/Makefile
@@ -7,6 +7,7 @@
PORTNAME= jdom
PORTVERSION= 1.0b9
+PORTREVISION= 1
CATEGORIES= java
MASTER_SITES= http://www.jdom.org/dist/source/
DISTNAME= ${PORTNAME}-${PORTVERSION:C/[0-9]*\.[0-9]*//}
@@ -15,29 +16,43 @@ MAINTAINER= znerd@FreeBSD.org
COMMENT= Java library for accessing and manipulating XML documents
BUILD_DEPENDS= ${ANT}:${PORTSDIR}/devel/apache-ant
+RUN_DEPENDS= ${JAVAJARDIR}/jaxen-jdom.jar:${PORTSDIR}/java/jaxen
-USE_JAVA= 1.2+
+USE_JAVA= yes
+JAVA_VERSION= 1.2+
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION:C/[0-9]*\.[0-9]*//}
-PLIST_SUB+= T=${TARGET_DIR:S/^${PREFIX}\///}
-TARGET_DIR?= ${PREFIX}/share/java/${PORTNAME}-${PORTVERSION}
ANT?= ${LOCALBASE}/bin/ant
-ANT_TARGET= package javadoc
+ANT_TARGET= package
+.if !defined(NOPORTDOCS)
+ANT_TARGET+= javadoc
+OTHERDOCS= README.txt TODO.txt CHANGES.txt COMMITTERS.txt LICENSE.txt
+PORTDOCS= apidocs ${OTHERDOCS}
+.endif
+
+PLIST_FILES= ${JAVAJARDIR:S,^${PREFIX}/,,}/jdom.jar
do-build:
@cd ${WRKSRC} && ${ANT} ${ANT_TARGET}
do-install:
- @${ECHO} -n ">> Creating directory ${TARGET_DIR}..."
- @${MKDIR} ${TARGET_DIR}
- @${ECHO} " [ DONE ]"
-
- @${ECHO} -n ">> Copying files..."
- @${CP} -r ${WRKSRC}/* ${TARGET_DIR}
- @${ECHO} " [ DONE ]"
-
- @${ECHO} -n ">> Installing JAR..."
- @${CP} ${WRKSRC}/build/jdom.jar ${PREFIX}/share/java/classes/
+ @${ECHO} -n ">> Installing JAR in ${JAVAJARDIR}..."
+ @${MKDIR} ${JAVAJARDIR}
+ @${CP} ${WRKSRC}/build/jdom.jar ${JAVAJARDIR}/
+ @${ECHO} " jdom.jar [ DONE ]"
+.if !defined(NOPORTDOCS)
+ @${ECHO} -n ">> Installing samples in ${EXAMPLESDIR}..."
+ @${MKDIR} ${EXAMPLESDIR}
+ @${CP} -r ${WRKSRC}/samples/* ${EXAMPLESDIR}/
@${ECHO} " [ DONE ]"
+ @${ECHO} -n ">> Installing documentation in ${DOCSDIR}..."
+ @${MKDIR} ${DOCSDIR}
+.for PORTDOC in ${OTHERDOCS}
+ @${CP} ${WRKSRC}/${PORTDOC} ${DOCSDIR}/
+ @${ECHO} -n " ${PORTDOC}"
+.endfor
+ @${CP} -r ${WRKSRC}/build/apidocs ${DOCSDIR}/
+ @${ECHO} " apidocs [ DONE ]"
+.endif
.include <bsd.port.mk>