mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-20 08:27:15 +00:00
- Fix shebangs
- Switch to @sample - Switch to options helpers - Drop @dirrm* from plist Approved by: portmgr blanket
This commit is contained in:
parent
9b556ff3c3
commit
0ddfa588a9
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=397272
@ -3,6 +3,7 @@
|
||||
|
||||
PORTNAME= jaymod
|
||||
PORTVERSION= 2.2.0
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= games linux
|
||||
MASTER_SITES= http://jaymod.clanfu.org/lib/downloads/ \
|
||||
http://www.zenenterprises.biz/bud/jaymod/
|
||||
@ -13,6 +14,9 @@ COMMENT= Jaymod - An Enemy Territory Modification
|
||||
|
||||
RUN_DEPENDS= et:${PORTSDIR}/games/linux-enemyterritory
|
||||
|
||||
USES= shebangfix
|
||||
SHEBANG_FILES= linux/convert_shrub
|
||||
perl_OLD_CMD= /bin/env perl
|
||||
USE_LINUX= yes
|
||||
|
||||
OPTIONS_DEFINE= DOCS OMNIBOT
|
||||
@ -26,8 +30,6 @@ PLIST_SUB= CLIENT_PK3="${CLIENT_PK3}"
|
||||
|
||||
OMNIBOT_RUN_DEPENDS= et-omni-bot:${PORTSDIR}/games/linux-enemyterritory-omni-bot
|
||||
|
||||
.include <bsd.port.options.mk>
|
||||
|
||||
do-build:
|
||||
.for f in et etded
|
||||
@(${ECHO_CMD} "#!/bin/sh"; \
|
||||
@ -46,6 +48,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}
|
||||
|
@ -1,8 +1,6 @@
|
||||
bin/et-jaymod
|
||||
bin/etded-jaymod
|
||||
@unexec if cmp %D/lib/enemyterritory/jaymod/jaymod.cfg %D/lib/enemyterritory/jaymod/jaymod.cfg.sample; then rm -f %D/lib/enemyterritory/jaymod/jaymod.cfg; fi
|
||||
%%DATADIR%%/jaymod.cfg.sample
|
||||
@exec if [ ! -f %D/lib/enemyterritory/jaymod/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
|
||||
%%DATADIR%%/mapscripts/railgun.script
|
||||
%%DATADIR%%/mapscripts/railgun_lms.script
|
||||
%%DATADIR%%/qagame.mp.i386.so
|
||||
@unexec if cmp %D/lib/enemyterritory/jaymod/server.cfg %D/lib/enemyterritory/jaymod/server.cfg.sample; then rm -f %D/lib/enemyterritory/jaymod/server.cfg; fi
|
||||
%%DATADIR%%/server.cfg.sample
|
||||
@exec if [ ! -f %D/lib/enemyterritory/jaymod/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%%
|
||||
|
Loading…
Reference in New Issue
Block a user