This port now installs below ${PREFIX}/share/doc, where it

should.

The tutorial is not specific to JDK 1.1.8, it pertains to
Java versions up to 1.4. That's why I've changed the PORTVERSION
from 1.1.8 to 2002.03.04, the date the tutorial was last updated.
See:
http://java.sun.com/docs/books/tutorial/information/download.html

Since this is not really a JDK tutorial but rather a Java
tutorial, the port installation directory is now called
java-tutorial.

Not displaying the message anymore. It is evident where the files
go.

Changed the pkg-plist to use %%T%% instead of
jdk%%VERSION%%/docs/books/tutorial as the prefix.
This commit is contained in:
Ernst de Haan 2002-06-13 11:30:58 +00:00
parent 1690699f8e
commit 1811cb0ada
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=61205
6 changed files with 6738 additions and 6760 deletions

View File

@ -6,8 +6,7 @@
#
PORTNAME= jdk-tutorial
PORTVERSION= 1.1.8
PORTREVISION= 6
PORTVERSION= 2002.03.04
CATEGORIES= java
MASTER_SITES= ftp://ftp.javasoft.com/docs/ \
http://java.sun.com/docs/books/tutorial/download/
@ -18,18 +17,18 @@ MAINTAINER= znerd@FreeBSD.org
NO_WRKSUBDIR= yes
RESTRICTED= "This software is under license and export control."
NO_BUILD= yes
PLIST_SUB+= VERSION=${PORTVERSION}
PKGMESSAGE= ${WRKDIR}/MESSAGE
TARGET_DIR= ${PREFIX}/share/doc/java-tutorial/
PLIST_SUB+= T=${TARGET_DIR:S/^${PREFIX}\///}
.include <bsd.port.pre.mk>
do-install:
${MKDIR} ${PREFIX}/jdk${PORTVERSION}/docs/books/tutorial
(cd ${WRKSRC} && ${TAR} -cf - * ) \
| (cd ${PREFIX}/jdk${PORTVERSION}/docs/books/tutorial \
&& ${TAR} -xf -)
@${SED} s+!!PREFIX!!+${PREFIX}+g < ${PKGDIR}/pkg-message > ${PKGMESSAGE}
@${CAT} ${PKGMESSAGE}
@${RM} ${PKGMESSAGE}
@${ECHO} -n ">> Creating directory ${TARGET_DIR}..."
@${MKDIR} ${TARGET_DIR}
@${ECHO} " [ DONE ]"
@${ECHO} -n ">> Copying files..."
@${CP} -R ${WRKSRC}/* ${TARGET_DIR}
@${ECHO} " [ DONE ]"
.include <bsd.port.post.mk>

View File

@ -1,7 +0,0 @@
Here is a useful bookmark entry for your Web browser:
The Java Tutorial:
------------------
file:!!PREFIX!!/jdk1.1.8/docs/books/tutorial/index.html

File diff suppressed because it is too large Load Diff

View File

@ -6,8 +6,7 @@
#
PORTNAME= jdk-tutorial
PORTVERSION= 1.1.8
PORTREVISION= 6
PORTVERSION= 2002.03.04
CATEGORIES= java
MASTER_SITES= ftp://ftp.javasoft.com/docs/ \
http://java.sun.com/docs/books/tutorial/download/
@ -18,18 +17,18 @@ MAINTAINER= znerd@FreeBSD.org
NO_WRKSUBDIR= yes
RESTRICTED= "This software is under license and export control."
NO_BUILD= yes
PLIST_SUB+= VERSION=${PORTVERSION}
PKGMESSAGE= ${WRKDIR}/MESSAGE
TARGET_DIR= ${PREFIX}/share/doc/java-tutorial/
PLIST_SUB+= T=${TARGET_DIR:S/^${PREFIX}\///}
.include <bsd.port.pre.mk>
do-install:
${MKDIR} ${PREFIX}/jdk${PORTVERSION}/docs/books/tutorial
(cd ${WRKSRC} && ${TAR} -cf - * ) \
| (cd ${PREFIX}/jdk${PORTVERSION}/docs/books/tutorial \
&& ${TAR} -xf -)
@${SED} s+!!PREFIX!!+${PREFIX}+g < ${PKGDIR}/pkg-message > ${PKGMESSAGE}
@${CAT} ${PKGMESSAGE}
@${RM} ${PKGMESSAGE}
@${ECHO} -n ">> Creating directory ${TARGET_DIR}..."
@${MKDIR} ${TARGET_DIR}
@${ECHO} " [ DONE ]"
@${ECHO} -n ">> Copying files..."
@${CP} -R ${WRKSRC}/* ${TARGET_DIR}
@${ECHO} " [ DONE ]"
.include <bsd.port.post.mk>

View File

@ -1,7 +0,0 @@
Here is a useful bookmark entry for your Web browser:
The Java Tutorial:
------------------
file:!!PREFIX!!/jdk1.1.8/docs/books/tutorial/index.html

File diff suppressed because it is too large Load Diff