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