/[gentoo-x86]/games-strategy/asc/asc-2.5.0.0.ebuild
Gentoo

Contents of /games-strategy/asc/asc-2.5.0.0.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (hide annotations) (download)
Tue Oct 30 15:07:24 2012 UTC (20 months, 1 week ago) by tupone
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +7 -8 lines
Fix build with gcc-4.7 Bug #423377

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

1 mr_bones_ 1.1 # Copyright 1999-2012 Gentoo Foundation
2     # Distributed under the terms of the GNU General Public License v2
3 tupone 1.4 # $Header: /var/cvsroot/gentoo-x86/games-strategy/asc/asc-2.5.0.0.ebuild,v 1.3 2012/06/22 07:45:30 jdhore Exp $
4 mr_bones_ 1.1
5 tupone 1.4 EAPI=4
6 mr_bones_ 1.1 WX_GTK_VER=2.8
7 tupone 1.4 inherit eutils toolchain-funcs flag-o-matic wxwidgets games
8 mr_bones_ 1.1
9     DESCRIPTION="turn based strategy game designed in the tradition of the Battle Isle series"
10     HOMEPAGE="http://www.asc-hq.org/"
11     SRC_URI="mirror://sourceforge/asc-hq/${P}.tar.bz2
12     http://www.asc-hq.org/music/frontiers.ogg
13     http://www.asc-hq.org/music/time_to_strike.ogg
14     http://www.asc-hq.org/music/machine_wars.ogg"
15    
16     LICENSE="GPL-2"
17     SLOT="0"
18 jdhore 1.3 KEYWORDS="amd64 x86"
19 mr_bones_ 1.1 IUSE=""
20    
21     RDEPEND="app-arch/bzip2
22     media-libs/libsdl
23     media-libs/libpng
24     media-libs/sdl-image[gif,jpeg,png]
25     media-libs/sdl-mixer[vorbis]
26     media-libs/sdl-sound
27     dev-libs/boost
28     dev-games/physfs
29     media-libs/xvid
30     dev-libs/expat
31     media-libs/freetype
32     dev-lang/lua
33     x11-libs/wxGTK:2.8[X]
34     dev-libs/libsigc++:1.2"
35 tupone 1.4
36 mr_bones_ 1.1 DEPEND="${RDEPEND}
37     dev-lang/perl
38     virtual/pkgconfig
39     app-arch/zip"
40    
41 tupone 1.4 PATCHES=( "${FILESDIR}"/${P}-gcc47.patch )
42    
43 mr_bones_ 1.1 src_unpack() {
44     local f
45    
46     unpack ${P}.tar.bz2
47     for f in ${A}
48     do
49     case ${f} in
50     *ogg)
51     cp "${DISTDIR}/${f}" "${S}/data/music" || die "cp music failed"
52     ;;
53     esac
54     done
55     }
56    
57     src_configure() {
58     # Added --disable-paraguitest for bugs 26402 and 4488
59     # Added --disable-paragui for bug 61154 since it's not really used much
60     # and the case is well documented at http://www.asc-hq.org/
61     if [[ $(gcc-major-version) -eq 4 ]] ; then
62     replace-flags -O3 -O2
63     fi
64     egamesconf \
65     --disable-paraguitest \
66     --disable-paragui \
67     --datadir="${GAMES_DATADIR_BASE}"
68     }
69    
70     src_install() {
71 tupone 1.4 default
72 mr_bones_ 1.1 dohtml -r doc/*
73     prepgamesdirs
74     }

  ViewVC Help
Powered by ViewVC 1.1.20