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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Mon Oct 12 20:23:37 2009 UTC (8 years, 9 months ago) by eva
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
Clean up old revisions.
(Portage version: 2.2_rc42/cvs/Linux x86_64)

1 # Copyright 1999-2009 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.20.0.ebuild,v 1.1 2009/05/10 22:15:53 eva Exp $
4
5 inherit gnome2
6
7 DESCRIPTION="C++ interface for glib2"
8 HOMEPAGE="http://www.gtkmm.org"
9
10 LICENSE="|| ( LGPL-2.1 GPL-2 )"
11 SLOT="2"
12 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sh ~sparc ~x86 ~x86-fbsd"
13 IUSE="doc examples test"
14
15 RDEPEND=">=dev-libs/libsigc++-2.2
16 >=dev-libs/glib-2.19.8"
17 DEPEND="${RDEPEND}
18 dev-util/pkgconfig
19 doc? ( app-doc/doxygen )"
20
21 DOCS="AUTHORS ChangeLog NEWS README"
22
23 src_unpack() {
24 gnome2_src_unpack
25
26 if ! use test; then
27 # don't waste time building tests
28 sed 's/^\(SUBDIRS =.*\)tests\(.*\)$/\1\2/' \
29 -i Makefile.am Makefile.in || die "sed 1 failed"
30 fi
31
32 if ! use examples; then
33 # don't waste time building examples
34 sed 's/^\(SUBDIRS =.*\)examples\(.*\)$/\1\2/' \
35 -i Makefile.am Makefile.in || die "sed 2 failed"
36 fi
37 }
38
39 src_test() {
40 cd "${S}/tests/"
41 emake check || die "emake check failed"
42
43 for i in */test; do
44 ${i} || die "Running tests failed at ${i}"
45 done
46 }
47
48 src_install() {
49 gnome2_src_install
50
51 if ! use doc && ! use examples; then
52 rm -fr "${D}/usr/share/doc/glibmm*"
53 fi
54
55 if use examples; then
56 find examples -type d -name '.deps' -exec rm -rf {} \; 2>/dev/null
57 dodoc examples
58 fi
59 }

  ViewVC Help
Powered by ViewVC 1.1.20