/[gentoo-x86]/games-arcade/tuxpuck/tuxpuck-0.8.2-r1.ebuild
Gentoo

Contents of /games-arcade/tuxpuck/tuxpuck-0.8.2-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.7 - (hide annotations) (download)
Tue Aug 2 18:12:45 2011 UTC (9 years ago) by zmedico
Branch: MAIN
Changes since 1.6: +6 -2 lines
Bug #376741 - Make unpack call compatible with both PMS and <sys-apps/portage-2.1.10.10.

(Portage version: 2.2.0_alpha49_p4/cvs/Linux i686)

1 signals 1.6 # Copyright 1999-2011 Gentoo Foundation
2 tupone 1.1 # Distributed under the terms of the GNU General Public License v2
3 zmedico 1.7 # $Header: /var/cvsroot/gentoo-x86/games-arcade/tuxpuck/tuxpuck-0.8.2-r1.ebuild,v 1.6 2011/02/25 22:00:30 signals Exp $
4 tupone 1.1
5 mr_bones_ 1.4 EAPI=2
6 tupone 1.1 inherit eutils games
7    
8     DESCRIPTION="Hover hockey"
9 nyhm 1.3 HOMEPAGE="http://home.no.net/munsuun/tuxpuck/"
10 mr_bones_ 1.4 SRC_URI="http://home.no.net/munsuun/tuxpuck/files/${P}.tar.gz"
11 tupone 1.1
12     LICENSE="GPL-2"
13     SLOT="0"
14 nyhm 1.3 KEYWORDS="alpha amd64 ppc sparc x86 ~x86-fbsd"
15 tupone 1.1 IUSE=""
16    
17 nyhm 1.3 RDEPEND="media-libs/libsdl
18 tupone 1.1 media-libs/libpng
19 signals 1.6 virtual/jpeg
20 nyhm 1.3 media-libs/libvorbis"
21     DEPEND="${RDEPEND}
22 mr_bones_ 1.4 media-libs/freetype:2"
23 tupone 1.1
24 mr_bones_ 1.4 src_prepare() {
25 zmedico 1.7 # Bug #376741 - Make unpack call compatible with both
26     # PMS and <sys-apps/portage-2.1.10.10.
27     cd man || die
28     unpack ./${PN}.6.gz
29     cd .. || die
30 mr_bones_ 1.4 sed -i \
31     -e 's/-Werror//' \
32     -e '/^CC/d' \
33     Makefile \
34     utils/Makefile \
35     data/Makefile \
36     || die "sed failed"
37 tupone 1.5 epatch "${FILESDIR}"/${P}-ldflags.patch
38 tupone 1.1 }
39    
40     src_compile() {
41 mr_bones_ 1.4 emake -C utils || die
42 tupone 1.1 # Note that the Makefiles for tuxpuck are buggy so -j1 is used.
43 mr_bones_ 1.4 emake -j1 -C data || die
44     emake || die
45 tupone 1.1 }
46    
47     src_install() {
48     dogamesbin tuxpuck || die "dogamesbin failed"
49     doman man/tuxpuck.6
50     dodoc *.txt
51     doicon data/icons/${PN}.ico
52     make_desktop_entry ${PN} "TuxPuck" /usr/share/pixmaps/${PN}.ico
53     prepgamesdirs
54     }

  ViewVC Help
Powered by ViewVC 1.1.20