aboutsummaryrefslogtreecommitdiffstats
path: root/games
diff options
context:
space:
mode:
authorrm <rm@FreeBSD.org>2014-02-11 04:34:32 +0800
committerrm <rm@FreeBSD.org>2014-02-11 04:34:32 +0800
commit6a01d7d601524ee82bd3950f437f3ec8da6cd0b0 (patch)
tree96cd6b7a2a49e127652470cb900f4af1f8da179c /games
parenta50b197073d6c4c39ca01f4615bb4e58d9fd9238 (diff)
downloadfreebsd-ports-gnome-6a01d7d601524ee82bd3950f437f3ec8da6cd0b0.tar.gz
freebsd-ports-gnome-6a01d7d601524ee82bd3950f437f3ec8da6cd0b0.tar.zst
freebsd-ports-gnome-6a01d7d601524ee82bd3950f437f3ec8da6cd0b0.zip
- 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)
Diffstat (limited to 'games')
-rw-r--r--games/megaglest-data/Makefile40
-rw-r--r--games/megaglest-data/distinfo4
2 files changed, 18 insertions, 26 deletions
diff --git a/games/megaglest-data/Makefile b/games/megaglest-data/Makefile
index 5ee4e8f3b983..11decf75f61a 100644
--- a/games/megaglest-data/Makefile
+++ b/games/megaglest-data/Makefile
@@ -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>
diff --git a/games/megaglest-data/distinfo b/games/megaglest-data/distinfo
index 82ec35f84aa1..379dd73f33e0 100644
--- a/games/megaglest-data/distinfo
+++ b/games/megaglest-data/distinfo
@@ -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