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