1 |
commit: 53bfa0bc6d8abd736afb03b2a0f45aafc88e2465 |
2 |
Author: Pacho Ramos <pacho <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Dec 19 09:53:54 2015 +0000 |
4 |
Commit: Pacho Ramos <pacho <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Dec 19 10:10:07 2015 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=53bfa0bc |
7 |
|
8 |
dev-cpp/libglademm: Fix building with latest glibmm/libsigc++ (#566584) |
9 |
|
10 |
Package-Manager: portage-2.2.26 |
11 |
|
12 |
dev-cpp/libglademm/libglademm-2.6.7-r2.ebuild | 75 +++++++++++++++++++++++++++ |
13 |
1 file changed, 75 insertions(+) |
14 |
|
15 |
diff --git a/dev-cpp/libglademm/libglademm-2.6.7-r2.ebuild b/dev-cpp/libglademm/libglademm-2.6.7-r2.ebuild |
16 |
new file mode 100644 |
17 |
index 0000000..96f1165 |
18 |
--- /dev/null |
19 |
+++ b/dev-cpp/libglademm/libglademm-2.6.7-r2.ebuild |
20 |
@@ -0,0 +1,75 @@ |
21 |
+# Copyright 1999-2015 Gentoo Foundation |
22 |
+# Distributed under the terms of the GNU General Public License v2 |
23 |
+# $Id$ |
24 |
+ |
25 |
+EAPI="5" |
26 |
+GCONF_DEBUG="no" |
27 |
+GNOME_TARBALL_SUFFIX="bz2" |
28 |
+ |
29 |
+inherit flag-o-matic gnome2 multilib-minimal |
30 |
+ |
31 |
+DESCRIPTION="C++ bindings for libglade" |
32 |
+HOMEPAGE="http://www.gtkmm.org" |
33 |
+ |
34 |
+LICENSE="LGPL-2.1+" |
35 |
+SLOT="2.4" |
36 |
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sh ~sparc ~x86 ~x86-fbsd" |
37 |
+IUSE="doc examples" |
38 |
+ |
39 |
+RDEPEND=" |
40 |
+ >=gnome-base/libglade-2.6.4-r1:2.0[${MULTILIB_USEDEP}] |
41 |
+ >=dev-cpp/gtkmm-2.24.3:2.4[${MULTILIB_USEDEP}] |
42 |
+ >=dev-cpp/glibmm-2.34.1:2[${MULTILIB_USEDEP}] |
43 |
+" |
44 |
+DEPEND="${RDEPEND} |
45 |
+ virtual/pkgconfig |
46 |
+" |
47 |
+ |
48 |
+src_prepare() { |
49 |
+ # we will control install manually in install |
50 |
+ sed -i 's/^\(SUBDIRS =.*\)docs\(.*\)$/\1\2/' Makefile.am Makefile.in || \ |
51 |
+ die "sed Makefile.{am,in} failed (1)" |
52 |
+ |
53 |
+ # don't waste time building the examples |
54 |
+ sed -i 's/^\(SUBDIRS =.*\)examples\(.*\)$/\1\2/' \ |
55 |
+ Makefile.am Makefile.in || die "sed Makefile.{am,in} failed (2)" |
56 |
+ |
57 |
+ append-cxxflags -std=c++11 #566584 |
58 |
+ |
59 |
+ gnome2_src_prepare |
60 |
+} |
61 |
+ |
62 |
+multilib_src_configure() { |
63 |
+ ECONF_SOURCE="${S}" gnome2_src_configure |
64 |
+} |
65 |
+ |
66 |
+multilib_src_compile() { |
67 |
+ gnome2_src_compile |
68 |
+ |
69 |
+ if multilib_is_native_abi && use doc; then |
70 |
+ emake -C "docs/reference" all || die "emake doc failed" |
71 |
+ fi |
72 |
+} |
73 |
+ |
74 |
+multilib_src_install() { |
75 |
+ gnome2_src_install |
76 |
+ |
77 |
+ if use examples; then |
78 |
+ emake -C "examples" distclean || die "examples clean up failed" |
79 |
+ fi |
80 |
+} |
81 |
+ |
82 |
+multilib_src_install_all() { |
83 |
+ einstalldocs |
84 |
+ |
85 |
+ if use doc ; then |
86 |
+ dohtml -r docs/reference/html/* |
87 |
+ fi |
88 |
+ |
89 |
+ if use examples; then |
90 |
+ find "${S}/examples" -name "Makefile*" -delete \ |
91 |
+ || die "examples cleanup failed" |
92 |
+ insinto "/usr/share/doc/${PF}" |
93 |
+ doins -r examples || die "doins failed" |
94 |
+ fi |
95 |
+} |