commit: f43f1a2049e7ab001bf7157ec6ba8dac704064ce
Author: Nicola Smaniotto <smaniotto.nicola <AT> gmail <DOT> com>
AuthorDate: Fri Jun 2 14:51:33 2023 +0000
Commit: Nicola Smaniotto <smaniotto.nicola <AT> gmail <DOT> com>
CommitDate: Fri Jun 2 14:51:33 2023 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=f43f1a20
dev-python/faust-cchardet: new package, add 2.1.18
Signed-off-by: Nicola Smaniotto <smaniotto.nicola <AT> gmail.com>
dev-python/faust-cchardet/Manifest | 2 +
.../faust-cchardet/faust-cchardet-2.1.18.ebuild | 44 ++++++++++++++++++++++
2 files changed, 46 insertions(+)
diff --git a/dev-python/faust-cchardet/Manifest
b/dev-python/faust-cchardet/Manifest
new file mode 100644
index 000000000..ebae15ce3
--- /dev/null
+++ b/dev-python/faust-cchardet/Manifest
@@ -0,0 +1,2 @@
+DIST faust-cchardet-2.1.18.tar.gz 312626 BLAKE2B
33ffa2e4982218bbee72eb8028e15333563988ddb0d136f1e46acb810f005aab32ff7f58ee422d3a0a1348bdcfd2abfba549ed5467f9adc384f534b297ceb319
SHA512
0213a58e7c8104281e69a4fc8ffe90fc892efd783481d31a6b7aa812fe86534e15a209486b947b48e0063b5176f3aaebc9e702ab2e05d11151ba672a06aa3397
+DIST uchardet-bdb8a0376ddf5d3cab6397be0bad98dad106d77f.tar.gz 322644 BLAKE2B
cd2bf0a7e6ad29b7641449fa7ea7eecda375ad59ebe04768df6824387d0e33cf7f543afefa972a1e369a0be8f064f87d8eddca5bc048c740d64af05f664ec30d
SHA512
a7dd1e5d41484df22e1048a319b05f4dc9d917c91440eda557084049da08b0e7fc3b18f2531fc1418857cda94dfd0deea984728b2a9747e369804ed7137ed6bc
diff --git a/dev-python/faust-cchardet/faust-cchardet-2.1.18.ebuild
b/dev-python/faust-cchardet/faust-cchardet-2.1.18.ebuild
new file mode 100644
index 000000000..39fef7c51
--- /dev/null
+++ b/dev-python/faust-cchardet/faust-cchardet-2.1.18.ebuild
@@ -0,0 +1,44 @@
+# Copyright 2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=setuptools
+PYTHON_COMPAT=( python3_{9..11} )
+inherit distutils-r1
+
+GIT_SUBMODULES=(
+ "PyYoshi uchardet bdb8a0376ddf5d3cab6397be0bad98dad106d77f
src/ext/uchardet"
+)
+submodule_uris() {
+ local g
+ for g in "${GIT_SUBMODULES[@]}"; do
+ g=(${g})
+ echo "https://github.com/${g[0]}/${g[1]}/archive/${g[2]}.tar.gz
-> ${g[1]}-${g[2]}.tar.gz"
+ done
+}
+
+DESCRIPTION="universal character encoding detector"
+HOMEPAGE="https://github.com/faust-streaming/cChardet"
+SRC_URI="
+
https://github.com/faust-streaming/cChardet/archive/refs/tags/v${PV}.tar.gz ->
${P}.tar.gz
+ $(submodule_uris)
+"
+
+LICENSE="MPL-1.1"
+SLOT="0"
+KEYWORDS="~amd64"
+
+S="${WORKDIR}/cChardet-${PV}"
+
+distutils_enable_tests pytest
+
+src_unpack() {
+ default
+
+ local g
+ for g in "${GIT_SUBMODULES[@]}"; do
+ g=(${g})
+ mv "${WORKDIR}/${g[1]}-${g[2]}"/* "${S}/${g[3]}" || die "could
not move submodule ${g[2]}"
+ done
+}