blob: ebd26fe4f3809f5e60af8c48e6ff454f76ff744e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
|
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-cpp/gflags/gflags-1.2.ebuild,v 1.2 2010/05/29 20:50:21 arfrever Exp $
EAPI="3"
PYTHON_DEPEND="python? 2"
SUPPORT_PYTHON_ABIS="1"
inherit distutils
DESCRIPTION="Google's C++ argument parsing library with python extensions."
HOMEPAGE="http://code.google.com/p/google-gflags/"
SRC_URI="http://google-gflags.googlecode.com/files/${P}.tar.gz"
LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64"
IUSE="python"
DEPEND=""
RDEPEND=""
RESTRICT_PYTHON_ABIS="3.*"
PYTHON_MODNAME="gflags.py"
src_compile() {
default
if use python; then
cd python
distutils_src_compile
fi
}
src_install() {
emake DESTDIR="${D}" install || die "emake install failed"
rm -rf "${D}"/usr/share/doc/*
AUTHORS ChangeLog NEWS README
dohtml doc/*
if use python; then
cd python
distutils_src_install
fi
}
pkg_postinst() {
if use python; then
distutils_pkg_postinst
fi
}
pkg_postrm() {
if use python; then
distutils_pkg_postrm
fi
}
|