summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Gilbert <floppym@gentoo.org>2011-09-08 01:12:31 +0000
committerMike Gilbert <floppym@gentoo.org>2011-09-08 01:12:31 +0000
commitc0afb84a8131fcac0c3de86f3d7a538ffa29d491 (patch)
tree72ab9be0a845b638579044eb4b472bda2070bbe4 /dev-python/python-debian
parentDev channel version bump. (diff)
downloadgentoo-2-c0afb84a8131fcac0c3de86f3d7a538ffa29d491.tar.gz
gentoo-2-c0afb84a8131fcac0c3de86f3d7a538ffa29d491.tar.bz2
gentoo-2-c0afb84a8131fcac0c3de86f3d7a538ffa29d491.zip
New package for bug 356129
(Portage version: 2.2.0_alpha54/cvs/Linux x86_64)
Diffstat (limited to 'dev-python/python-debian')
-rw-r--r--dev-python/python-debian/ChangeLog10
-rw-r--r--dev-python/python-debian/metadata.xml9
-rw-r--r--dev-python/python-debian/python-debian-0.1.21.ebuild50
3 files changed, 69 insertions, 0 deletions
diff --git a/dev-python/python-debian/ChangeLog b/dev-python/python-debian/ChangeLog
new file mode 100644
index 000000000000..fa1819f1bc23
--- /dev/null
+++ b/dev-python/python-debian/ChangeLog
@@ -0,0 +1,10 @@
+# ChangeLog for dev-python/python-debian
+# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-python/python-debian/ChangeLog,v 1.1 2011/09/08 01:12:31 floppym Exp $
+
+*python-debian-0.1.21 (08 Sep 2011)
+
+ 08 Sep 2011; Mike Gilbert <floppym@gentoo.org> +python-debian-0.1.21.ebuild,
+ +metadata.xml:
+ New package for bug 356129
+
diff --git a/dev-python/python-debian/metadata.xml b/dev-python/python-debian/metadata.xml
new file mode 100644
index 000000000000..f320dd15bcfb
--- /dev/null
+++ b/dev-python/python-debian/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>python</herd>
+ <maintainer>
+ <email>floppym@gentoo.org</email>
+ <name>Mike Gilbert</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/dev-python/python-debian/python-debian-0.1.21.ebuild b/dev-python/python-debian/python-debian-0.1.21.ebuild
new file mode 100644
index 000000000000..f782603d6e3c
--- /dev/null
+++ b/dev-python/python-debian/python-debian-0.1.21.ebuild
@@ -0,0 +1,50 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-python/python-debian/python-debian-0.1.21.ebuild,v 1.1 2011/09/08 01:12:31 floppym Exp $
+
+EAPI="3"
+
+PYTHON_DEPEND="2:2.5"
+SUPPORT_PYTHON_ABIS="1"
+RESTRICT_PYTHON_ABIS="2.4 3.*"
+
+inherit distutils
+
+DESCRIPTION="Python modules to work with Debian-related data formats"
+HOMEPAGE="http://packages.debian.org/sid/python-debian"
+SRC_URI="mirror://debian/pool/main/${P:0:1}/${PN}/${PN}_${PV}.tar.gz"
+
+LICENSE="GPL-2 GPL-3"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="examples"
+
+RDEPEND="dev-python/chardet"
+DEPEND="${RDEPEND}
+ dev-python/setuptools"
+
+PYTHON_MODNAME="deb822.py debian debian_bundle"
+
+src_prepare() {
+ sed -e "s/__CHANGELOG_VERSION__/${PV}/" setup.py.in > setup.py || die
+ distutils_src_prepare
+}
+
+src_test() {
+ testing() {
+ local t
+ for t in test_*.py ; do
+ "$(PYTHON)" "${t}" || return
+ done
+ }
+ cd tests || die
+ python_execute_function testing
+}
+
+src_install() {
+ distutils_src_install
+ if use examples ; then
+ insinto /usr/share/doc/${PF}
+ doins -r examples || die
+ fi
+}