1 |
commit: 71322ac179aa1c261ce14331972c51b18cda7ab0 |
2 |
Author: Anthony G. Basile <blueness <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Aug 16 14:12:20 2022 +0000 |
4 |
Commit: Anthony G. Basile <blueness <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Aug 16 14:12:20 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=71322ac1 |
7 |
|
8 |
dev-libs/libgpiod: switch to more forgiving linux-info |
9 |
|
10 |
Package-Manager: Portage-3.0.30, Repoman-3.0.3 |
11 |
Signed-off-by: Anthony G. Basile <blueness <AT> gentoo.org> |
12 |
|
13 |
dev-libs/libgpiod/libgpiod-1.6.3-r2.ebuild | 53 ++++++++++++++++++++++++++++++ |
14 |
1 file changed, 53 insertions(+) |
15 |
|
16 |
diff --git a/dev-libs/libgpiod/libgpiod-1.6.3-r2.ebuild b/dev-libs/libgpiod/libgpiod-1.6.3-r2.ebuild |
17 |
new file mode 100644 |
18 |
index 000000000000..ef44116bea42 |
19 |
--- /dev/null |
20 |
+++ b/dev-libs/libgpiod/libgpiod-1.6.3-r2.ebuild |
21 |
@@ -0,0 +1,53 @@ |
22 |
+# Copyright 1999-2022 Gentoo Authors |
23 |
+# Distributed under the terms of the GNU General Public License v2 |
24 |
+ |
25 |
+EAPI=8 |
26 |
+ |
27 |
+inherit linux-info multilib-minimal |
28 |
+ |
29 |
+DESCRIPTION="C library and tools for interacting with the linux GPIO character device" |
30 |
+HOMEPAGE="https://git.kernel.org/pub/scm/libs/libgpiod/libgpiod.git/" |
31 |
+SRC_URI="https://mirrors.edge.kernel.org/pub/software/libs/libgpiod/${P}.tar.xz" |
32 |
+ |
33 |
+LICENSE="LGPL-2.1" |
34 |
+# Reflects the ABI of libgpiod.so |
35 |
+SLOT="0/2" |
36 |
+KEYWORDS="~amd64 ~arm ~arm64 ~riscv ~x86" |
37 |
+IUSE="static-libs +tools cxx python test" |
38 |
+RESTRICT="!test? ( test )" |
39 |
+ |
40 |
+# --enable-tests enable libgpiod tests [default=no] |
41 |
+# --enable-bindings-cxx enable C++ bindings [default=no] |
42 |
+# --enable-bindings-python |
43 |
+ |
44 |
+pkg_setup() { |
45 |
+ CONFIG_CHECK="GPIO_CDEV_V1" |
46 |
+ linux-info_pkg_setup |
47 |
+} |
48 |
+ |
49 |
+multilib_src_configure() { |
50 |
+ local myconf=( |
51 |
+ $(use_enable tools) |
52 |
+ $(use_enable cxx bindings-cxx) |
53 |
+ $(use_enable test tests) |
54 |
+ $(multilib_native_use_enable python bindings-python) |
55 |
+ ) |
56 |
+ |
57 |
+ if ! multilib_is_native_abi; then |
58 |
+ myconf+=( |
59 |
+ --disable-tools |
60 |
+ ) |
61 |
+ fi |
62 |
+ |
63 |
+ ECONF_SOURCE="${S}" econf "${myconf[@]}" |
64 |
+} |
65 |
+ |
66 |
+multilib_src_install() { |
67 |
+ default |
68 |
+ |
69 |
+ find "${D}" -name '*.la' -type f -delete || die |
70 |
+ |
71 |
+ if ! use static-libs; then |
72 |
+ find "${D}" -name "*.a" -delete || die |
73 |
+ fi |
74 |
+} |