Gentoo Archives: gentoo-dev

From: "Tiziano Müller" <dev-zero@g.o>
To: gentoo-dev@l.g.o
Subject: [gentoo-dev] Re: gentoo-x86 commit in dev-cpp/gflags: metadata.xml Manifest gflags-0.7.ebuild ChangeLog
Date: Mon, 10 Mar 2008 07:46:12
Message-Id: fr2ov3$r8p$1@ger.gmane.org
1 Alec Warner (antarus) wrote:
2
3 > Index: gflags-0.7.ebuild
4 > ===================================================================
5 > # Copyright 1999-2008 Gentoo Foundation
6 > # Distributed under the terms of the GNU General Public License v2
7 > # $Header: /var/cvsroot/gentoo-x86/dev-cpp/gflags/gflags-0.7.ebuild,v 1.1
8 > # 2008/03/09 07:40:02 antarus Exp $
9 >
10 > inherit distutils
11 >
12 > DESCRIPTION="Google's C++ argument parsing library with python
13 > extensions." HOMEPAGE="http://code.google.com/p/google-gflags/"
14 > SRC_URI="ftp://foo.bar.com/${P}.tar.gz"
15 > LICENSE="BSD"
16 > SLOT="0"
17 > KEYWORDS="~amd64"
18 > IUSE="python"
19 >
20 > DEPEND=""
21 > RDEPEND="${DEPEND}"
22 >
23 > src_compile() {
24 > econf || die "econf failed"
25 > emake || die "emake failed"
26 > }
27 Please add a
28 if use python; then
29 distutils_src_compile
30 fi
31
32 >
33 > src_install() {
34 > emake DESTDIR="${D}" install || die "emake install failed"
35 > if use python;
36 > then
37 > cd python
38 > distutils_src_install
39 > fi
40 > }
41
42 The google-packages install everything in /usr/share/doc/${PF}. This also
43 includes COPYING and INSTALL as well as html-files.
44 You'll have to install the docs manually (check sparsehash, has the same
45 problem).
46
47 And you depend on python unconditionally. Rather use the python.eclass and
48 the "Optimize/cleanup idiom" from
49 http://www.gentoo.org/proj/en/Python/developersguide.xml
50
51 Cheers.
52
53 --
54 gentoo-dev@l.g.o mailing list