Gentoo Archives: gentoo-commits

From: "Michael Sterrett (mr_bones_)" <mr_bones_@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in games-strategy/freeciv: ChangeLog freeciv-2.2.4.ebuild
Date: Wed, 05 Jan 2011 23:27:56
Message-Id: 20110105232702.3865B2004E@flycatcher.gentoo.org
1 mr_bones_ 11/01/05 23:27:02
2
3 Modified: ChangeLog
4 Added: freeciv-2.2.4.ebuild
5 Log:
6 version bump
7
8 (Portage version: 2.1.9.25/cvs/Linux i686)
9
10 Revision Changes Path
11 1.124 games-strategy/freeciv/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-strategy/freeciv/ChangeLog?rev=1.124&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-strategy/freeciv/ChangeLog?rev=1.124&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-strategy/freeciv/ChangeLog?r1=1.123&r2=1.124
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/games-strategy/freeciv/ChangeLog,v
20 retrieving revision 1.123
21 retrieving revision 1.124
22 diff -u -r1.123 -r1.124
23 --- ChangeLog 1 Nov 2010 18:38:09 -0000 1.123
24 +++ ChangeLog 5 Jan 2011 23:27:01 -0000 1.124
25 @@ -1,6 +1,12 @@
26 # ChangeLog for games-strategy/freeciv
27 -# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/games-strategy/freeciv/ChangeLog,v 1.123 2010/11/01 18:38:09 hwoarang Exp $
29 +# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
30 +# $Header: /var/cvsroot/gentoo-x86/games-strategy/freeciv/ChangeLog,v 1.124 2011/01/05 23:27:01 mr_bones_ Exp $
31 +
32 +*freeciv-2.2.4 (05 Jan 2011)
33 +
34 + 05 Jan 2011; Michael Sterrett <mr_bones_@g.o>
35 + +freeciv-2.2.4.ebuild, +files/freeciv-2.2.4-clean-man.patch:
36 + version bump
37
38 01 Nov 2010; Markos Chandras <hwoarang@g.o> freeciv-2.2.1.ebuild,
39 freeciv-2.2.2.ebuild, freeciv-2.2.3.ebuild:
40
41
42
43 1.1 games-strategy/freeciv/freeciv-2.2.4.ebuild
44
45 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-strategy/freeciv/freeciv-2.2.4.ebuild?rev=1.1&view=markup
46 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-strategy/freeciv/freeciv-2.2.4.ebuild?rev=1.1&content-type=text/plain
47
48 Index: freeciv-2.2.4.ebuild
49 ===================================================================
50 # Copyright 1999-2011 Gentoo Foundation
51 # Distributed under the terms of the GNU General Public License v2
52 # $Header: /var/cvsroot/gentoo-x86/games-strategy/freeciv/freeciv-2.2.4.ebuild,v 1.1 2011/01/05 23:27:01 mr_bones_ Exp $
53
54 EAPI=2
55 inherit eutils gnome2-utils games-ggz games
56
57 DESCRIPTION="multiplayer strategy game (Civilization Clone)"
58 HOMEPAGE="http://www.freeciv.org/"
59 SRC_URI="mirror://sourceforge/freeciv/${P}.tar.bz2"
60
61 LICENSE="GPL-2"
62 SLOT="0"
63 KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
64 IUSE="auth dedicated ggz gtk ipv6 nls readline sdl +sound"
65
66 RDEPEND="readline? ( sys-libs/readline )
67 sys-libs/zlib
68 app-arch/bzip2
69 auth? ( virtual/mysql )
70 !dedicated? (
71 nls? ( virtual/libintl )
72 gtk? ( x11-libs/gtk+:2 )
73 sdl? (
74 media-libs/libsdl[video]
75 media-libs/sdl-image[png]
76 media-libs/freetype
77 )
78 !gtk? ( !sdl? ( x11-libs/gtk+:2 ) )
79 sound? (
80 media-libs/libsdl[audio]
81 media-libs/sdl-mixer
82 )
83 ggz? ( games-board/ggz-gtk-client )
84 media-libs/libpng
85 )"
86 DEPEND="${RDEPEND}
87 dev-util/pkgconfig
88 !dedicated? (
89 nls? ( sys-devel/gettext )
90 x11-proto/xextproto
91 )"
92
93 src_prepare() {
94 # install the .desktop in /usr/share/applications
95 # install the icons in /usr/share/pixmaps
96 sed -i \
97 -e 's:^\(desktopfiledir = \).*:\1/usr/share/applications:' \
98 -e 's:^\(icon[0-9]*dir = \)$(prefix)\(.*\):\1/usr\2:' \
99 -e 's:^\(icon[0-9]*dir = \)$(datadir)\(.*\):\1/usr/share\2:' \
100 client/Makefile.in \
101 server/Makefile.in \
102 data/Makefile.in \
103 data/icons/Makefile.in \
104 || die "sed failed"
105
106 # remove civclient manpage if dedicated server
107 if use dedicated ; then
108 epatch "${FILESDIR}"/${P}-clean-man.patch
109 fi
110 }
111
112 src_configure() {
113 local myclient myopts
114
115 if use dedicated ; then
116 myclient="no"
117 else
118 use sdl && myclient="${myclient} sdl"
119 use gtk && myclient="${myclient} gtk"
120 [[ -z ${myclient} ]] && myclient="gtk" # default to gtk if none specified
121 myopts=$(use_with ggz ggz-client)
122 fi
123
124 egamesconf \
125 --disable-dependency-tracking \
126 --localedir=/usr/share/locale \
127 --with-ggzconfig=/usr/bin \
128 --enable-noregistry="${GGZ_MODDIR}" \
129 $(use_enable auth) \
130 $(use_enable ipv6) \
131 $(use_enable nls) \
132 $(use_with readline) \
133 $(use_enable sound sdl-mixer) \
134 ${myopts} \
135 --enable-client="${myclient}"
136 }
137
138 src_install() {
139 emake DESTDIR="${D}" install || die "emake install failed"
140
141 if ! use dedicated ; then
142 # Create and install the html manual. It can't be done for dedicated
143 # servers, because the 'civmanual' tool is then not built. Also
144 # delete civmanual from the GAMES_BINDIR, because it's then useless.
145 # Note: to have it localized, it should be ran from _postinst, or
146 # something like that, but then it's a PITA to avoid orphan files...
147 ./manual/civmanual || die "civmanual failed"
148 dohtml manual*.html || die "dohtml failed"
149 rm -f "${D}/${GAMES_BINDIR}"/civmanual
150 use sdl && make_desktop_entry freeciv-sdl "Freeciv (SDL)" freeciv-client
151 fi
152
153 dodoc ChangeLog NEWS doc/{BUGS,CodingStyle,HACKING,HOWTOPLAY,README*,TODO}
154 rm -rf "${D}$(games_get_libdir)"
155
156 prepgamesdirs
157 }
158
159 pkg_preinst() {
160 games_pkg_preinst
161 gnome2_icon_savelist
162 }
163
164 pkg_postinst() {
165 games_pkg_postinst
166 games-ggz_update_modules
167 gnome2_icon_cache_update
168 }
169
170 pkg_postrm() {
171 games-ggz_update_modules
172 gnome2_icon_cache_update
173 }