summaryrefslogtreecommitdiff
path: root/dev-python/imdbpy
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2018-07-14 21:03:06 +0100
committerV3n3RiX <venerix@redcorelinux.org>2018-07-14 21:03:06 +0100
commit8376ef56580626e9c0f796d5b85b53a0a1c7d5f5 (patch)
tree7681bbd4e8b05407772df40a4bf04cbbc8afc3fa /dev-python/imdbpy
parent30a9caf154332f12ca60756e1b75d2f0e3e1822d (diff)
gentoo resync : 14.07.2018
Diffstat (limited to 'dev-python/imdbpy')
-rw-r--r--dev-python/imdbpy/Manifest4
-rw-r--r--dev-python/imdbpy/files/imdbpy-4.6-data_location.patch11
-rw-r--r--dev-python/imdbpy/imdbpy-5.0.ebuild41
-rw-r--r--dev-python/imdbpy/metadata.xml9
4 files changed, 65 insertions, 0 deletions
diff --git a/dev-python/imdbpy/Manifest b/dev-python/imdbpy/Manifest
new file mode 100644
index 000000000000..4f15833d07cf
--- /dev/null
+++ b/dev-python/imdbpy/Manifest
@@ -0,0 +1,4 @@
+AUX imdbpy-4.6-data_location.patch 386 BLAKE2B d8d5d9696c8b16fc0b6b17e0c586fc4d13888656a5d6c197109ae2c9ea7899460f3db29c692b300599269bbade467a5a607dd0f9b1469299280c071ee1178cc7 SHA512 b6846126cf3eab62f454b1d8073d068a356ee792895939c9a4ee67eacd46616d0173bc85e52f6930f3ee8d96b95913afcc07b5b384a205559bce105e37038567
+DIST IMDbPY-5.0.tar.gz 367238 BLAKE2B 978748df2352725b5577b2a1274f807a62b26fa673a063929e0f6566dd0de3dad268f63ace03dea43a54b3621532be11a0a70781dd745579119042c33c909439 SHA512 924b9c9b7055c75abb1c48867ba9ccef3c5259c748a6f21e8344616da9ea58d5ae58a2f12a78dc61fea7c008956994687fdcf7ecd59f5f4e82daea62890086d4
+EBUILD imdbpy-5.0.ebuild 891 BLAKE2B c3d917590562c3b3dc543fce6b9544ca6114bcb0d7366565a2e9cb9feff45b474030d693006ad8262e74b5bf4cecf0ff3835629f8fae5622079e927768ad4fbb SHA512 67bd4a437793b5b8fde00c2b2bdc814feed5ea7c2cff1cfb108dda7d6d37abd66a6af4132b770416e1be0241c93c4594ebfc0cf80783a010b63fa3e4a465c709
+MISC metadata.xml 287 BLAKE2B 9a17b04e0dae1ad2e3003c9292fb4e622a483e549e880d2c4909cb6610622e1c0651ce1185f63bd330dce314f3470ccda272170f4a077a578b924aab96067c7b SHA512 73efa1a442676f1fea6bfa663d9615e9e55d2520d8a30749ceea26fbadf3df55358320ddb5ced57841b5d4eec5dc6948b3c85d2537d8fbed3cc1d4392f970767
diff --git a/dev-python/imdbpy/files/imdbpy-4.6-data_location.patch b/dev-python/imdbpy/files/imdbpy-4.6-data_location.patch
new file mode 100644
index 000000000000..90dc467170eb
--- /dev/null
+++ b/dev-python/imdbpy/files/imdbpy-4.6-data_location.patch
@@ -0,0 +1,11 @@
+--- setup.py
++++ setup.py
+@@ -70,7 +70,7 @@
+
+ # XXX: I'm not sure that 'etc' is a good idea. Making it an absolute
+ # path seems a recipe for a disaster (with bdist_egg, at least).
+-data_files = [('doc', setuptools.findall('docs')), ('etc', ['docs/imdbpy.cfg'])]
++data_files = [('/etc', ['docs/imdbpy.cfg'])]
+
+
+ # Defining these 'features', it's possible to run commands like:
diff --git a/dev-python/imdbpy/imdbpy-5.0.ebuild b/dev-python/imdbpy/imdbpy-5.0.ebuild
new file mode 100644
index 000000000000..824232084770
--- /dev/null
+++ b/dev-python/imdbpy/imdbpy-5.0.ebuild
@@ -0,0 +1,41 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+PYTHON_COMPAT=( python2_7 pypy )
+
+inherit distutils-r1
+
+MY_PN="IMDbPY"
+MY_P="${MY_PN}-${PV}"
+
+DESCRIPTION="Python package to access the IMDb movie database"
+HOMEPAGE="http://imdbpy.sourceforge.net/ https://pypi.org/project/IMDbPY/"
+SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~ppc ~sparc ~x86"
+IUSE=""
+
+DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]"
+RDEPEND=""
+
+S="${WORKDIR}/${MY_PN}-${PV}"
+
+DOCS=( docs/FAQS.txt docs/imdbpy48.dtd docs/imdbpy.cfg )
+
+PATCHES=( "${FILESDIR}/${PN}-4.6-data_location.patch" )
+
+src_configure() {
+ distutils-r1_src_configure --without-cutils
+}
+
+python_install_all() {
+ local doc
+ for doc in docs/README*
+ do
+ DOCS=( "${DOCS[@]}" $doc )
+ done
+ distutils-r1_python_install_all
+}
diff --git a/dev-python/imdbpy/metadata.xml b/dev-python/imdbpy/metadata.xml
new file mode 100644
index 000000000000..9a2bea3d2d20
--- /dev/null
+++ b/dev-python/imdbpy/metadata.xml
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <!-- maintainer-needed -->
+ <upstream>
+ <remote-id type="pypi">IMDbPY</remote-id>
+ <remote-id type="sourceforge">imdbpy</remote-id>
+ </upstream>
+</pkgmetadata>