/[gentoo-x86]/games-arcade/wop/wop-0.4.3-r1.ebuild
Gentoo

Contents of /games-arcade/wop/wop-0.4.3-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.7 - (show annotations) (download)
Mon Jan 5 20:22:22 2015 UTC (5 years, 6 months ago) by tupone
Branch: MAIN
CVS Tags: HEAD
Changes since 1.6: +8 -10 lines
EAPI 5

(Portage version: 2.2.14/cvs/Linux x86_64, signed Manifest commit with key 0145142D)

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/wop/wop-0.4.3-r1.ebuild,v 1.6 2009/01/27 14:42:16 tupone Exp $
4 EAPI=5
5 inherit eutils toolchain-funcs games
6
7 MY_DATA_V="2005-12-21"
8 MY_DATA_P="${PN}data-${MY_DATA_V}"
9 DESCRIPTION="Worms of Prey - A multi-player, real-time clone of Worms"
10 HOMEPAGE="http://wormsofprey.org/"
11 SRC_URI="http://wormsofprey.org/download/${P}-src.tar.bz2
12 http://wormsofprey.org/download/${MY_DATA_P}.tar.bz2"
13
14 LICENSE="GPL-2"
15 SLOT="0"
16 KEYWORDS="amd64 x86 ~x86-fbsd"
17 IUSE=""
18
19 RDEPEND="media-libs/libsdl
20 media-libs/sdl-net
21 media-libs/sdl-image
22 media-libs/sdl-mixer
23 media-libs/sdl-ttf"
24 DEPEND="${RDEPEND}
25 x11-misc/makedepend"
26
27 MY_DATA_S=${WORKDIR}/${MY_DATA_P}
28
29 src_prepare() {
30 # correct path to global woprc
31 sed -i \
32 -e "s:/etc/woprc:${GAMES_SYSCONFDIR}/woprc:g" \
33 src/wopsettings.cpp \
34 || die "sed failed"
35 # patch global woprc with the correct data files location and install it
36 sed -i \
37 -e "s:^data =.*$:data = ${GAMES_DATADIR}/${PN}:" \
38 woprc \
39 || die "sed failed"
40 epatch "${FILESDIR}"/${P}-Makefile.patch \
41 "${FILESDIR}"/${P}-gcc43.patch
42 }
43
44 src_compile() {
45 emake CXX=$(tc-getCXX)
46 }
47
48 src_install() {
49 dogamesbin bin/${PN}
50 insinto "${GAMES_DATADIR}"/${PN}
51 doins -r "${MY_DATA_S}"/*
52 insinto "${GAMES_SYSCONFDIR}"
53 doins woprc
54 newicon "${MY_DATA_S}"/images/misc/icons/wop16.png ${PN}.png
55 make_desktop_entry wop "Worms of Prey"
56 dodoc AUTHORS ChangeLog README{,-Libraries.txt} REVIEWS
57 prepgamesdirs
58 }

  ViewVC Help
Powered by ViewVC 1.1.20