www-misc/urlwatch: version bump.
authorPatrice Clement <monsieurp@gentoo.org>
Sat, 21 Apr 2018 18:42:22 +0000 (20:42 +0200)
committerPatrice Clement <monsieurp@gentoo.org>
Mon, 23 Apr 2018 14:21:59 +0000 (16:21 +0200)
Package-Manager: Portage-2.3.24, Repoman-2.3.6

www-misc/urlwatch/Manifest
www-misc/urlwatch/urlwatch-2.9.ebuild [new file with mode: 0644]

index d0b21de19d10ba208fec6822edbdd79ec2abc535..b4c5f67e02720454403a6eac6321fcd52079d0da 100644 (file)
@@ -1,2 +1,3 @@
 DIST urlwatch-2.5.tar.gz 25322 BLAKE2B 637fa254fe565d9a3909fc80879a7b40a72a92e01cdca3a2e95f905c768238e4a2ef7559e32ae4295357d3391109f08149e721564e4c14b6c8be281a416cc45a SHA512 993d2596288d014a3b84ae22c29ce89282c4320dd95b339c9892db07997059fc80a96198cb89ba04d935f68d2d051da96dc981f8e8b3657492443b060d2126a1
 DIST urlwatch-2.6.tar.gz 30412 BLAKE2B 3d9495a418f8180a788db27bec13f9c20d92476851404d0f78dc6fec664a90c4bf9749cbe26323741a31175abf5b6ca01c066da8a8db6e63da73b46bb524e293 SHA512 52d71984972c6888ade01fcc635d33a60c024424b82ac9319554f548438f8a4e2f32a8b7d3047ed86654c8ef67e3b6eac99728f9409b60cdffe7e842fd8fe16c
+DIST urlwatch-2.9.tar.gz 33891 BLAKE2B 00a0b64574f24b2fe68d9137c38dc9a76083e5e8c5717e47b56e2961694831ef0123f607e95bcc1a89cf6af1eaa812d305f53f5ac597affa6345f4bed3961c10 SHA512 d9d5786f524bb4ecac6c8c2368f39dcd6b38b69bcfd03c1c43c38305144481656a03e740568e5094720e89db26cabd7b301eae4e6ce10c41a7d2faa4dae96ea8
diff --git a/www-misc/urlwatch/urlwatch-2.9.ebuild b/www-misc/urlwatch/urlwatch-2.9.ebuild
new file mode 100644 (file)
index 0000000..dd5177a
--- /dev/null
@@ -0,0 +1,50 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+PYTHON_COMPAT=( python{3_4,3_5} )
+
+inherit distutils-r1
+
+DESCRIPTION="A tool for monitoring webpages for updates"
+HOMEPAGE="https://pypi.org/project/urlwatch"
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="test"
+RESTRICT="test"
+
+RDEPEND="
+       dev-python/keyring[${PYTHON_USEDEP}]
+       dev-python/pyyaml[${PYTHON_USEDEP}]
+       dev-python/minidb[${PYTHON_USEDEP}]
+       dev-python/requests[${PYTHON_USEDEP}]
+       || ( www-client/lynx app-text/html2text )
+"
+DEPEND="
+       dev-python/setuptools[${PYTHON_USEDEP}]
+       test? (
+               ${RDEPEND}
+               dev-python/nose[${PYTHON_USEDEP}]
+               dev-python/pycodestyle[${PYTHON_USEDEP}]
+       )
+"
+
+python_test() {
+       nosetests test || die "tests failed with ${EPYTHON}"
+}
+
+pkg_postinst() {
+       if [[ -z "${REPLACING_VERSIONS}" ]]; then
+               if ! has_version dev-python/chump; then
+                       elog "Install 'dev-python/chump' to enable Pushover" \
+                               "notifications support"
+               fi
+               if ! has_version dev-python/pushbullet-py; then
+                       elog "Install 'dev-python/pushbullet-py' to enable" \
+                               "Pushbullet notifications support"
+               fi
+       fi
+}