commit:     891bc4142078810919ab307e2e6e6995f7b9b70c
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Mon Sep  8 05:31:26 2025 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Mon Sep  8 05:40:04 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=891bc414

sys-apps/i2c-tools: add 4.4

Signed-off-by: Sam James <sam <AT> gentoo.org>

 sys-apps/i2c-tools/Manifest             |  1 +
 sys-apps/i2c-tools/i2c-tools-4.4.ebuild | 67 +++++++++++++++++++++++++++++++++
 2 files changed, 68 insertions(+)

diff --git a/sys-apps/i2c-tools/Manifest b/sys-apps/i2c-tools/Manifest
index a632d9274602..a049076bb9b9 100644
--- a/sys-apps/i2c-tools/Manifest
+++ b/sys-apps/i2c-tools/Manifest
@@ -1 +1,2 @@
 DIST i2c-tools-4.3.tar.xz 81276 BLAKE2B 
c7300224c8d32785cd067b632bf0e9591f05264b1572f44aebda5f30a95164732d606710c13739ccb7899476219ceb3033beaf95b718ed7e18122f9181dc13fc
 SHA512 
8a6cc12d927d6291b9baf407bc15807280539a7048ec5c2edf77414432eab43b28353c42bc0e45b7b481502aa4c5588def08f130d97fc275f635d1f77488f501
+DIST i2c-tools-4.4.tar.xz 81392 BLAKE2B 
519d781732d58444705844769eef1089e60e6991be22ba74aa1c0fb9dad5aeed556d8b2550784e3caef992692eff8d40e7978e4983e6935ce7867dadc3687539
 SHA512 
4f621de0a33730e19ad4080fc52be7231572efe15f77fd69996a077c8ea42339231311a9c4b7d04ec4ab59f350495d21d561513213f7122a2d3826f5059822f3

diff --git a/sys-apps/i2c-tools/i2c-tools-4.4.ebuild 
b/sys-apps/i2c-tools/i2c-tools-4.4.ebuild
new file mode 100644
index 000000000000..0239335c960d
--- /dev/null
+++ b/sys-apps/i2c-tools/i2c-tools-4.4.ebuild
@@ -0,0 +1,67 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_{11..13} )
+DISTUTILS_OPTIONAL=1
+DISTUTILS_EXT=1
+DISTUTILS_USE_PEP517=setuptools
+inherit distutils-r1 flag-o-matic toolchain-funcs
+
+DESCRIPTION="I2C tools for bus probing, chip dumping, EEPROM decoding, and 
more"
+HOMEPAGE="https://www.kernel.org/pub/software/utils/i2c-tools";
+SRC_URI="https://www.kernel.org/pub/software/utils/${PN}/${P}.tar.xz";
+
+LICENSE="LGPL-2.1+ GPL-2+ python? ( GPL-2 )"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~loong ~mips ~ppc ~ppc64 ~riscv ~sparc ~x86"
+IUSE="python"
+REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
+
+RDEPEND="
+       python? ( ${PYTHON_DEPS} )
+"
+BDEPEND="
+       python? (
+               ${PYTHON_DEPS}
+               ${DISTUTILS_DEPS}
+               dev-python/setuptools[${PYTHON_USEDEP}]
+       )
+"
+
+src_prepare() {
+       default
+       use python && distutils-r1_src_prepare
+}
+
+src_configure() {
+       use python && distutils-r1_src_configure
+
+       append-lfs-flags
+       export BUILD_DYNAMIC_LIB=1
+       export USE_STATIC_LIB=0
+       export BUILD_STATIC_LIB=0
+}
+
+src_compile() {
+       emake AR="$(tc-getAR)" CC="$(tc-getCC)" CFLAGS="${CFLAGS} ${CPPFLAGS}" 
EXTRA="eeprog"
+
+       if use python ; then
+               cd py-smbus || die
+               append-cppflags -I../include
+               distutils-r1_src_compile
+       fi
+}
+
+src_install() {
+       emake EXTRA="eeprog" DESTDIR="${D}" libdir="/usr/$(get_libdir)" 
PREFIX="/usr" install
+       dodoc CHANGES README
+
+       if use python ; then
+               cd py-smbus || die
+               docinto py-smbus
+               dodoc README*
+               distutils-r1_src_install
+       fi
+}

Reply via email to