Gentoo Archives: gentoo-commits

From: Alexandre Restovtsev <tetromino@×××××.com>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/gnome:gnome-next commit in: dev-cpp/glibmm/
Date: Tue, 26 Jul 2011 08:30:36
Message-Id: 40e3f9116206e1978176de2512d71ed895dd0c56.tetromino@gentoo
1 commit: 40e3f9116206e1978176de2512d71ed895dd0c56
2 Author: Alexandre Rostovtsev <tetromino <AT> gmail <DOT> com>
3 AuthorDate: Tue Jul 26 08:07:55 2011 +0000
4 Commit: Alexandre Restovtsev <tetromino <AT> gmail <DOT> com>
5 CommitDate: Tue Jul 26 08:15:41 2011 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/gnome.git;a=commit;h=40e3f911
7
8 dev-cpp/glibmm: add 2.29.11
9
10 Add gnome-3.1.x version.
11
12 ---
13 dev-cpp/glibmm/glibmm-2.29.11.ebuild | 70 ++++++++++++++++++++++++++++++++++
14 1 files changed, 70 insertions(+), 0 deletions(-)
15
16 diff --git a/dev-cpp/glibmm/glibmm-2.29.11.ebuild b/dev-cpp/glibmm/glibmm-2.29.11.ebuild
17 new file mode 100644
18 index 0000000..cc54551
19 --- /dev/null
20 +++ b/dev-cpp/glibmm/glibmm-2.29.11.ebuild
21 @@ -0,0 +1,70 @@
22 +# Copyright 1999-2011 Gentoo Foundation
23 +# Distributed under the terms of the GNU General Public License v2
24 +# $Header: /var/cvsroot/gentoo-x86/dev-cpp/glibmm/glibmm-2.28.2.ebuild,v 1.4 2011/07/17 21:30:49 maekke Exp $
25 +
26 +EAPI="4"
27 +GCONF_DEBUG="no"
28 +GNOME2_LA_PUNT="yes"
29 +
30 +inherit gnome2
31 +
32 +DESCRIPTION="C++ interface for glib2"
33 +HOMEPAGE="http://www.gtkmm.org"
34 +
35 +LICENSE="|| ( LGPL-2.1 GPL-2 )"
36 +SLOT="2"
37 +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sh ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~x86-solaris"
38 +IUSE="doc debug examples test"
39 +
40 +RDEPEND=">=dev-libs/libsigc++-2.2:2
41 + >=dev-libs/glib-2.29.8:2"
42 +DEPEND="${RDEPEND}
43 + dev-util/pkgconfig
44 + doc? ( app-doc/doxygen )"
45 +
46 +pkg_setup() {
47 + DOCS="AUTHORS ChangeLog NEWS README"
48 + G2CONF="${G2CONF}
49 + $(use_enable debug debug-refcounting)
50 + $(use_enable doc documentation)
51 + --disable-schemas-compile
52 + --enable-deprecated-api"
53 +}
54 +
55 +src_prepare() {
56 + gnome2_src_prepare
57 +
58 + if ! use test; then
59 + # don't waste time building tests
60 + sed 's/^\(SUBDIRS =.*\)tests\(.*\)$/\1\2/' \
61 + -i Makefile.am Makefile.in || die "sed 1 failed"
62 + fi
63 +
64 + if ! use examples; then
65 + # don't waste time building examples
66 + sed 's/^\(SUBDIRS =.*\)examples\(.*\)$/\1\2/' \
67 + -i Makefile.am Makefile.in || die "sed 2 failed"
68 + fi
69 +}
70 +
71 +src_test() {
72 + cd "${S}/tests/"
73 + emake check
74 +
75 + for i in */test; do
76 + ${i} || die "Running tests failed at ${i}"
77 + done
78 +}
79 +
80 +src_install() {
81 + gnome2_src_install
82 +
83 + if ! use doc && ! use examples; then
84 + rm -fr "${ED}usr/share/doc/glibmm*"
85 + fi
86 +
87 + if use examples; then
88 + find examples -type d -name '.deps' -exec rm -rf {} \; 2>/dev/null
89 + dodoc -r examples
90 + fi
91 +}