aboutsummaryrefslogtreecommitdiff
path: root/french
diff options
context:
space:
mode:
authorJohn Marino <marino@FreeBSD.org>2014-01-15 20:41:24 +0000
committerJohn Marino <marino@FreeBSD.org>2014-01-15 20:41:24 +0000
commit27ff2ebec78c532ab69c0da1b6158f718e628803 (patch)
tree072d688a68d17f32f5fbcfb703732799ffb4ca00 /french
parentc8ca559dfc9edde733d039300b34aa228f141af2 (diff)
downloadports-27ff2ebec78c532ab69c0da1b6158f718e628803.tar.gz
ports-27ff2ebec78c532ab69c0da1b6158f718e628803.zip
Notes
Diffstat (limited to 'french')
-rw-r--r--french/alphabet_sounds_fr/Makefile9
-rw-r--r--french/alphabet_sounds_fr/files/patch-install.sh58
-rw-r--r--french/alphabet_sounds_fr/pkg-plist2
3 files changed, 52 insertions, 17 deletions
diff --git a/french/alphabet_sounds_fr/Makefile b/french/alphabet_sounds_fr/Makefile
index 276acc49a190..89f7cf45d095 100644
--- a/french/alphabet_sounds_fr/Makefile
+++ b/french/alphabet_sounds_fr/Makefile
@@ -3,7 +3,7 @@
PORTNAME= alphabet_sounds_fr
PORTVERSION= 0.3
-PORTREVISION= 11
+PORTREVISION= 12
CATEGORIES= french games
MASTER_SITES= SF/childsplay/OldFiles
DISTNAME= alphabet_sounds_fr
@@ -11,13 +11,8 @@ DISTNAME= alphabet_sounds_fr
MAINTAINER= bruno@tinkerbox.org
COMMENT= Educative games for children. Alphabet sounds package (french)
-BUILD_DEPENDS= ${LOCALBASE}/bin/childsplay:${PORTSDIR}/games/childsplay
-RUN_DEPENDS:= ${BUILD_DEPENDS}
+RUN_DEPENDS= ${LOCALBASE}/bin/childsplay:${PORTSDIR}/games/childsplay
USE_PYTHON= yes
-NO_STAGE= yes
-post-patch:
- @${REINPLACE_CMD} -e "s@PREFIX=/usr/local@PREFIX=${PREFIX}@g " ${WRKSRC}/install.sh
-
.include <bsd.port.mk>
diff --git a/french/alphabet_sounds_fr/files/patch-install.sh b/french/alphabet_sounds_fr/files/patch-install.sh
index b759573f591c..96d8bf9f9a32 100644
--- a/french/alphabet_sounds_fr/files/patch-install.sh
+++ b/french/alphabet_sounds_fr/files/patch-install.sh
@@ -1,16 +1,50 @@
---- install.sh.orig Sun Mar 20 06:29:18 2005
-+++ install.sh Mon May 30 20:58:56 2005
-@@ -1,5 +1,5 @@
+--- install.sh.orig 2005-03-20 14:29:18.000000000 +0000
++++ install.sh
+@@ -1,8 +1,7 @@
-#!/bin/bash
+#!/bin/sh
# install plugin in the standard childsplay path
- PREFIX=/usr/local
- DESTDIR=$PREFIX/share/childsplay
-@@ -34,24 +34,8 @@
- echo "exit"
- exit 1
- fi
+-PREFIX=/usr/local
+-DESTDIR=$PREFIX/share/childsplay
++INSTDIR=${DESTDIR}${PREFIX}/share/childsplay
+
+ ###########################################################
+ # DO NOT EDIT BEHIND THIS POINT
+@@ -13,47 +12,21 @@ DESTDIR=$PREFIX/share/childsplay
+ DEPEN=0.71
+
+ set -e
+-CWD=`pwd`
+
+-USERID=`id | sed -e 's/).*//; s/^.*(//;'`
+-if [ "$USERID" != "root" ]; then
+- echo " You must be root to install the plugins"
+- echo " exit"
+- exit 1
+-fi
+-
+-echo -e "\n>>>>>>>>>>> Install childsplay plugins >>>>>>>>>>>>>>>>>>>>"
+-echo -e "\n This release depends on childsplay version $DEPEN"
+-echo -n " Cheking version = "
+-VERSION=$(childsplay --version)
+-echo $VERSION
+-
+-if [ `expr $VERSION \< $DEPEN` -eq 1 ];then
+- echo " Childsplay version incorrect, please upgrade to at least"
+- echo " version $DEPEN"
+- echo "exit"
+- exit 1
+-fi
++# We can't run childsplay because it tries to write to $HOME/.schoolsplay.rc
++# Which is not permitted in strict build environements. It is not necessary
++# anyway beecause the version is much higher than 0.71 already!
++
++#echo -e "\n>>>>>>>>>>> Install childsplay plugins >>>>>>>>>>>>>>>>>>>>"
++#echo -e "\n This release depends on childsplay version $DEPEN"
++#echo -n " Cheking version = "
++#VERSION=$(childsplay --version)
++#echo $VERSION
-echo -e "\n The path to install the soundfiles in is "
-echo " $DESTDIR."
@@ -31,4 +65,8 @@
echo " Installing in $DESTDIR/Data/AlphabetSounds"
echo " Copy sound files"
- cp -rf $CWD/AlphabetSounds $DESTDIR/Data/
+-cp -rf $CWD/AlphabetSounds $DESTDIR/Data/
++mkdir -p ${INSTDIR}/Data
++cp -rf AlphabetSounds ${INSTDIR}/Data/
+
+ echo -e "\n Everything installed, enjoy\n"
diff --git a/french/alphabet_sounds_fr/pkg-plist b/french/alphabet_sounds_fr/pkg-plist
index c4962b7295e8..5632a9e9a8b3 100644
--- a/french/alphabet_sounds_fr/pkg-plist
+++ b/french/alphabet_sounds_fr/pkg-plist
@@ -37,3 +37,5 @@ share/childsplay/Data/AlphabetSounds/fr/z.ogg
share/childsplay/Data/AlphabetSounds/fr/10.ogg
@dirrm share/childsplay/Data/AlphabetSounds/fr
@dirrmtry share/childsplay/Data/AlphabetSounds
+@dirrmtry share/childsplay/Data
+@dirrmtry share/childsplay