summaryrefslogtreecommitdiff
blob: 7c6e6e0bc183e209c12ee7ac0f2aca8b2cf12736 (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
50
51
52
53
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

inherit eutils games subversion

DESCRIPTION="Next generation chess interface"
HOMEPAGE="http://ngboard.sourceforge.net/"

ESVN_REPO_URI="http://ngboard.svn.sourceforge.net/svnroot/ngboard/trunk"
ESVN_BOOTSTRAP="./autogen.sh"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS=""
IUSE=""

DEPEND="dev-cpp/cairomm
	dev-cpp/gtkmm
	dev-libs/libpcre
	dev-cpp/libxmlpp
	gnome-base/gnome-common
	gnome-base/librsvg
	media-libs/gstreamer"
RDEPEND="${DEPEND}"

pkg_setup() {
	if ! built_with_use dev-libs/libpcre cxx; then
		eerror "dev-libs/libpcre needs to be built with cxx USE flag"
		die "dev-libs/libpcre built without cxx"
	fi
}

src_unpack() {
	subversion_src_unpack
	cd "${S}"

	epatch "${FILESDIR}"/void-ptr-64bit.patch
}

src_compile() {
	egamesconf
	emake || die "emake failed"
}

src_install() {
	emake DESTDIR="${D}" install || die "emake install failed"

	insinto /usr/share/games/${PN}/sounds
	doins -r sounds || die "doins failed"

	prepgamesdirs
}