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: Fri, 06 Apr 2018 14:59:34
Message-Id: 1523026765.ffea62559c4ccc708bae917eddf777e537d561f0.blueness@gentoo
1 commit: ffea62559c4ccc708bae917eddf777e537d561f0
2 Author: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
3 AuthorDate: Fri Apr 6 14:59:08 2018 +0000
4 Commit: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
5 CommitDate: Fri Apr 6 14:59:25 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ffea6255
7
8 dev-libs/libgpiod: initial commit
9
10 dev-libs/libgpiod/Manifest | 1 +
11 dev-libs/libgpiod/libgpiod-1.0.ebuild | 30 ++++++++++++++++++++++++++++++
12 dev-libs/libgpiod/metadata.xml | 11 +++++++++++
13 3 files changed, 42 insertions(+)
14
15 diff --git a/dev-libs/libgpiod/Manifest b/dev-libs/libgpiod/Manifest
16 new file mode 100644
17 index 00000000000..7f380ebad6b
18 --- /dev/null
19 +++ b/dev-libs/libgpiod/Manifest
20 @@ -0,0 +1 @@
21 +DIST libgpiod-1.0.tar.gz 411974 BLAKE2B e6c962329f7fad374d2771e60aa87e679970e3b593dda73d51f0511b14122d8a9d94eee3355ede2221d4ff0cd10f7116874c535fe90092fd61ccc5aa8f7e9818 SHA512 e8a71a7028fa73a94d8507d4329bee024c3e73d1b619dd5500172bf36509c7ccee521ddb6ef07283e3a4217af9da12ce154af657f8a536883f5495ffccf46e0c
22
23 diff --git a/dev-libs/libgpiod/libgpiod-1.0.ebuild b/dev-libs/libgpiod/libgpiod-1.0.ebuild
24 new file mode 100644
25 index 00000000000..c83a38aa5e7
26 --- /dev/null
27 +++ b/dev-libs/libgpiod/libgpiod-1.0.ebuild
28 @@ -0,0 +1,30 @@
29 +# Copyright 1999-2018 Gentoo Foundation
30 +# Distributed under the terms of the GNU General Public License v2
31 +
32 +EAPI=6
33 +
34 +inherit multilib multilib-minimal
35 +
36 +DESCRIPTION="C library and tools for interacting with the linux GPIO character device"
37 +HOMEPAGE="https://git.kernel.org/pub/scm/libs/libgpiod/libgpiod.git/"
38 +SRC_URI="https://dev.gentoo.org/~blueness/libgpiod/${P}.tar.gz"
39 +
40 +LICENSE="LGPL-2.1"
41 +# Reflects the ABI of libgpiod.so
42 +SLOT="0/1"
43 +KEYWORDS="~amd64 ~x86"
44 +IUSE="static-libs +tools"
45 +
46 +multilib_src_configure() {
47 + ECONF_SOURCE="${S}" econf \
48 + $(use_enable tools)
49 +}
50 +
51 +multilib_src_install() {
52 + default
53 +
54 + if ! use static-libs; then
55 + find "${D}" -name "*.a" -delete || die
56 + fi
57 + find "${D}" -name '*.la' -delete || die
58 +}
59
60 diff --git a/dev-libs/libgpiod/metadata.xml b/dev-libs/libgpiod/metadata.xml
61 new file mode 100644
62 index 00000000000..e9d3e660684
63 --- /dev/null
64 +++ b/dev-libs/libgpiod/metadata.xml
65 @@ -0,0 +1,11 @@
66 +<?xml version="1.0" encoding="UTF-8"?>
67 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
68 +<pkgmetadata>
69 + <maintainer type="person">
70 + <email>blueness@g.o</email>
71 + <name>Anthony G. Basile</name>
72 + </maintainer>
73 + <use>
74 + <flag name="tools">Build some useful gpio tools that use libgpiod.</flag>
75 + </use>
76 +</pkgmetadata>