aboutsummaryrefslogtreecommitdiffstats
path: root/java/jdk14-doc/Makefile
diff options
context:
space:
mode:
authorznerd <znerd@FreeBSD.org>2004-04-16 07:43:26 +0800
committerznerd <znerd@FreeBSD.org>2004-04-16 07:43:26 +0800
commit0f06fa614812b92ee6911817f0289c06bcfbf535 (patch)
tree7ae364085475234cb128a6296eaee575523186cc /java/jdk14-doc/Makefile
parent41bc6b4e48a1eafcb4d3897f7337149921a01bae (diff)
downloadfreebsd-ports-gnome-0f06fa614812b92ee6911817f0289c06bcfbf535.tar.gz
freebsd-ports-gnome-0f06fa614812b92ee6911817f0289c06bcfbf535.tar.zst
freebsd-ports-gnome-0f06fa614812b92ee6911817f0289c06bcfbf535.zip
Using PORTDOCS macro.
Diffstat (limited to 'java/jdk14-doc/Makefile')
-rw-r--r--java/jdk14-doc/Makefile38
1 files changed, 12 insertions, 26 deletions
diff --git a/java/jdk14-doc/Makefile b/java/jdk14-doc/Makefile
index 13b7ba9fd542..5739eb7b61f6 100644
--- a/java/jdk14-doc/Makefile
+++ b/java/jdk14-doc/Makefile
@@ -6,29 +6,29 @@
#
PORTNAME= jdk-doc
-PORTVERSION= ${JDK_VERSION:S/_/./g:S/-beta/b/}
+PORTVERSION= ${JDK_VERSION:S/_/./g}
CATEGORIES= java
MASTER_SITES= #
DISTNAME= j2sdk-${JDK_VERSION:S/./_/g}-doc
MAINTAINER= znerd@FreeBSD.org
-COMMENT= Java Development Kit 1.4 Documentation
+COMMENT= Java Development Kit ${JDK_MAJOR_VER} Documentation
-LATEST_LINK= jdk14-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 documentation is under license and export control."
-TARGET_DIR?= ${PREFIX}/share/doc/jdk${JDK_MAJOR_VER}
-
WRKSRC= ${WRKDIR}/docs
JDK_VERSION= 1.4.2
JDK_MAJOR_VER= ${JDK_VERSION:R}
-BUNDLE_ID= 8602
-DOWNLOAD_URL= http://java.sun.com/webapps/download/Display?BundleId=${BUNDLE_ID}
+JDK_CONCAT_VER= ${JDK_MAJOR_VER:S/.//g}
+SUN_BUNDLE_ID= 8602
+DOWNLOAD_URL= http://java.sun.com/webapps/download/Display?BundleId=${SUN_BUNDLE_ID}
NO_BUILD= yes
-PLIST= ${WRKDIR}/PLIST
USE_ZIP= yes
+PORTDOCS= api guide images index.html install-notes relnotes tooldocs
.include <bsd.port.pre.mk>
@@ -37,23 +37,9 @@ IGNORE=You must manually fetch ${DISTNAME}${EXTRACT_SUFX} from ${DOWNLOAD_URL},
.endif
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 ]"
-
-post-extract:
- @${ECHO_CMD} -n ">> Creating packing list..."
- @${ECHO_CMD} "@cwd ${TARGET_DIR}" > ${PLIST}
- @${FIND} ${WRKSRC} -type f -print | \
- ${SED} -e "s,${WRKSRC}/*,," >> ${PLIST}
- @${FIND} ${WRKSRC} -type d -print | ${SORT} -r | \
- ${SED} -e "s,${WRKSRC}/*,," -e "/^$$/d" -e "s,^,@dirrm ," >> ${PLIST}
- @${ECHO_CMD} "@cwd /" >> ${PLIST}
- @${ECHO_CMD} "@dirrm ${TARGET_DIR}" >> ${PLIST}
- @${ECHO_CMD} " [ DONE ]"
+ @${ECHO} -n ">> Installing documentation in ${DOCSDIR}..."
+ @${MKDIR} ${DOCSDIR}
+ @${CP} -R ${WRKSRC}/* ${DOCSDIR}
+ @${ECHO} " [ DONE ]"
.include <bsd.port.post.mk>