summaryrefslogtreecommitdiff
path: root/dev-python/pypugjs
diff options
context:
space:
mode:
Diffstat (limited to 'dev-python/pypugjs')
-rw-r--r--dev-python/pypugjs/Manifest4
-rw-r--r--dev-python/pypugjs/metadata.xml1
-rw-r--r--dev-python/pypugjs/pypugjs-5.9.9.ebuild34
3 files changed, 30 insertions, 9 deletions
diff --git a/dev-python/pypugjs/Manifest b/dev-python/pypugjs/Manifest
index d33d6e204fab..143942cfcfbb 100644
--- a/dev-python/pypugjs/Manifest
+++ b/dev-python/pypugjs/Manifest
@@ -3,5 +3,5 @@ DIST pypugjs-5.9.8.tar.gz 49012 BLAKE2B c072f834127011edd81eab3d141a107592ee3057
DIST pypugjs-5.9.9.tar.gz 49022 BLAKE2B 26bdad4bd951eb8e515a0c181a56f68a8fdf8131dbd9e61c32c266bd91575143006f3cb6c2f477a2406110b22ed279a1167821a1b1f403a73bb333013173db2a SHA512 f34fab60e4f9d0680a36e5d2a28c5f99668c13b296a1bb70778dced235d223c592d49adbadc2f70b1a7e350f28a2f29dbce8febe2b8e99d60a0e050254180c71
EBUILD pypugjs-5.9.5.ebuild 549 BLAKE2B 482ba5b61a6e5cf504cb7f2bb9b262fea370b54f1eded29fd424a0fbeda279a870eae287412f11698f8ea3477e47040494b8de94213351905224bda6f4d7d6d7 SHA512 9ee129d5c4a23abedbb24e81701573632cda1dc5e5e6acfb3d1c68251b9853e8cc0417eb66a171f8bc9dd8fc7e057f58957af4d3fd2ae23f8d7a3af4f614ff1f
EBUILD pypugjs-5.9.8.ebuild 549 BLAKE2B 482ba5b61a6e5cf504cb7f2bb9b262fea370b54f1eded29fd424a0fbeda279a870eae287412f11698f8ea3477e47040494b8de94213351905224bda6f4d7d6d7 SHA512 9ee129d5c4a23abedbb24e81701573632cda1dc5e5e6acfb3d1c68251b9853e8cc0417eb66a171f8bc9dd8fc7e057f58957af4d3fd2ae23f8d7a3af4f614ff1f
-EBUILD pypugjs-5.9.9.ebuild 558 BLAKE2B fea54d31e19adbb65f7901b54bfdc81fdb4553c9c369b800237543ef871de131f1770609b68e1bcc6e783f3d1150149db0634db9b0862892956c93fa1dd696a5 SHA512 759849c4ab301688fb7c42a90500697bddba52110971ecb5b205ebd617bfebd1af2b0a7ac9ee9aafb42bb06bb9a3cca64f68d9a6348072b473ee8ef6951f8a79
-MISC metadata.xml 730 BLAKE2B 69d4b53c231f47d4526b71c6ed6459834c9e30f54e6b8b6d033ae8cc192d3fd64d99d64c958d29849008b249b8f04f54a9b0503039c79a5893a6d9f0a9209127 SHA512 90ef4ffbbd9f47c60321cc2422e5b6b43377236ba5dcae6584a2c4eba63d0df35131f234a6b98e4df545876d4c0af6bede8a8b406664138a228506378d71b6d4
+EBUILD pypugjs-5.9.9.ebuild 1117 BLAKE2B 81d4c83a00f438b23a5e3e969291309d61185b5c7559f626c5d53746a0c6161d84fb5451321bf533bae5b94cabfae48fbb1ee48867f8c5ede4ccbd8e0cfd81da SHA512 1e3894ecafdaa82d6af1c928f026e3711186e2344def94c791bd5022163935fa0dbed8ab6040986ce3640bf6f8b29b7f3d22bd8c36989d24f1d69a2b69157080
+MISC metadata.xml 754 BLAKE2B 3ed9131ee7cb78637cf69e8cec0821cb5290e63471491b53f2d38788db36ef9035a4613a7fe67e9a8c270a12b23d51db9bc88341c36449e3c64936ddebd76ccd SHA512 f26724213eaf4042470eb05c2a8aa41a836699411fe0da61bc0714271a5ce0eba7e2cde946fe3c3e2fe883405b63ad81ed09262a9e77bcee50926c8b7b4370e1
diff --git a/dev-python/pypugjs/metadata.xml b/dev-python/pypugjs/metadata.xml
index 5ca7204f4cb5..ce0337d809ac 100644
--- a/dev-python/pypugjs/metadata.xml
+++ b/dev-python/pypugjs/metadata.xml
@@ -5,6 +5,7 @@
<email>dolsen@gentoo.org</email>
<name>Brian Dolbec</name>
</maintainer>
+ <stabilize-allarches/>
<upstream>
<maintainer>
<email>andy@freilandkiwis.de</email>
diff --git a/dev-python/pypugjs/pypugjs-5.9.9.ebuild b/dev-python/pypugjs/pypugjs-5.9.9.ebuild
index f5142600ec46..c8ca907dcf5c 100644
--- a/dev-python/pypugjs/pypugjs-5.9.9.ebuild
+++ b/dev-python/pypugjs/pypugjs-5.9.9.ebuild
@@ -1,11 +1,10 @@
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
-EAPI=7
-PYTHON_COMPAT=( python3_{7,8,9} )
-DISTUTILS_USE_SETUPTOOLS="rdepend"
+EAPI=8
-inherit distutils-r1
+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"
@@ -15,9 +14,30 @@ LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64 ~arm64"
-IUSE=""
RDEPEND="
dev-python/six[${PYTHON_USEDEP}]
- dev-python/chardet
+ dev-python/chardet[${PYTHON_USEDEP}]
"
-DEPEND="${RDEPEND}"
+BDEPEND="
+ test? (
+ dev-python/django[${PYTHON_USEDEP}]
+ dev-python/jinja[${PYTHON_USEDEP}]
+ dev-python/mako[${PYTHON_USEDEP}]
+ www-servers/tornado[${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
+}