diff options
author | Chris Gianelloni <wolf31o2@gentoo.org> | 2006-10-03 20:37:41 +0000 |
---|---|---|
committer | Chris Gianelloni <wolf31o2@gentoo.org> | 2006-10-03 20:37:41 +0000 |
commit | ecc217d99fc56003a208008bd6f93203c16664fa (patch) | |
tree | 5b5e3f42b63548fe4dc483b7ddb71d6b0845ebc8 /games-kids | |
parent | Shouldn't use ROOT here (diff) | |
download | gentoo-2-ecc217d99fc56003a208008bd6f93203c16664fa.tar.gz gentoo-2-ecc217d99fc56003a208008bd6f93203c16664fa.tar.bz2 gentoo-2-ecc217d99fc56003a208008bd6f93203c16664fa.zip |
Version bump. Ebuild submitted by Mark Charlebois <mcharleb@qualcomm.com> and edited by Karl Tomlinson <tomlinso+gentoo@esu1.auckland.ac.nz>, Mathy Vanvoorden <matje@lanzone.be>, and Shane Hathaway <shane@hathawaymix.org>. Closing bug #82347.
(Portage version: 2.1.2_pre1-r4)
Diffstat (limited to 'games-kids')
-rw-r--r-- | games-kids/childsplay/ChangeLog | 13 | ||||
-rw-r--r-- | games-kids/childsplay/childsplay-0.83.1.ebuild | 128 | ||||
-rw-r--r-- | games-kids/childsplay/files/childsplay | 2 | ||||
-rw-r--r-- | games-kids/childsplay/files/digest-childsplay-0.83.1 | 9 |
4 files changed, 150 insertions, 2 deletions
diff --git a/games-kids/childsplay/ChangeLog b/games-kids/childsplay/ChangeLog index 92f4f70750d4..c09929cfb746 100644 --- a/games-kids/childsplay/ChangeLog +++ b/games-kids/childsplay/ChangeLog @@ -1,6 +1,15 @@ # ChangeLog for games-kids/childsplay -# Copyright 2000-2005 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/games-kids/childsplay/ChangeLog,v 1.5 2005/05/01 18:03:58 hansmi Exp $ +# Copyright 2000-2006 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/games-kids/childsplay/ChangeLog,v 1.6 2006/10/03 20:37:41 wolf31o2 Exp $ + +*childsplay-0.83.1 (03 Oct 2006) + + 03 Oct 2006; Chris Gianelloni <wolf31o2@gentoo.org> files/childsplay, + +childsplay-0.83.1.ebuild: + Version bump. Ebuild submitted by Mark Charlebois <mcharleb@qualcomm.com> + and edited by Karl Tomlinson <tomlinso+gentoo@esu1.auckland.ac.nz>, Mathy + Vanvoorden <matje@lanzone.be>, and Shane Hathaway <shane@hathawaymix.org>. + Closing bug #82347. 01 May 2005; Michael Hanselmann <hansmi@gentoo.org> childsplay-0.68.ebuild: diff --git a/games-kids/childsplay/childsplay-0.83.1.ebuild b/games-kids/childsplay/childsplay-0.83.1.ebuild new file mode 100644 index 000000000000..4c4412210e6b --- /dev/null +++ b/games-kids/childsplay/childsplay-0.83.1.ebuild @@ -0,0 +1,128 @@ +# Copyright 1999-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/games-kids/childsplay/childsplay-0.83.1.ebuild,v 1.1 2006/10/03 20:37:41 wolf31o2 Exp $ + +inherit games python + +DESCRIPTION="A suite of educational games for young children" +HOMEPAGE="http://childsplay.sourceforge.net/" +PLUGINS_VERSION="0.83" +PLUGINS_LFC_VERSION="0.80.4" +SRC_URI="mirror://sourceforge/childsplay/${P}.tgz + mirror://sourceforge/childsplay/${PN}_plugins-${PLUGINS_VERSION}.tgz + mirror://sourceforge/childsplay/${PN}_plugins_lfc-${PLUGINS_LFC_VERSION}.tgz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +DEPEND=">=dev-lang/python-2.1 + >=dev-python/pygame-1.6 + >=media-libs/sdl-image-1.2 + >=media-libs/sdl-ttf-2.0 + >=media-libs/sdl-mixer-1.2 + media-libs/libogg" + +src_unpack() { + # Copy the plugins into the main package. + unpack ${A} + PLUGINSDIR="${PN}_plugins-${PLUGINS_VERSION}" + PLUGINSLFCDIR="${PN}_plugins_lfc-${PLUGINS_LFC_VERSION}" + for DIR in ${PLUGINSDIR} ${PLUGINSLFCDIR}; do + cp -r ${DIR}/Data/*.icon.png ${P}/Data/icons + cp -r ${DIR}/lib/* ${P}/lib + cp -r ${DIR}/assetml/* ${P}/assetml + done + cp -r ${PLUGINSDIR}/Data/AlphabetSounds ${P}/Data + cp ${PLUGINSDIR}/add-score.py ${P} + +# cd "${S}" +# epatch "${FILESDIR}/letters-trans-path.patch" +} + +src_install() { + + # The following variables are based on Childsplay's INSTALL.sh + _LOCALEDIR=/usr/share/locale + _ASSETMLDIR=/usr/share/assetml + _SCOREDIR=${GAMES_STATEDIR} + _SCOREFILE=${_SCOREDIR}/childsplay.score + _CPDIR=${GAMES_LIBDIR}/childsplay + _SHAREDIR=${GAMES_DATADIR}/childsplay + _LIBDIR=${_CPDIR}/lib + _MODULESDIR=${_LIBDIR} + _SHARELIBDATADIR=${_SHAREDIR}/lib + _SHAREDATADIR=${_SHAREDIR}/Data + _RCDIR=${_SHARELIBDATADIR}/ConfigData + _HOME_DIR_NAME=.childsplay + _CHILDSPLAYRC=childsplayrc + + dodir ${_CPDIR} + dodir ${_LIBDIR} + dodir ${_SHAREDIR} + dodir ${_SHARELIBDATADIR} + dodir ${_SCOREDIR} + dodir ${_LOCALEDIR} + dodir ${_ASSETMLDIR} + + # create BASEPATH.py + cat >BASEPATH.py <<EOF +## Automated file--please do not edit +LOCALEDIR="${_LOCALEDIR}" +ASSETMLDIR="${_ASSETMLDIR}" +SCOREDIR="${_SCOREDIR}" +SCOREFILE="${_SCOREFILE}" +CPDIR="${_CPDIR}" +SHAREDIR="${_SHAREDIR}" +LIBDIR="${_LIBDIR}" +MODULESDIR="${_MODULESDIR}" +SHARELIBDATADIR="${_SHARELIBDATADIR}" +SHAREDATADIR="${_SHAREDATADIR}" +RCDIR="${_RCDIR}" +HOME_DIR_NAME="${_HOME_DIR_NAME}" +CHILDSPLAYRC="${_CHILDSPLAYRC}" +EOF + + # copy software and data + cp -r *.py ${D}/${_CPDIR} + cp -r Data ${D}/${_SHAREDIR} + rm ${D}/${_SHAREDIR}/Data/childsplay.score # this copy won't be used + + for fn in $(ls lib); do + if [ -d lib/${fn} ]; then + cp -r lib/${fn} ${D}/${_SHARELIBDATADIR} + else + cp lib/${fn} ${D}/${_LIBDIR} + fi + done + + cp -r locale/* ${D}/${_LOCALEDIR} + cp -r assetml/* ${D}/${_ASSETMLDIR} + + # initialize the score file + cp Data/childsplay.score ${D}/${_SCOREFILE} + SCORE_GAMES="Packid,Numbers,Soundmemory,Fallingletters,Findsound,Findsound2,Billiard" + python add-score.py ${D}/${_SCOREDIR} $SCORE_GAMES + + # translate for the letters game + python letters-trans.py ${D}/${_ASSETMLDIR} + + doman man/childsplay.6.gz + dodoc doc/README* doc/Changelog doc/copyright + + # Make a launcher. + dogamesbin ${FILESDIR}/childsplay + dosed "s:GENTOO_DIR:${_CPDIR}:" ${GAMES_BINDIR}/childsplay + + prepgamesdirs + fperms g+w ${_SCOREFILE} +} + +pkg_postinst() { + python_mod_optimize ${_CPDIR} +} + +pkg_postrm() { + python_mod_cleanup ${_CPDIR} +} diff --git a/games-kids/childsplay/files/childsplay b/games-kids/childsplay/files/childsplay index 3792f1f9622e..eccf016836d0 100644 --- a/games-kids/childsplay/files/childsplay +++ b/games-kids/childsplay/files/childsplay @@ -1,2 +1,4 @@ #!/bin/sh +[ -z "${LANGUAGE}" ] && LANGUAGE=en +export LANGUAGE python GENTOO_DIR/childsplay.py "$@" diff --git a/games-kids/childsplay/files/digest-childsplay-0.83.1 b/games-kids/childsplay/files/digest-childsplay-0.83.1 new file mode 100644 index 000000000000..6d3240bcc33c --- /dev/null +++ b/games-kids/childsplay/files/digest-childsplay-0.83.1 @@ -0,0 +1,9 @@ +MD5 bdcd090f0adcd992c62a60ef39819e14 childsplay-0.83.1.tgz 1755917 +RMD160 b505936652c1d01684530bbfc0092b6841ad09d1 childsplay-0.83.1.tgz 1755917 +SHA256 2b8d71adc89843253d67796414d28bb2b95537d586e587b05012d69823c3ebff childsplay-0.83.1.tgz 1755917 +MD5 81355e87ee3968107305642333e253cf childsplay_plugins-0.83.tgz 3538609 +RMD160 81b8ea17d974930e3dcf51b6898f61737403bb56 childsplay_plugins-0.83.tgz 3538609 +SHA256 6d1130df8b01d8812d69e800ecc2a90fed292bb160df196caf0419c4b2514c0b childsplay_plugins-0.83.tgz 3538609 +MD5 797bcb71a2e5cfae8e6908bd203d356e childsplay_plugins_lfc-0.80.4.tgz 11038599 +RMD160 2468626f74ee3455919b22eae497c459e3e9a6ab childsplay_plugins_lfc-0.80.4.tgz 11038599 +SHA256 2d99e9e81dc552e26b82d3ed7fa249244161d0ef57238873dcf85d4e84bd3160 childsplay_plugins_lfc-0.80.4.tgz 11038599 |