Gentoo Archives: gentoo-commits

From: Louis Sautier <sbraz@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: www-misc/urlwatch/
Date: Sun, 03 May 2020 21:14:58
Message-Id: 1588540486.152b9c2cefc077d2cecf5a9bab5d38cfa20a43fa.sbraz@gentoo
1 commit: 152b9c2cefc077d2cecf5a9bab5d38cfa20a43fa
2 Author: Louis Sautier <sbraz <AT> gentoo <DOT> org>
3 AuthorDate: Sun May 3 21:14:13 2020 +0000
4 Commit: Louis Sautier <sbraz <AT> gentoo <DOT> org>
5 CommitDate: Sun May 3 21:14:46 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=152b9c2c
7
8 www-misc/urlwatch: bump to 2.18
9
10 Package-Manager: Portage-2.3.99, Repoman-2.3.22
11 Signed-off-by: Louis Sautier <sbraz <AT> gentoo.org>
12
13 www-misc/urlwatch/Manifest | 1 +
14 www-misc/urlwatch/urlwatch-2.18.ebuild | 60 ++++++++++++++++++++++++++++++++++
15 2 files changed, 61 insertions(+)
16
17 diff --git a/www-misc/urlwatch/Manifest b/www-misc/urlwatch/Manifest
18 index baa34b18c12..8ad3d3c9768 100644
19 --- a/www-misc/urlwatch/Manifest
20 +++ b/www-misc/urlwatch/Manifest
21 @@ -1 +1,2 @@
22 DIST urlwatch-2.17.tar.gz 44178 BLAKE2B 46163b3305a50c3b5165da8f794c252aeb0a3581f16ba04cc1f0d920066accd02f7eba47718012e2ac0071f6bfa31019777a28840179a28a7fe365ae2e8f1d2c SHA512 635bca7e55641dd73447f5ec9ad429539decfaa8a1c19ab073c3bd46acfc518fa6012d855e0c37dd78654da28acf1446f580def611bcb85ae94fe13f567e3613
23 +DIST urlwatch-2.18.tar.gz 48268 BLAKE2B e595a6ed27637463f14f92ecafd123eb0c7cef7102cc35ebbc3334804f7e09cc5f933aa2d54e24acd74a1419d6a8683a0d5fb2456b35ae0797c3d8a12efc33de SHA512 4b44a78fe7f2be6f507487ad5de57d79aa55ee790b29b97f2a364c0f3b58828fea5eb2b08235c15cafd3839b9261a7f148ebc9bceb5bedd1ff8319f7f039bb23
24
25 diff --git a/www-misc/urlwatch/urlwatch-2.18.ebuild b/www-misc/urlwatch/urlwatch-2.18.ebuild
26 new file mode 100644
27 index 00000000000..4c0c01c582b
28 --- /dev/null
29 +++ b/www-misc/urlwatch/urlwatch-2.18.ebuild
30 @@ -0,0 +1,60 @@
31 +# Copyright 1999-2020 Gentoo Authors
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +EAPI=7
35 +PYTHON_COMPAT=( python3_{6,7,8} )
36 +# The package uses entry points but setup.py is weird
37 +# so the eclass doesn't detect it
38 +DISTUTILS_USE_SETUPTOOLS=manual
39 +
40 +inherit distutils-r1
41 +
42 +DESCRIPTION="A tool for monitoring webpages for updates"
43 +HOMEPAGE="https://thp.io/2008/urlwatch/"
44 +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
45 +
46 +LICENSE="BSD"
47 +SLOT="0"
48 +KEYWORDS="~amd64 ~x86"
49 +
50 +RDEPEND="
51 + dev-python/appdirs[${PYTHON_USEDEP}]
52 + dev-python/cssselect[${PYTHON_USEDEP}]
53 + dev-python/keyring[${PYTHON_USEDEP}]
54 + dev-python/lxml[${PYTHON_USEDEP}]
55 + dev-python/minidb[${PYTHON_USEDEP}]
56 + dev-python/pyyaml[${PYTHON_USEDEP}]
57 + dev-python/requests[${PYTHON_USEDEP}]
58 + dev-python/setuptools[${PYTHON_USEDEP}]
59 +"
60 +BDEPEND="
61 + dev-python/setuptools[${PYTHON_USEDEP}]
62 + test? (
63 + ${RDEPEND}
64 + dev-python/nose[${PYTHON_USEDEP}]
65 + dev-python/pycodestyle[${PYTHON_USEDEP}]
66 + )
67 +"
68 +
69 +DOCS=( CHANGELOG.md README.md )
70 +
71 +distutils_enable_tests nose
72 +
73 +pkg_postinst() {
74 + if [[ -z "${REPLACING_VERSIONS}" ]]; then
75 + if ! has_version dev-python/chump; then
76 + elog "Install 'dev-python/chump' to enable Pushover" \
77 + "notifications support"
78 + fi
79 + if ! has_version dev-python/pushbullet-py; then
80 + elog "Install 'dev-python/pushbullet-py' to enable" \
81 + "Pushbullet notifications support"
82 + fi
83 + elog "HTML parsing can be improved by installing one of the following packages"
84 + elog "and changing the html2text subfilter parameter:"
85 + elog "dev-python/beautifulsoup:4"
86 + elog "app-text/html2text"
87 + elog "dev-python/html2text"
88 + elog "www-client/lynx"
89 + fi
90 +}