]> Pileus Git - ~andy/sunrise/commitdiff
dev-python/python-debian: New ebuild for bug 356129
authorMike Gilbert <floppym@gentoo.org>
Tue, 22 Feb 2011 20:50:11 +0000 (20:50 +0000)
committerMike Gilbert <floppym@gentoo.org>
Tue, 22 Feb 2011 20:50:11 +0000 (20:50 +0000)
svn path=/sunrise/; revision=11788

dev-python/python-debian/ChangeLog [new file with mode: 0644]
dev-python/python-debian/Manifest [new file with mode: 0644]
dev-python/python-debian/metadata.xml [new file with mode: 0644]
dev-python/python-debian/python-debian-0.1.18.ebuild [new file with mode: 0644]

diff --git a/dev-python/python-debian/ChangeLog b/dev-python/python-debian/ChangeLog
new file mode 100644 (file)
index 0000000..0bf5364
--- /dev/null
@@ -0,0 +1,8 @@
+# ChangeLog for dev-python/python-debian
+# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
+# $Header: $
+
+  22 Feb 2011; Mike Gilbert <floppymaster@gmail.com>
+  +python-debian-0.1.18.ebuild, +metadata.xml:
+  New ebuild for bug 356129
+
diff --git a/dev-python/python-debian/Manifest b/dev-python/python-debian/Manifest
new file mode 100644 (file)
index 0000000..8af2483
--- /dev/null
@@ -0,0 +1,4 @@
+DIST python-debian_0.1.18.tar.gz 182921 RMD160 0976ec953cebff2d0a3bb4e7fd23abb297a550b6 SHA1 8f507f38efef9f5cdc4d160a46380e64cd4de7b9 SHA256 b5b0a534d14e2e131d138afbf91bfdfa260e672e5bfba6e4c3bc6abca0454bb2
+EBUILD python-debian-0.1.18.ebuild 1032 RMD160 5b4b26abf99a2733061916ee639793e20a3bb46f SHA1 46519a722ca4852bf18628c2b0a45cbe26adee27 SHA256 142266717d94931418efdcf6adcbf55ca029943583f0fabaae81b25408313748
+MISC ChangeLog 254 RMD160 df67166e946ed6de4a242e62f14b6bc310aa8404 SHA1 ab55910237483a810063fa447ecaf94161c23e9c SHA256 1d1825802b9259ff90682df28e25aa5cb43bb4e97ebd3a3261169dd6b52f8270
+MISC metadata.xml 236 RMD160 436d0d621f57d67fdc9f26b237dd3fea1250d098 SHA1 47f6942e8f7c8698f50cdefc101c4ba7218cfe60 SHA256 a13a64b5acaf180f7646044ce3ee8b8071157d4e84589641c239d50a59c48981
diff --git a/dev-python/python-debian/metadata.xml b/dev-python/python-debian/metadata.xml
new file mode 100644 (file)
index 0000000..5e10119
--- /dev/null
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+       <herd>no-herd</herd>
+       <maintainer>
+               <email>maintainer-wanted@gentoo.org</email>
+       </maintainer>
+</pkgmetadata>
diff --git a/dev-python/python-debian/python-debian-0.1.18.ebuild b/dev-python/python-debian/python-debian-0.1.18.ebuild
new file mode 100644 (file)
index 0000000..13de5e2
--- /dev/null
@@ -0,0 +1,53 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI="3"
+
+PYTHON_DEPEND="2"
+SUPPORT_PYTHON_ABIS="1"
+RESTRICT_PYTHON_ABIS="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/${PN: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
+               local e
+               for e in examples/* ; do
+                       docinto "${e}"
+                       dodoc "${e}"/* || die
+               done
+       fi
+}