Gentoo Archives: gentoo-commits

From: "Anthony G. Basile" <blueness@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/libgpiod/
Date: Thu, 03 Oct 2019 14:30:43
Message-Id: 1570113019.4c5b04436e05c8dfe7e4ea8107a08670f32d746f.blueness@gentoo
1 commit: 4c5b04436e05c8dfe7e4ea8107a08670f32d746f
2 Author: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
3 AuthorDate: Thu Oct 3 14:30:19 2019 +0000
4 Commit: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
5 CommitDate: Thu Oct 3 14:30:19 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4c5b0443
7
8 dev-libs/libgpiod: version bump to 1.4.1, bug #671370
9
10 Author: gabemarcano <AT> yahoo.com
11 Closes: https://bugs.gentoo.org/671370
12 Package-Manager: Portage-2.3.76, Repoman-2.3.16
13 Signed-off-by: Anthony G. Basile <blueness <AT> gentoo.org>
14
15 dev-libs/libgpiod/Manifest | 1 +
16 dev-libs/libgpiod/libgpiod-1.4.1.ebuild | 47 +++++++++++++++++++++++++++++++++
17 2 files changed, 48 insertions(+)
18
19 diff --git a/dev-libs/libgpiod/Manifest b/dev-libs/libgpiod/Manifest
20 index 24dedcf0330..96b415fe240 100644
21 --- a/dev-libs/libgpiod/Manifest
22 +++ b/dev-libs/libgpiod/Manifest
23 @@ -1 +1,2 @@
24 DIST libgpiod-1.1.1.tar.xz 302672 BLAKE2B 71c624f923118b7c50970beb737f2c813d1470a34f95798f9ce821211e16f15e2a3fd42d0054e25529ddc9846725c0935d915784f22d2509b844a0bac61b66b6 SHA512 a1d902ce8e1c94d5550ade2fb4889ebe28b86523505b92ab907f58c8e6903eaf07ce16278126989462956b879f591b42ddd50fbc4537c1b5af459f23a4dfc12f
25 +DIST libgpiod-1.4.1.tar.xz 314936 BLAKE2B 8949c4a96f69a83a479f5951e6f1eb8fee56db700e72320131c365a5d736a48700fb42b7ecc2b676cec54887eaa650075f45ec1f0b803de914958cefd3863db8 SHA512 2a9c58a46fb3c2e2dd15cc4ba52f589b44e5ae4547226eeb68a8e5bea6292d38aaf0889cc639e0979e12e129bb944bb42d9258f10292f59d074660e7c2d56d04
26
27 diff --git a/dev-libs/libgpiod/libgpiod-1.4.1.ebuild b/dev-libs/libgpiod/libgpiod-1.4.1.ebuild
28 new file mode 100644
29 index 00000000000..50141fbb261
30 --- /dev/null
31 +++ b/dev-libs/libgpiod/libgpiod-1.4.1.ebuild
32 @@ -0,0 +1,47 @@
33 +# Copyright 1999-2019 Gentoo Authors
34 +# Distributed under the terms of the GNU General Public License v2
35 +
36 +EAPI=7
37 +
38 +inherit eutils multilib multilib-minimal
39 +
40 +DESCRIPTION="C library and tools for interacting with the linux GPIO character device"
41 +HOMEPAGE="https://git.kernel.org/pub/scm/libs/libgpiod/libgpiod.git/"
42 +SRC_URI="https://mirrors.edge.kernel.org/pub/software/libs/libgpiod/${P}.tar.xz"
43 +
44 +LICENSE="LGPL-2.1"
45 +# Reflects the ABI of libgpiod.so
46 +SLOT="0/1"
47 +KEYWORDS="~amd64 ~arm ~arm64 ~x86"
48 +IUSE="static-libs +tools cxx python 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 +}