Cleanup and python 3.13

This commit is contained in:
Mario Fetka
2025-05-05 10:23:40 +02:00
parent 7c1ee4ca45
commit b56141d74d
121 changed files with 9006 additions and 479 deletions

View File

@@ -0,0 +1,3 @@
DIST libsigrokdecode-782c35b.zip 837923 BLAKE2B 9c1fcbd3eb19a55f840aab53e79a7409e4508a6c47dfe384b94a8ca76be193a98b67d6b488bf7c9efa79899d9d96acb87a2a4b103ba13a26a5b8bc46727fc54e SHA512 beb954d793647e0756abfa3a54641b5db7dc566cb31d205796e4fdb38f3dcf97320046d88fb2d9ee55e0ec91864c021ded362ba7bc5a3ac1e4dfccc98bd2dd6b
EBUILD libsigrokdecode-0.6.0.ebuild 1229 BLAKE2B fc32c61a3720624c6d536400832f76ac2ecb28a497621c666c34654ae4e187e3073a0cb188ce4386501aa46698d4f6d82b5beba94716cf9fde1f908031d012f7 SHA512 18b0b338b1c07c7fd8932a60a9ff52a81ee3cd42c6ed5618dc7d74859cacc92259ef31b69cbb28cab8f245366b2fd5206b43f750e0c249f8aeda262b1bd94773
MISC metadata.xml 248 BLAKE2B 9858a97a2186d5b06e272fe28021e0e668897630d8b99023000e8e58e852e80e16b399d8f864b9dff6c9fda25e1519ac8b4331792a4b441be23922707c4ad6a9 SHA512 a1e8f757e473af3ab0ccf695f849dc91e1be877dd505d339bdd26e35a2cf7fb5ffd8f5bf34e933873a462023aecb0edbddefbbda455289279182059cd6c1b0e5

View File

@@ -0,0 +1,58 @@
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI="8"
GIT_COMMIT="782c35b"
PYTHON_COMPAT=( python3_{10..13} )
inherit autotools python-single-r1
if [[ ${PV} == *9999* ]]; then
EGIT_REPO_URI="git://sigrok.org/${PN}"
inherit git-r3
else
SRC_URI="http://sigrok.org/gitweb/?p=${PN}.git;a=snapshot;h=${GIT_COMMIT};sf=zip -> ${PN}-${GIT_COMMIT}.zip"
KEYWORDS="~amd64 ~arm ~arm64 ~x86"
S="${WORKDIR}/${PN}-${GIT_COMMIT}"
fi
DESCRIPTION="Provide (streaming) protocol decoding functionality"
HOMEPAGE="https://sigrok.org/wiki/Libsigrokdecode"
LICENSE="GPL-3"
SLOT="0/4"
IUSE="static-libs"
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
RDEPEND="${PYTHON_DEPS}
>=dev-libs/glib-2.34.0
"
DEPEND="${RDEPEND}"
BDEPEND="
app-arch/unzip
virtual/pkgconfig
"
src_prepare() {
default
# bug #794592
sed -i -e "s/\[SRD_PKGLIBS\],\$/& [python-${EPYTHON#python}-embed], [python-${EPYTHON#python}],/" configure.ac || die
eautoreconf
}
src_configure() {
econf $(use_enable static-libs static) PYTHON3="${PYTHON}"
}
src_test() {
emake check
}
src_install() {
default
python_optimize "${D}"/usr/share/libsigrokdecode/decoders
find "${D}" -name '*.la' -type f -delete || die
}

View File

@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="project">
<email>embedded@gentoo.org</email>
<name>Embedded Gentoo</name>
</maintainer>
</pkgmetadata>