summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'games-kids/childsplay')
-rw-r--r--games-kids/childsplay/ChangeLog10
-rw-r--r--games-kids/childsplay/childsplay-0.85.1.ebuild130
-rw-r--r--games-kids/childsplay/files/digest-childsplay-0.85.19
3 files changed, 147 insertions, 2 deletions
diff --git a/games-kids/childsplay/ChangeLog b/games-kids/childsplay/ChangeLog
index c09929cfb746..e2c55971d65f 100644
--- a/games-kids/childsplay/ChangeLog
+++ b/games-kids/childsplay/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for games-kids/childsplay
-# 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 $
+# Copyright 2000-2007 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/games-kids/childsplay/ChangeLog,v 1.7 2007/01/27 09:08:13 mr_bones_ Exp $
+
+*childsplay-0.85.1 (27 Jan 2007)
+
+ 27 Jan 2007; Michael Sterrett <mr_bones_@gentoo.org>
+ +childsplay-0.85.1.ebuild:
+ version bump
*childsplay-0.83.1 (03 Oct 2006)
diff --git a/games-kids/childsplay/childsplay-0.85.1.ebuild b/games-kids/childsplay/childsplay-0.85.1.ebuild
new file mode 100644
index 000000000000..b72d91e1f845
--- /dev/null
+++ b/games-kids/childsplay/childsplay-0.85.1.ebuild
@@ -0,0 +1,130 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/games-kids/childsplay/childsplay-0.85.1.ebuild,v 1.1 2007/01/27 09:08:13 mr_bones_ Exp $
+
+inherit games python
+
+DESCRIPTION="A suite of educational games for young children"
+HOMEPAGE="http://childsplay.sourceforge.net/"
+PLUGINS_VERSION="0.85.2"
+PLUGINS_LFC_VERSION="0.85.2"
+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() {
+ local DIR
+
+ # Copy the plugins into the main package.
+ unpack ${A}
+ for DIR in ${PN}_plugins-${PLUGINS_VERSION} ${PN}_plugins_lfc-${PLUGINS_LFC_VERSION}; do
+ cp -r ${DIR}/Data/*.icon.png ${P}/Data/icons || die
+ cp -r ${DIR}/lib/* ${P}/lib || die
+ cp -r ${DIR}/assetml/* ${P}/assetml || die
+ done
+ cp -r ${PN}_plugins-${PLUGINS_VERSION}/Data/AlphabetSounds ${P}/Data || die
+ cp ${PN}_plugins-${PLUGINS_VERSION}/add-score.py ${P} || die
+ cd "${S}"
+ gunzip man/childsplay.6.gz
+}
+
+src_install() {
+ local fn
+
+ # 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}" \
+ "${_LIBDIR}" \
+ "${_SHAREDIR}" \
+ "${_SHARELIBDATADIR}" \
+ "${_SCOREDIR}" \
+ "${_LOCALEDIR}" \
+ "${_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}" || die "cp failed"
+ cp -r Data "${D}/${_SHAREDIR}" || die "cp failed"
+ 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}" || die
+ else
+ cp lib/${fn} "${D}/${_LIBDIR}" || die
+ fi
+ done
+
+ cp -r locale/* "${D}/${_LOCALEDIR}" || die
+ cp -r assetml/* "${D}/${_ASSETMLDIR}" || die
+
+ # initialize the score file
+ cp Data/childsplay.score "${D}/${_SCOREFILE}" || die
+ 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
+ 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}"
+ games_pkg_postinst
+}
+
+pkg_postrm() {
+ python_mod_cleanup "${_CPDIR}"
+}
diff --git a/games-kids/childsplay/files/digest-childsplay-0.85.1 b/games-kids/childsplay/files/digest-childsplay-0.85.1
new file mode 100644
index 000000000000..b6142874121d
--- /dev/null
+++ b/games-kids/childsplay/files/digest-childsplay-0.85.1
@@ -0,0 +1,9 @@
+MD5 427ab5f69e12f12a6af8824e5cd92ff9 childsplay-0.85.1.tgz 2014239
+RMD160 2e5849b6e34884b4f46ddb7169edd728b8af0315 childsplay-0.85.1.tgz 2014239
+SHA256 35bc28e87c88a0acef681991188902a3a531cb08fe8e7421788cf4333739f7fc childsplay-0.85.1.tgz 2014239
+MD5 015ea52f03614f7b8cf4797d18ff321b childsplay_plugins-0.85.2.tgz 4534418
+RMD160 07d932649ad089b62a2aed369d705755266fdf4a childsplay_plugins-0.85.2.tgz 4534418
+SHA256 f0b655acc79821c3b91f9cf36f522e0858186a5e7e6785e765d0b8ef80b756c8 childsplay_plugins-0.85.2.tgz 4534418
+MD5 33f15cc131014b15383fd5cfec7e4fdf childsplay_plugins_lfc-0.85.2.tgz 6137391
+RMD160 b387cf956adc615fc50e9d87102a9e26dda99365 childsplay_plugins_lfc-0.85.2.tgz 6137391
+SHA256 beca9cffd969697ee06ca7b858d764ad011dd98abbce5b16118edf81e10ad09f childsplay_plugins_lfc-0.85.2.tgz 6137391