diff --git a/dev-util/byexample/Manifest b/dev-util/byexample/Manifest new file mode 100644 index 0000000..d8e7247 --- /dev/null +++ b/dev-util/byexample/Manifest @@ -0,0 +1 @@ +DIST byexample-10.5.6.gh.tar.gz 473590 BLAKE2B 701d740e8a0effbf663b4e008af0dc47763e70fcef8005e5f114805ca729334e9db04d899f2dd62db42ac41bd75ecbb822e240ef5011d4287b90d0cd426d7a4a SHA512 73d7c81fa9a97ab18638aece8dd13e5e4f330fa62eb55592bc684a68ef9835c948f7439574b4cc1e114f20795534cce966228d4459984020d44733c5c301c6e5 diff --git a/dev-util/byexample/byexample-10.5.6.ebuild b/dev-util/byexample/byexample-10.5.6.ebuild new file mode 100644 index 0000000..e9ea964 --- /dev/null +++ b/dev-util/byexample/byexample-10.5.6.ebuild @@ -0,0 +1,59 @@ +# Copyright 2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{10..12} ) +inherit distutils-r1 + +DESCRIPTION="Write snippets of code in C++, Python, Ruby, and others as documentation and execute them as regression tests." +HOMEPAGE="https://github.com/byexamples/byexample" +SRC_URI="https://github.com/byexamples/byexample/archive/refs/tags/${PV}.tar.gz -> ${P}.gh.tar.gz" + +LICENSE="cpplintlicense" +SLOT="0" +KEYWORDS="~amd64" + +DEPEND=" + >=dev-python/pexpect-4 + =dev-python/appdirs-1.4.3 + =dev-util/termscraper-0.10 + =dev-python/bracex-2.1.0 + =dev-python/importlib-resources-5.5 + # =4,<5', # pexpect 4.x.x required +# 'appdirs>=1.4.3,<2', # appdirs 1.4.x (x >= 3) required +# 'termscraper>=0.10,<0.11', # termscraper 0.10.x +# 'bracex>=2.1.0,<3', # bracex 2.x required (with x >= 1) +# 'importlib-resources>=5.5.0,<6.0.0', # importlib-resources 5.y.x (y >= 5) +# ] + +# # these, on the other hand, are optional nice to have +# # dependencies. we'll install them by default but if they +# # are not present, byexample will run normally. +# # NOTE: keep this list in sync with byexample/cmdline.py +# nice_to_have_deps=[ +# 'tqdm>=4,<5', # tqdm 4.x.x required +# 'pygments>=2,<3', # pygments 2.x.x required +# 'argcomplete>=2.0.0,<2.1.0' # argcomplete 2.x.x required +# ] + +distutils_enable_tests pytest diff --git a/dev-util/byexample/files/doNotInstallLicense.patch b/dev-util/byexample/files/doNotInstallLicense.patch new file mode 100644 index 0000000..bce0936 --- /dev/null +++ b/dev-util/byexample/files/doNotInstallLicense.patch @@ -0,0 +1,12 @@ +diff --git a/setup.py b/setup.py +index 3ea678f..aede3fb 100644 +--- a/setup.py ++++ b/setup.py +@@ -113,7 +113,6 @@ setup( + keywords='doctest documentation test testing', + + packages=['byexample', 'byexample.modules'], +- data_files=[("", ["LICENSE"])], + package_data={'byexample':["modules/gadgets/*"]}, + + entry_points={ diff --git a/dev-util/termscraper/Manifest b/dev-util/termscraper/Manifest new file mode 100644 index 0000000..9aab24a --- /dev/null +++ b/dev-util/termscraper/Manifest @@ -0,0 +1 @@ +DIST termscraper-0.10.0.gh.tar.gz 103752 BLAKE2B 0fb2bd4f598b5e4ebf7b7bc5bc9e9a3f758095ee2e54da601bfdbef611847b7433cf2b0d3aef022ce88b398c6720ed9137f3c85273bc8eadb248556099bdae2a SHA512 2bc0363afa1545971b2507ede677f79a5064503319dc34396b423f6058700d70576bf78e1a1e839c7e8139ee612f0b5f2211090545abfcb2b5176a08fcbdde53 diff --git a/dev-util/termscraper/files/doNotInstallLicense.patch b/dev-util/termscraper/files/doNotInstallLicense.patch new file mode 100644 index 0000000..2769f42 --- /dev/null +++ b/dev-util/termscraper/files/doNotInstallLicense.patch @@ -0,0 +1,11 @@ +diff --git a/setup.py b/setup.py +index 157032d..3e1e664 100644 +--- a/setup.py ++++ b/setup.py +@@ -80,6 +80,5 @@ setup( + keywords=["scraper", "pyte", "vt102", "vte", "terminal emulator"], + + packages=['termscraper'], +- data_files=[("", ["LICENSE"])] + ) + diff --git a/dev-util/termscraper/termscraper-0.10.0.ebuild b/dev-util/termscraper/termscraper-0.10.0.ebuild new file mode 100644 index 0000000..8d6278f --- /dev/null +++ b/dev-util/termscraper/termscraper-0.10.0.ebuild @@ -0,0 +1,28 @@ +# Copyright 2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{10..12} ) +inherit distutils-r1 + +DESCRIPTION="Simple VTXXX-compatible terminal emulator scraper." +HOMEPAGE="https://github.com/byexamples/termscraper" +SRC_URI="https://github.com/byexamples/termscraper/archive/refs/tags/${PV}.tar.gz -> ${P}.gh.tar.gz" + +LICENSE="LGPL-3" +SLOT="0" +KEYWORDS="~amd64" + +DEPEND=" + ~dev-python/wcwidth-0.2.6 + " +RDEPEND="${DEPEND}" +BDEPEND="" + +PATCHES=( + "${FILESDIR}/doNotInstallLicense.patch" +) + +distutils_enable_tests pytest