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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.10 - (show annotations) (download)
Sun Dec 9 22:05:30 2012 UTC (5 years, 11 months ago) by tetromino
Branch: MAIN
CVS Tags: HEAD
Changes since 1.9: +1 -1 lines
FILE REMOVED
Bump for glib-2.34 support. Update license. Drop old.

(Portage version: 2.2.0_alpha145/cvs/Linux x86_64, signed Manifest commit with key CF0ADD61)

1 # Copyright 1999-2012 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.28.2.ebuild,v 1.9 2012/05/04 03:44:57 jdhore Exp $
4
5 EAPI="4"
6 GCONF_DEBUG="no"
7 GNOME_TARBALL_SUFFIX="xz"
8 GNOME2_LA_PUNT="yes"
9
10 inherit gnome2
11
12 DESCRIPTION="C++ interface for glib2"
13 HOMEPAGE="http://www.gtkmm.org"
14
15 LICENSE="|| ( LGPL-2.1 GPL-2 )"
16 SLOT="2"
17 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"
18 IUSE="doc debug examples test"
19
20 RDEPEND=">=dev-libs/libsigc++-2.2:2
21 >=dev-libs/glib-2.28:2"
22 DEPEND="${RDEPEND}
23 virtual/pkgconfig
24 doc? ( app-doc/doxygen )"
25
26 pkg_setup() {
27 DOCS="AUTHORS ChangeLog NEWS README"
28 G2CONF="${G2CONF}
29 $(use_enable debug debug-refcounting)
30 $(use_enable doc documentation)
31 --disable-schemas-compile
32 --enable-deprecated-api"
33 }
34
35 src_prepare() {
36 gnome2_src_prepare
37
38 if ! use test; then
39 # don't waste time building tests
40 sed 's/^\(SUBDIRS =.*\)tests\(.*\)$/\1\2/' \
41 -i Makefile.am Makefile.in || die "sed 1 failed"
42 fi
43
44 if ! use examples; then
45 # don't waste time building examples
46 sed 's/^\(SUBDIRS =.*\)examples\(.*\)$/\1\2/' \
47 -i Makefile.am Makefile.in || die "sed 2 failed"
48 fi
49 }
50
51 src_test() {
52 cd "${S}/tests/"
53 emake check
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