/[gentoo-x86]/games-arcade/bub-n-bros/bub-n-bros-1.6.2.ebuild
Gentoo

Contents of /games-arcade/bub-n-bros/bub-n-bros-1.6.2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (show annotations) (download)
Sat Feb 21 12:20:44 2015 UTC (5 years, 4 months ago) by ago
Branch: MAIN
CVS Tags: HEAD
Changes since 1.4: +2 -2 lines
Stable for ppc, wrt bug #538878

(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-arcade/bub-n-bros/bub-n-bros-1.6.2.ebuild,v 1.4 2015/02/10 10:03:30 ago Exp $
4
5 EAPI=5
6 PYTHON_COMPAT=( python2_7 )
7 inherit eutils python-single-r1 games
8
9 MY_P=${P/-n-}
10 DESCRIPTION="A multiplayer clone of the famous Bubble Bobble game"
11 HOMEPAGE="http://bub-n-bros.sourceforge.net/"
12 SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz"
13
14 LICENSE="MIT Artistic-2"
15 SLOT="0"
16 KEYWORDS="~alpha amd64 ppc ~sparc x86 ~x86-fbsd"
17 IUSE=""
18
19 DEPEND="dev-python/pygame[${PYTHON_USEDEP}]
20 ${PYTHON_DEPS}"
21 RDEPEND=${DEPEND}
22
23 REQUIRED_USE=${PYTHON_REQUIRED_USE}
24
25 S=${WORKDIR}/${MY_P}
26
27 pkg_setup() {
28 python-single-r1_pkg_setup
29 games_pkg_setup
30 }
31
32 src_prepare() {
33 ecvs_clean
34 epatch "${FILESDIR}"/${P}-home.patch
35 python_fix_shebang .
36 }
37
38 src_compile() {
39 # Compile the "statesaver" extension module to enable the Clock bonus
40 cd "${S}"/bubbob
41 ${EPYTHON} setup.py build_ext -i || die
42
43 # Compile the extension module required for the X Window client
44 cd "${S}"/display
45 ${EPYTHON} setup.py build_ext -i || die
46
47 # Build images
48 cd "${S}"/bubbob/images
49 ${EPYTHON} buildcolors.py || die
50 }
51
52 src_install() {
53 local dir=$(games_get_libdir)/${PN}
54
55 exeinto "${dir}"
56 doexe *.py
57
58 insinto "${dir}"
59 doins -r bubbob common display java http2 metaserver
60
61 dodir "${GAMES_BINDIR}"
62 dosym "${dir}"/BubBob.py "${GAMES_BINDIR}"/bubnbros
63
64 python_optimize "${D}${dir}"
65
66 newicon http2/data/bob.png ${PN}.png
67 make_desktop_entry bubnbros Bub-n-Bros
68
69 prepgamesdirs
70 }

  ViewVC Help
Powered by ViewVC 1.1.20