/[gentoo-x86]/games-util/uglygs/uglygs-0_rc11.ebuild
Gentoo

Contents of /games-util/uglygs/uglygs-0_rc11.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.12 - (show annotations) (download)
Fri May 28 08:18:36 2010 UTC (4 years, 11 months ago) by tupone
Branch: MAIN
Changes since 1.11: +7 -3 lines
Fix installing. Bug #315597
(Portage version: 2.1.8.3/cvs/Linux i686)

1 # Copyright 1999-2010 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/games-util/uglygs/uglygs-0_rc11.ebuild,v 1.11 2009/07/08 21:27:55 mr_bones_ Exp $
4
5 EAPI=2
6 inherit eutils games
7
8 MY_P=${P/0_/}
9 DESCRIPTION="quickly searches the network for game servers"
10 HOMEPAGE="http://uglygs.uglypunk.com/"
11 SRC_URI="ftp://ftp.uglypunk.com/uglygs/current/${MY_P}.tar.gz"
12
13 LICENSE="GPL-2"
14 SLOT="0"
15 KEYWORDS="alpha hppa ppc sparc x86"
16 IUSE=""
17
18 RDEPEND="net-analyzer/rrdtool
19 dev-lang/perl"
20
21 S=${WORKDIR}/${MY_P}
22
23 src_prepare() {
24 epatch "${FILESDIR}"/${PV}-uglygs.conf.patch
25 sed -i \
26 -e "s:GENTOO_DIR:$(games_get_libdir)/${PN}:" uglygs.conf \
27 || die "sed failed"
28 epatch "${FILESDIR}"/${PV}-uglygs.pl.patch
29 sed -i \
30 -e "s:GENTOO_DIR:${GAMES_SYSCONFDIR}:" uglygs.pl \
31 || die "sed failed"
32 sed -i \
33 -e "s/strndup/${PN}_strndup/" qstat/qstat.c \
34 || die "sed failed"
35 }
36
37 src_compile() {
38 emake -C qstat CFLAGS="${CFLAGS}" || die "emake failed"
39 }
40
41 src_install() {
42 insinto "${GAMES_SYSCONFDIR}"
43 doins uglygs.conf qstat/qstat.cfg || die "doins failed"
44
45 dogamesbin uglygs.pl || die "dogamesbin failed"
46
47 insinto "$(games_get_libdir)"/${PN}
48 doins -r data templates tmp || die "doins failed"
49 insinto "$(games_get_libdir)"/${PN}/images
50 doins -r images/{avp2,bds,default.gif,hls,j2s,mhs,q3s,rws,sf2s,uns,vcs} \
51 || die "doins failed"
52 dosym bds "$(games_get_libdir)"/${PN}/images/bdl
53 keepdir "$(games_get_libdir)"/${PN}/tmp
54
55 exeinto "$(games_get_libdir)"/${PN}
56 doexe qstat/qstat || die "doexe failed"
57
58 dodoc CHANGES README
59
60 prepgamesdirs
61 }
62
63 pkg_postinst() {
64 games_pkg_postinst
65 elog "Dont forget to setup ${GAMES_SYSCONFDIR}/uglygs.conf and ${GAMES_SYSCONFDIR}/qstat.cfg"
66 }

  ViewVC Help
Powered by ViewVC 1.1.20