mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-23 09:10:43 +00:00
- update to 3.9.0
while here: - add stage support - convert USE_DOS2UNIX to USES - install docs unconditionally into stage area PR: 186612 Submitted by: Rusty Nejdl <rnejdl@ringofsaturn.com> (maintainer)
This commit is contained in:
parent
ca2077ccdf
commit
8795255f84
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=343680
@ -2,7 +2,7 @@
|
||||
# $FreeBSD$
|
||||
|
||||
PORTNAME= megaglest
|
||||
PORTVERSION= 3.7.1
|
||||
PORTVERSION= 3.9.0
|
||||
CATEGORIES= games
|
||||
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}_${PORTVERSION}/
|
||||
PKGNAMESUFFIX= -data
|
||||
@ -11,15 +11,17 @@ DISTNAME= ${PORTNAME}${PKGNAMESUFFIX}-${PORTVERSION}
|
||||
MAINTAINER= rnejdl@ringofsaturn.com
|
||||
COMMENT= MegaGlest data files
|
||||
|
||||
USES= dos2unix
|
||||
DOS2UNIX_GLOB= *.log *.ini *.html *.txt *.lng
|
||||
USE_XZ= yes
|
||||
USE_DOS2UNIX= *.log *.ini *.html *.txt *.lng
|
||||
NO_BUILD= yes
|
||||
|
||||
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
|
||||
|
||||
PLIST= ${WRKDIR}/pkg-plist
|
||||
BASEDOCS= AUTHORS.data.txt README.data-license.txt \
|
||||
cc-by-sa-3.0-unported.txt COPYRIGHT.data.txt
|
||||
PORTDOCS= *
|
||||
|
||||
NO_STAGE= yes
|
||||
pre-install:
|
||||
${RM} -f ${PLIST}
|
||||
.for DIR in data maps scenarios techs tilesets tutorials
|
||||
@ -33,29 +35,19 @@ pre-install:
|
||||
@${ECHO_CMD} "@dirrmtry share/icons" >> ${PLIST}
|
||||
@${ECHO_CMD} "@dirrm %%DATADIR%%" >> ${PLIST}
|
||||
|
||||
.if !defined(NOPORTDOCS)
|
||||
@cd ${WRKSRC}/docs && \
|
||||
${FIND} * -type f | ${GREP} -v CHANGELOG.txt | ${GREP} -v README.txt | ${SORT} | ${SED} -e 's|^|%%PORTDOCS%%%%DOCSDIR%%/|' >> ${PLIST} && \
|
||||
${FIND} * -type d | ${SORT} -r | ${SED} -e 's|^|%%PORTDOCS%%@dirrm %%DOCSDIR%%/|' >> ${PLIST}
|
||||
@${ECHO_CMD} "%%PORTDOCS%%@dirrm %%DOCSDIR%%" >> ${PLIST}
|
||||
.endif
|
||||
|
||||
do-install:
|
||||
.if !defined(NOPORTDOCS)
|
||||
@${MKDIR} ${DOCSDIR}/glest_factions
|
||||
.for f in AUTHORS.data.txt README.data-license.txt cc-by-sa-3.0-unported.txt COPYRIGHT.data.txt
|
||||
${INSTALL_DATA} ${WRKSRC}/docs/${f} ${DOCSDIR}
|
||||
.endfor
|
||||
(cd ${WRKSRC}/docs/glest_factions && ${COPYTREE_SHARE} "*" ${DOCSDIR}/glest_factions)
|
||||
.endif
|
||||
@${MKDIR} ${DATADIR}
|
||||
${INSTALL_DATA} ${WRKSRC}/megaglest.desktop ${PREFIX}/share/applications/
|
||||
${MKDIR} ${PREFIX}/share/icons
|
||||
${INSTALL_DATA} ${WRKSRC}/megaglest.png ${PREFIX}/share/icons/
|
||||
@${MKDIR} ${STAGEDIR}${DOCSDIR}/glest_factions
|
||||
${INSTALL_DATA} ${BASEDOCS:S,^,${WRKSRC}/docs/,} ${STAGEDIR}${DOCSDIR}
|
||||
(cd ${WRKSRC}/docs/glest_factions && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR}/glest_factions)
|
||||
|
||||
@${MKDIR} ${STAGEDIR}${DATADIR}
|
||||
${INSTALL_DATA} ${WRKSRC}/megaglest.desktop ${STAGEDIR}${PREFIX}/share/applications/
|
||||
@${MKDIR} ${STAGEDIR}${PREFIX}/share/icons
|
||||
${INSTALL_DATA} ${WRKSRC}/megaglest.png ${STAGEDIR}${PREFIX}/share/icons/
|
||||
|
||||
.for DIR in data maps scenarios techs tilesets tutorials
|
||||
${MKDIR} ${DATADIR}/${DIR}
|
||||
(cd ${WRKSRC}/${DIR} && ${COPYTREE_SHARE} "*" ${DATADIR}/${DIR})
|
||||
${MKDIR} ${STAGEDIR}${DATADIR}/${DIR}
|
||||
(cd ${WRKSRC}/${DIR} && ${COPYTREE_SHARE} . ${STAGEDIR}${DATADIR}/${DIR})
|
||||
.endfor
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
@ -1,2 +1,2 @@
|
||||
SHA256 (megaglest-data-3.7.1.tar.xz) = e31a84d32e35bd1b96ebba55188d05099411497dae4bad2ece9cb0cea5723b0d
|
||||
SIZE (megaglest-data-3.7.1.tar.xz) = 191777052
|
||||
SHA256 (megaglest-data-3.9.0.tar.xz) = e6d6fdc994a6cc99e00bafda53537964ba069bb4bdcb3257dcbe4f7434011fc2
|
||||
SIZE (megaglest-data-3.9.0.tar.xz) = 269393520
|
||||
|
Loading…
Reference in New Issue
Block a user