1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-28 01:06:17 +00:00

- Fix PORTNAME/PKGNAMEPREFIX misuse

- Remove article from beginning of COMMENT
- Add LICENSE
- Add NO_ARCH
- Simplify installation and plist generation
- Fix tab after WWW:
This commit is contained in:
Dmitry Marakasov 2014-11-30 17:51:31 +00:00
parent af445e53b7
commit cffb4deece
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=373671
2 changed files with 14 additions and 20 deletions

View File

@ -1,35 +1,29 @@
# Created by: Jose Alonso Cardenas Marquez <acm@FreeBSD.org> # Created by: Jose Alonso Cardenas Marquez <acm@FreeBSD.org>
# $FreeBSD$ # $FreeBSD$
PORTNAME= data PORTNAME= dangerdeep-data
PORTVERSION= 0.3.0 PORTVERSION= 0.3.0
CATEGORIES= games CATEGORIES= games
MASTER_SITES= SF/dangerdeep/danger_from_the_deep-${PORTNAME}/${PORTVERSION} MASTER_SITES= SF/dangerdeep/danger_from_the_deep-${PORTNAME}/${PORTVERSION}
PKGNAMEPREFIX= dangerdeep- DIST_SUBDIR= dangerdeep
DISTNAME= ${PKGNAMEPREFIX}${PORTNAME}-${PORTVERSION}
DIST_SUBDIR= ${PKGNAMEPREFIX:S/-//}
MAINTAINER= ports@FreeBSD.org MAINTAINER= ports@FreeBSD.org
COMMENT= The Danger from the Deep data files COMMENT= Danger from the Deep data files
LICENSE= CCbyNCND
LICENSE_NAME= Creative Commons Attribution-NonCommercial-NonDerivs
LICENSE_FILE= ${WRKSRC}/LICENSE
LICENSE_PERMS= dist-mirror pkg-mirror auto-accept
USES= zip USES= zip
NO_BUILD= yes NO_BUILD= yes
NO_ARCH= yes
DATADIR= share/${PKGNAMEPREFIX:S/-//} WRKSRC= ${WRKDIR}/data
PLIST= ${WRKDIR}/pkg-plist DATADIR= ${PREFIX}/share/dangerdeep
WRKSRC= ${WRKDIR}/${PORTNAME} PORTDATA= *
pre-install:
@${RM} -f ${PLIST}
@cd ${WRKSRC} && \
${FIND} * -type f | ${SORT} | ${SED} -e 's|^|%%DATADIR%%/|' >> ${PLIST} && \
${FIND} * -type d | ${SORT} -r | ${SED} -e 's|^|@dirrm %%DATADIR%%/|' >> ${PLIST}
@${ECHO_CMD} "@dirrm %%DATADIR%%" >> ${PLIST}
do-install: do-install:
@${MKDIR} ${STAGEDIR}${PREFIX}/${DATADIR} cd ${WRKSRC} && ${COPYTREE_SHARE} . ${STAGEDIR}${DATADIR}/
cd ${WRKSRC} && \
${FIND} * -type d -exec ${MKDIR} "${STAGEDIR}${PREFIX}/${DATADIR}/{}" \; && \
${FIND} * -type f -exec ${INSTALL_DATA} "{}" "${STAGEDIR}${PREFIX}/${DATADIR}/{}" \;
.include <bsd.port.mk> .include <bsd.port.mk>

View File

@ -1,3 +1,3 @@
The Danger From the Deep data files The Danger From the Deep data files
WWW: http://dangerdeep.sf.net WWW: http://dangerdeep.sf.net