aboutsummaryrefslogtreecommitdiff
path: root/java
diff options
context:
space:
mode:
authorErnst de Haan <znerd@FreeBSD.org>2004-04-15 23:43:26 +0000
committerErnst de Haan <znerd@FreeBSD.org>2004-04-15 23:43:26 +0000
commit1312cea9fc70438f17c4969b63a0c29cb86e03db (patch)
tree69b4e15c64455db96364b06a1395691026d6dd51 /java
parent4ab45882f5443dd752d1d0ae3a5a7366c98e144c (diff)
downloadports-1312cea9fc70438f17c4969b63a0c29cb86e03db.tar.gz
ports-1312cea9fc70438f17c4969b63a0c29cb86e03db.zip
Notes
Diffstat (limited to 'java')
-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>