2016-02-27 17:41:06 +00:00
|
|
|
# Copyright 2016 Julian Ospald <hasufell@posteo.de>
|
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
|
|
|
|
MY_PN=PySolFC
|
|
|
|
|
2016-04-22 14:10:55 +00:00
|
|
|
require setup-py [ import=distutils multibuild=false blacklist=3 python_opts="[tk]" ]
|
|
|
|
require sourceforge [ project=pysolfc pnv=${MY_PN}-${PV} ]
|
|
|
|
|
2016-02-27 17:41:06 +00:00
|
|
|
SUMMARY="An exciting collection of more than 1000 solitaire card games"
|
2016-04-22 14:10:55 +00:00
|
|
|
DOWNLOADS+=" mirror://sourceforge/${PN}/${MY_PN}-Cardsets-${PV}.tar.bz2"
|
2016-02-27 17:41:06 +00:00
|
|
|
|
|
|
|
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() {
|
2016-02-28 23:05:15 +00:00
|
|
|
setup-py_src_prepare
|
2016-02-27 17:41:06 +00:00
|
|
|
|
2016-02-28 23:05:15 +00:00
|
|
|
edo sed -i \
|
|
|
|
-e "/pysol.desktop/d" \
|
|
|
|
-e "s:share/icons:share/pixmaps:" \
|
|
|
|
setup.py
|
2016-02-27 17:41:06 +00:00
|
|
|
|
2016-02-28 23:05:15 +00:00
|
|
|
edo mv docs/README{,.txt}
|
2016-02-27 17:41:06 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
src_install() {
|
|
|
|
setup-py_src_install
|
|
|
|
|
|
|
|
insinto /usr/share/${MY_PN}
|
|
|
|
doins -r "${WORKBASE}"/${MY_PN}-Cardsets-${PV}/*
|
|
|
|
|
2016-02-28 23:05:15 +00:00
|
|
|
doman docs/*.6
|
2016-02-27 17:41:06 +00:00
|
|
|
|
|
|
|
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
|
|
|
|
}
|
|
|
|
|