summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Sterrett <mr_bones_@gentoo.org>2009-01-14 21:17:14 +0000
committerMichael Sterrett <mr_bones_@gentoo.org>2009-01-14 21:17:14 +0000
commit41893707bcb1b4d1e70b0ed3db4cfc1326afb93c (patch)
tree6e2adf2dbbaf9cc90573903837d9a3e078eed7d3 /games-kids
parentstable ppc64, bug 253354 (diff)
downloadgentoo-2-41893707bcb1b4d1e70b0ed3db4cfc1326afb93c.tar.gz
gentoo-2-41893707bcb1b4d1e70b0ed3db4cfc1326afb93c.tar.bz2
gentoo-2-41893707bcb1b4d1e70b0ed3db4cfc1326afb93c.zip
version bump
(Portage version: 2.1.6.4/cvs/Linux 2.6.27.8 i686)
Diffstat (limited to 'games-kids')
-rw-r--r--games-kids/childsplay/ChangeLog10
-rw-r--r--games-kids/childsplay/childsplay-0.90.2.ebuild137
2 files changed, 145 insertions, 2 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/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}"
+}