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