Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 7 Dec 2014 13:36:53 +0000 (UTC)
From:      Dmitry Marakasov <amdmi3@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r374196 - head/games/noegnud-addons
Message-ID:  <201412071336.sB7DarWi002497@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: amdmi3
Date: Sun Dec  7 13:36:53 2014
New Revision: 374196
URL: https://svnweb.freebsd.org/changeset/ports/374196
QAT: https://qat.redports.org/buildarchive/r374196/

Log:
  - Simplify plist generation
  - Add NO_ARCH
  - Cosmetic fix on empty variable

Modified:
  head/games/noegnud-addons/Makefile

Modified: head/games/noegnud-addons/Makefile
==============================================================================
--- head/games/noegnud-addons/Makefile	Sun Dec  7 13:36:47 2014	(r374195)
+++ head/games/noegnud-addons/Makefile	Sun Dec  7 13:36:53 2014	(r374196)
@@ -13,7 +13,9 @@ COMMENT=	Addons (tilesets and sound them
 
 USES=		tar:bzip2
 NO_BUILD=	yes
-PLIST=		${WRKDIR}/pkg-plist
+NO_ARCH=	yes
+DATADIR=	${PREFIX}/share/${PORTNAME}-${PORTVERSION}
+PORTDATA=	*
 
 OPTIONS_DEFINE=	ABSURD ITAKURA ITAKURA ABIGABI GEODUCK LAGGED AOKI \
 		TFALCONSEYE NHS SFALCONSEYE
@@ -42,15 +44,10 @@ OPTIONS_DEFAULT=	ABSURD
 .include <bsd.port.options.mk>
 
 .if ! ${PORT_OPTIONS:MABSURD}
-DISTFILES=
+DISTFILES=	# empty
 .endif
 
-pre-install:
-	@${TOUCH} ${PLIST}
-	@(cd ${WRKDIR} && ${FIND} ${DISTNAME} \! -type d) | ${SORT} | ${SED} -e 's:^:share/:' > ${PLIST}
-	@(cd ${WRKDIR} && ${FIND} ${DISTNAME} -type d) | ${SORT} -r | ${SED} -e 's:^:@unexec rmdir %D/share/:' | ${SED} -e 's:$$: 2>/dev/null || true:' >> ${PLIST}
-
 do-install:
-	${CP} -R ${WRKSRC} ${STAGEDIR}${PREFIX}/share
+	cd ${WRKSRC} && ${COPYTREE_SHARE} . ${STAGEDIR}${DATADIR}/
 
 .include <bsd.port.mk>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201412071336.sB7DarWi002497>