diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2020-04-12 03:41:30 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2020-04-12 03:41:30 +0100 |
commit | 623ee73d661e5ed8475cb264511f683407d87365 (patch) | |
tree | 993eb27c93ec7a2d2d19550300d888fc1fed9e69 /dev-python/routes | |
parent | ceeeb463cc1eef97fd62eaee8bf2196ba04bc384 (diff) |
gentoo Easter resync : 12.04.2020
Diffstat (limited to 'dev-python/routes')
-rw-r--r-- | dev-python/routes/Manifest | 1 | ||||
-rw-r--r-- | dev-python/routes/routes-2.4.1-r1.ebuild | 47 |
2 files changed, 48 insertions, 0 deletions
diff --git a/dev-python/routes/Manifest b/dev-python/routes/Manifest index 7b80d59cb0fc..49041be3291d 100644 --- a/dev-python/routes/Manifest +++ b/dev-python/routes/Manifest @@ -1,3 +1,4 @@ DIST Routes-2.4.1.tar.gz 182403 BLAKE2B 21a079616e1533af8fae44b0ad428b3309e5e8d1e27dddddbf3632cb3e1f5286225aec73246012a8c7c22d59d755be27f10fa09ab6ee6b34f71c6c540dfd36e4 SHA512 b0566f10ca83af0459e9c59fa2217bdc5ebf349d944396bcb21ffa731ad189c642e409381979cb5da3153630c24f20aa974a99711f16aca9f91413976af2bb04 +EBUILD routes-2.4.1-r1.ebuild 1363 BLAKE2B 50d79e759b62578127a74c5bf723c9eec878b915e4996419e35f808d2a750353a297463e16408c983b060ba7454c647a3cbcfbafad225db603817b4c7c76afdf SHA512 b1aa7a94fd8fa2a2aa9ea9f9eef44d9d8fb32182ec41f76bcc15f731ccea28087e68fac7243d4c5f4dd43d8123705275bd5d6468b732689865d2566a37cf359e EBUILD routes-2.4.1.ebuild 1554 BLAKE2B 1bd301929542cf5594a12ebaad58e41fdb98699d91aba2b9c3d75d569f86e467dbaccb62e531df411dfe94ea763fc63f2ef83defc28f4d22a9e57d1aedd9a2b4 SHA512 8bc1d9a44fa2411276972e1627af73f46c1e23b02d66935d93c0148fea8be21c55db0c2a2ed022533c17c9f95e0dcedf0a6615df10756eb7767f3bd8128f2376 MISC metadata.xml 309 BLAKE2B 58e1b02098e87fe7303e9a6ce962897750493b957d3b30f78feb58b9cbec84b5fcf80acde66da35caa71989b628a75d232ea567e679f891fb4b81d1c49f61d06 SHA512 6daa7dcc2ae185c198c2630961d68c19498e98bce96ea3b1390a4c159fb591a89af796f2ac90e00994bda52c36138792797a38975c772d6fabce09cf0536722a diff --git a/dev-python/routes/routes-2.4.1-r1.ebuild b/dev-python/routes/routes-2.4.1-r1.ebuild new file mode 100644 index 000000000000..f43a59fba525 --- /dev/null +++ b/dev-python/routes/routes-2.4.1-r1.ebuild @@ -0,0 +1,47 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 +PYTHON_COMPAT=( python3_{6,7,8} pypy3 ) + +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="https://routes.readthedocs.io/en/latest/ https://pypi.org/project/Routes/" +SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.tar.gz" +S="${WORKDIR}/${MY_P}" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~arm64 ~ppc64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos" +IUSE="doc" + +RDEPEND=" + >=dev-python/repoze-lru-0.3[${PYTHON_USEDEP}] + dev-python/six[${PYTHON_USEDEP}] +" + +distutils_enable_tests nose +distutils_enable_sphinx doc + +# The testsuite appears to be held back by the author + +# 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 +} |