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.0.ebuild
Date: Fri, 26 Feb 2010 20:08:41
Message-Id: E1Nl6UI-00067D-Qd@stork.gentoo.org
1 mr_bones_ 10/02/26 20:08:38
2
3 Modified: ChangeLog
4 Added: freeciv-2.2.0.ebuild
5 Log:
6 version bump
7 (Portage version: 2.1.7.16/cvs/Linux i686)
8
9 Revision Changes Path
10 1.99 games-strategy/freeciv/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-strategy/freeciv/ChangeLog?rev=1.99&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-strategy/freeciv/ChangeLog?rev=1.99&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-strategy/freeciv/ChangeLog?r1=1.98&r2=1.99
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/games-strategy/freeciv/ChangeLog,v
19 retrieving revision 1.98
20 retrieving revision 1.99
21 diff -u -r1.98 -r1.99
22 --- ChangeLog 9 Feb 2010 05:51:43 -0000 1.98
23 +++ ChangeLog 26 Feb 2010 20:08:38 -0000 1.99
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.98 2010/02/09 05:51:43 mr_bones_ Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/games-strategy/freeciv/ChangeLog,v 1.99 2010/02/26 20:08:38 mr_bones_ Exp $
29 +
30 +*freeciv-2.2.0 (26 Feb 2010)
31 +
32 + 26 Feb 2010; Michael Sterrett <mr_bones_@g.o>
33 + +freeciv-2.2.0.ebuild, +files/freeciv-2.2.0-clean-man.patch:
34 + version bump
35
36 09 Feb 2010; Michael Sterrett <mr_bones_@g.o>
37 freeciv-2.1.11.ebuild:
38
39
40
41 1.1 games-strategy/freeciv/freeciv-2.2.0.ebuild
42
43 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-strategy/freeciv/freeciv-2.2.0.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-strategy/freeciv/freeciv-2.2.0.ebuild?rev=1.1&content-type=text/plain
45
46 Index: freeciv-2.2.0.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.0.ebuild,v 1.1 2010/02/26 20:08:38 mr_bones_ Exp $
51
52 EAPI=2
53 inherit eutils gnome2-utils 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="~alpha ~amd64 ~mips ~ppc ~ppc64 ~sparc ~x86"
62 IUSE="auth dedicated ggz gtk nls readline sdl"
63
64 RDEPEND="readline? ( sys-libs/readline )
65 sys-libs/zlib
66 app-arch/bzip2
67 !dedicated? (
68 nls? ( virtual/libintl )
69 gtk? ( x11-libs/gtk+:2 )
70 sdl? (
71 media-libs/libsdl[audio,video]
72 media-libs/sdl-image[png]
73 media-libs/freetype
74 media-libs/sdl-mixer
75 )
76 !gtk? ( !sdl? ( x11-libs/gtk+:2 ) )
77 ggz? ( dev-games/ggz-client-libs )
78 media-libs/libpng
79 auth? ( virtual/mysql )
80 )"
81 DEPEND="${RDEPEND}
82 dev-util/pkgconfig
83 !dedicated? (
84 nls? ( sys-devel/gettext )
85 x11-proto/xextproto
86 )"
87
88 src_prepare() {
89 # install the .desktop in /usr/share/applications
90 # install the icons in /usr/share/pixmaps
91 sed -i \
92 -e 's:^\(desktopfiledir = \).*:\1/usr/share/applications:' \
93 -e 's:^\(icon[0-9]*dir = \)$(prefix)\(.*\):\1/usr\2:' \
94 -e 's:^\(icon[0-9]*dir = \)$(datadir)\(.*\):\1/usr/share\2:' \
95 client/Makefile.in \
96 server/Makefile.in \
97 data/Makefile.in \
98 data/icons/Makefile.in \
99 || die "sed failed"
100
101 # remove civclient manpage if dedicated server
102 if use dedicated ; then
103 epatch "${FILESDIR}"/${P}-clean-man.patch
104 fi
105 }
106
107 src_configure() {
108 local myclient="gtk" # default to gtk if none specified
109
110 if use dedicated ; then
111 myclient="no"
112 else
113 use sdl && myclient="${myclient} sdl"
114 fi
115
116 egamesconf \
117 --disable-dependency-tracking \
118 --localedir=/usr/share/locale \
119 $(use_enable auth) \
120 $(use_enable nls) \
121 $(use_with readline) \
122 $(use_enable sdl sdl-mixer) \
123 $(use_with ggz ggz-client) \
124 --enable-client="${myclient}"
125 }
126
127 src_install() {
128 emake DESTDIR="${D}" install || die "emake install failed"
129
130 if ! use dedicated ; then
131 # Create and install the html manual. It can't be done for dedicated
132 # servers, because the 'civmanual' tool is then not built. Also
133 # delete civmanual from the GAMES_BINDIR, because it's then useless.
134 # Note: to have it localized, it should be ran from _postinst, or
135 # something like that, but then it's a PITA to avoid orphan files...
136 ./manual/civmanual || die "civmanual failed"
137 dohtml manual*.html || die "dohtml failed"
138 rm -f "${D}/${GAMES_BINDIR}"/civmanual
139 use sdl && make_desktop_entry freeciv-sdl "Freeciv (SDL)" freeciv-client
140 fi
141
142 dodoc ChangeLog NEWS doc/{BUGS,CodingStyle,HACKING,HOWTOPLAY,README*,TODO}
143
144 prepgamesdirs
145 }
146
147 pkg_preinst() {
148 games_pkg_preinst
149 gnome2_icon_savelist
150 }
151
152 pkg_postinst() {
153 games_pkg_postinst
154 gnome2_icon_cache_update
155 }
156
157 pkg_postrm() {
158 gnome2_icon_cache_update
159 }