diff options
| author | Patrick Lauer <patrick@gentoo.org> | 2017-09-30 16:38:23 +0000 |
|---|---|---|
| committer | Patrick Lauer <patrick@gentoo.org> | 2017-09-30 16:38:45 +0000 |
| commit | 73651ef9360e0572280eabe7dceeac90992a7088 (patch) | |
| tree | 5d6dccef05c2386bbae849356a74af4267dc35b6 /dev-python | |
| parent | 7843d29ab07411a9c70962fb90b4cd1546910242 (diff) | |
| download | gentoo-73651ef9360e0572280eabe7dceeac90992a7088.tar.gz gentoo-73651ef9360e0572280eabe7dceeac90992a7088.tar.bz2 gentoo-73651ef9360e0572280eabe7dceeac90992a7088.zip | |
dev-python/bottle: Bump
Package-Manager: Portage-2.3.10, Repoman-2.3.3
Diffstat (limited to 'dev-python')
| -rw-r--r-- | dev-python/bottle/Manifest | 1 | ||||
| -rw-r--r-- | dev-python/bottle/bottle-0.12.13.ebuild | 47 |
2 files changed, 48 insertions, 0 deletions
diff --git a/dev-python/bottle/Manifest b/dev-python/bottle/Manifest index b2fffd87c1f4..98c48e211f74 100644 --- a/dev-python/bottle/Manifest +++ b/dev-python/bottle/Manifest @@ -1 +1,2 @@ DIST bottle-0.12.12.tar.gz 71554 SHA256 3d4b6b0e22f67b421c273105b30d9a21fd147eaf0c1576172378ee034fbf5313 SHA512 cdba3859129680f08b8c641708fd884ccf46d404786cbf48435d752fece998a446f49799e4e05e979b967843866f3e966a35a6cac7aed3270df55fae508bae31 WHIRLPOOL 68bd9399c55409139bd93b588240a3569ff9773b30949d86b5a9bba7882dd6d824cb22883c922f3f910764c9655e0e91fb40b3c9675790a67e1b6330122ab741 +DIST bottle-0.12.13.tar.gz 70870 SHA256 39b751aee0b167be8dffb63ca81b735bbf1dd0905b3bc42761efedee8f123355 SHA512 86d106eb08e0b736a85aa69871f2d1e23c1d6f71948b85718daf131002c53c000e092ffdfe5b36c60460473467a2ca2b5af19767344689ffe638245e6859a80b WHIRLPOOL 4193ca33071e0d87a430f24bf2adaf2a0b02bb576bba4483ce6ef848f91a0202d028f8982e60d3c8946abdc2230ddf63a737346e006b8880c0c5a436b67bb01a diff --git a/dev-python/bottle/bottle-0.12.13.ebuild b/dev-python/bottle/bottle-0.12.13.ebuild new file mode 100644 index 000000000000..9c67c5945c15 --- /dev/null +++ b/dev-python/bottle/bottle-0.12.13.ebuild @@ -0,0 +1,47 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +PYTHON_COMPAT=( python2_7 python3_{4,5,6} pypy pypy3 ) + +inherit distutils-r1 eutils + +DESCRIPTION="A fast and simple micro-framework for small web-applications" +HOMEPAGE="https://pypi.python.org/pypi/bottle http://bottlepy.org/" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd" +IUSE="test" + +DEPEND="test? ( dev-python/mako[$(python_gen_usedep 'python*')] )" +RDEPEND="" + +PATCHES=( + "${FILESDIR}"/${PN}-0.12.8-py3.5-backport.patch +) + +python_prepare_all() { + sed -i -e '/scripts/d' setup.py || die + + # Remove test file requring connection to network + rm test/test_server.py || die + distutils-r1_python_prepare_all +} + +python_test() { + # A few odd fails in the suite under pypy + # https://github.com/bottlepy/bottle/issues/714 + "${PYTHON}" test/testall.py || die "tests failed under ${EPYTHON}" +} + +pkg_postinst() { + optfeature "Templating support" dev-python/mako + elog "Due to problems with bottle.py being in /usr/bin (see bug #474874)" + elog "we do as most other distros and do not install the script anymore." + elog "If you do want/have to call it directly rather than through your app," + elog "please use the following instead:" + elog ' `python -m bottle`' +} |
