summaryrefslogtreecommitdiff
path: root/sys-apps/i2c-tools
diff options
context:
space:
mode:
Diffstat (limited to 'sys-apps/i2c-tools')
-rw-r--r--sys-apps/i2c-tools/Manifest3
-rw-r--r--sys-apps/i2c-tools/i2c-tools-4.3-r1.ebuild (renamed from sys-apps/i2c-tools/i2c-tools-4.2.ebuild)43
2 files changed, 18 insertions, 28 deletions
diff --git a/sys-apps/i2c-tools/Manifest b/sys-apps/i2c-tools/Manifest
index 4b42f9141d85..cbb4608c57d2 100644
--- a/sys-apps/i2c-tools/Manifest
+++ b/sys-apps/i2c-tools/Manifest
@@ -1,5 +1,4 @@
-DIST i2c-tools-4.2.tar.xz 87600 BLAKE2B 89f84ad07f4c042f67c308d48a402aa9ed46352062ddad3456d048730019e099e6eef626d487d802e07b100ae2c836e9aa6b2345950ff8744cbc0fe1a22616fb SHA512 5e230be4983c5c9c5718491d3ce9ee2e6205edea75c4097735eb32a25e522e37a074ef4cb61d2492707efebf0cb1b75ff65f1b2ae8c0bc1684a169526809a096
DIST i2c-tools-4.3.tar.xz 81276 BLAKE2B c7300224c8d32785cd067b632bf0e9591f05264b1572f44aebda5f30a95164732d606710c13739ccb7899476219ceb3033beaf95b718ed7e18122f9181dc13fc SHA512 8a6cc12d927d6291b9baf407bc15807280539a7048ec5c2edf77414432eab43b28353c42bc0e45b7b481502aa4c5588def08f130d97fc275f635d1f77488f501
-EBUILD i2c-tools-4.2.ebuild 1687 BLAKE2B 2667d4fcd4e22ac5f34871e0c5cf5e745bb3b3502b5feeb094315f50170e19d2396d467bc35f5fa28460326dcbebd1258e8bdf42acaca19a05713c485d72a473 SHA512 84751599666e8d040273ac371ec15bd1f6b0260366899fbb25bda4b5782c3d4a37963d571aaf1c3caefeb67c658db3c4ea67e5834f51d5c35c8fb7a7cba5d1a3
+EBUILD i2c-tools-4.3-r1.ebuild 1450 BLAKE2B 6ac89c65688e0a4ef13c610dd72be8e729510dd5d6ee5548d0d12c27631bd812bc0b7598f1d95e52d64d63f0894d217fcb7b3978592b6ac42854b367ddc3379f SHA512 eb1516c9d27a299b1fadb9b93b5b9c67a41f7576c1f4210bbdd0593322e8c5666a5a1c36e6392b781da336414c56e82aa122dfa84363de9c68a08ee81b9d6298
EBUILD i2c-tools-4.3.ebuild 1348 BLAKE2B 899c9433161f81d99c13596af910c5b3c4bc05ba173f64e31d6d579d89e36a8fef57eacbdb72b248ee830870b17fccf93d26e391d457e00423c46f7bb430395f SHA512 34afd003549bdd10c039398be5e60c3aac7d2433a2b18b0aa49674acd7d32281579631da20570f8930c324c8fb660dcea8bc34b455474427c73d647c5c8d2cad
MISC metadata.xml 260 BLAKE2B cfcc4618143410d07056c569a1ae3543443139a1f4ac0c07c5482a6caaf923f715b135e4b56b313d5b4d16aa49d30caec20f5dce01eb1fdb98bb717fc2a7db9a SHA512 541810c9d5b78246d55be1c5a0cfc6f59e816d8177fd73b20a1123db37de974820846b8752a8ad4eb89d474d7a1bae7b48d99a076d246b9e522b4358dc353808
diff --git a/sys-apps/i2c-tools/i2c-tools-4.2.ebuild b/sys-apps/i2c-tools/i2c-tools-4.3-r1.ebuild
index ed58d716a310..e0211bd875af 100644
--- a/sys-apps/i2c-tools/i2c-tools-4.2.ebuild
+++ b/sys-apps/i2c-tools/i2c-tools-4.3-r1.ebuild
@@ -1,37 +1,36 @@
-# Copyright 1999-2023 Gentoo Authors
+# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
-EAPI=7
-
-PYTHON_COMPAT=( python3_{9,10} )
-DISTUTILS_OPTIONAL="1"
+EAPI=8
+PYTHON_COMPAT=( python3_{10..12} )
+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="GPL-2"
+LICENSE="LGPL-2.1+ GPL-2+ python? ( GPL-2 )"
SLOT="0"
-KEYWORDS="amd64 arm arm64 ~mips ppc ppc64 ~riscv sparc x86"
-IUSE="perl python"
+KEYWORDS="~amd64 ~arm ~arm64 ~loong ~mips ~ppc ~ppc64 ~riscv ~sparc ~x86"
+IUSE="python"
REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
RDEPEND="
python? ( ${PYTHON_DEPS} )"
-DEPEND="${RDEPEND}"
-RDEPEND+="
- perl? ( dev-lang/perl )"
+BDEPEND="
+ python? (
+ ${PYTHON_DEPS}
+ ${DISTUTILS_DEPS}
+ dev-python/setuptools[${PYTHON_USEDEP}]
+ )"
src_prepare() {
default
use python && distutils-r1_src_prepare
-
- # Cut out the eeprom/ & stub/ dirs as only perl scripts live there.
- if ! use perl ; then
- sed -i '/^SRCDIRS/s: eeprom stub : :g' Makefile || die
- fi
}
src_configure() {
@@ -43,9 +42,7 @@ src_configure() {
}
src_compile() {
- emake AR="$(tc-getAR)" CC="$(tc-getCC)" all-lib # parallel make
- emake CC="$(tc-getCC)"
- emake -C eepromer CC="$(tc-getCC)" CFLAGS="${CFLAGS}"
+ emake AR="$(tc-getAR)" CC="$(tc-getCC)" EXTRA="eeprog"
if use python ; then
cd py-smbus || die
@@ -55,14 +52,8 @@ src_compile() {
}
src_install() {
- emake DESTDIR="${D}" libdir="/usr/$(get_libdir)" PREFIX="/usr" install-lib install
- dosbin eepromer/eeprom{,er}
+ emake EXTRA="eeprog" DESTDIR="${D}" libdir="/usr/$(get_libdir)" PREFIX="/usr" install
dodoc CHANGES README
- local d
- for d in $(usex perl eeprom '') eepromer ; do
- docinto "${d}"
- dodoc "${d}"/README*
- done
if use python ; then
cd py-smbus || die