rhpl with amd64 support

git-svn-id: http://svn.sabayonlinux.org/overlay@548 d7aec97c-591d-0410-af39-a8856400b30a
This commit is contained in:
lxnay
2006-12-25 10:43:15 +00:00
parent 458cd953d6
commit a844cf092e
4 changed files with 93 additions and 0 deletions
+12
View File
@@ -0,0 +1,12 @@
AUX 0.188-use-raw-strings-for-gettext.diff 1104 RMD160 1c6c7ac9fd93d83a8d4dc23bf02f22de3f46da54 SHA1 077adb46c0deceb0c74c8a4ff9675c1ca5b54a2f SHA256 f1e9c647b19f5bb3d570b3900607df66474939c2e9618b63ced0eed476042be8
MD5 6d40b11098fae8adab17a48d650a57cf files/0.188-use-raw-strings-for-gettext.diff 1104
RMD160 1c6c7ac9fd93d83a8d4dc23bf02f22de3f46da54 files/0.188-use-raw-strings-for-gettext.diff 1104
SHA256 f1e9c647b19f5bb3d570b3900607df66474939c2e9618b63ced0eed476042be8 files/0.188-use-raw-strings-for-gettext.diff 1104
DIST rhpl-0.188-2.src.rpm 299535 RMD160 a5ab8e57f10c25547877d528599ca4d3b2a3fdc8 SHA1 a14b83ccc0720bf0a556b6fed57389294ee1bf5e SHA256 87db85b3dd8ded08fe8fde548cedc28cd59a51c7dd5ec4b84d6881a332c014fd
EBUILD rhpl-0.188.ebuild 1247 RMD160 02455aca0c5748826f88b05d444cf1848eb7ab6b SHA1 db29bb4b3c42668f8ccdfacd7a99d244ebd32960 SHA256 0d18918c9551b7cac956462d571685e94a0bb471c7a820a7df4373f8127b89ab
MD5 b3381e2dfa13098cf663ed9c2245481a rhpl-0.188.ebuild 1247
RMD160 02455aca0c5748826f88b05d444cf1848eb7ab6b rhpl-0.188.ebuild 1247
SHA256 0d18918c9551b7cac956462d571685e94a0bb471c7a820a7df4373f8127b89ab rhpl-0.188.ebuild 1247
MD5 cec94e56b1d67d1c5b725a53b4128215 files/digest-rhpl-0.188 241
RMD160 a9cf3e1ad57a8a4b9a0638cd5533eba1eb862127 files/digest-rhpl-0.188 241
SHA256 b954bd502e1c5d3e191e445969462db0da5c63500891bec1c325152a8b19ce27 files/digest-rhpl-0.188 241
@@ -0,0 +1,28 @@
diff -ur -x '*.po' rhpl-0.188.orig/src/gzread.py rhpl-0.188/src/gzread.py
--- rhpl-0.188.orig/src/gzread.py 2002-05-22 15:07:45.000000000 -0700
+++ rhpl-0.188/src/gzread.py 2006-09-01 16:20:01.000000000 -0700
@@ -57,7 +57,7 @@
def _read_gzip_header(self):
magic = self.fileobj.read(2)
- if magic != '\037\213':
+ if magic != r'\037\213':
self._unread(magic)
self.compressed = 0
return
Only in rhpl-0.188/src/iconvmodule: build
Only in rhpl-0.188/src/iconvmodule: iconv.so
Only in rhpl-0.188/src: _translate.o
diff -ur -x '*.po' rhpl-0.188.orig/src/translate.py rhpl-0.188/src/translate.py
--- rhpl-0.188.orig/src/translate.py 2005-07-06 11:40:10.000000000 -0700
+++ rhpl-0.188/src/translate.py 2006-09-01 16:20:24.000000000 -0700
@@ -125,7 +125,7 @@
buf = f.read(2)
f.close()
- if buf == "\037\213":
+ if buf == r"\037\213":
mofile = gzip.open(file_path)
else:
mofile = open(file_path)
Only in rhpl-0.188/src: _translate.so
+3
View File
@@ -0,0 +1,3 @@
MD5 5a74ee9e43760ea63669a27d171b7ec7 rhpl-0.188-2.src.rpm 299535
RMD160 a5ab8e57f10c25547877d528599ca4d3b2a3fdc8 rhpl-0.188-2.src.rpm 299535
SHA256 87db85b3dd8ded08fe8fde548cedc28cd59a51c7dd5ec4b84d6881a332c014fd rhpl-0.188-2.src.rpm 299535
+50
View File
@@ -0,0 +1,50 @@
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-python/rhpl/rhpl-0.188.ebuild,v 1.1 2006/09/05 20:59:07 dberkholz 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="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="GPL-2"
SLOT="0"
KEYWORDS="~ppc ~x86 ~amd64"
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"
}