aboutsummaryrefslogtreecommitdiff
path: root/java
diff options
context:
space:
mode:
authorErnst de Haan <znerd@FreeBSD.org>2004-04-15 23:14:26 +0000
committerErnst de Haan <znerd@FreeBSD.org>2004-04-15 23:14:26 +0000
commit166deda508d225673506c4f942a94bd829a34430 (patch)
tree0fb9ea28cd26beba1b3f7629fd8399397f415cf8 /java
parentfbda0a0a29adc48ad4a9edf673defa2ceb20f146 (diff)
downloadports-166deda508d225673506c4f942a94bd829a34430.tar.gz
ports-166deda508d225673506c4f942a94bd829a34430.zip
Notes
Diffstat (limited to 'java')
-rw-r--r--java/jdk12-doc/Makefile37
1 files changed, 10 insertions, 27 deletions
diff --git a/java/jdk12-doc/Makefile b/java/jdk12-doc/Makefile
index 569b4c62fcd0..8c31224a3e42 100644
--- a/java/jdk12-doc/Makefile
+++ b/java/jdk12-doc/Makefile
@@ -8,49 +8,32 @@
PORTNAME= jdk-doc
PORTVERSION= ${JDK_VERSION:S/_/./g}
CATEGORIES= java
-MASTER_SITES= http://www.metaverse.nl/~ernst/ \
- ${MASTER_SITE_LOCAL}
+MASTER_SITES= ${MASTER_SITE_LOCAL}
MASTER_SITE_SUBDIR= znerd
DISTNAME= jdk-${JDK_VERSION:S/./_/g}-doc
MAINTAINER= znerd@FreeBSD.org
-COMMENT= Java Development Kit 1.2 Documentation
+COMMENT= Java Development Kit ${JDK_MAJOR_VER} Documentation
-LATEST_LINK= jdk12-doc
+LATEST_LINK= jdk${JDK_CONCAT_VER}-doc
+DOCSDIR?= ${PREFIX}/share/doc/jdk${JDK_MAJOR_VER}
NO_CDROM= "License does not allow distribution with fee."
RESTRICTED= "This software is under license and export control."
-TARGET_DIR?= ${PREFIX}/share/doc/jdk${JDK_MAJOR_VER}
-
WRKSRC= ${WRKDIR}/jdk${JDK_VERSION:C/_.*\$//g}/docs
JDK_VERSION= 1.2.2_006
JDK_MAJOR_VER= ${JDK_VERSION:R}
+JDK_CONCAT_VER= ${JDK_MAJOR_VER:S/.//g}
NO_BUILD= yes
-PLIST= ${WRKDIR}/PLIST
+PORTDOCS= api guide images index.html relnotes tooldocs
.include <bsd.port.pre.mk>
-pre-install:
- @${ECHO_CMD} -n ">> Removing ${PLIST}..."
- @${RM} -f ${PLIST}
- @${TOUCH} ${PLIST}
- @${ECHO_CMD} " [ DONE ]"
-
do-install:
- @${ECHO_CMD} -n ">> Creating directory ${TARGET_DIR}..."
- @${MKDIR} ${TARGET_DIR}
- @${ECHO_CMD} " [ DONE ]"
-
- @${ECHO_CMD} -n ">> Copying files..."
- @${CP} -r ${WRKSRC}/* ${TARGET_DIR}
- @${ECHO_CMD} " [ DONE ]"
-
- @${ECHO_CMD} -n ">> Creating packing list..."
- @${FIND} ${TARGET_DIR} -type f -print | \
- ${SED} "s,${PREFIX}/*,," >> ${PLIST}
- @${FIND} ${TARGET_DIR} -type d -print | ${SORT} -r | \
- ${SED} -e "s,${PREFIX}/*,," -e "s,^,@dirrm ,g" >> ${PLIST}
- @${ECHO_CMD} " [ DONE ]"
+ @${ECHO} -n ">> Installing documentation in ${DOCSDIR}..."
+ @${MKDIR} ${DOCSDIR}
+ @${CP} -R ${WRKSRC}/* ${DOCSDIR}
+ @${ECHO} " [ DONE ]"
.include <bsd.port.post.mk>