diff options
author | amdmi3 <amdmi3@FreeBSD.org> | 2015-09-19 01:45:57 +0800 |
---|---|---|
committer | amdmi3 <amdmi3@FreeBSD.org> | 2015-09-19 01:45:57 +0800 |
commit | 7ab6cb8966232f89405ce9b06aebd827319acf18 (patch) | |
tree | cd5ff34a6909b28670eae978fcd7109dde9362d1 /games/linux-enemyterritory-jaymod-21 | |
parent | deaac69a88b0a2f3175e65a0bee0f63b3ed7c4b0 (diff) | |
download | freebsd-ports-gnome-7ab6cb8966232f89405ce9b06aebd827319acf18.tar.gz freebsd-ports-gnome-7ab6cb8966232f89405ce9b06aebd827319acf18.tar.zst freebsd-ports-gnome-7ab6cb8966232f89405ce9b06aebd827319acf18.zip |
- Fix shebangs
- Switch to @sample
- Switch to options helpers
- Drop @dirrm* from plist
Approved by: portmgr blanket
Diffstat (limited to 'games/linux-enemyterritory-jaymod-21')
-rw-r--r-- | games/linux-enemyterritory-jaymod-21/Makefile | 9 | ||||
-rw-r--r-- | games/linux-enemyterritory-jaymod-21/pkg-plist | 12 |
2 files changed, 8 insertions, 13 deletions
diff --git a/games/linux-enemyterritory-jaymod-21/Makefile b/games/linux-enemyterritory-jaymod-21/Makefile index ac7f7cba888c..7ea6ffe8bd7f 100644 --- a/games/linux-enemyterritory-jaymod-21/Makefile +++ b/games/linux-enemyterritory-jaymod-21/Makefile @@ -3,7 +3,7 @@ PORTNAME= jaymod PORTVERSION= 2.1.7 -PORTREVISION= 3 +PORTREVISION= 4 CATEGORIES= games linux MASTER_SITES= http://etmod.googlecode.com/files/ \ http://www.zenenterprises.biz/bud/jaymod/ \ @@ -20,6 +20,9 @@ VERSTR= ${PORTVERSION:C/([0-9])\.([0-9])\.([0-9]+)/\1\2\3/} PKGNAMESUFFIX= -${VERSTR} PLIST_SUB= VERSTR="${VERSTR}" +USES= shebangfix +SHEBANG_FILES= linux/convert_shrub +perl_OLD_CMD= /bin/env perl USE_LINUX= yes PORTSCOUT= limit:^2\.1\.7 @@ -36,8 +39,6 @@ PLIST_SUB+= CLIENT_PK3="${CLIENT_PK3}" OB_VERSTR= 0660 OMNIBOT_RUN_DEPENDS= et-omni-bot-${OB_VERSTR}:${PORTSDIR}/games/linux-enemyterritory-omni-bot-${OB_VERSTR} -.include <bsd.port.options.mk> - do-build: .for f in et etded @(${ECHO_CMD} "#!/bin/sh"; \ @@ -56,6 +57,8 @@ do-install: @${CP} -p ${WRKSRC}/${f} ${STAGEDIR}${DATADIR}/${f}.sample .endfor @${CP} -r ${WRKSRC}/linux ${WRKSRC}/mapscripts ${STAGEDIR}${DATADIR} + +do-install-DOCS-on: @${MKDIR} ${STAGEDIR}${DOCSDIR} .for f in README.txt doc/jaymod.pdf @cd ${WRKSRC} && ${INSTALL_DATA} ${f} ${STAGEDIR}${DOCSDIR} diff --git a/games/linux-enemyterritory-jaymod-21/pkg-plist b/games/linux-enemyterritory-jaymod-21/pkg-plist index a596cb9564dd..f760dd25eced 100644 --- a/games/linux-enemyterritory-jaymod-21/pkg-plist +++ b/games/linux-enemyterritory-jaymod-21/pkg-plist @@ -1,8 +1,6 @@ bin/et-jaymod-%%VERSTR%% bin/etded-jaymod-%%VERSTR%% -@unexec if cmp %D/lib/enemyterritory/jaymod-%%VERSTR%%/jaymod.cfg %D/lib/enemyterritory/jaymod-%%VERSTR%%/jaymod.cfg.sample; then rm -f %D/lib/enemyterritory/jaymod-%%VERSTR%%/jaymod.cfg; fi -%%DATADIR%%/jaymod.cfg.sample -@exec if [ ! -f %D/lib/enemyterritory/jaymod-%%VERSTR%%/jaymod.cfg ] ; then cp -p %D/%F %B/jaymod.cfg; fi +@sample %%DATADIR%%/jaymod.cfg.sample %%DATADIR%%/%%CLIENT_PK3%% %%DATADIR%%/linux/convert_shrub %%DATADIR%%/linux/serverctl @@ -16,12 +14,6 @@ bin/etded-jaymod-%%VERSTR%% %%DATADIR%%/mapscripts/railgun.script %%DATADIR%%/mapscripts/railgun_lms.script %%DATADIR%%/qagame.mp.i386.so -@unexec if cmp %D/lib/enemyterritory/jaymod-%%VERSTR%%/server.cfg %D/lib/enemyterritory/jaymod-%%VERSTR%%/server.cfg.sample; then rm -f %D/lib/enemyterritory/jaymod-%%VERSTR%%/server.cfg; fi -%%DATADIR%%/server.cfg.sample -@exec if [ ! -f %D/lib/enemyterritory/jaymod-%%VERSTR%%/server.cfg ] ; then cp -p %D/%F %B/server.cfg; fi +@sample %%DATADIR%%/server.cfg.sample %%PORTDOCS%%%%DOCSDIR%%/README.txt %%PORTDOCS%%%%DOCSDIR%%/jaymod.pdf -%%PORTDOCS%%@dirrm %%DOCSDIR%% -@dirrm %%DATADIR%%/mapscripts -@dirrm %%DATADIR%%/linux -@dirrmtry %%DATADIR%% |