summaryrefslogtreecommitdiff
blob: 7854cb30ecee77a3ea92f05b6ad1a269601954ea (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
54
55
56
57
58
59
# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2

EAPI=6

inherit autotools flag-o-matic

DESCRIPTION="C++ wrapper for fam"
HOMEPAGE="https://sourceforge.net/projects/fampp/"
SRC_URI="mirror://sourceforge/fampp/${P}.tar.bz2"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="examples"

RDEPEND="
	>=dev-libs/ferrisloki-2.0.3
	dev-libs/glib:2
	>=dev-libs/libsigc++-2.6:2
	virtual/fam
	x11-libs/gtk+:2"
DEPEND="${DEPEND}
	virtual/pkgconfig"

PATCHES=(
	# Fix compat with libsigc++-2.6, #569700
	"${FILESDIR}/${PN}-7.0.1-libsigc++-2.6.patch"
	# Fix completely broken buildsystem
	"${FILESDIR}/${PN}-7.0.1-fix-buildsystem.patch"
	# Fix noexcept(true) for dtors in >=C++11 with GCC 6, #595308
	"${FILESDIR}/${PN}-7.0.1-fix-gcc6.patch"
)

src_prepare() {
	default
	mv configure.{in,ac} || die
	eautoreconf
}

src_configure() {
	# libsigc++-2.6 requires building with C++11
	append-cxxflags -std=c++11

	# glib and gtk+ are only required for some examples
	econf \
		--disable-static \
		--disable-glibtest \
		--disable-gtktest \
		--disable-stlport \
		$(use_with examples)
}

src_install() {
	default

	# package provides .pc files
	find "${D}" -name '*.la' -delete || die
}