Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-cpp/gtkmm/
Date: Sun, 06 Dec 2015 21:55:32
Message-Id: 1449438914.aae3ec3d3bd4b4f8dbb22a4b5e299252249a8ddf.mgorny@gentoo
1 commit: aae3ec3d3bd4b4f8dbb22a4b5e299252249a8ddf
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Sun Dec 6 21:52:47 2015 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Sun Dec 6 21:55:14 2015 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=aae3ec3d
7
8 dev-cpp/gtkmm:2.4: Pass -std=c++11 for new libsigc++, #565342
9
10 dev-cpp/gtkmm/gtkmm-2.24.4-r3.ebuild | 76 ++++++++++++++++++++++++++++++++++++
11 1 file changed, 76 insertions(+)
12
13 diff --git a/dev-cpp/gtkmm/gtkmm-2.24.4-r3.ebuild b/dev-cpp/gtkmm/gtkmm-2.24.4-r3.ebuild
14 new file mode 100644
15 index 0000000..167b787
16 --- /dev/null
17 +++ b/dev-cpp/gtkmm/gtkmm-2.24.4-r3.ebuild
18 @@ -0,0 +1,76 @@
19 +# Copyright 1999-2015 Gentoo Foundation
20 +# Distributed under the terms of the GNU General Public License v2
21 +# $Id$
22 +
23 +EAPI="5"
24 +GCONF_DEBUG="no"
25 +
26 +inherit eutils flag-o-matic gnome2 multilib-minimal
27 +
28 +DESCRIPTION="C++ interface for GTK+"
29 +HOMEPAGE="http://www.gtkmm.org"
30 +
31 +LICENSE="LGPL-2.1+"
32 +SLOT="2.4"
33 +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sh ~sparc ~x86 ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~sparc-solaris ~x86-solaris"
34 +IUSE="doc examples test"
35 +
36 +COMMON_DEPEND="
37 + >=dev-cpp/glibmm-2.34.1:2[${MULTILIB_USEDEP}]
38 + >=x11-libs/gtk+-2.24.15:2[${MULTILIB_USEDEP}]
39 + >=x11-libs/gdk-pixbuf-2.28:2[${MULTILIB_USEDEP}]
40 + >=dev-cpp/atkmm-2.22.7[${MULTILIB_USEDEP}]
41 + >=dev-cpp/cairomm-1.10.0-r1[${MULTILIB_USEDEP}]
42 + >=dev-cpp/pangomm-2.34.0:1.4[${MULTILIB_USEDEP}]
43 + >=dev-libs/libsigc++-2.3.2:2[${MULTILIB_USEDEP}]
44 +"
45 +RDEPEND="${COMMON_DEPEND}
46 + abi_x86_32? (
47 + !<=app-emulation/emul-linux-x86-gtkmmlibs-20140508
48 + !app-emulation/emul-linux-x86-gtkmmlibs[-abi_x86_32(-)] )
49 +"
50 +DEPEND="${COMMON_DEPEND}
51 + virtual/pkgconfig
52 + doc? (
53 + media-gfx/graphviz
54 + dev-libs/libxslt
55 + app-doc/doxygen )
56 +"
57 +
58 +src_prepare() {
59 + # Apply fixes from 2.24 branch
60 + epatch "${FILESDIR}"/${P}-papersize.patch
61 + epatch "${FILESDIR}"/${P}-missing-includes.patch
62 + epatch "${FILESDIR}"/${P}-newer-glibmm.patch
63 +
64 + if ! use test; then
65 + # don't waste time building tests
66 + sed 's/^\(SUBDIRS =.*\)tests\(.*\)$/\1\2/' -i Makefile.am Makefile.in \
67 + || die "sed 1 failed"
68 + fi
69 +
70 + if ! use examples; then
71 + # don't waste time building tests
72 + sed 's/^\(SUBDIRS =.*\)demos\(.*\)$/\1\2/' -i Makefile.am Makefile.in \
73 + || die "sed 2 failed"
74 + fi
75 +
76 + gnome2_src_prepare
77 +
78 + append-cxxflags -std=c++11
79 +}
80 +
81 +multilib_src_configure() {
82 + ECONF_SOURCE="${S}" gnome2_src_configure \
83 + --enable-api-atkmm \
84 + $(multilib_native_use_enable doc documentation)
85 +}
86 +
87 +multilib_src_install() {
88 + gnome2_src_install
89 +}
90 +
91 +multilib_src_install_all() {
92 + DOCS="AUTHORS ChangeLog PORTING NEWS README"
93 + einstalldocs
94 +}