aboutsummaryrefslogtreecommitdiff
path: root/java/java-tutorial/Makefile
diff options
context:
space:
mode:
authorErnst de Haan <znerd@FreeBSD.org>2002-06-13 11:30:58 +0000
committerErnst de Haan <znerd@FreeBSD.org>2002-06-13 11:30:58 +0000
commit1811cb0ada87621b0b669155d2a2e7a9745c9250 (patch)
tree3800f93315a3136cf57c4e839e4344a9f782b9d9 /java/java-tutorial/Makefile
parent1690699f8e1a426f372424a44e9a9b1e7139404e (diff)
Notes
Diffstat (limited to 'java/java-tutorial/Makefile')
-rw-r--r--java/java-tutorial/Makefile21
1 files changed, 10 insertions, 11 deletions
diff --git a/java/java-tutorial/Makefile b/java/java-tutorial/Makefile
index d254d5d34f7f..08f6b90b415e 100644
--- a/java/java-tutorial/Makefile
+++ b/java/java-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>