1 |
commit: 252e6c2f5e8f17e306bdc6e7da04102c3b926d02 |
2 |
Author: Sebastian Pipping <sping <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Jan 1 18:56:12 2019 +0000 |
4 |
Commit: Sebastian Pipping <sping <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Jan 1 19:02:05 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=252e6c2f |
7 |
|
8 |
dev-python/bottle: 0.12.16 |
9 |
|
10 |
Signed-off-by: Sebastian Pipping <sping <AT> gentoo.org> |
11 |
Package-Manager: Portage-2.3.50, Repoman-2.3.11 |
12 |
|
13 |
dev-python/bottle/Manifest | 1 + |
14 |
dev-python/bottle/bottle-0.12.16.ebuild | 48 +++++++++++++++++++++++++++++++++ |
15 |
2 files changed, 49 insertions(+) |
16 |
|
17 |
diff --git a/dev-python/bottle/Manifest b/dev-python/bottle/Manifest |
18 |
index afcba7d04ce..a6843d95900 100644 |
19 |
--- a/dev-python/bottle/Manifest |
20 |
+++ b/dev-python/bottle/Manifest |
21 |
@@ -1,2 +1,3 @@ |
22 |
DIST bottle-0.12.12.tar.gz 71554 BLAKE2B 4b0d0d77c5ebaddcafd44e16a052535ded566245324d39e97a39dd20a193360487f9489e8e89471dd92ca35d6c5b2e8cbe1572a958db31b69d32d3e32f1b6403 SHA512 cdba3859129680f08b8c641708fd884ccf46d404786cbf48435d752fece998a446f49799e4e05e979b967843866f3e966a35a6cac7aed3270df55fae508bae31 |
23 |
DIST bottle-0.12.13.tar.gz 70870 BLAKE2B d8bdef473181ce1cf6c0d1ea3537c407e68d23c1c44ca33e26c647d3b3783040d466b594c56c10cdd007d23bdf1708412d3e3ff108effa9e8a92e1b22f7a6c69 SHA512 86d106eb08e0b736a85aa69871f2d1e23c1d6f71948b85718daf131002c53c000e092ffdfe5b36c60460473467a2ca2b5af19767344689ffe638245e6859a80b |
24 |
+DIST bottle-0.12.16.tar.gz 72248 BLAKE2B 21b5bc376648baec74577ac5b57fcacc58899babe07a034a436d5e2bde75a9e2e48b2569c5caf1478e77790c5fa327114ab9b084f014cc1ba97637d9ddfec659 SHA512 3c167f95902522c8f264e8478403da8e9b8cd84594318c4a773d38b7548b5ba95c99ef922033f6885cdc044b31f9c2e2f7ed263886637ce2a048e99c0c6e1403 |
25 |
|
26 |
diff --git a/dev-python/bottle/bottle-0.12.16.ebuild b/dev-python/bottle/bottle-0.12.16.ebuild |
27 |
new file mode 100644 |
28 |
index 00000000000..db42adc4ec3 |
29 |
--- /dev/null |
30 |
+++ b/dev-python/bottle/bottle-0.12.16.ebuild |
31 |
@@ -0,0 +1,48 @@ |
32 |
+# Copyright 1999-2019 Gentoo Authors |
33 |
+# Distributed under the terms of the GNU General Public License v2 |
34 |
+ |
35 |
+EAPI=5 |
36 |
+ |
37 |
+PYTHON_COMPAT=( python2_7 python3_{4,5,6,7} pypy pypy3 ) |
38 |
+ |
39 |
+inherit distutils-r1 eutils |
40 |
+ |
41 |
+DESCRIPTION="A fast and simple micro-framework for small web-applications" |
42 |
+HOMEPAGE="https://pypi.org/project/bottle/ http://bottlepy.org/" |
43 |
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" |
44 |
+ |
45 |
+LICENSE="MIT" |
46 |
+SLOT="0" |
47 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd" |
48 |
+IUSE="test" |
49 |
+ |
50 |
+DEPEND="dev-python/setuptools[${PYTHON_USEDEP}] |
51 |
+ test? ( dev-python/mako[$(python_gen_usedep 'python*')] )" |
52 |
+RDEPEND="" |
53 |
+ |
54 |
+PATCHES=( |
55 |
+ "${FILESDIR}"/${PN}-0.12.8-py3.5-backport.patch |
56 |
+) |
57 |
+ |
58 |
+python_prepare_all() { |
59 |
+ sed -i -e '/scripts/d' setup.py || die |
60 |
+ |
61 |
+ # Remove test file requring connection to network |
62 |
+ rm test/test_server.py || die |
63 |
+ distutils-r1_python_prepare_all |
64 |
+} |
65 |
+ |
66 |
+python_test() { |
67 |
+ # A few odd fails in the suite under pypy |
68 |
+ # https://github.com/bottlepy/bottle/issues/714 |
69 |
+ "${PYTHON}" test/testall.py || die "tests failed under ${EPYTHON}" |
70 |
+} |
71 |
+ |
72 |
+pkg_postinst() { |
73 |
+ optfeature "Templating support" dev-python/mako |
74 |
+ elog "Due to problems with bottle.py being in /usr/bin (see bug #474874)" |
75 |
+ elog "we do as most other distros and do not install the script anymore." |
76 |
+ elog "If you do want/have to call it directly rather than through your app," |
77 |
+ elog "please use the following instead:" |
78 |
+ elog ' `python -m bottle`' |
79 |
+} |