diff options
author | V3n3RiX <venerix@koprulu.sector> | 2022-07-29 15:07:44 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2022-07-29 15:07:44 +0100 |
commit | c9ac6938788ee1708e7c900f8f78e9037aea1ca1 (patch) | |
tree | 7775fcc8916726b2e7a58d7a251dee69292d231f /dev-python/pypugjs/pypugjs-5.9.12.ebuild | |
parent | 23fb10c075a74a6504647a16c3e06a6378e208c8 (diff) |
gentoo auto-resync : 29:07:2022 - 15:07:44
Diffstat (limited to 'dev-python/pypugjs/pypugjs-5.9.12.ebuild')
-rw-r--r-- | dev-python/pypugjs/pypugjs-5.9.12.ebuild | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/dev-python/pypugjs/pypugjs-5.9.12.ebuild b/dev-python/pypugjs/pypugjs-5.9.12.ebuild new file mode 100644 index 000000000000..3e6a897c9a36 --- /dev/null +++ b/dev-python/pypugjs/pypugjs-5.9.12.ebuild @@ -0,0 +1,48 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=poetry +PYTHON_COMPAT=( python3_{8..10} ) + +inherit distutils-r1 optfeature + +DESCRIPTION="Pug (Jade) syntax adapter for Django, Jinja2 and Mako templates" +HOMEPAGE="https://github.com/kakulukia/pypugjs" +SRC_URI=" + https://github.com/kakulukia/pypugjs/archive/v${PV}.tar.gz + -> ${P}.gh.tar.gz +" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~arm64 ~riscv" + +RDEPEND=" + >=dev-python/six-1.15.0[${PYTHON_USEDEP}] + >=dev-python/chardet-4.0.0[${PYTHON_USEDEP}] +" +BDEPEND=" + test? ( + dev-python/django[${PYTHON_USEDEP}] + >=dev-python/jinja-3.1.1[${PYTHON_USEDEP}] + >=dev-python/mako-1.1.3[${PYTHON_USEDEP}] + >=www-servers/tornado-6.0.4[${PYTHON_USEDEP}] + ) +" + +distutils_enable_tests nose + +src_prepare() { + # Remove pyramid backend as pyramid isn't packaged + rm -r pypugjs/ext/pyramid || die + distutils-r1_src_prepare +} + +pkg_postinst() { + optfeature "converting to Django output" dev-python/django + optfeature "converting to Jinja2 output" dev-python/jinja + optfeature "converting to Mako output" dev-python/mako + optfeature "converting to Tornado output" www-servers/tornado +} |