summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDonnie Berkholz <dberkholz@gentoo.org>2006-09-05 20:59:07 +0000
committerDonnie Berkholz <dberkholz@gentoo.org>2006-09-05 20:59:07 +0000
commitf55aed3f00ea264a87a855d903966e21699beb03 (patch)
tree16a86db5295bd6e66df4fba141e471e26407afa8 /dev-python
parentPython wrappers for libxf86config (diff)
downloadhistorical-f55aed3f00ea264a87a855d903966e21699beb03.tar.gz
historical-f55aed3f00ea264a87a855d903966e21699beb03.tar.bz2
historical-f55aed3f00ea264a87a855d903966e21699beb03.zip
Library of python code used by Red Hat Linux programs
Package-Manager: portage-2.1.1_rc1-r1
Diffstat (limited to 'dev-python')
-rw-r--r--dev-python/rhpl/ChangeLog11
-rw-r--r--dev-python/rhpl/files/0.188-use-raw-strings-for-gettext.diff28
-rw-r--r--dev-python/rhpl/files/digest-rhpl-0.1883
-rw-r--r--dev-python/rhpl/metadata.xml9
-rw-r--r--dev-python/rhpl/rhpl-0.188.ebuild50
5 files changed, 101 insertions, 0 deletions
diff --git a/dev-python/rhpl/ChangeLog b/dev-python/rhpl/ChangeLog
new file mode 100644
index 000000000000..5f15a9a97f09
--- /dev/null
+++ b/dev-python/rhpl/ChangeLog
@@ -0,0 +1,11 @@
+# ChangeLog for dev-python/rhpl
+# Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-python/rhpl/ChangeLog,v 1.1 2006/09/05 20:59:07 dberkholz Exp $
+
+*rhpl-0.188 (05 Sep 2006)
+
+ 05 Sep 2006; Donnie Berkholz <dberkholz@gentoo.org>;
+ +files/0.188-use-raw-strings-for-gettext.diff, +metadata.xml,
+ +rhpl-0.188.ebuild:
+ Library of python code used by Red Hat Linux programs
+
diff --git a/dev-python/rhpl/files/0.188-use-raw-strings-for-gettext.diff b/dev-python/rhpl/files/0.188-use-raw-strings-for-gettext.diff
new file mode 100644
index 000000000000..c388c52ffa99
--- /dev/null
+++ b/dev-python/rhpl/files/0.188-use-raw-strings-for-gettext.diff
@@ -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
diff --git a/dev-python/rhpl/files/digest-rhpl-0.188 b/dev-python/rhpl/files/digest-rhpl-0.188
new file mode 100644
index 000000000000..916ee5b293a2
--- /dev/null
+++ b/dev-python/rhpl/files/digest-rhpl-0.188
@@ -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
diff --git a/dev-python/rhpl/metadata.xml b/dev-python/rhpl/metadata.xml
new file mode 100644
index 000000000000..cd89a979878d
--- /dev/null
+++ b/dev-python/rhpl/metadata.xml
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>no-herd</herd>
+<maintainer>
+<email>dberkholz@gentoo.org</email>
+<name>Donnie Berkholz</name>
+</maintainer>
+</pkgmetadata>
diff --git a/dev-python/rhpl/rhpl-0.188.ebuild b/dev-python/rhpl/rhpl-0.188.ebuild
new file mode 100644
index 000000000000..452f82b7b1b2
--- /dev/null
+++ b/dev-python/rhpl/rhpl-0.188.ebuild
@@ -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"
+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"
+}