1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-24 00:45:52 +00:00

- Support staging

- Extract to subdir and simplify installation
- Move startup script to files/jave6.in instead of making it in the Makefile
- Move post-install message to files/pkg-message.in
- Bump PORTREVISION

PR:		191351
Submitted by:	myself
Approved by:	maintainer timeout (5 weeks)
This commit is contained in:
Jason E. Hale 2014-08-02 12:49:17 +00:00
parent d272fad0ee
commit 4a145e0e7e
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=363811
4 changed files with 22 additions and 21 deletions

View File

@ -3,7 +3,7 @@
PORTNAME= jave6
PORTVERSION= 0.1
PORTREVISION= 3
PORTREVISION= 4
CATEGORIES= graphics java
MASTER_SITES= http://www.jave.de/developer/\
http://ikaria.informatik.uni-rostock.de/public_bsd/FreeBSD/
@ -12,29 +12,20 @@ DISTNAME= jave_6.0_i20060105
MAINTAINER= ad001@uni-rostock.de
COMMENT= Java ASCII-Art-Generator
EXTRACT_AFTER_ARGS= -d ${WRKDIR}/${DISTNAME}
USES= zip
USE_JAVA= YES
USE_JAVA= yes
JAVA_VERSION= 1.6+
NO_BUILD= YES
NO_BUILD= yes
SUB_FILES= jave6 pkg-message
SUB_LIST= JAVA_VERSION=${JAVA_VERSION}
DATADIR= ${JAVASHAREDIR}/${PORTNAME}
LNKTARGET= ${PREFIX}/bin/jave6
HLPSKRIPT= jave6
PLIST_SUB+=DATADIR=%%JAVASHAREDIR%%/${PORTNAME}
NO_STAGE= yes
do-install:
@${ECHO} "Installing JavE6 files in ${DATADIR}..."
@${MKDIR} ${DATADIR}
@${CP} -rv ${WRKDIR}/* ${DATADIR}
@${ECHO} "creating start script ${LNKTARGET}..."
@${ECHO} "#!/bin/sh" > ${DATADIR}/${HLPSKRIPT}
@${ECHO} "JAVA_VERSION=${JAVA_VERSION} exec ${LOCALBASE}/bin/java -jar ${DATADIR}/jave.jar" >> ${DATADIR}/${HLPSKRIPT}
@${CHMOD} a+x ${DATADIR}/${HLPSKRIPT}
@${LN} -sf ${DATADIR}/${HLPSKRIPT} ${LNKTARGET}
@${ECHO} "done."
post-install:
@${ECHO} "Errors may occur while running the program, as it will try to access ${DATADIR}/tmp/ for output."
${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin
@${MKDIR} ${STAGEDIR}${DATADIR}
cd ${WRKSRC} && ${COPYTREE_SHARE} . ${STAGEDIR}${DATADIR}
.include <bsd.port.mk>

View File

@ -0,0 +1,5 @@
#!/bin/sh
export JAVA_VERSION="%%JAVA_VERSION%%"
cd "%%DATADIR%%" && exec "%%LOCALBASE%%/bin/java" -jar jave.jar "${@}"

View File

@ -0,0 +1,6 @@
=============================================================
Errors may occur while running the program, as it will try to
access %%DATADIR%%/tmp/ for output.
=============================================================

View File

@ -298,7 +298,6 @@ bin/jave6
%%DATADIR%%/icons/icon.ico
%%DATADIR%%/icons/icon.xpm
%%DATADIR%%/jave.jar
%%DATADIR%%/jave6
%%DATADIR%%/javeplayer.jar
%%DATADIR%%/pattern/pattern.jcf
%%DATADIR%%/readme.txt