/[gentoo-x86]/games-puzzle/jools/jools-0.20-r2.ebuild
Gentoo

Contents of /games-puzzle/jools/jools-0.20-r2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations) (download)
Wed Jan 28 10:23:37 2015 UTC (5 years ago) by ago
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +2 -2 lines
Stable for ppc, wrt bug #534286

(Portage version: 2.2.14/cvs/Linux x86_64, RepoMan options: --include-arches="ppc", signed Manifest commit with key 7194459F)

1 # Copyright 1999-2015 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/games-puzzle/jools/jools-0.20-r2.ebuild,v 1.3 2015/01/26 09:49:38 ago Exp $
4
5 EAPI=5
6 PYTHON_COMPAT=( python2_7 )
7 inherit eutils python-single-r1 games
8
9 MUS_P=${PN}-musicpack-1.0
10 DESCRIPTION="clone of Bejeweled, a popular pattern-matching game"
11 HOMEPAGE="http://pessimization.com/software/jools/"
12 SRC_URI="http://pessimization.com/software/jools/${P}.tar.gz
13 http://pessimization.com/software/jools/${MUS_P}.tar.gz"
14
15 LICENSE="GPL-2"
16 SLOT="0"
17 KEYWORDS="amd64 ppc x86"
18 IUSE=""
19
20 DEPEND="dev-python/pygame[${PYTHON_USEDEP}]
21 ${PYTHON_DEPS}"
22 RDEPEND=${DEPEND}
23 REQUIRED_USE=${PYTHON_REQUIRED_USE}
24
25 S=${WORKDIR}/${P}/jools
26
27 pkg_setup() {
28 python-single-r1_pkg_setup
29 games_pkg_setup
30 }
31
32 src_unpack() {
33 unpack ${P}.tar.gz
34 cd "${S}"/music
35 unpack ${MUS_P}.tar.gz
36 }
37
38 src_prepare() {
39 echo "MEDIAROOT = \"${GAMES_DATADIR}/${PN}\"" > config.py
40 python_fix_shebang .
41 }
42
43 src_install() {
44 games_make_wrapper ${PN} "${EPYTHON} ./__init__.py" "$(games_get_libdir)"/${PN}
45 insinto "$(games_get_libdir)"/${PN}
46 doins *.py
47 python_optimize "${D}$(games_get_libdir)/${PN}"
48
49 insinto "${GAMES_DATADIR}"/${PN}
50 doins -r fonts images music sounds
51
52 newicon images/ruby/0001.png ${PN}.png
53 make_desktop_entry ${PN} Jools
54 dodoc ../{ChangeLog,doc/{POINTS,TODO}}
55 dohtml ../doc/manual.html
56 prepgamesdirs
57 }

  ViewVC Help
Powered by ViewVC 1.1.20