svn commit: r379007 - head/games/vegastrike-data
Dmitry Marakasov
amdmi3 at FreeBSD.org
Sat Feb 14 20:00:21 UTC 2015
Author: amdmi3
Date: Sat Feb 14 20:00:20 2015
New Revision: 379007
URL: https://svnweb.freebsd.org/changeset/ports/379007
QAT: https://qat.redports.org/buildarchive/r379007/
Log:
- Whitespace nits
- Add NO_ARCH
- Simplify installation
- Drop @dirrm* from plist
Modified:
head/games/vegastrike-data/Makefile
Modified: head/games/vegastrike-data/Makefile
==============================================================================
--- head/games/vegastrike-data/Makefile Sat Feb 14 19:58:51 2015 (r379006)
+++ head/games/vegastrike-data/Makefile Sat Feb 14 20:00:20 2015 (r379007)
@@ -11,29 +11,22 @@ DISTNAME= ${PORTNAME}${PKGNAMESUFFIX}-${
MAINTAINER= ports at FreeBSD.org
COMMENT= Vega Strike data files
-USES= tar:bzip2
+USES= tar:bzip2
NO_BUILD= yes
+NO_ARCH= yes
-MANUAL_PACKAGE_BUILD=huge
+MANUAL_PACKAGE_BUILD= huge
+
+PORTDATA= * .vegastrike
+PLIST_DIRS= %%DATADIR%%/movies
do-extract:
${MKDIR} ${WRKDIR}
- # Will extract directly into ${STAGEDIR}${DATADIR:H}
+ # Will extract on install phase
do-install:
- ${RM} -rf ${STAGEDIR}${DATADIR}
- ${MKDIR} ${STAGEDIR}${DATADIR:H}
- ${TAR} -C ${STAGEDIR}${DATADIR:H} -xvf ${_DISTDIR}/${DISTFILES} \
- --exclude Makefile.am --no-same-owner 2>&1 | \
- ${AWK} ' \
- BEGIN { dirn = 0 ; print "@cwd ${DATADIR}" } \
- { sub("^x [^/]*/", "") } \
- /\/$$/ { sub("/$$", ""); dirs[dirn++] = $$0 ; next } \
- !/^$$/ { print $$0 } \
- END {while (dirn--) print "@dirrm " dirs[dirn]; \
- print "@cwd"; print "@dirrm ${DATADIR_REL}" } \
- ' >> ${TMPPLIST}
- ${MV} ${STAGEDIR}${DATADIR:H}/vegastrike-data-${PORTVERSION} \
- ${STAGEDIR}${DATADIR}
+ ${MKDIR} ${STAGEDIR}${DATADIR}
+ ${TAR} -C ${STAGEDIR}${DATADIR} -xf ${_DISTDIR}/${DISTFILES} \
+ --exclude Makefile.am --no-same-owner --strip-components=1
.include <bsd.port.mk>
More information about the svn-ports-head
mailing list