You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/dev-libs/fampp2/fampp2-7.0.1-r3.ebuild

60 lines
1.2 KiB

# 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
}