From 8376ef56580626e9c0f796d5b85b53a0a1c7d5f5 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sat, 14 Jul 2018 21:03:06 +0100 Subject: gentoo resync : 14.07.2018 --- games-kids/tuxmathscrabble/Manifest | 4 + .../files/tuxmathscrabble-0.8.1-gentoo.patch | 92 ++++++++++++++++++++++ games-kids/tuxmathscrabble/metadata.xml | 11 +++ .../tuxmathscrabble-0.8.1-r1.ebuild | 64 +++++++++++++++ 4 files changed, 171 insertions(+) create mode 100644 games-kids/tuxmathscrabble/Manifest create mode 100644 games-kids/tuxmathscrabble/files/tuxmathscrabble-0.8.1-gentoo.patch create mode 100644 games-kids/tuxmathscrabble/metadata.xml create mode 100644 games-kids/tuxmathscrabble/tuxmathscrabble-0.8.1-r1.ebuild (limited to 'games-kids/tuxmathscrabble') diff --git a/games-kids/tuxmathscrabble/Manifest b/games-kids/tuxmathscrabble/Manifest new file mode 100644 index 000000000000..7eb47af153d7 --- /dev/null +++ b/games-kids/tuxmathscrabble/Manifest @@ -0,0 +1,4 @@ +AUX tuxmathscrabble-0.8.1-gentoo.patch 2770 BLAKE2B 8d5134f7cb2285728545352bc79d240c1a5e5dcbc268fd72a3b9c7ef798997756f70387f34144ff82feed2f82f089b7035c68eb7e70fc99f0886241ac7e79be8 SHA512 11633dbaae261d007638fc7f6dd2e934654fa699d5f08d6fd01552c62de2b7e52e95ecd737920b62cbf3d289f5b8da0eeef2416a0f45d1d54a9aca4432684c4d +DIST tuxmathscrabble-0.8.1.tar.gz 9376820 BLAKE2B 40746d4e9b9ee81b09e563a522f6d1ae839a4729b7b38c9a96758553766b2597360c7391d42f09c8de494871ce086883f47186a17e9ee4b61c8a0afdc0f07b11 SHA512 70a48b078af170c4008beca495576afc6e0dd72239b2b57543a98642ee9e8d13a2ae48aa5afab77015c8c56cd9a2d80865645504a620b2e2b798ed40f653533c +EBUILD tuxmathscrabble-0.8.1-r1.ebuild 1314 BLAKE2B c890aacaf3678c71f18d1c189222486eb5c1b0ffc5436bc911f3fc2823c5003dc6d4ca6cfbdeb9ebd08f4a80a3347798f39e6f82de73779969353700cbf9464d SHA512 82134dc3fc4cafccbf9812871016971a518b1ee5f002ff3faa67fde4d7dfea596121f2a2555dc3adfbb76818b6bc1e0aba484a5a2b62b485cc1c49e59af10171 +MISC metadata.xml 344 BLAKE2B 0a845bf521bec0b1539b3397218a41a64e7d5bbd91796bfbde2cba1fcb22f2d4e50831f52a1f0ccd8b4fcf39f358668b95eee64d635c685efe69635ae2e18453 SHA512 28b2c2b0b4de1a63524eeda1048d8bf7149bfb7eec23a39e22503143c9d68f449d7e40ec60f5529ce882670875961197ccdb5d8cf49d5c099f3392877a77d64d 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 @@ + + + + + games@gentoo.org + Gentoo Games Project + + + asymptopia/tuxmathscrabble + + 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 +} -- cgit v1.2.3