Diff i2c-tools-4.2 with a i2c-tools-4.3
/usr/portage/sys-apps/i2c-tools/i2c-tools-4.3.ebuild 2023-10-09 14:52:35.376368499 +0300 | ||
---|---|---|
1 | 1 |
# Copyright 1999-2023 Gentoo Authors |
2 | 2 |
# Distributed under the terms of the GNU General Public License v2 |
3 | 3 | |
4 |
EAPI=7 |
|
4 |
EAPI=8 |
|
5 | 5 | |
6 |
PYTHON_COMPAT=( python3_{9,10} ) |
|
6 |
PYTHON_COMPAT=( python3_{9..11} ) |
|
7 | 7 |
DISTUTILS_OPTIONAL="1" |
8 | 8 | |
9 | 9 |
inherit distutils-r1 flag-o-matic toolchain-funcs |
... | ... | |
14 | 14 | |
15 | 15 |
LICENSE="GPL-2" |
16 | 16 |
SLOT="0" |
17 |
KEYWORDS="amd64 arm arm64 ~mips ppc ppc64 ~riscv sparc x86" |
|
18 |
IUSE="perl python" |
|
17 |
KEYWORDS="amd64 arm arm64 ~loong ~mips ppc ppc64 ~riscv sparc x86" |
|
18 |
IUSE="python" |
|
19 | 19 |
REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" |
20 | 20 | |
21 | 21 |
RDEPEND=" |
22 | 22 |
python? ( ${PYTHON_DEPS} )" |
23 |
DEPEND="${RDEPEND}" |
|
24 |
RDEPEND+=" |
|
25 |
perl? ( dev-lang/perl )" |
|
23 |
BDEPEND=" |
|
24 |
python? ( |
|
25 |
${PYTHON_DEPS} |
|
26 |
dev-python/setuptools[${PYTHON_USEDEP}] |
|
27 |
)" |
|
26 | 28 | |
27 | 29 |
src_prepare() { |
28 | 30 |
default |
29 | 31 |
use python && distutils-r1_src_prepare |
30 | ||
31 |
# Cut out the eeprom/ & stub/ dirs as only perl scripts live there. |
|
32 |
if ! use perl ; then |
|
33 |
sed -i '/^SRCDIRS/s: eeprom stub : :g' Makefile || die |
|
34 |
fi |
|
35 | 32 |
} |
36 | 33 | |
37 | 34 |
src_configure() { |
... | ... | |
43 | 40 |
} |
44 | 41 | |
45 | 42 |
src_compile() { |
46 |
emake AR="$(tc-getAR)" CC="$(tc-getCC)" all-lib # parallel make |
|
47 |
emake CC="$(tc-getCC)" |
|
48 |
emake -C eepromer CC="$(tc-getCC)" CFLAGS="${CFLAGS}" |
|
43 |
emake AR="$(tc-getAR)" CC="$(tc-getCC)" EXTRA="eeprog" |
|
49 | 44 | |
50 | 45 |
if use python ; then |
51 | 46 |
cd py-smbus || die |
... | ... | |
55 | 50 |
} |
56 | 51 | |
57 | 52 |
src_install() { |
58 |
emake DESTDIR="${D}" libdir="/usr/$(get_libdir)" PREFIX="/usr" install-lib install |
|
59 |
dosbin eepromer/eeprom{,er} |
|
53 |
emake EXTRA="eeprog" DESTDIR="${D}" libdir="/usr/$(get_libdir)" PREFIX="/usr" install |
|
60 | 54 |
dodoc CHANGES README |
61 |
local d |
|
62 |
for d in $(usex perl eeprom '') eepromer ; do |
|
63 |
docinto "${d}" |
|
64 |
dodoc "${d}"/README* |
|
65 |
done |
|
66 | 55 | |
67 | 56 |
if use python ; then |
68 | 57 |
cd py-smbus || die |