1 |
commit: 15095ca164b9dcc5a77b9878f6b97f183ffeb98d |
2 |
Author: Pacho Ramos <pacho <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Dec 29 11:09:39 2015 +0000 |
4 |
Commit: Pacho Ramos <pacho <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Dec 29 12:07:34 2015 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=15095ca1 |
7 |
|
8 |
dev-libs/fampp2: Fix building with latest glibmm/libsigc++ (#569700) |
9 |
|
10 |
Package-Manager: portage-2.2.26 |
11 |
|
12 |
dev-libs/fampp2/fampp2-7.0.1-r1.ebuild | 57 ++++++++++++++++++++++++++++++++++ |
13 |
1 file changed, 57 insertions(+) |
14 |
|
15 |
diff --git a/dev-libs/fampp2/fampp2-7.0.1-r1.ebuild b/dev-libs/fampp2/fampp2-7.0.1-r1.ebuild |
16 |
new file mode 100644 |
17 |
index 0000000..665bb03 |
18 |
--- /dev/null |
19 |
+++ b/dev-libs/fampp2/fampp2-7.0.1-r1.ebuild |
20 |
@@ -0,0 +1,57 @@ |
21 |
+# Copyright 1999-2013 Gentoo Foundation |
22 |
+# Distributed under the terms of the GNU General Public License v2 |
23 |
+# $Id$ |
24 |
+ |
25 |
+EAPI="5" |
26 |
+ |
27 |
+inherit eutils flag-o-matic |
28 |
+ |
29 |
+DESCRIPTION="C++ wrapper for fam" |
30 |
+HOMEPAGE="https://sourceforge.net/projects/fampp/" |
31 |
+SRC_URI="mirror://sourceforge/fampp/${P}.tar.bz2" |
32 |
+ |
33 |
+LICENSE="GPL-2" |
34 |
+SLOT="0" |
35 |
+KEYWORDS="~amd64 ~x86" |
36 |
+IUSE="examples stlport" |
37 |
+ |
38 |
+RDEPEND="virtual/fam |
39 |
+ stlport? ( dev-libs/STLport ) |
40 |
+ >=dev-libs/ferrisloki-2.0.3[stlport?] |
41 |
+ >=dev-libs/libsigc++-2.6:2 |
42 |
+ dev-libs/glib:2 |
43 |
+ x11-libs/gtk+:2" |
44 |
+DEPEND="${DEPEND} |
45 |
+ virtual/pkgconfig" |
46 |
+ |
47 |
+src_prepare() { |
48 |
+ # Fix compat with libsigc++-2.6 |
49 |
+ find -name '*.h' -exec sed -i '/sigc++\/object.h/d' {} + || die |
50 |
+ find -name '*.hh' -exec sed -i '/sigc++\/object.h/d' {} + || die |
51 |
+ find -name '*.cpp' -exec sed -i '/sigc++\/object.h/d' {} + || die |
52 |
+ find -name '*.cpp' -exec sed -i '/sigc++\/object_slot.h/d' {} + || die |
53 |
+ append-cxxflags -std=c++11 |
54 |
+ |
55 |
+ sed -ri \ |
56 |
+ -e '/^C(XX)?FLAGS/s:-O0 -g::' \ |
57 |
+ -e '/^LDFLAGS/s:-Wl,-O1 -Wl,--hash-style=both::' \ |
58 |
+ configure || die "sed failed" |
59 |
+} |
60 |
+ |
61 |
+src_configure() { |
62 |
+ # glib and gtk+ are only required for some examples |
63 |
+ econf \ |
64 |
+ --disable-glibtest \ |
65 |
+ --disable-gtktest \ |
66 |
+ --with-stlport=/usr/include/stlport \ |
67 |
+ $(use_enable stlport) |
68 |
+ |
69 |
+ if ! use examples ; then |
70 |
+ sed -i -e '/^SUBDIRS/ s/examples//' Makefile.in || die "sed failed" |
71 |
+ fi |
72 |
+} |
73 |
+ |
74 |
+src_install() { |
75 |
+ default |
76 |
+ prune_libtool_files |
77 |
+} |