commit: c56dd0fb8e2dc30458b13e1366a9c1402d9c945a
Author: Louis Sautier <sbraz <AT> gentoo <DOT> org>
AuthorDate: Sun May 10 10:22:24 2020 +0000
Commit: Louis Sautier <sbraz <AT> gentoo <DOT> org>
CommitDate: Sun May 10 10:26:37 2020 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c56dd0fb
www-misc/urlwatch: fix failure when pycodestyle is not installed
Package-Manager: Portage-2.3.99, Repoman-2.3.22
Signed-off-by: Louis Sautier <sbraz <AT> gentoo.org>
.../files/urlwatch-2.18-pycodestyle-requirement.patch | 15 +++++++++++++++
.../{urlwatch-2.18.ebuild => urlwatch-2.18-r1.ebuild} | 4 ++++
2 files changed, 19 insertions(+)
diff --git
a/www-misc/urlwatch/files/urlwatch-2.18-pycodestyle-requirement.patch
b/www-misc/urlwatch/files/urlwatch-2.18-pycodestyle-requirement.patch
new file mode 100644
index 00000000000..587a55ab03c
--- /dev/null
+++ b/www-misc/urlwatch/files/urlwatch-2.18-pycodestyle-requirement.patch
@@ -0,0 +1,15 @@
+diff --git a/setup.py b/setup.py
+index 5f85aaf..7466787 100644
+--- a/setup.py
++++ b/setup.py
+@@ -17,9 +17,7 @@ if sys.version_info < (3, 3):
+ m['name'] = 'urlwatch'
+ m['author'], m['author_email'] = re.match(r'(.*) <(.*)>',
m['author']).groups()
+ m['description'], m['long_description'] = docs[0].strip().split('\n\n', 1)
+-m['install_requires'] = ['minidb', 'PyYAML', 'requests', 'keyring',
'pycodestyle', 'appdirs', 'lxml', 'cssselect']
+-if sys.version_info < (3, 4):
+- m['install_requires'].extend(['enum34'])
++m['install_requires'] = ['minidb', 'PyYAML', 'requests', 'keyring',
'appdirs', 'lxml', 'cssselect']
+ if sys.platform == 'win32':
+ m['install_requires'].extend(['colorama'])
+ m['entry_points'] = {"console_scripts": ["urlwatch=urlwatch.cli:main"]}
diff --git a/www-misc/urlwatch/urlwatch-2.18.ebuild
b/www-misc/urlwatch/urlwatch-2.18-r1.ebuild
similarity index 90%
rename from www-misc/urlwatch/urlwatch-2.18.ebuild
rename to www-misc/urlwatch/urlwatch-2.18-r1.ebuild
index 4c0c01c582b..d8fcfd698a2 100644
--- a/www-misc/urlwatch/urlwatch-2.18.ebuild
+++ b/www-misc/urlwatch/urlwatch-2.18-r1.ebuild
@@ -36,6 +36,10 @@ BDEPEND="
)
"
+# This will be in the next release
+#
https://github.com/thp/urlwatch/commit/44e862282d39a6e23f67c3c0240a93cccbb41a55
+PATCHES=( "${FILESDIR}/${P}-pycodestyle-requirement.patch" )
+
DOCS=( CHANGELOG.md README.md )
distutils_enable_tests nose