diff options
Diffstat (limited to 'games')
-rw-r--r-- | games/powermanga/Makefile | 4 | ||||
-rw-r--r-- | games/powermanga/files/patch-src::score.cpp | 11 | ||||
-rw-r--r-- | games/powermanga/pkg-install | 15 |
3 files changed, 29 insertions, 1 deletions
diff --git a/games/powermanga/Makefile b/games/powermanga/Makefile index 177de846c91c..2c9b541706ff 100644 --- a/games/powermanga/Makefile +++ b/games/powermanga/Makefile @@ -7,6 +7,7 @@ PORTNAME= powermanga PORTVERSION= 0.79 +PORTREVISION= 1 CATEGORIES= games MASTER_SITES= http://linux.tlk.fr/games/Powermanga/download/ EXTRACT_SUFX= .tgz @@ -40,8 +41,9 @@ post-patch: ${WRKSRC}/src/powermanga.hpp \ ${WRKSRC}/src/sdl_mixer.cpp -.if !defined(NOPORTDOCS) post-install: + @${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL +.if !defined(NOPORTDOCS) ${MKDIR} ${DOCSDIR} ${INSTALL_DATA} \ ${WRKSRC}/AUTHORS \ diff --git a/games/powermanga/files/patch-src::score.cpp b/games/powermanga/files/patch-src::score.cpp new file mode 100644 index 000000000000..b30ad26208c4 --- /dev/null +++ b/games/powermanga/files/patch-src::score.cpp @@ -0,0 +1,11 @@ +--- src/score.cpp.orig Sat Jan 22 01:59:45 2005 ++++ src/score.cpp Sat Jan 22 01:59:56 2005 +@@ -449,7 +449,7 @@ + } + close(_iHandle); + } +- if(_pMemoire) ++ if(_pMemoire && sDescriptionFichier.st_size > 0) + { + char *_pBufferC = _pMemoire; + int *_pBufferL; diff --git a/games/powermanga/pkg-install b/games/powermanga/pkg-install new file mode 100644 index 000000000000..08a67859f0b6 --- /dev/null +++ b/games/powermanga/pkg-install @@ -0,0 +1,15 @@ +#!/bin/sh + +SCOREDIR="/var/games" +SCOREBASE="/var/games/powermanga.hi" + +[ "$2" != "POST-INSTALL" ] && exit 0 + +mkdir -p $SCOREDIR + +for suffix in "-easy" "" "-hard"; do + file="$SCOREBASE$suffix" + [ ! -f $file ] && touch $file + chown root:games $file + chmod 664 $file +done |