diff options
Diffstat (limited to 'games-kids/tuxmathscrabble')
5 files changed, 235 insertions, 0 deletions
diff --git a/games-kids/tuxmathscrabble/Manifest b/games-kids/tuxmathscrabble/Manifest new file mode 100644 index 000000000000..322c3110c912 --- /dev/null +++ b/games-kids/tuxmathscrabble/Manifest @@ -0,0 +1,7 @@ +AUX tuxmathscrabble-0.8.1-gentoo.patch 2770 SHA256 49d6b6916a920160e32829a4fdb6c100e65d3254089039fde06dae52ff8ddb24 SHA512 11633dbaae261d007638fc7f6dd2e934654fa699d5f08d6fd01552c62de2b7e52e95ecd737920b62cbf3d289f5b8da0eeef2416a0f45d1d54a9aca4432684c4d WHIRLPOOL 15b22cfdd83ddc80cdd6067037e2b3a6ff048e7266088efb6cafccd24bcfe32aed3fc7d802662a17c869d8e3952b07a819b365ebc6d6c80da8f7543cbfe4d6b8 +DIST tuxmathscrabble-0.8.1.tar.gz 9376820 SHA256 6cce0ecc9d30decf11cdf746e8c3dad4527022878b2efba433563b1ca0d28c92 SHA512 70a48b078af170c4008beca495576afc6e0dd72239b2b57543a98642ee9e8d13a2ae48aa5afab77015c8c56cd9a2d80865645504a620b2e2b798ed40f653533c WHIRLPOOL 2e5e35803b08e035bed343b66ca12bdd2d0bea09643885ec129acc6206203ac599a6cb6e85ce4a1772120f9898a418a68fdb64af4486e5b743750134833cc330 +EBUILD tuxmathscrabble-0.8.1-r1.ebuild 1314 SHA256 dbdd41d9084745cb7557b5dc2172ce147561a981d9c3cc7bf50441c430b1995a SHA512 82134dc3fc4cafccbf9812871016971a518b1ee5f002ff3faa67fde4d7dfea596121f2a2555dc3adfbb76818b6bc1e0aba484a5a2b62b485cc1c49e59af10171 WHIRLPOOL 9c647318cc1a0f32ee684738898e0a31e58ce12886708803afa96d1bd0fa49b6b810510575d6a9e69dbe014627c046515770ab84e0b490952f7f2d5b1dde35d5 +EBUILD tuxmathscrabble-0.8.1.ebuild 1353 SHA256 032535cfb3a309b51cffcbf6aa3e9fadba2dca4f4c3319a754e8c05c9d2fc6d1 SHA512 74bae61d7320071a5352d298033ab78e35038fe0357f91a85739c558c480c7e593bf43215afb680efd3821405ca73c5c7eb4d644127ce595b61f85400bbd09a5 WHIRLPOOL b42500519e56a0de67e5d6d8a4b56a9870ffde0a7ad6f79af9f6503124af489c6aec397aed3b64ec0d093ae2cb723f3939eaa9d54e6ec552c773187a03992c5d +MISC ChangeLog 2810 SHA256 b12ea8e1cc0ab664553d4b19eacc8bf1d7fc1e5d0cff4ecb480b4799875417ad SHA512 79bc96b1926ccc07cf6c7d526f356573ccf5ba0ff8ce4bdfdf3ddb25710d7066ea31aa54935994cfb166e662c78e4c95b707d545e01c58f4490257e703136fd8 WHIRLPOOL 3a2b1bd055b7d73350f3904f8d14bb8452d5611178025c0a7c56874dc99e657f0ae524e2d153643b6a7ec931bfbc1638d16c7281d667dc46c4ab6bb9193b920d +MISC ChangeLog-2015 3795 SHA256 a5e356d046738d2b8cf882912efc80cdcf6efe6f88797da5f96f5c198a1975ad SHA512 ec04482523e86f26b6e12ca731eefbcbf2d0611f5408c372d1494c8f0c16fb0e0da7f59c08486a99d1eacdc2cb703b90049f5628f648e60c4869c91038d48f1b WHIRLPOOL 98c0bc4a165639f1d4e3bfd85f256b81c343151b420aefc3b9605a8a1c815068a67664d9bb9c4ea9ba4d5d93d944871be4606ed74a768d5458bb10c01db6a0f4 +MISC metadata.xml 344 SHA256 546dfb13a9dc656ca544c237d5e06cc0c13184451f0a4408c1ca7b1cd770c9f2 SHA512 28b2c2b0b4de1a63524eeda1048d8bf7149bfb7eec23a39e22503143c9d68f449d7e40ec60f5529ce882670875961197ccdb5d8cf49d5c099f3392877a77d64d WHIRLPOOL 56ab15bcfaa41365f6d7f572160f3133351a3456de4f75324e8888aebda49719cfa00dfdcc3bc66fdebb11ee7e104ff59c6cbd37f211ead13f285a89514efee1 diff --git a/games-kids/tuxmathscrabble/files/tuxmathscrabble-0.8.1-gentoo.patch b/games-kids/tuxmathscrabble/files/tuxmathscrabble-0.8.1-gentoo.patch new file mode 100644 index 000000000000..0e104f2f586f --- /dev/null +++ b/games-kids/tuxmathscrabble/files/tuxmathscrabble-0.8.1-gentoo.patch @@ -0,0 +1,92 @@ +--- a/TuxMathScrabble/tms.py 2015-02-02 22:19:30.894373011 +0100 ++++ b/TuxMathScrabble/tms.py 2015-02-02 22:20:19.530320947 +0100 +@@ -1258,7 +1258,7 @@ + if not os.path.exists(infname): + + master_fname=os.path.join(self.env.fontdir,'.tms_config_master') +- candidate=os.path.join('/','usr','share','games','tuxmathscrabble','.tms_config_master') ++ candidate=os.path.join('@GENTOO_DATADIR@','.tms_config_master') + if os.path.exists(candidate): + master_fname=candidate + +--- a/.tms_config_master 2015-02-02 22:21:59.655216399 +0100 ++++ b/.tms_config_master 2015-02-02 22:25:33.754003432 +0100 +@@ -380,66 +380,66 @@ + 'wtype':'wx.SpinCtrl', + }, + 'FONT_APPNAME':{ +- 'default_path':'./Font', ++ 'default_path':'@GENTOO_DATADIR@/Font', + 'default_value':'mickey.ttf', + 'descr':'', + 'dtype':'wx.String', +- 'path':'./Font', ++ 'path':'@GENTOO_DATADIR@/Font', + 'showme':-1, + 'tooltip':'Font to be used for application name overlay.', + 'value':'mickey.ttf', + 'wtype':'wx.FileDialog', + }, + 'FONT_BFONT':{ +- 'default_path':'./Font', ++ 'default_path':'@GENTOO_DATADIR@/Font', + 'default_value':'Bluehigh.ttf', + 'descr':'', + 'dtype':'wx.String', +- 'path':'./Font', ++ 'path':'@GENTOO_DATADIR@/Font', + 'showme':0, + 'tooltip':'Button Font', + 'value':'Bluehigh.ttf', + 'wtype':'wx.FileDialog', + }, + 'FONT_CFONT':{ +- 'default_path':'./Font', ++ 'default_path':'@GENTOO_DATADIR@/Font', + 'default_value':'arialbd.ttf', + 'descr':'', + 'dtype':'wx.String', +- 'path':'./Font', ++ 'path':'@GENTOO_DATADIR@/Font', + 'showme':0, + 'tooltip':'Character font used for tile characters', + 'value':'arialbd.ttf', + 'wtype':'wx.FileDialog', + }, + 'FONT_HUD':{ +- 'default_path':'./Font', ++ 'default_path':'@GENTOO_DATADIR@/Font', + 'default_value':'aqua_pfont.ttf', + 'descr':'', + 'dtype':'wx.String', +- 'path':'./Font', ++ 'path':'@GENTOO_DATADIR@/Font', + 'showme':0, + 'tooltip':'The default font to be used for other overlay information (credits, etc).', + 'value':'aqua_pfont.ttf', + 'wtype':'wx.FileDialog', + }, + 'FONT_OVERLAY':{ +- 'default_path':'./Font', ++ 'default_path':'@GENTOO_DATADIR@/Font', + 'default_value':'arial.ttf', + 'descr':'', + 'dtype':'wx.String', +- 'path':'./Font', ++ 'path':'@GENTOO_DATADIR@/Font', + 'showme':0, + 'tooltip':'The default font to be used for other overlay information (credits, etc).', + 'value':'arial.ttf', + 'wtype':'wx.FileDialog', + }, + 'FONT_PFONT':{ +- 'default_path':'./Font', ++ 'default_path':'@GENTOO_DATADIR@/Font', + 'default_value':'Bluehigh.ttf', + 'descr':'', + 'dtype':'wx.String', +- 'path':'./Font', ++ 'path':'@GENTOO_DATADIR@/Font', + 'showme':0, + 'tooltip':'Point value font (ie lower right corner of tiles)', + 'value':'Bluehigh.ttf', diff --git a/games-kids/tuxmathscrabble/metadata.xml b/games-kids/tuxmathscrabble/metadata.xml new file mode 100644 index 000000000000..bc7656e3fc1e --- /dev/null +++ b/games-kids/tuxmathscrabble/metadata.xml @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>games@gentoo.org</email> + <name>Gentoo Games Project</name> + </maintainer> + <upstream> + <remote-id type="github">asymptopia/tuxmathscrabble</remote-id> + </upstream> +</pkgmetadata> diff --git a/games-kids/tuxmathscrabble/tuxmathscrabble-0.8.1-r1.ebuild b/games-kids/tuxmathscrabble/tuxmathscrabble-0.8.1-r1.ebuild new file mode 100644 index 000000000000..53a209e1052b --- /dev/null +++ b/games-kids/tuxmathscrabble/tuxmathscrabble-0.8.1-r1.ebuild @@ -0,0 +1,64 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +PYTHON_COMPAT=( python2_7 ) +inherit eutils python-single-r1 multilib + +MY_PN=TuxMathScrabble +DESCRIPTION="math-version of the popular board game for children 4-10" +HOMEPAGE="http://www.asymptopia.org/" +SRC_URI="https://github.com/asymptopia/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +CDEPEND="${PYTHON_DEPS} + dev-python/wxpython[${PYTHON_USEDEP}]" +DEPEND="${CDEPEND} + app-arch/unzip" +RDEPEND="${CDEPEND} + dev-python/pygame[${PYTHON_USEDEP}]" +REQUIRED_USE="${PYTHON_REQUIRED_USE}" + +pkg_setup() { + python-single-r1_pkg_setup +} + +PATCHES=( + "${FILESDIR}"/${P}-gentoo.patch +) + +src_prepare() { + default + + rm -f $(find . -name '*.pyc') + sed -i \ + -e "s:@GENTOO_DATADIR@:/usr/share/${MY_PN}:" \ + ${MY_PN}/tms.py \ + .tms_config_master \ + || die "sed failed" + sed -i \ + -e "s:python2.7-32:python:g" \ + ${PN}.py || die "2nd sed failed" + python_fix_shebang . +} + +src_install() { + newbin ${PN}.py ${PN} + + insinto $(python_get_sitedir) + doins -r ${MY_PN} + + insinto /usr/share/${MY_PN} + doins -r .tms_config_master Font + + python_optimize + + newicon tms.ico ${PN}.ico + make_desktop_entry ${PN} ${PN} /usr/share/pixmaps/${PN}.ico + + dodoc CHANGES README +} diff --git a/games-kids/tuxmathscrabble/tuxmathscrabble-0.8.1.ebuild b/games-kids/tuxmathscrabble/tuxmathscrabble-0.8.1.ebuild new file mode 100644 index 000000000000..422b77992538 --- /dev/null +++ b/games-kids/tuxmathscrabble/tuxmathscrabble-0.8.1.ebuild @@ -0,0 +1,61 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 +PYTHON_COMPAT=( python2_7 ) +inherit eutils python-single-r1 multilib games + +MY_PN=TuxMathScrabble +DESCRIPTION="math-version of the popular board game for children 4-10" +HOMEPAGE="http://www.asymptopia.org/" +SRC_URI="https://github.com/asymptopia/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="" + +CDEPEND="${PYTHON_DEPS} + dev-python/wxpython[${PYTHON_USEDEP}]" +DEPEND="${CDEPEND} + app-arch/unzip" +RDEPEND="${CDEPEND} + dev-python/pygame[${PYTHON_USEDEP}]" +REQUIRED_USE="${PYTHON_REQUIRED_USE}" + +pkg_setup() { + python-single-r1_pkg_setup + games_pkg_setup +} + +src_prepare() { + rm -f $(find . -name '*.pyc') + epatch "${FILESDIR}"/${P}-gentoo.patch + sed -i \ + -e "s:@GENTOO_DATADIR@:${GAMES_DATADIR}/${MY_PN}:" \ + ${MY_PN}/tms.py \ + .tms_config_master \ + || die "sed failed" + sed -i \ + -e "s:python2.7-32:python:g" \ + ${PN}.py || die "2nd sed failed" + python_fix_shebang . +} + +src_install() { + newgamesbin ${PN}.py ${PN} + + insinto $(python_get_sitedir) + doins -r ${MY_PN} + + insinto "${GAMES_DATADIR}"/${MY_PN} + doins -r .tms_config_master Font + + python_optimize + + newicon tms.ico ${PN}.ico + make_desktop_entry ${PN} ${PN} /usr/share/pixmaps/${PN}.ico + + dodoc CHANGES README + prepgamesdirs +} |