From f38a6edeba18e8f1a6aae0b6ab17bed7052cd3c3 Mon Sep 17 00:00:00 2001 From: Julian Ospald Date: Sat, 27 Feb 2016 18:41:06 +0100 Subject: [PATCH] games-board/pysolfc: initial import of version 2.0 --- .../games-board/pysolfc/pysolfc-2.0.exheres-0 | 58 +++++++++++++++++++ 1 file changed, 58 insertions(+) create mode 100644 packages/games-board/pysolfc/pysolfc-2.0.exheres-0 diff --git a/packages/games-board/pysolfc/pysolfc-2.0.exheres-0 b/packages/games-board/pysolfc/pysolfc-2.0.exheres-0 new file mode 100644 index 00000000..5ab717ae --- /dev/null +++ b/packages/games-board/pysolfc/pysolfc-2.0.exheres-0 @@ -0,0 +1,58 @@ +# Copyright 2016 Julian Ospald +# Distributed under the terms of the GNU General Public License v2 + +require setup-py [ import=distutils multibuild=false blacklist=3 python_opts="[tk]" ] + +MY_PN=PySolFC + +SUMMARY="An exciting collection of more than 1000 solitaire card games" +HOMEPAGE="http://pysolfc.sourceforge.net/" +DOWNLOADS="mirror://sourceforge/${PN}/${MY_PN}-${PV}.tar.bz2 + mirror://sourceforge/${PN}/${MY_PN}-Cardsets-${PV}.tar.bz2" + +LICENCES="GPL-3" +SLOT="0" +PLATFORMS="~amd64 ~x86" +MYOPTIONS="" + +DEPENDENCIES=" + run: + dev-python/Pillow[tk][python_abis:*(-)?] + dev-python/pygame[python_abis:*(-)?] + dev-tcl/tktable +" + +WORK=${WORKBASE}/${MY_PN}-${PV} + +src_prepare() { + setup-py_src_prepare + + edo sed -i \ + -e "/pysol.desktop/d" \ + -e "s:share/icons:share/pixmaps:" \ + setup.py + + edo mv docs/README{,.txt} +} + +src_install() { + setup-py_src_install + + insinto /usr/share/${MY_PN} + doins -r "${WORKBASE}"/${MY_PN}-Cardsets-${PV}/* + + doman docs/*.6 + + insinto /usr/share/applications + hereins ${PN}.desktop << EOF +[Desktop Entry] +Name=PySol Fan Club Edition +Type=Application +Comment=${SUMMARY} +Exec=${PN}.py +TryExec=${PN}.py +Icon=pysol02 +Categories=Game;BoardGame; +EOF +} +