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