From 0f06fa614812b92ee6911817f0289c06bcfbf535 Mon Sep 17 00:00:00 2001 From: znerd Date: Thu, 15 Apr 2004 23:43:26 +0000 Subject: Using PORTDOCS macro. --- java/jdk14-doc/Makefile | 38 ++++++++++++-------------------------- 1 file changed, 12 insertions(+), 26 deletions(-) (limited to 'java/jdk14-doc/Makefile') 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 @@ -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 -- cgit