blob: 7251e1ed7bee90e46ece536b1d7eba160f883189 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/games-board/ccgo/ccgo-0.3.6.4.ebuild,v 1.4 2011/03/29 07:52:01 angelos Exp $
EAPI=2
inherit autotools games
DESCRIPTION="An IGS client written in C++"
HOMEPAGE="http://ccdw.org/~cjj/prog/ccgo/"
SRC_URI="http://ccdw.org/~cjj/prog/ccgo/src/${P}.tar.gz"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64 ~ppc x86"
IUSE="nls"
RDEPEND=">=dev-cpp/gtkmm-2.4:2.4
>=dev-cpp/gconfmm-2.6
nls? ( virtual/libintl )"
DEPEND="${RDEPEND}
dev-util/pkgconfig
nls? ( sys-devel/gettext )"
src_prepare() {
sed -i \
-e '/^Encoding/d' \
-e '/^Categories/s/Application;//' \
ccgo.desktop.in \
|| die 'sed failed'
sed -i \
-e '/^localedir/s/=.*/=@localedir@/' \
-e '/^appicondir/s:=.*:=/usr/share/pixmaps:' \
-e '/^desktopdir/s:=.*:=/usr/share/applications:' \
Makefile.am \
|| die 'sed failed'
eautoreconf
}
src_configure() {
egamesconf \
--disable-dependency-tracking \
--localedir=/usr/share/locale \
$(use_enable nls)
}
src_install() {
emake DESTDIR="${D}" install || die 'emake install failed'
prepgamesdirs
}
|