mirror of
https://github.com/flatcar/scripts.git
synced 2025-10-16 18:01:09 +02:00
sys-apps/i2c-tools: Sync with Gentoo
It's from Gentoo commit 891bc4142078810919ab307e2e6e6995f7b9b70c. Signed-off-by: Flatcar Buildbot <buildbot@flatcar-linux.org>
This commit is contained in:
parent
231085d5e4
commit
86c491630b
@ -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
|
||||
|
@ -15,7 +15,7 @@ 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"
|
||||
KEYWORDS="amd64 arm arm64 ~loong ~mips ppc ppc64 ~riscv ~sparc x86"
|
||||
IUSE="python"
|
||||
REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
|
||||
|
||||
|
67
sdk_container/src/third_party/portage-stable/sys-apps/i2c-tools/i2c-tools-4.4.ebuild
vendored
Normal file
67
sdk_container/src/third_party/portage-stable/sys-apps/i2c-tools/i2c-tools-4.4.ebuild
vendored
Normal file
@ -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
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user