From c56dd0fb8e2dc30458b13e1366a9c1402d9c945a Mon Sep 17 00:00:00 2001 From: Louis Sautier Date: Sun, 10 May 2020 12:22:24 +0200 Subject: [PATCH] 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 --- .../urlwatch-2.18-pycodestyle-requirement.patch | 15 +++++++++++++++ ...lwatch-2.18.ebuild => urlwatch-2.18-r1.ebuild} | 4 ++++ 2 files changed, 19 insertions(+) create mode 100644 www-misc/urlwatch/files/urlwatch-2.18-pycodestyle-requirement.patch rename www-misc/urlwatch/{urlwatch-2.18.ebuild => urlwatch-2.18-r1.ebuild} (90%) 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 000000000000..587a55ab03c8 --- /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 4c0c01c582b3..d8fcfd698a28 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 -- 2.26.2