summaryrefslogtreecommitdiff
blob: bd0a1ec5721638659b0147f47731dab019f466d9 (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
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-libs/libsigc++/libsigc++-1.2.7.ebuild,v 1.7 2008/12/17 20:32:33 ssuominen Exp $

WANT_AUTOCONF="latest"
WANT_AUTOMAKE="1.7"

inherit autotools gnome2

DESCRIPTION="Typesafe callback system for standard C++"
HOMEPAGE="http://libsigc.sourceforge.net/"

LICENSE="GPL-2 LGPL-2.1"
SLOT="1.2"
KEYWORDS="alpha amd64 arm hppa ia64 ppc ppc64 sh sparc x86"
IUSE="debug"

RDEPEND=""

DOCS="AUTHORS ChangeLog FEATURES IDEAS README NEWS TODO"

pkg_config() {
	use debug \
		&& G2CONF="--enable-debug=yes" \
		|| G2CONF="--enable-debug=no"

	G2CONF="${G2CONF} --enable-maintainer-mode --enable-threads"
}

src_unpack() {
	gnome2_src_unpack

	# fixes bug #219041
	sed -e 's:ACLOCAL_AMFLAGS = -I $(srcdir)/scripts:ACLOCAL_AMFLAGS = -I scripts:' \
		-i Makefile.{in,am}

	eautoreconf
}