diff options
author | Alfredo Tupone <tupone@gentoo.org> | 2015-02-01 17:19:25 +0000 |
---|---|---|
committer | Alfredo Tupone <tupone@gentoo.org> | 2015-02-01 17:19:25 +0000 |
commit | 3c55dd182d7174cdf93bf4d8d07dbf6fc932e084 (patch) | |
tree | 444e0d5a207ecf642734782870608d334c5c3762 /games-kids | |
parent | Version bump. Force C++98 to avoid implicitly switching to C++11. Multilib-wr... (diff) | |
download | historical-3c55dd182d7174cdf93bf4d8d07dbf6fc932e084.tar.gz historical-3c55dd182d7174cdf93bf4d8d07dbf6fc932e084.tar.bz2 historical-3c55dd182d7174cdf93bf4d8d07dbf6fc932e084.zip |
Migration to python-single-r1
Package-Manager: portage-2.2.14/cvs/Linux x86_64
Manifest-Sign-Key: 0x0145142D
Diffstat (limited to 'games-kids')
-rw-r--r-- | games-kids/childsplay/ChangeLog | 9 | ||||
-rw-r--r-- | games-kids/childsplay/Manifest | 13 | ||||
-rw-r--r-- | games-kids/childsplay/childsplay-0.90.2-r1.ebuild | 148 |
3 files changed, 167 insertions, 3 deletions
diff --git a/games-kids/childsplay/ChangeLog b/games-kids/childsplay/ChangeLog index d14c0f70b598..8c0833210cbd 100644 --- a/games-kids/childsplay/ChangeLog +++ b/games-kids/childsplay/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for games-kids/childsplay -# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/games-kids/childsplay/ChangeLog,v 1.19 2012/04/12 07:21:10 tupone Exp $ +# Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/games-kids/childsplay/ChangeLog,v 1.20 2015/02/01 17:19:16 tupone Exp $ + +*childsplay-0.90.2-r1 (01 Feb 2015) + + 01 Feb 2015; Tupone Alfredo <tupone@gentoo.org> +childsplay-0.90.2-r1.ebuild: + Migration to python-single-r1 12 Apr 2012; Tupone Alfredo <tupone@gentoo.org> childsplay-0.90.2.ebuild: Honor LINGUAS for locale files. Bug #409965 by Piotr Szymaniak diff --git a/games-kids/childsplay/Manifest b/games-kids/childsplay/Manifest index 184788bf8447..d2856392e9c0 100644 --- a/games-kids/childsplay/Manifest +++ b/games-kids/childsplay/Manifest @@ -1,8 +1,19 @@ +-----BEGIN PGP SIGNED MESSAGE----- +Hash: SHA256 + AUX childsplay 99 SHA256 d33e50603bba2e2c5808d30df79d3172ec28fb26b7a97da38d5719f5d356c990 SHA512 7bdd05a0e957ce09a00443d84332bbeb62016b1df4cc88e693f0714ce9ceae4b5acd4447745c98e75063d5010b27dfb8bbf1f93bf5c3c729ced5edbd4afdfef0 WHIRLPOOL 5d3c265e45c8773aa7d7be120bad0333590e14a3963871d494bc5b70ac60a1a31257aaf2828dd9ece862685a229e89fc6894b04bffd57d2a5bc95d8ba35cff7c AUX childsplay-0.90.2-gentoo.patch 895 SHA256 05f0510340285f04bafc2fc2fe1121643dae988ed375122616055581c29b5aa3 SHA512 77fe4151574e0b84218fa973b5f72631b378fb24892ff35902ebc88c9f7bd54129813cb2453551034f58b96bddd79c55c00a074184acf267962c2a737f4392cf WHIRLPOOL c41cc6724745e9403b5bbcbde7b77d84b279eccba40e5c6b6c7791647f271a0108a5a1cf53cfddcc7db530dbd45d62941f859891064bc1acb275b1d181aa89a4 DIST childsplay-0.90.2.tgz 2330022 SHA256 baa7c2c6168d581d546bcea3612a513268cf2e8273f2cf748df9e1559c62e054 SHA512 0cc59f893f43f47fec18a6ba04e3d5b4c4b41e6c387fcd64859a65a0660b4d1c8803cd092932fc9d24a4d4b9784d6cc62cc2efc4e841ca62a205f17aec8dec68 WHIRLPOOL 068629fe90bb1af7ca02bebd25959488c4d52a058ffc9b4fb934abfff787aa22225909437913724479ad91e80f6b60de01b3f0c3aabb5f8a97ad426ee20b846a DIST childsplay_plugins-0.90.tgz 4528735 SHA256 3eff00eb1fb20f59b503071e61ca21eaf869969bb7cdc5f644ece5f6e48664c3 SHA512 f1c47c544da364bde6023cf8450d96423d214749f800d783661b6fb16f73c8bbc899ee7f997f36e11b43aff7655332c29445f865ff22dd475ad4ce4a0557e763 WHIRLPOOL ef4ed2b666c371f306e19c5e9377c1b31bc95229ee3f1a12539dbdccc6bec333a57b63f1deb1962182c2020f7a5656a196bb5212efd4dcca5d504f8571e5c815 DIST childsplay_plugins_lfc-0.90.tgz 6159653 SHA256 629a84beb94191c786508de4476c8b7ac98b5007aa7e0d9f7d0fa4d3e43b11b2 SHA512 4fa8f59aae64520de03fd6527dbe7339f320ef377deca19fe91cf5591b364d853cfb9d73b8469417178fcf4bc074d6ed39a1704a20cb5a82657722862c749313 WHIRLPOOL d49d2c68ef94edcacb4a7aa2ca38d239558513bca2cad2a77193c6c67cd3fbdf8869cdc9a332cfae5d2753eeb5f5d0a0671f4e8687d36a969aa99d1009078c54 +EBUILD childsplay-0.90.2-r1.ebuild 4038 SHA256 203c975f8606744e9175776c6a0418735330e5b322547532015bafb2f2902bf6 SHA512 b01820b4a4a2aec5b898517377c07e02eca2ac4c9f42d7ffda641fd7cd4ce14cb576af7bf34b7c20e1bd97a1aedbe2fd5a05d46fff82e378eb56adc0416cb71b WHIRLPOOL 22e68f433c757aaee806a32305cfbde036f5e310ddf6aafb93a2e53b04ec99e244402e940be99b629206320c46fe2ca6594ca9adfdb84ae70417035d22b7d865 EBUILD childsplay-0.90.2.ebuild 4069 SHA256 b58b4e23650c1524105529f3f2b0f159058219d4ecead387be8ed3fde870fab4 SHA512 ce31cecb8a02236558e4063aa4f5f0dbc77ff42b89e428ae0cdbc94ee3d80764e632f756d1656ad06d77a34b73598d54e52f8efc174fc490f2c1f53a81c82421 WHIRLPOOL 30463b6ab3c2fd69a05d7c010bc0193be96e379404d90c0a947fcae2ee3482b6cb01536603914d5d03dcb769fc2d79e31a1181e3ca26000adab7406e7edfeba9 -MISC ChangeLog 2678 SHA256 6df115b2cc4528f2e80bb46162354fa834cc8f1e6f5e707fea1d3e7346ed9c3a SHA512 6f3557df4ee8ea5385bcf766ff4c0ce68434e2aa995ef91de3a4d6d2e6468ae1bf2dea154fa426aa4284ef784f885095b04de48c59f0c45579c5d09c627dc9db WHIRLPOOL aa554d0158e06da8cc61b5f87fec40b0e8a4b81f0553b02eabbb69c88a8d86fb74445d04ebee55ce1bdab0608b8512d8b0dad856febe57db4e647a75d64063b5 +MISC ChangeLog 2828 SHA256 31dce241416907e0470c2e11fe7ad81ceda59f72ec0e80f93d0cc5fc6e8f8e65 SHA512 1512a7230b03d5cb2e328ac3e4778903e25afb7bafca4b20b238c709f081c7c9ca97f00e82ea466d31884532bd9569021cabb3c3ceb88b9f9b431588f4b0fd16 WHIRLPOOL 7825db48f5904d4aeb4463b8201d9079272d6265e7f6351628278abac3ce2067b87ed3c775db746718a1e0828087bdea678b421f8cebb3c8dafa32c77f23da63 MISC metadata.xml 340 SHA256 a27158ca00e167722e2fbe151d58b63588863d71b2e152d491b1392d1e4704a9 SHA512 d2285d84588e6727028a951d58ba3c8de71ed93ff14d40a6c147736edde0225223a34e83fcb00d4d6bffd58aaf01a7acb5bc32fede5d9da609a9b80c9ab2f30f WHIRLPOOL 53d466ea28ed914b01cbb2ee7381d9186e19879e6d2f81ce12069df7c8fbd695e372a68451fc4d601eeb5ce97c69806de391b302dd56a0dd73fc41c84380d8ee +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v2 + +iEYEAREIAAYFAlTOYBkACgkQIY77eQFFFC1gGACbBrYi270zn1IKOYz+5kd2GNBa +6QUAoNSF5FuhQYMtzDFepfRfFHT0vWCj +=kQ19 +-----END PGP SIGNATURE----- diff --git a/games-kids/childsplay/childsplay-0.90.2-r1.ebuild b/games-kids/childsplay/childsplay-0.90.2-r1.ebuild new file mode 100644 index 000000000000..96f42041e39c --- /dev/null +++ b/games-kids/childsplay/childsplay-0.90.2-r1.ebuild @@ -0,0 +1,148 @@ +# Copyright 1999-2015 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-r1.ebuild,v 1.1 2015/02/01 17:19:16 tupone Exp $ + +EAPI=5 +PYTHON_COMPAT=( python2_7 ) +inherit eutils python-single-r1 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="${PYTHON_DEPS} + dev-python/pygame[${PYTHON_USEDEP}] + media-libs/sdl-image[gif,jpeg,png] + media-libs/sdl-ttf + media-libs/sdl-mixer[vorbis] + media-libs/libogg" +RDEPEND="${DEPEND}" +REQUIRED_USE="${PYTHON_REQUIRED_USE}" + +pkg_setup() { + python-single-r1_pkg_setup + games_pkg_setup +} + +src_prepare() { + local DIR + + # Copy the plugins into the main package. + mv ../${PN}_plugins-${PLUGINS_VERSION}/Data/AlphabetSounds Data || die + mv ../${PN}_plugins-${PLUGINS_VERSION}/add-score.py . || die + for DIR in ${PN}_plugins-${PLUGINS_VERSION} ${PN}_plugins_lfc-${PLUGINS_LFC_VERSION}; do + mv ../${DIR}/Data/*.icon.png Data/icons || die + cp -r ../${DIR}/lib/* lib || die + mv ../${DIR}/assetml/${PN}/* assetml/${PN} || die + rm -rf ../${DIR} + done + gunzip man/childsplay.6.gz + epatch "${FILESDIR}"/${P}-gentoo.patch + python_fix_shebang . +} + +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 + + if [[ ${LINGUAS+set} ]]; then + for lang in $LINGUAS; do + [[ -d locale/$lang ]] && cp -r locale/$lang "${D}/${_LOCALEDIR}" + done + else + cp -r locale/* "${D}/${_LOCALEDIR}" || die + fi + 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}" << EOF +Q +EOF + + doman man/childsplay.6 + dodoc doc/README* doc/Changelog doc/copyright + + # Make a launcher. + dogamesbin "${FILESDIR}"/childsplay + sed -i \ + -e "s:GENTOO_DIR:${_CPDIR}:" \ + -e "s:python:${PYTHON}:" \ + "${D}${GAMES_BINDIR}"/childsplay \ + || die "sed failed" + + python_optimize "${D}${_CPDIR}" + + newicon assetml/childsplay/childsplay-images/chpl-icon-48.png ${PN}.png + make_desktop_entry childsplay Childsplay + + prepgamesdirs + fperms g+w "${_SCOREFILE}" +} |