diff options
author | znerd <znerd@FreeBSD.org> | 2004-04-15 23:00:48 +0000 |
---|---|---|
committer | znerd <znerd@FreeBSD.org> | 2004-04-15 23:00:48 +0000 |
commit | ec87f3001ff8297780d8a0bfda071ce3a79db768 (patch) | |
tree | 8acc8e3db58e31f0f10127e7ab188308624be2f3 /java/jdk11-doc | |
parent | e7e0bff08a6f9068deef53e59d79ee5ac7585301 (diff) | |
download | FreeBSD-ports-ec87f3001ff8297780d8a0bfda071ce3a79db768.zip FreeBSD-ports-ec87f3001ff8297780d8a0bfda071ce3a79db768.tar.gz |
- Removed non-existent download site metaverse.nl.
- Using PORTDOCS macro.
- Fixed issue with files staying being after deinstall [1].
Reported by: kris [1]
Diffstat (limited to 'java/jdk11-doc')
-rw-r--r-- | java/jdk11-doc/Makefile | 31 |
1 files changed, 7 insertions, 24 deletions
diff --git a/java/jdk11-doc/Makefile b/java/jdk11-doc/Makefile index ffe6ff7..51771f2 100644 --- a/java/jdk11-doc/Makefile +++ b/java/jdk11-doc/Makefile @@ -8,8 +8,7 @@ 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 @@ -17,7 +16,7 @@ MAINTAINER= znerd@FreeBSD.org COMMENT= Java Development Kit 1.1 Documentation LATEST_LINK= jdk11-doc -TARGET_DIR?= ${PREFIX}/share/doc/jdk${JDK_MAJOR_VER} +DOCSDIR?= ${PREFIX}/share/doc/jdk${JDK_MAJOR_VER} WRKSRC= ${WRKDIR}/jdk${JDK_VERSION:C/_.*\$//g}/docs JDK_VERSION= 1.1.8_003 @@ -25,30 +24,14 @@ JDK_MAJOR_VER= ${JDK_VERSION:R} DOWNLOAD_URL= http://java.sun.com/jdk/${JDK_MAJOR_VER}/docs.html 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> |