Chase distfile change and support staging.

This commit is contained in:
Jung-uk Kim 2014-06-09 23:50:24 +00:00
parent ee253d5adb
commit c060aceae5
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=357230
2 changed files with 7 additions and 10 deletions

View file

@ -3,7 +3,8 @@
PORTNAME= jdk
PORTVERSION= ${JDK_VERSION}.${JDK_UPDATE_VER}
CATEGORIES= java
PORTREVISION= 1
CATEGORIES= java devel
MASTER_SITES= #
PKGNAMESUFFIX= ${JDK_CONCAT_VER}-doc
DISTNAME= jdk-6u30-apidocs
@ -14,22 +15,18 @@ COMMENT= Java Development Kit ${JDK_MAJOR_VER} Documentation
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.
.if defined(NOPORTDOCS)
IGNORE= port only installs documentation
.endif
WRKSRC= ${WRKDIR}/docs
JDK_VERSION= 1.6.0
JDK_MAJOR_VER= ${JDK_VERSION:R}
JDK_CONCAT_VER= ${JDK_MAJOR_VER:S/.//g}
JDK_UPDATE_VER= 30
DOWNLOAD_URL= http://www.oracle.com/technetwork/java/javase/downloads/index.html
DOWNLOAD_URL= http://www.oracle.com/technetwork/java/javase/downloads/jdk-6u25-doc-download-355137.html
NO_BUILD= yes
USES= zip
PORTDOCS= *
NO_STAGE= yes
.include <bsd.port.pre.mk>
.if !exists(${DISTDIR}/${DISTNAME}${EXTRACT_SUFX})
@ -38,8 +35,8 @@ IGNORE= you must manually fetch ${DISTNAME}${EXTRACT_SUFX} from ${DOWNLOAD_URL}
do-install:
@${ECHO} -n ">> Installing documentation in ${DOCSDIR}..."
@${MKDIR} ${DOCSDIR}
@(cd ${WRKSRC}/ && ${COPYTREE_SHARE} \* ${DOCSDIR}/)
@${MKDIR} ${STAGEDIR}${DOCSDIR}
@(cd ${WRKSRC}/ && ${COPYTREE_SHARE} \* ${STAGEDIR}${DOCSDIR}/)
@${ECHO} " [ DONE ]"
.include <bsd.port.post.mk>

View file

@ -1,2 +1,2 @@
SHA256 (jdk-6u30-apidocs.zip) = 92739c56e02fa6e7ac8d60a1f59a0ef4a59ac99ab2979d3cdc495bfecf1a50ab
SIZE (jdk-6u30-apidocs.zip) = 59086542
SHA256 (jdk-6u30-apidocs.zip) = 2b1264bab63a42e6fecd1e6e7ddb38351dddebf6925c3dc6235fc1af4227c989
SIZE (jdk-6u30-apidocs.zip) = 59159771