mirror of
https://git.FreeBSD.org/ports.git
synced 2024-10-19 19:59:43 +00:00
- Simplify plist generation
- Add NO_ARCH - Cosmetic fix on empty variable
This commit is contained in:
parent
f3bb932b0f
commit
c8af6b4992
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=374196
@ -13,7 +13,9 @@ COMMENT= Addons (tilesets and sound themes) for noeGNUd
|
||||
|
||||
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>
|
||||
|
Loading…
Reference in New Issue
Block a user