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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Wed Nov 10 21:49:02 2010 UTC (7 years, 2 months ago) by eva
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +1 -1 lines
FILE REMOVED
Drop old revisions.

(Portage version: 2.2.0_alpha4/cvs/Linux x86_64)

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

  ViewVC Help
Powered by ViewVC 1.1.20