summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormarino <marino@pkgsrc.org>2012-05-21 14:55:10 +0000
committermarino <marino@pkgsrc.org>2012-05-21 14:55:10 +0000
commit194cb28f82b387af61b76f899351ede7278ab0e0 (patch)
treec6f988a0ccab217354b3a165fcb5b352ed07a1e6
parentec4dad6a4c3b22a9e68f7fd4bad95babd19b0dce (diff)
downloadpkgsrc-194cb28f82b387af61b76f899351ede7278ab0e0.tar.gz
games/xblast: Fix unicode translation error during installation
Likely a mistake, one of the "levels" source files used unicode in the filename. The manifest even indicated the name should have been "reconstruction2.xal". The post-extract hook is used to correct the filename to be as intended. As a bonus, platforms like Linux and DragonFly can install the package without a libarchive translation error disrupting the process.
-rw-r--r--games/xblast/Makefile7
-rw-r--r--games/xblast/PLIST4
2 files changed, 8 insertions, 3 deletions
diff --git a/games/xblast/Makefile b/games/xblast/Makefile
index 35b507d7dee..87dfcf5bc46 100644
--- a/games/xblast/Makefile
+++ b/games/xblast/Makefile
@@ -1,7 +1,8 @@
-# $NetBSD: Makefile,v 1.29 2011/05/24 12:38:43 obache Exp $
+# $NetBSD: Makefile,v 1.30 2012/05/21 14:55:10 marino Exp $
#
DISTNAME= xblast-2.10.4
+PKGREVISION= 1
CATEGORIES= games x11
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=xblast/}
DISTFILES= ${DISTNAME}${EXTRACT_SUFX} \
@@ -47,6 +48,10 @@ SUBST_SED.xbsndsrv= -e 's|"xbsndsrv"|"${PREFIX}/bin/xbsndsrv"|'
INSTALLATION_DIRS= ${PKGMANDIR}/man6
+post-extract:
+ ${MV} ${WRKDIR}/levels-2005-01-06/reconstruct?on2.xal \
+ ${WRKDIR}/levels-2005-01-06/reconstruction2.xal
+
pre-build:
${MV} ${WRKDIR}/images-2005-01-06 ${WRKSRC}/image
${MV} ${WRKDIR}/levels-2005-01-06 ${WRKSRC}/level
diff --git a/games/xblast/PLIST b/games/xblast/PLIST
index 645c8372cfd..751ba38ce4f 100644
--- a/games/xblast/PLIST
+++ b/games/xblast/PLIST
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.5 2009/06/14 17:56:58 joerg Exp $
+@comment $NetBSD: PLIST,v 1.6 2012/05/21 14:55:10 marino Exp $
bin/xblast
bin/xbsndsrv
man/man6/xblast.6
@@ -2627,7 +2627,7 @@ share/xblast/level/random_field.xal
share/xblast/level/rapiddeath.xal
share/xblast/level/raymasters.xal
share/xblast/level/reconstruction.xal
-share/xblast/level/reconstructîon2.xal
+share/xblast/level/reconstruction2.xal
share/xblast/level/reincocloned.xal
share/xblast/level/remembernokicking.xal
share/xblast/level/remote_quest.xal