blob: 3154abf26ad1e5d4a3e6b36d68052c8df91987c9 (
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
|
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
inherit eutils multilib python rpm toolchain-funcs
# Revision of the RPM. Shouldn't affect us, as we're just grabbing the source
# tarball out of it
RPMREV="2"
DESCRIPTION="Library of python code used by Red Hat Linux programs"
HOMEPAGE="http://fedora.redhat.com/projects/config-tools/"
SRC_URI="mirror://fedora/development/source/SRPMS/${P}-${RPMREV}.src.rpm"
LICENSE=""
SLOT="0"
KEYWORDS="~ppc ~x86"
IUSE=""
RDEPEND="dev-lang/python
dev-python/pyxf86config
!<sys-libs/libkudzu-1.2"
DEPEND="${RDEPEND}
!s390? ( >=net-wireless/wireless-tools-28 )
sys-devel/gettext"
src_unpack() {
rpm_src_unpack
epatch "${FILESDIR}"/${PV}-use-raw-strings-for-gettext.diff
sed -i \
-e 's:gcc:$(CC):g' \
"${S}"/src/Makefile
}
src_compile() {
python_version
emake \
PYTHON=python${PYVER} \
LIBDIR=$(get_libdir) \
ARCH=${ARCH} \
CC=$(tc-getCC) \
|| die "emake failed"
}
src_install() {
emake \
DESTDIR="${D}" \
PYTHON=python${PYVER} \
LIBDIR=$(get_libdir) \
install || die "emake install failed"
}
|