summaryrefslogtreecommitdiff
blob: 779b71c2e034f371a395e2bab1cc32b66b794ee5 (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-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$

EAPI=5
GCONF_DEBUG="no"

inherit gnome2 flag-o-matic

DESCRIPTION="GTK+/GNOME color customization tool"
HOMEPAGE="http://gnomecc.sourceforge.net/"
SRC_URI="mirror://sourceforge/gnomecc/${P}.tar.bz2"

LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="debug"

RDEPEND="
	dev-cpp/atkmm
	>=dev-cpp/libglademm-2.6.0:2.4
	dev-cpp/glibmm:2
	>=dev-cpp/gtkmm-2.8.0:2.4
	dev-libs/glib:2
	dev-libs/libsigc++:2
	>=dev-libs/libxml2-2.6.0
	>=gnome-base/libgnome-2.16.0
	>=gnome-base/libgnomeui-2.14.0
	x11-libs/gtk+:2
	x11-libs/pango
"
DEPEND="${RDEPEND}
	virtual/pkgconfig
"

src_configure() {
	# Don't pass --enable/disable-assert since it has broken
	# AC_ARG_ENABLE call. Pass -DNDEBUG to cppflags instead.
	use debug || append-cppflags -DNDEBUG

	append-cxxflags -std=c++11

	gnome2_src_configure \
		--disable-link-as-needed
}

pkg_postinst() {
	elog "To use gnome-color-chooser themes you may need to add:"
	elog "      include \".gtkrc-2.0-gnome-color-chooser\""
	elog "to ~/.gtkrc-2.0 for each user, otherwise themes may not be applied."

	gnome2_pkg_postinst
}