dev-python/backports-csv: New package, dependency of dev-python/cli_helpers
authorBrian Evans <grknight@gentoo.org>
Wed, 27 Dec 2017 14:32:19 +0000 (09:32 -0500)
committerBrian Evans <grknight@gentoo.org>
Wed, 27 Dec 2017 14:42:25 +0000 (09:42 -0500)
Package-Manager: Portage-2.3.19, Repoman-2.3.6

dev-python/backports-csv/Manifest [new file with mode: 0644]
dev-python/backports-csv/backports-csv-1.0.5.ebuild [new file with mode: 0644]
dev-python/backports-csv/metadata.xml [new file with mode: 0644]

diff --git a/dev-python/backports-csv/Manifest b/dev-python/backports-csv/Manifest
new file mode 100644 (file)
index 0000000..4f52184
--- /dev/null
@@ -0,0 +1 @@
+DIST backports.csv-1.0.5.tar.gz 12050 BLAKE2B b6c5c4b846040167c081166fc4f0f0fb2df4f4d68e28a00e43762044f86e35c5e104a07028bcb7a7fa0f2d377b2da16d202308b4b905dad979118786c0ea0f7e SHA512 0b3885d818153bd50da2c7d931f64464cb344100622d9692925f9eaca056bf973f7d1d3546520e54e03472766c7d8b600c53e0674eb5958e768f713ec16a96a8
diff --git a/dev-python/backports-csv/backports-csv-1.0.5.ebuild b/dev-python/backports-csv/backports-csv-1.0.5.ebuild
new file mode 100644 (file)
index 0000000..f4ea47f
--- /dev/null
@@ -0,0 +1,30 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+PYTHON_COMPAT=( python{2_7,3_4,3_5,3_6} )
+
+inherit distutils-r1
+
+MY_PN=${PN/-/.}
+MY_P=${MY_PN}-${PV}
+
+DESCRIPTION="Backport of Python 3's 'csv' module"
+HOMEPAGE="https://github.com/ryanhiebert/backports.csv https://pypi.python.org/pypi/backports.csv/"
+SRC_URI="mirror://pypi/${PN:0:1}/${MY_PN}/${MY_P}.tar.gz"
+
+LICENSE="PSF-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+RDEPEND="dev-python/backports[${PYTHON_USEDEP}]"
+DEPEND="dev-python/setuptools[${PYTHON_USEDEP}] ${RDEPEND}"
+
+S=${WORKDIR}/${MY_P}
+
+python_install_all() {
+       distutils-r1_python_install_all
+       find "${ED}" -name '*.pth' -delete || die
+}
diff --git a/dev-python/backports-csv/metadata.xml b/dev-python/backports-csv/metadata.xml
new file mode 100644 (file)
index 0000000..8da7e85
--- /dev/null
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+  <maintainer type="person">
+    <email>grknight@gentoo.org</email>
+    <name>Brian Evans</name>
+  </maintainer>
+  <upstream>
+    <remote-id type="github">ryanhiebert/backports.csv</remote-id>
+    <remote-id type="pypi">backports.csv</remote-id>
+  </upstream>
+</pkgmetadata>