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/Manifest4
-rw-r--r--games-kids/childsplay/childsplay-0.90.2.ebuild137
3 files changed, 148 insertions, 3 deletions
diff --git a/games-kids/childsplay/ChangeLog b/games-kids/childsplay/ChangeLog
index da35a939c860..dbc4ce40fe23 100644
--- a/games-kids/childsplay/ChangeLog
+++ b/games-kids/childsplay/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for games-kids/childsplay
-# Copyright 2000-2007 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/games-kids/childsplay/ChangeLog,v 1.14 2007/11/09 19:52:41 mr_bones_ Exp $
+# Copyright 2000-2009 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/games-kids/childsplay/ChangeLog,v 1.15 2009/01/14 21:17:14 mr_bones_ Exp $
+
+*childsplay-0.90.2 (14 Jan 2009)
+
+ 14 Jan 2009; Michael Sterrett <mr_bones_@gentoo.org>
+ +childsplay-0.90.2.ebuild:
+ version bump
09 Nov 2007; Michael Sterrett <mr_bones_@gentoo.org>
-childsplay-0.68.ebuild:
diff --git a/games-kids/childsplay/Manifest b/games-kids/childsplay/Manifest
index b5a79b698546..c67fdad7f52c 100644
--- a/games-kids/childsplay/Manifest
+++ b/games-kids/childsplay/Manifest
@@ -1,7 +1,9 @@
AUX childsplay 99 RMD160 d7ce724efdc413a1fce862aa4f0d3643430b6e4f SHA1 2d3b7a7cdb45488550376bff34dd6aadb03affac SHA256 d33e50603bba2e2c5808d30df79d3172ec28fb26b7a97da38d5719f5d356c990
DIST childsplay-0.90.1.tgz 2329015 RMD160 ba35d1d4324714a4ae6abcc14e73af693e26bb4d SHA1 a56816703b6fa9fb2dbe03d3c2b455968e30cbb8 SHA256 beaacf545dd7280ecdba1b7a730cd80e4c56959413aaa624c9d4ce4edbc2d8f1
+DIST childsplay-0.90.2.tgz 2330022 RMD160 ccbd7f6ccca3320088054deab5b4bc1991fbb741 SHA1 8bd21a03126f2117a6ba62055973e891d0f208d2 SHA256 baa7c2c6168d581d546bcea3612a513268cf2e8273f2cf748df9e1559c62e054
DIST childsplay_plugins-0.90.tgz 4528735 RMD160 d639777fd814595980e2bf8c22663d06263a2e11 SHA1 4cfadf71d83f272201e72dcc33b4e0be1dd1843e SHA256 3eff00eb1fb20f59b503071e61ca21eaf869969bb7cdc5f644ece5f6e48664c3
DIST childsplay_plugins_lfc-0.90.tgz 6159653 RMD160 b78786a81b65a396eeb94660e22ad342c2e4d769 SHA1 29c49598695ad24d0535183bd5ab701f0aa7c276 SHA256 629a84beb94191c786508de4476c8b7ac98b5007aa7e0d9f7d0fa4d3e43b11b2
EBUILD childsplay-0.90.1.ebuild 3716 RMD160 e08e4d6479f6db2c6d4b05a354192cc6307db4ff SHA1 2d254c558afbc7f6dafa051ba1ae178ccd415252 SHA256 38bd68ece33fdd1ee92e3a8f4aad656d1cb946d6d9e23ce288ecc4043554a6fa
-MISC ChangeLog 1998 RMD160 32815eb816bad1d2239c6f1289d1314bcdce6b47 SHA1 9fa502394c04de05741566934465ca7d336b1e34 SHA256 6c0385bda83b53e9022fe418ff0e74a88fc5d3b9af7fd9ba916487197fd918df
+EBUILD childsplay-0.90.2.ebuild 3746 RMD160 34ee8d414b35b34d65ccad7e2b3fc7409259a1bc SHA1 6ff65290b21ff967469c75da1971096e5cd78fc3 SHA256 ea0b7b38dafbe2adf7e2c71d4e78d94434e4411e701458c6d4c8cfd319e43f47
+MISC ChangeLog 2132 RMD160 fdfe16089aedca2743937cb3dd60293cb0a29d07 SHA1 a99d8c6cd4166328dbffad51f92f7509650dbe87 SHA256 efde126f5ea7ac3856ffe9c64853d79ca2a9e2ffa940de56be3d6075fbf03d41
MISC metadata.xml 340 RMD160 df5c4251e24c5f3951e50ed7a713b6028f8f12ec SHA1 71f3ff94bcdaf386a08944d59c0c883474a3a0b8 SHA256 a27158ca00e167722e2fbe151d58b63588863d71b2e152d491b1392d1e4704a9
diff --git a/games-kids/childsplay/childsplay-0.90.2.ebuild b/games-kids/childsplay/childsplay-0.90.2.ebuild
new file mode 100644
index 000000000000..392e7734b06a
--- /dev/null
+++ b/games-kids/childsplay/childsplay-0.90.2.ebuild
@@ -0,0 +1,137 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/games-kids/childsplay/childsplay-0.90.2.ebuild,v 1.1 2009/01/14 21:17:14 mr_bones_ Exp $
+
+EAPI=2
+inherit eutils python games
+
+DESCRIPTION="A suite of educational games for young children"
+HOMEPAGE="http://childsplay.sourceforge.net/"
+PLUGINS_VERSION="0.90"
+PLUGINS_LFC_VERSION="0.90"
+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-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+DEPEND=">=dev-lang/python-2.1
+ >=dev-python/pygame-1.7.1
+ >=media-libs/sdl-image-1.2[gif,jpeg,png]
+ >=media-libs/sdl-ttf-2.0
+ >=media-libs/sdl-mixer-1.2[vorbis]
+ 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_get_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 || die
+ sed -i \
+ -e "s:GENTOO_DIR:${_CPDIR}:" \
+ "${D}${GAMES_BINDIR}"/childsplay \
+ || die "sed failed"
+
+ newicon assetml/childsplay/childsplay-images/chpl-icon-48.png ${PN}.png
+ make_desktop_entry childsplay Childsplay
+
+ prepgamesdirs
+ fperms g+w "${_SCOREFILE}"
+}
+
+pkg_postinst() {
+ python_mod_optimize "${_CPDIR}"
+ games_pkg_postinst
+}
+
+pkg_postrm() {
+ python_mod_cleanup "${_CPDIR}"
+}