From 1811cb0ada87621b0b669155d2a2e7a9745c9250 Mon Sep 17 00:00:00 2001 From: Ernst de Haan Date: Thu, 13 Jun 2002 11:30:58 +0000 Subject: 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. --- java/jdk-tutorial/Makefile | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) (limited to 'java/jdk-tutorial/Makefile') 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 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 -- cgit v1.2.3