diff options
author | Ernst de Haan <znerd@FreeBSD.org> | 2002-06-13 11:30:58 +0000 |
---|---|---|
committer | Ernst de Haan <znerd@FreeBSD.org> | 2002-06-13 11:30:58 +0000 |
commit | 1811cb0ada87621b0b669155d2a2e7a9745c9250 (patch) | |
tree | 3800f93315a3136cf57c4e839e4344a9f782b9d9 /java/jdk-tutorial/Makefile | |
parent | Added an entry to MASTER_SITES. (diff) |
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.
Notes
Notes:
svn path=/head/; revision=61205
Diffstat (limited to '')
-rw-r--r-- | java/jdk-tutorial/Makefile | 21 |
1 files changed, 10 insertions, 11 deletions
diff --git a/java/jdk-tutorial/Makefile b/java/jdk-tutorial/Makefile index d254d5d34f7f..08f6b90b415e 100644 --- a/java/jdk-tutorial/Makefile +++ b/java/jdk-tutorial/Makefile @@ -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> |