/[gentoo-x86]/dev-cpp/glibmm/glibmm-2.42.0-r1.ebuild
Gentoo

Contents of /dev-cpp/glibmm/glibmm-2.42.0-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.11 - (show annotations) (download)
Thu Jul 30 13:21:26 2015 UTC (2 years, 10 months ago) by ago
Branch: MAIN
CVS Tags: HEAD
Changes since 1.10: +2 -2 lines
Stable for sparc, wrt bug #551814

(Portage version: 2.2.20/cvs/Linux x86_64, RepoMan options: --force, signed Manifest commit with key 7194459F)

1 # Copyright 1999-2015 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/dev-cpp/glibmm/glibmm-2.42.0-r1.ebuild,v 1.10 2015/07/29 08:00:34 klausman Exp $
4
5 EAPI="5"
6 GCONF_DEBUG="no"
7
8 inherit gnome2 multilib-minimal
9
10 DESCRIPTION="C++ interface for glib2"
11 HOMEPAGE="http://www.gtkmm.org"
12
13 LICENSE="LGPL-2.1+ GPL-2+" # GPL-2+ applies only to the build system
14 SLOT="2"
15 KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 ~sh sparc x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~sparc-solaris ~x86-solaris"
16 IUSE="doc debug examples test"
17
18 COMMON_DEPEND="
19 >=dev-libs/libsigc++-2.3.2:2[${MULTILIB_USEDEP}]
20 >=dev-libs/glib-2.42:2[${MULTILIB_USEDEP}]
21 "
22 RDEPEND="${COMMON_DEPEND}
23 abi_x86_32? (
24 !<=app-emulation/emul-linux-x86-gtkmmlibs-20140508
25 !app-emulation/emul-linux-x86-gtkmmlibs[-abi_x86_32(-)] )
26 "
27 DEPEND="${COMMON_DEPEND}
28 virtual/pkgconfig
29 doc? ( app-doc/doxygen )
30 "
31 # dev-cpp/mm-common needed for eautoreconf
32
33 src_prepare() {
34 if ! use test; then
35 # don't waste time building tests
36 sed 's/^\(SUBDIRS =.*\)tests\(.*\)$/\1\2/' \
37 -i Makefile.am Makefile.in || die "sed 1 failed"
38 fi
39
40 # don't build examples - we want to install example sources, not binaries
41 sed 's/^\(SUBDIRS =.*\)examples\(.*\)$/\1\2/' \
42 -i Makefile.am Makefile.in || die "sed 2 failed"
43
44 # Test fails with IPv6 but not v4, upstream bug #720073
45 sed -e 's:giomm_tls_client/test::' \
46 -i tests/Makefile.{am,in} || die
47
48 gnome2_src_prepare
49 }
50
51 multilib_src_configure() {
52 ECONF_SOURCE="${S}" gnome2_src_configure \
53 $(use_enable debug debug-refcounting) \
54 $(multilib_native_use_enable doc documentation) \
55 --enable-deprecated-api
56 }
57
58 multilib_src_test() {
59 cd tests
60 default
61
62 for i in */test; do
63 ${i} || die "Running tests failed at ${i}"
64 done
65 }
66
67 multilib_src_install() {
68 gnome2_src_install
69 }
70
71 multilib_src_install_all() {
72 einstalldocs
73
74 if ! use doc && ! use examples; then
75 rm -fr "${ED}usr/share/doc/glibmm*"
76 fi
77
78 if use examples; then
79 find examples -type d -name '.deps' -exec rm -rf {} \; 2>/dev/null
80 dodoc -r examples
81 fi
82 }

  ViewVC Help
Powered by ViewVC 1.1.20