blob: 227e0b4a9755db055e0ad9e71c13e81f7a4b3e99 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
|
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/games-board/pysol/pysol-4.82-r1.ebuild,v 1.4 2005/07/06 05:38:52 mr_bones_ Exp $
inherit games python eutils
DESCRIPTION="An exciting collection of more than 200 solitaire card games"
HOMEPAGE="http://www.pysol.org/"
SRC_URI="mirror://gentoo/${P}.tar.bz2
http://www.pysol.org/download/pysol/${P}-src.tar.bz2"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~x86"
IUSE=""
DEPEND="virtual/python"
RDEPEND="virtual/python
>=games-board/pysol-sound-server-3.0
>=dev-lang/tk-8.0"
pkg_setup() {
python_tkinter_exists
games_pkg_setup
}
src_unpack() {
unpack ${A}
cd "${S}"
rm -f Makefile data/*.pyc
epatch "${FILESDIR}"/${P}-sound-ok.patch #94234
}
src_install() {
insinto "${GAMES_LIBDIR}"/${PN}
doins -r src/* || die "src failed"
fperms 750 "${GAMES_LIBDIR}"/${PN}/pysol.py
games_make_wrapper ${PN} "${GAMES_LIBDIR}"/${PN}/pysol.py
insinto "${GAMES_DATADIR}"/${PN}
doins -r data/* || die "data failed"
make_desktop_entry pysol PySol "${GAMES_DATADIR}"/${PN}/pysol.xpm
doman pysol.6
dodoc NEWS README
prepgamesdirs
}
pkg_postinst() {
games_pkg_postinst
python_mod_optimize "${GAMES_LIBDIR}"/${PN}
}
pkg_postrm() {
python_mod_cleanup "${GAMES_LIBDIR}"/${PN}
}
|