/[gentoo-x86]/games-strategy/xconq/xconq-7.4.1.ebuild
Gentoo

Contents of /games-strategy/xconq/xconq-7.4.1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.16 - (show annotations) (download)
Wed Oct 13 23:47:25 2010 UTC (4 years, 2 months ago) by mr_bones_
Branch: MAIN
CVS Tags: HEAD
Changes since 1.15: +3 -4 lines
tidy
(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-strategy/xconq/xconq-7.4.1.ebuild,v 1.15 2010/10/07 09:06:55 tupone Exp $
4
5 EAPI=2
6 inherit eutils games
7
8 DESCRIPTION="a general strategy game system"
9 HOMEPAGE="http://sources.redhat.com/xconq/"
10 SRC_URI="ftp://sources.redhat.com/pub/xconq/${P}.tar.gz"
11
12 LICENSE="GPL-2"
13 SLOT="0"
14 KEYWORDS="amd64 ppc x86"
15 IUSE=""
16 RESTRICT="test"
17
18 DEPEND="x11-libs/libXmu
19 x11-libs/libXaw
20 dev-lang/tk
21 dev-lang/tcl"
22
23 PATCHES=( "${FILESDIR}"/${PN}-gcc-3.4.patch
24 "${FILESDIR}"/${PN}-tkconq.patch
25 "${FILESDIR}"/${PN}-make-382.patch
26 )
27
28 src_configure() {
29 egamesconf \
30 --enable-alternate-scoresdir="${GAMES_STATEDIR}"/${PN}
31 }
32
33 src_compile() {
34 emake \
35 CFLAGS="${CFLAGS}" \
36 LDFLAGS="${LDFLAGS}" \
37 datadir="${GAMES_DATADIR}"/${PN} \
38 || die "emake failed"
39 }
40
41 src_install() {
42 dogamesbin x11/{imf2x,x2imf,xconq,ximfapp} || die "dogamesbin failed"
43
44 insinto "${GAMES_DATADIR}"/${PN}
45 doins -r images lib tcltk/*.tcl || die "doins failed"
46 rm -f "${D}/${GAMES_DATADIR}"/${PN}/{images,lib}/{m,M}ake*
47
48 dodir "${GAMES_STATEDIR}"/${PN}
49 touch "${D}/${GAMES_STATEDIR}"/${PN}/scores.xcq
50 fperms 660 "${GAMES_STATEDIR}"/${PN}/scores.xcq || die
51
52 doman x11/${PN}.6
53 dodoc ChangeLog NEWS README
54 prepgamesdirs
55 }

  ViewVC Help
Powered by ViewVC 1.1.20