/[gentoo-x86]/games-server/tetrix/tetrix-1.13.16.1.40c-r2.ebuild
Gentoo

Contents of /games-server/tetrix/tetrix-1.13.16.1.40c-r2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.13 - (show annotations) (download)
Thu Sep 2 14:33:52 2010 UTC (4 years, 3 months ago) by tupone
Branch: MAIN
CVS Tags: HEAD
Changes since 1.12: +3 -3 lines
Respecting LDFLAGS. Bug #335627
(Portage version: 2.1.8.3/cvs/Linux x86_64)

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-server/tetrix/tetrix-1.13.16.1.40c-r2.ebuild,v 1.12 2009/06/15 04:24:28 mr_bones_ Exp $
4
5 EAPI=2
6 inherit eutils toolchain-funcs games
7
8 MY_SV=${PV#*.*.*.}
9 MY_PV=${PV%.${MY_SV}}
10 MY_P="tetrinetx-${MY_PV}+qirc-${MY_SV}"
11
12 DESCRIPTION="A GNU TetriNET server"
13 HOMEPAGE="http://tetrinetx.sourceforge.net/"
14 SRC_URI="mirror://sourceforge/tetrinetx/${MY_P}.tar.gz"
15
16 LICENSE="GPL-2"
17 SLOT="0"
18 KEYWORDS="~amd64 hppa x86"
19 IUSE=""
20
21 DEPEND="net-libs/adns"
22
23 S=${WORKDIR}/${MY_P}
24
25 src_prepare() {
26 epatch "${FILESDIR}"/${P}-build.patch
27 sed -i \
28 -e "s:GENTOO_CONFDIR:${GAMES_SYSCONFDIR}/${PN}:" \
29 -e "s:GENTOO_STATEDIR:${GAMES_STATEDIR}/${PN}:" \
30 -e "s:GENTOO_LOGDIR:${GAMES_LOGDIR}:" \
31 src/config.h bin/game.conf \
32 || die "sed failed"
33 }
34
35 src_compile() {
36 cd src
37 $(tc-getCC) ${CFLAGS} ${LDFLAGS} main.c -o tetrix -ladns || die "compile failed"
38 }
39
40 src_install() {
41 dodoc AUTHORS ChangeLog README README.qirc.spectators
42
43 dogamesbin src/tetrix
44 insinto "${GAMES_SYSCONFDIR}"/${PN}
45 doins bin/*
46
47 newinitd "${FILESDIR}"/tetrix.rc tetrix
48
49 keepdir "${GAMES_STATEDIR}"/${PN}
50 dodir "${GAMES_LOGDIR}"
51 touch "${D}/${GAMES_LOGDIR}"/${PN}.log
52
53 prepgamesdirs
54 fowners ${GAMES_USER_DED}:${GAMES_GROUP} "${GAMES_STATEDIR}"/${PN}
55 fowners ${GAMES_USER_DED}:${GAMES_GROUP} "${GAMES_LOGDIR}"/${PN}.log
56 }

  ViewVC Help
Powered by ViewVC 1.1.20