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

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

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

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

Legend:
Removed from v.1.5  
changed lines
  Added in v.1.11

  ViewVC Help
Powered by ViewVC 1.1.20