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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Thu May 12 19:03:35 2011 UTC (7 years, 3 months ago) by pacho
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +1 -1 lines
FILE REMOVED
Fix examples installation (bug #366691 by Erik Zeek). Remove old.

(Portage version: 2.1.9.47/cvs/Linux x86_64)

1 # Copyright 1999-2011 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.0.ebuild,v 1.2 2011/04/09 07:04:33 nirbheek Exp $
4
5 EAPI="3"
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 )"
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 ~x86-solaris"
16 IUSE="doc debug examples test"
17
18 RDEPEND=">=dev-libs/libsigc++-2.2:2
19 >=dev-libs/glib-2.28:2"
20 DEPEND="${RDEPEND}
21 dev-util/pkgconfig
22 doc? ( app-doc/doxygen )"
23
24 pkg_setup() {
25 DOCS="AUTHORS ChangeLog NEWS README"
26 G2CONF="${G2CONF}
27 $(use_enable debug debug-refcounting)
28 $(use_enable doc documentation)
29 --disable-schemas-compile
30 --enable-deprecated-api"
31 }
32
33 src_prepare() {
34 gnome2_src_prepare
35
36 if ! use test; then
37 # don't waste time building tests
38 sed 's/^\(SUBDIRS =.*\)tests\(.*\)$/\1\2/' \
39 -i Makefile.am Makefile.in || die "sed 1 failed"
40 fi
41
42 if ! use examples; then
43 # don't waste time building examples
44 sed 's/^\(SUBDIRS =.*\)examples\(.*\)$/\1\2/' \
45 -i Makefile.am Makefile.in || die "sed 2 failed"
46 fi
47 }
48
49 src_test() {
50 cd "${S}/tests/"
51 emake check || die "emake check failed"
52
53 for i in */test; do
54 ${i} || die "Running tests failed at ${i}"
55 done
56 }
57
58 src_install() {
59 gnome2_src_install
60
61 if ! use doc && ! use examples; then
62 rm -fr "${ED}usr/share/doc/glibmm*"
63 fi
64
65 if use examples; then
66 find examples -type d -name '.deps' -exec rm -rf {} \; 2>/dev/null
67 dodoc examples
68 fi
69
70 # Remove useless .la files
71 find "${D}" -name '*.la' -exec rm -f {} + || die
72 }

  ViewVC Help
Powered by ViewVC 1.1.20