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

Contents of /dev-cpp/glibmm/glibmm-2.36.1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Thu May 2 07:57:20 2013 UTC (5 years ago) by pacho
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
Version bump reverting a change that shouldn't have been included in previous version

(Portage version: 2.1.11.62/cvs/Linux x86_64, signed Manifest commit with key A188FBD4)

1 # Copyright 1999-2013 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.36.1.ebuild,v 1.1 2013/05/01 17:53:20 pacho Exp $
4
5 EAPI="5"
6 GCONF_DEBUG="no"
7
8 inherit gnome2
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 RDEPEND="
19 >=dev-libs/libsigc++-2.2.10:2
20 >=dev-libs/glib-2.36.1:2
21 "
22 DEPEND="${RDEPEND}
23 virtual/pkgconfig
24 doc? ( app-doc/doxygen )
25 "
26 # dev-cpp/mm-common needed for eautoreconf
27
28 src_prepare() {
29 if ! use test; then
30 # don't waste time building tests
31 sed 's/^\(SUBDIRS =.*\)tests\(.*\)$/\1\2/' \
32 -i Makefile.am Makefile.in || die "sed 1 failed"
33 fi
34
35 if ! use examples; then
36 # don't waste time building examples
37 sed 's/^\(SUBDIRS =.*\)examples\(.*\)$/\1\2/' \
38 -i Makefile.am Makefile.in || die "sed 2 failed"
39 fi
40
41 gnome2_src_prepare
42 }
43
44 src_configure() {
45 gnome2_src_configure \
46 $(use_enable debug debug-refcounting) \
47 $(use_enable doc documentation) \
48 --enable-deprecated-api
49 }
50
51 src_test() {
52 cd "${S}/tests/"
53 default
54
55 for i in */test; do
56 ${i} || die "Running tests failed at ${i}"
57 done
58 }
59
60 src_install() {
61 gnome2_src_install
62
63 if ! use doc && ! use examples; then
64 rm -fr "${ED}usr/share/doc/glibmm*"
65 fi
66
67 if use examples; then
68 find examples -type d -name '.deps' -exec rm -rf {} \; 2>/dev/null
69 dodoc -r examples
70 fi
71 }

  ViewVC Help
Powered by ViewVC 1.1.20