summaryrefslogtreecommitdiff
path: root/dev-python/textX
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2024-10-28 03:04:40 +0000
committerV3n3RiX <venerix@koprulu.sector>2024-10-28 03:04:40 +0000
commit5d4291ee2ba8b85e8515b5f47b814a5c872eed04 (patch)
tree154246a13fd11756f110f04fee093e44a6cdea82 /dev-python/textX
parent83d9fce566bb89f6976f36f5314bfc88b6d261fa (diff)
gentoo auto-resync : 28:10:2024 - 03:04:40
Diffstat (limited to 'dev-python/textX')
-rw-r--r--dev-python/textX/Manifest2
-rw-r--r--dev-python/textX/textX-4.1.0.ebuild58
2 files changed, 60 insertions, 0 deletions
diff --git a/dev-python/textX/Manifest b/dev-python/textX/Manifest
index 2ced9517fc94..4be978151a5e 100644
--- a/dev-python/textX/Manifest
+++ b/dev-python/textX/Manifest
@@ -1,3 +1,5 @@
DIST textX-4.0.1.gh.tar.gz 1824450 BLAKE2B 35c18f4f3acbccb57a027c40438099c17eaf97b6124f6cd2fef5b407fb51fc0810ec46daf563ab724ee3e3e6a2775308a0513dab91d6cff5e88d2c18fc6f6af0 SHA512 036eab82760f5f7f11f5da553097a3c1264070516d868568aebc09c6f143ca5f94fcaa21bff90c94e136860269789eda7b704e66e3396d25db491155dceb5bf0
+DIST textX-4.1.0.gh.tar.gz 2136599 BLAKE2B d6c7d4d741b4e526d0a71743387ee8455cc861bc4b356c605b6d174adb870bd178fd557a804f170f3d411b3ae70845771f7ffa7bbe9c4d1053c3d87e062deddb SHA512 313fea5b6d9e94e280a0614d4130872229536fe39d5af6e440a08babe6c4e5a5c23b53827713d577cc9af32a55a6beeaeddce59dbceb5f53a3f87cb910609599
EBUILD textX-4.0.1.ebuild 1277 BLAKE2B 65da648fc7ab6ce8fc7072a0e594a4f79fe20366c9e1e98be716f970f95fd5f389f5506034e88be9c80cac01191330b98ff0699b3cf83950973913f88c31e370 SHA512 d1bfa78ceddcd3f1dfb4700efbe79789b6a492dae223a098ecfa63329f6a36a18388459036b1d291b4c006ccb4c9f25121a0803bba281bd74fc6747f89a361ac
+EBUILD textX-4.1.0.ebuild 1240 BLAKE2B be449868c508d4158dfd06ee2b3abb38898996bc7d2117f935a1c591a91865ffbfd621ad7e2cffeb8cf5470c3fde1b5ba6ebabcc4d9a9a89dbd251f5274f4754 SHA512 3f6ce509c8c79ce9aee1bc0d408e05da93d7ddfcb520caefeb6de86b2fe231154fdd5f5f03d82f01fef0207fec59591b357cae68b7422a332d95d1988a52fe4d
MISC metadata.xml 463 BLAKE2B ce9526aea5bf618a5298b38ccc6d9e734bfd221dfb770f3a7e6b061030d3a14e0e49c91eea239bed273479b4befe43b15cdf50f1c349f8da391247d44edb1737 SHA512 4006ba591063ec8844817d9becc1f8d41167b102df24216d77540bf2d1c934982bab523bed396e24987193c6f2a3880729278910cfda3192e356ceea7828ed7c
diff --git a/dev-python/textX/textX-4.1.0.ebuild b/dev-python/textX/textX-4.1.0.ebuild
new file mode 100644
index 000000000000..cebfd1fe1630
--- /dev/null
+++ b/dev-python/textX/textX-4.1.0.ebuild
@@ -0,0 +1,58 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=flit
+PYTHON_COMPAT=( python3_{10..13} )
+
+inherit distutils-r1
+
+DESCRIPTION="Meta-language for DSL implementation inspired by Xtext"
+HOMEPAGE="
+ https://pypi.org/project/textX/
+ https://github.com/textX/textX/
+"
+SRC_URI="
+ https://github.com/textX/textX/archive/${PV}.tar.gz
+ -> ${P}.gh.tar.gz
+"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~arm64 ~x86"
+
+RDEPEND="
+ >=dev-python/Arpeggio-2.0.0[${PYTHON_USEDEP}]
+"
+BDEPEND="
+ test? (
+ dev-python/click[${PYTHON_USEDEP}]
+ dev-python/html5lib[${PYTHON_USEDEP}]
+ )
+"
+
+distutils_enable_tests pytest
+
+python_test() {
+ cp -a "${BUILD_DIR}"/{install,test} || die
+ local -x PATH=${BUILD_DIR}/test/usr/bin:${PATH}
+
+ # Update the shebang
+ sed -e "s:install/usr/bin/${EPYTHON}:test/usr/bin/${EPYTHON}:" \
+ -i "${BUILD_DIR}"/test/usr/bin/textx || die
+
+ # Install necessary plugins
+ local plugins=(
+ tests/functional/subcommands/example_project
+ tests/functional/registration/projects/*
+ )
+ local p
+ for p in "${plugins[@]}"; do
+ pushd "${p}" >/dev/null || die
+ distutils_pep517_install "${BUILD_DIR}"/test
+ popd >/dev/null || die
+ done
+
+ epytest tests/functional
+}