blob: 08ed0056033ccce1d027762a438c030964c9f498 (
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
|
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-python/rhpl/rhpl-0.210.ebuild,v 1.2 2008/02/14 02:49:37 robbat2 Exp $
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="1"
DESCRIPTION="Library of python code used by Red Hat Linux programs"
HOMEPAGE="http://fedoraproject.org/wiki/SystemConfig/"
SRC_URI="mirror://fedora-dev/development/source/SRPMS/${P}-${RPMREV}.src.rpm"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~ppc ~x86 ~amd64"
IUSE=""
RDEPEND="dev-lang/python
!<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"
}
|