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.diff -r1.29 -r1.30 pkgsrc/games/xblast/Makefile
(marino)
@@ -1,17 +1,18 @@ | @@ -1,17 +1,18 @@ | |||
1 | # $NetBSD: Makefile,v 1.29 2011/05/24 12:38:43 obache Exp $ | 1 | # $NetBSD: Makefile,v 1.30 2012/05/21 14:55:10 marino Exp $ | |
2 | # | 2 | # | |
3 | 3 | |||
4 | DISTNAME= xblast-2.10.4 | 4 | DISTNAME= xblast-2.10.4 | |
5 | PKGREVISION= 1 | |||
5 | CATEGORIES= games x11 | 6 | CATEGORIES= games x11 | |
6 | MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=xblast/} | 7 | MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=xblast/} | |
7 | DISTFILES= ${DISTNAME}${EXTRACT_SUFX} \ | 8 | DISTFILES= ${DISTNAME}${EXTRACT_SUFX} \ | |
8 | images-2005-01-06${EXTRACT_SUFX} \ | 9 | images-2005-01-06${EXTRACT_SUFX} \ | |
9 | levels-2005-01-06${EXTRACT_SUFX} \ | 10 | levels-2005-01-06${EXTRACT_SUFX} \ | |
10 | models-2005-01-06${EXTRACT_SUFX} \ | 11 | models-2005-01-06${EXTRACT_SUFX} \ | |
11 | musics-2005-01-06${EXTRACT_SUFX} \ | 12 | musics-2005-01-06${EXTRACT_SUFX} \ | |
12 | sounds${EXTRACT_SUFX} | 13 | sounds${EXTRACT_SUFX} | |
13 | 14 | |||
14 | MAINTAINER= dsainty@NetBSD.org | 15 | MAINTAINER= dsainty@NetBSD.org | |
15 | HOMEPAGE= http://xblast.sourceforge.net/ | 16 | HOMEPAGE= http://xblast.sourceforge.net/ | |
16 | COMMENT= 2-6 player kill the other guy with bombs game. A real blast! | 17 | COMMENT= 2-6 player kill the other guy with bombs game. A real blast! | |
17 | LICENSE= gnu-gpl-v2 # or later | 18 | LICENSE= gnu-gpl-v2 # or later | |
@@ -37,26 +38,30 @@ SUBST_CLASSES+= ossaudio | @@ -37,26 +38,30 @@ SUBST_CLASSES+= ossaudio | |||
37 | SUBST_STAGE.ossaudio= pre-configure | 38 | SUBST_STAGE.ossaudio= pre-configure | |
38 | SUBST_MESSAGE.ossaudio= Linking ossaudio library | 39 | SUBST_MESSAGE.ossaudio= Linking ossaudio library | |
39 | SUBST_FILES.ossaudio= Makefile.in | 40 | SUBST_FILES.ossaudio= Makefile.in | |
40 | SUBST_SED.ossaudio= -e 's|xbsndsrv_LDADD =|& ${LIBOSSAUDIO}|' | 41 | SUBST_SED.ossaudio= -e 's|xbsndsrv_LDADD =|& ${LIBOSSAUDIO}|' | |
41 | 42 | |||
42 | SUBST_CLASSES+= xbsndsrv | 43 | SUBST_CLASSES+= xbsndsrv | |
43 | SUBST_STAGE.xbsndsrv= pre-configure | 44 | SUBST_STAGE.xbsndsrv= pre-configure | |
44 | SUBST_MESSAGE.xbsndsrv= Qualify path to xbsndsrv | 45 | SUBST_MESSAGE.xbsndsrv= Qualify path to xbsndsrv | |
45 | SUBST_FILES.xbsndsrv= x11_sound.c | 46 | SUBST_FILES.xbsndsrv= x11_sound.c | |
46 | SUBST_SED.xbsndsrv= -e 's|"xbsndsrv"|"${PREFIX}/bin/xbsndsrv"|' | 47 | SUBST_SED.xbsndsrv= -e 's|"xbsndsrv"|"${PREFIX}/bin/xbsndsrv"|' | |
47 | 48 | |||
48 | INSTALLATION_DIRS= ${PKGMANDIR}/man6 | 49 | INSTALLATION_DIRS= ${PKGMANDIR}/man6 | |
49 | 50 | |||
51 | post-extract: | |||
52 | ${MV} ${WRKDIR}/levels-2005-01-06/reconstruct?on2.xal \ | |||
53 | ${WRKDIR}/levels-2005-01-06/reconstruction2.xal | |||
54 | ||||
50 | pre-build: | 55 | pre-build: | |
51 | ${MV} ${WRKDIR}/images-2005-01-06 ${WRKSRC}/image | 56 | ${MV} ${WRKDIR}/images-2005-01-06 ${WRKSRC}/image | |
52 | ${MV} ${WRKDIR}/levels-2005-01-06 ${WRKSRC}/level | 57 | ${MV} ${WRKDIR}/levels-2005-01-06 ${WRKSRC}/level | |
53 | ${MV} ${WRKDIR}/models-2005-01-06 ${WRKSRC}/image/sprite | 58 | ${MV} ${WRKDIR}/models-2005-01-06 ${WRKSRC}/image/sprite | |
54 | ${MV} ${WRKDIR}/sounds ${WRKSRC}/sounds | 59 | ${MV} ${WRKDIR}/sounds ${WRKSRC}/sounds | |
55 | ${MV} ${WRKDIR}/musics-2005-01-06/* ${WRKSRC}/sounds | 60 | ${MV} ${WRKDIR}/musics-2005-01-06/* ${WRKSRC}/sounds | |
56 | 61 | |||
57 | post-install: | 62 | post-install: | |
58 | ${INSTALL_MAN} ${WRKSRC}/xblast.man ${DESTDIR}${PREFIX}/${PKGMANDIR}/man6/xblast.6 | 63 | ${INSTALL_MAN} ${WRKSRC}/xblast.man ${DESTDIR}${PREFIX}/${PKGMANDIR}/man6/xblast.6 | |
59 | 64 | |||
60 | BUILDLINK_DEPMETHOD.libXt?= build | 65 | BUILDLINK_DEPMETHOD.libXt?= build | |
61 | 66 | |||
62 | .include "../../x11/libICE/buildlink3.mk" | 67 | .include "../../x11/libICE/buildlink3.mk" |
@@ -1,14 +1,14 @@ | @@ -1,14 +1,14 @@ | |||
1 | @comment $NetBSD: PLIST,v 1.5 2009/06/14 17:56:58 joerg Exp $ | 1 | @comment $NetBSD: PLIST,v 1.6 2012/05/21 14:55:10 marino Exp $ | |
2 | bin/xblast | 2 | bin/xblast | |
3 | bin/xbsndsrv | 3 | bin/xbsndsrv | |
4 | man/man6/xblast.6 | 4 | man/man6/xblast.6 | |
5 | share/xblast/image/Imakefile | 5 | share/xblast/image/Imakefile | |
6 | share/xblast/image/block/EPFL_stop.ppm | 6 | share/xblast/image/block/EPFL_stop.ppm | |
7 | share/xblast/image/block/Imakefile | 7 | share/xblast/image/block/Imakefile | |
8 | share/xblast/image/block/air_pump.ppm | 8 | share/xblast/image/block/air_pump.ppm | |
9 | share/xblast/image/block/bomb.ppm | 9 | share/xblast/image/block/bomb.ppm | |
10 | share/xblast/image/block/bomb_floor.ppm | 10 | share/xblast/image/block/bomb_floor.ppm | |
11 | share/xblast/image/block/bomb_floor_X.ppm | 11 | share/xblast/image/block/bomb_floor_X.ppm | |
12 | share/xblast/image/block/bomb_floor_black.ppm | 12 | share/xblast/image/block/bomb_floor_black.ppm | |
13 | share/xblast/image/block/bomb_floor_black_X.ppm | 13 | share/xblast/image/block/bomb_floor_black_X.ppm | |
14 | share/xblast/image/block/book_shelf.ppm | 14 | share/xblast/image/block/book_shelf.ppm | |
@@ -2617,27 +2617,27 @@ share/xblast/level/psykogroupycocainecra | @@ -2617,27 +2617,27 @@ share/xblast/level/psykogroupycocainecra | |||
2617 | share/xblast/level/pyramid.xal | 2617 | share/xblast/level/pyramid.xal | |
2618 | share/xblast/level/pyromania.xal | 2618 | share/xblast/level/pyromania.xal | |
2619 | share/xblast/level/pythagorus_theorem.xal | 2619 | share/xblast/level/pythagorus_theorem.xal | |
2620 | share/xblast/level/quadrilateral_excitation.xal | 2620 | share/xblast/level/quadrilateral_excitation.xal | |
2621 | share/xblast/level/quarter.xal | 2621 | share/xblast/level/quarter.xal | |
2622 | share/xblast/level/quefaitlapolice.xal | 2622 | share/xblast/level/quefaitlapolice.xal | |
2623 | share/xblast/level/quelecielestbas.xal | 2623 | share/xblast/level/quelecielestbas.xal | |
2624 | share/xblast/level/quickdraw.xal | 2624 | share/xblast/level/quickdraw.xal | |
2625 | share/xblast/level/random.xal | 2625 | share/xblast/level/random.xal | |
2626 | share/xblast/level/random_field.xal | 2626 | share/xblast/level/random_field.xal | |
2627 | share/xblast/level/rapiddeath.xal | 2627 | share/xblast/level/rapiddeath.xal | |
2628 | share/xblast/level/raymasters.xal | 2628 | share/xblast/level/raymasters.xal | |
2629 | share/xblast/level/reconstruction.xal | 2629 | share/xblast/level/reconstruction.xal | |
2630 | share/xblast/level/reconstructîon2.xal | 2630 | share/xblast/level/reconstruction2.xal | |
2631 | share/xblast/level/reincocloned.xal | 2631 | share/xblast/level/reincocloned.xal | |
2632 | share/xblast/level/remembernokicking.xal | 2632 | share/xblast/level/remembernokicking.xal | |
2633 | share/xblast/level/remote_quest.xal | 2633 | share/xblast/level/remote_quest.xal | |
2634 | share/xblast/level/remotesnow.xal | 2634 | share/xblast/level/remotesnow.xal | |
2635 | share/xblast/level/renew.xal | 2635 | share/xblast/level/renew.xal | |
2636 | share/xblast/level/renovation_man.xal | 2636 | share/xblast/level/renovation_man.xal | |
2637 | share/xblast/level/renovation_master.xal | 2637 | share/xblast/level/renovation_master.xal | |
2638 | share/xblast/level/renovation_master2.xal | 2638 | share/xblast/level/renovation_master2.xal | |
2639 | share/xblast/level/revive.xal | 2639 | share/xblast/level/revive.xal | |
2640 | share/xblast/level/rhombus.xal | 2640 | share/xblast/level/rhombus.xal | |
2641 | share/xblast/level/rightcurve.xal | 2641 | share/xblast/level/rightcurve.xal | |
2642 | share/xblast/level/robbslevel.xal | 2642 | share/xblast/level/robbslevel.xal | |
2643 | share/xblast/level/round.xal | 2643 | share/xblast/level/round.xal |