summaryrefslogtreecommitdiff
path: root/dev-python/micawber
diff options
context:
space:
mode:
Diffstat (limited to 'dev-python/micawber')
-rw-r--r--dev-python/micawber/Manifest4
-rw-r--r--dev-python/micawber/micawber-0.3.3.ebuild6
-rw-r--r--dev-python/micawber/micawber-0.5.1.ebuild27
3 files changed, 35 insertions, 2 deletions
diff --git a/dev-python/micawber/Manifest b/dev-python/micawber/Manifest
index f9f39fb7de73..896a7c9ac643 100644
--- a/dev-python/micawber/Manifest
+++ b/dev-python/micawber/Manifest
@@ -1,4 +1,6 @@
AUX micawber-0.3.2-remove-examples-from-setup.py.patch 652 BLAKE2B b7551df8c1bdc16cbb10b54e071b965a273d4b51192cdf17f50d516580a6b52065d10b46274c1e3a90a063d87fe204111ab65eac2c4a937a9e59728ae9381d9c SHA512 225bfd7c7306170c7c6d0b564c84092b015ac078ac597764c0029613209851e157ae5bfa2e910a5368f540e68c5a01aa44df78511dba753c6d875b8eb144cda5
DIST micawber-0.3.3.tar.gz 32200 BLAKE2B 570c6e59cc73a7ddd878c6c03cba1600159a44cf1b1ce6a2e8d2311e5747352143cc7831a868cd27f68b36d67923860ec3a8c7f36a7a63aeb2c51d08f1fb2c02 SHA512 15f5e3f85e6d3bf44e6a4a3ae975872acb2e9093e15b56a5a3b24573332c811955c84f0ee69d327334b22fa61b29a51ce14657fc7bf2f486268145965c159bc0
-EBUILD micawber-0.3.3.ebuild 646 BLAKE2B c2c424984842dbdf9494d7c1a54c7f0f1efde63b52baf393572fa497b0bad61809523368245d3f1ab05877ae28fd824607ba71a61789f74e9cbdc33d0937513b SHA512 baff578a69b0498eb5f0aa403999e244a88dd334465296aad57227bf5a41c44d0b79aea9ee2ee7a424002b1d42ebbff37ab43410d74770483746a7485e189df9
+DIST micawber-0.5.1.tar.gz 34210 BLAKE2B cc3be0dfdb52a733ff37f249d589f37812c5f6b641b1dd2092faffcfeff9cd79c3989324def721859584280405a28c046ec98aeee3a89106fec0e3f27ed4fede SHA512 888826ced322a0584d827f7e0c58691281d8147e7c3ca9e940493a8beba41fbf6d005b0ca7c4ee6eb8e9c37edea4fb8244aaea9f553b886b1410d91aecbae4ee
+EBUILD micawber-0.3.3.ebuild 717 BLAKE2B 32c00bc962ed79b7a29ca555a277638b2623d0a62340525825f706abd0c50dc1195f3fc036590fa64c065c51855b9cb5165f4c0e3e378f1faf65d016be99ca6a SHA512 1047ddcedeb366900e8ddb4ed51cba075d60dd9d6ac50a4c8e4bc4dc807167a7e3043ca0db4608d859fe1ba5827d9541909ebf394fa76b4d2e8cee45325309b7
+EBUILD micawber-0.5.1.ebuild 639 BLAKE2B 66e794be8aa55a39787759b8eacd60ac3021135a70d4ba73a0f27f72e4caffe35948a35f3b496444f97e35ddbcf02266d582258c4099d0b43ccd8ac2af9517ea SHA512 11b03d6ea84ab38cbfeb2388f1e1593e063b2e01f27c74d5ef871233863d3b145772ad1e990c984f3339d467f5fb7f9fbeddb299f73eabf9b3fe80c6a2e45d27
MISC metadata.xml 332 BLAKE2B 1d2fa19b717b98bac1f2ad6fd261ce54360b6185671a3d1a51bc72080a6708196c0abcb5d5226dc0e4c693258caf85476a53d4b19d452b847e67a88adfed275c SHA512 9815d1b8eec3bf22a430737bc5a7dfc9e576f0f5ca79ca318a419dd911af378f94b63a6d457cba32bbf4e4939cea3690bad4e6be918ed79324f06f7eef42aaa0
diff --git a/dev-python/micawber/micawber-0.3.3.ebuild b/dev-python/micawber/micawber-0.3.3.ebuild
index e49d553ef81b..3c3c076355b0 100644
--- a/dev-python/micawber/micawber-0.3.3.ebuild
+++ b/dev-python/micawber/micawber-0.3.3.ebuild
@@ -16,10 +16,14 @@ IUSE="examples"
DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]"
-EXAMPLES=( examples/ )
PATCHES=( "${FILESDIR}"/${PN}-0.3.2-remove-examples-from-setup.py.patch ) #555250
python_install_all() {
+ if use examples; then
+ dodoc -r examples
+ docompress -x /usr/share/doc/${PF}/examples
+ fi
+
distutils-r1_python_install_all
dodoc -r docs
}
diff --git a/dev-python/micawber/micawber-0.5.1.ebuild b/dev-python/micawber/micawber-0.5.1.ebuild
new file mode 100644
index 000000000000..2bc5e97fd1f3
--- /dev/null
+++ b/dev-python/micawber/micawber-0.5.1.ebuild
@@ -0,0 +1,27 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+PYTHON_COMPAT=( python3_{6,7,8} )
+inherit distutils-r1
+
+DESCRIPTION="A small library for extracting rich content from urls"
+HOMEPAGE="https://github.com/coleifer/micawber/"
+SRC_URI="https://github.com/coleifer/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="test"
+RESTRICT="!test? ( test )"
+
+BDEPEND="
+ test? (
+ dev-python/beautifulsoup:4[${PYTHON_USEDEP}]
+ dev-python/django[${PYTHON_USEDEP}]
+ )"
+
+python_test() {
+ "${EPYTHON}" runtests.py || die "Tests failed with ${EPYTHON}"
+}