Gentoo Archives: gentoo-commits

From: "Julian Ospald (hasufell)" <hasufell@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in games-strategy/liquidwar6: liquidwar6-0.4.3681.ebuild ChangeLog
Date: Thu, 27 Mar 2014 22:11:51
Message-Id: 20140327221144.B34F22004F@flycatcher.gentoo.org
1 hasufell 14/03/27 22:11:44
2
3 Modified: ChangeLog
4 Added: liquidwar6-0.4.3681.ebuild
5 Log:
6 version bump
7
8 (Portage version: 2.2.9-r1/cvs/Linux x86_64, signed Manifest commit with key BDEED020)
9
10 Revision Changes Path
11 1.4 games-strategy/liquidwar6/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-strategy/liquidwar6/ChangeLog?rev=1.4&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-strategy/liquidwar6/ChangeLog?rev=1.4&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-strategy/liquidwar6/ChangeLog?r1=1.3&r2=1.4
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/games-strategy/liquidwar6/ChangeLog,v
20 retrieving revision 1.3
21 retrieving revision 1.4
22 diff -u -r1.3 -r1.4
23 --- ChangeLog 8 Jan 2014 16:53:56 -0000 1.3
24 +++ ChangeLog 27 Mar 2014 22:11:44 -0000 1.4
25 @@ -1,6 +1,11 @@
26 # ChangeLog for games-strategy/liquidwar6
27 # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/games-strategy/liquidwar6/ChangeLog,v 1.3 2014/01/08 16:53:56 hasufell Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/games-strategy/liquidwar6/ChangeLog,v 1.4 2014/03/27 22:11:44 hasufell Exp $
30 +
31 +*liquidwar6-0.4.3681 (27 Mar 2014)
32 +
33 + 27 Mar 2014; Julian Ospald <hasufell@g.o> +liquidwar6-0.4.3681.ebuild:
34 + version bump
35
36 *liquidwar6-0.2.3551 (08 Jan 2014)
37
38
39
40
41 1.1 games-strategy/liquidwar6/liquidwar6-0.4.3681.ebuild
42
43 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-strategy/liquidwar6/liquidwar6-0.4.3681.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-strategy/liquidwar6/liquidwar6-0.4.3681.ebuild?rev=1.1&content-type=text/plain
45
46 Index: liquidwar6-0.4.3681.ebuild
47 ===================================================================
48 # Copyright 1999-2014 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/games-strategy/liquidwar6/liquidwar6-0.4.3681.ebuild,v 1.1 2014/03/27 22:11:44 hasufell Exp $
51
52 EAPI=5
53
54 inherit autotools eutils toolchain-funcs games
55
56 MY_PV=${PV/_beta/beta}
57 MY_P=${PN}-${MY_PV}
58
59 DESCRIPTION="Unique multiplayer wargame between liquids"
60 HOMEPAGE="http://www.gnu.org/software/liquidwar6/"
61 SRC_URI="http://www.ufoot.org/download/liquidwar/v6/${MY_PV}/${MY_P}.tar.gz
62 maps? ( http://www.ufoot.org/download/liquidwar/v6/${MY_PV}/${PN}-extra-maps-${MY_PV}.tar.gz )"
63
64 LICENSE="GPL-3+"
65 SLOT="0"
66 KEYWORDS="~amd64 ~x86"
67 IUSE="doc gles2 gtk libcaca +maps nls +ogg openmp readline test"
68
69 # yes, cunit is rdep
70 RDEPEND="dev-db/sqlite:3
71 dev-libs/expat
72 dev-scheme/guile
73 dev-util/cunit
74 media-libs/freetype:2
75 media-libs/libpng:0
76 media-libs/libsdl[X,opengl,video]
77 media-libs/sdl-image[jpeg,png]
78 media-libs/sdl-ttf
79 net-misc/curl
80 sys-devel/libtool:2
81 sys-libs/zlib
82 virtual/glu
83 virtual/jpeg
84 virtual/opengl
85 libcaca? ( media-libs/libcaca )
86 gles2? ( media-libs/mesa[gles2] )
87 gtk? ( x11-libs/gtk+:2 )
88 nls? ( virtual/libintl
89 virtual/libiconv )
90 ogg? (
91 media-libs/libsdl[X,audio,opengl,video]
92 media-libs/sdl-mixer[vorbis]
93 )
94 readline? ( sys-libs/ncurses
95 sys-libs/readline )"
96 DEPEND="${RDEPEND}
97 dev-lang/perl
98 nls? ( sys-devel/gettext )"
99
100 S=${WORKDIR}/${MY_P}
101 S_MAPS=${WORKDIR}/${PN}-extra-maps-${MY_PV}
102
103 pkg_setup() {
104 if use openmp; then
105 if [[ $(tc-getCC) == *gcc ]] && ! tc-has-openmp ; then
106 ewarn "OpenMP is not available in your current selected gcc"
107 die "need openmp capable gcc"
108 fi
109 fi
110 games_pkg_setup
111 }
112
113 src_prepare() {
114 epatch "${FILESDIR}"/${PN}-0.2.3551-{ldconfig,paths}.patch
115
116 sed -i \
117 -e 's/-Werror//' \
118 configure.ac || die
119 eautoreconf
120 }
121
122 src_configure() {
123 # configure fails with cunit disabled
124 egamesconf \
125 $(use_enable nls) \
126 --enable-cunit \
127 $(use_enable gtk) \
128 --enable-mod-gl1 \
129 $(use_enable gles2 mod-gles2) \
130 $(use_enable libcaca mod-caca) \
131 $(use_enable openmp) \
132 $(use_enable ogg mod-ogg) \
133 $(use_enable !ogg silent) \
134 $(use_enable readline console) \
135 --disable-static \
136 --datarootdir=/usr/share \
137 --mandir=/usr/share/man \
138 --docdir=/usr/share/doc/${PF} \
139 --htmldir=/usr/share/doc/${PF}/html
140
141 if use maps; then
142 cd "${S_MAPS}" || die
143 egamesconf
144 fi
145 }
146
147 src_compile() {
148 default
149 use doc && emake html
150 use maps && emake -C "${S_MAPS}"
151 }
152
153 src_install() {
154 emake DESTDIR="${D}" install
155 use maps && emake -C "${S_MAPS}" DESTDIR="${D}" install
156 prune_libtool_files --all
157 prepgamesdirs
158 }