diff options
author | Matthew Thode <prometheanfire@gentoo.org> | 2016-09-29 16:42:45 -0500 |
---|---|---|
committer | Matthew Thode <prometheanfire@gentoo.org> | 2016-09-29 22:43:40 -0500 |
commit | 19adfded88fa698aa49dd5310b231e9cb57a3ff5 (patch) | |
tree | 1f7c14336a06f1350c52b08df7a9d1c9e3cbf612 /dev-python/routes | |
parent | sci-libs/blas-reference: ebuild maintenance, cleanup (diff) | |
download | gentoo-19adfded88fa698aa49dd5310b231e9cb57a3ff5.tar.gz gentoo-19adfded88fa698aa49dd5310b231e9cb57a3ff5.tar.bz2 gentoo-19adfded88fa698aa49dd5310b231e9cb57a3ff5.zip |
add initial support for newton (keystone)
dropped py3.3 and updated most (maybe all) to eapi6
Diffstat (limited to 'dev-python/routes')
-rw-r--r-- | dev-python/routes/Manifest | 1 | ||||
-rw-r--r-- | dev-python/routes/routes-2.3.1.ebuild | 56 |
2 files changed, 57 insertions, 0 deletions
diff --git a/dev-python/routes/Manifest b/dev-python/routes/Manifest index 968f045910bc..45e0d6f9aefe 100644 --- a/dev-python/routes/Manifest +++ b/dev-python/routes/Manifest @@ -1,2 +1,3 @@ DIST Routes-2.1.tar.gz 179737 SHA256 ebf4126e244cf11414653b5ba5f27ed4abfad38b906a01e5d4c93d3ce5568ea3 SHA512 6dcea3e20d9883e29d6aea5949eef3b265094f46084234a15530c266930163918c6eb2ad00bb49cd9cbf947a0019c2d91a5455f997bc7a7e5b8c662837a728c2 WHIRLPOOL fbdb8e1a84aa2b1b8bf011aa68a31364f0fd48cabcaaf413274679f34e514283fbd8aac9497444b24f69f7d72393f38aeab5eeeb96659e3aae009ed2eebc4fbf DIST Routes-2.2.tar.gz 180011 SHA256 9fa78373d63e36c3d8af6e33cfcad743f70c012c7ad6f2c3bf89ad973b9ab514 SHA512 ddd88c412fce902aa75be46dd564bea7fed630116d50c0f08db6813de26bbb7af5adf7366dd3664a0fc10e369ed5089f6cc9ac91cc236e1b45c828fe2deee2e2 WHIRLPOOL 9fe75ce3826e64ff46db35fdb47c655f86709fdbfb64ad317b2f672e761a717bc2b4c2fd18f1675b36922d65300cd2f7acec87cb08ceeb50cb85fb099c15209f +DIST Routes-2.3.1.tar.gz 181694 SHA256 98c380b5dc1190b873463be07383728ada18f66d2615531963004b9d6fb90351 SHA512 125bcee31883e55ac2c01896e52890c1eace238728e9f340b9dede8257e66b1002cf48a633b9b0c3421291287559890c3233665cd49b1edb4ed80a99f003da8d WHIRLPOOL 2e8f931c0ac85bc7e0f46dea7b0e38798f8d37005266e40986450d2b3d71c2621150ec8aead05691244622f24b097932e5eb476089f262b8a1b7c19db1333a33 diff --git a/dev-python/routes/routes-2.3.1.ebuild b/dev-python/routes/routes-2.3.1.ebuild new file mode 100644 index 000000000000..57edb022738b --- /dev/null +++ b/dev-python/routes/routes-2.3.1.ebuild @@ -0,0 +1,56 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +PYTHON_COMPAT=( python{2_7,3_4,3_5} ) + +inherit distutils-r1 + +MY_PN="Routes" +MY_P="${MY_PN}-${PV}" + +DESCRIPTION="A re-implementation of Rails routes system, mapping URLs to Controllers/Actions" +HOMEPAGE="http://routes.groovie.org https://pypi.python.org/pypi/Routes" +SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~arm64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos" +IUSE="doc" + +DEPEND="dev-python/setuptools[${PYTHON_USEDEP}] + doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )" + +RDEPEND=">=dev-python/repoze-lru-0.3[${PYTHON_USEDEP}] + dev-python/six[${PYTHON_USEDEP}]" + +# The testsuite appears to be held back by the author + +S="${WORKDIR}/${MY_P}" + +# https://github.com/bbangert/routes/issues/42 presents a patch +# for the faulty docbuild converted to sed stmnts +python_prepare_all() { + # The default theme in sphinx switched to classic from shpinx-1.3.1 + if has_version ">=dev-python/sphinx-1.3.1"; then + sed -e "s:html_theme_options = {:html_theme = 'classic'\n&:" \ + -i docs/conf.py || die + else + sed -e "s:html_theme_options = {:html_theme = 'default'\n&:" \ + -i docs/conf.py || die + fi + sed -e "s:changes:changes\n todo:" \ + -i docs/index.rst || die + + distutils-r1_python_prepare_all +} + +python_compile_all() { + use doc && emake -C docs html +} + +python_install_all() { + use doc && HTML_DOCS=( docs/_build/html/. ) + distutils-r1_python_install_all +} |