Gentoo Archives: gentoo-commits

From: Aaron Bauman <bman@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/light/files/, dev-libs/light/
Date: Wed, 02 Sep 2020 20:59:11
Message-Id: 1599080337.05d1a1775a435dc675e5073c242b67ef11f9507c.bman@gentoo
1 commit: 05d1a1775a435dc675e5073c242b67ef11f9507c
2 Author: Aaron Bauman <bman <AT> gentoo <DOT> org>
3 AuthorDate: Wed Sep 2 20:56:31 2020 +0000
4 Commit: Aaron Bauman <bman <AT> gentoo <DOT> org>
5 CommitDate: Wed Sep 2 20:58:57 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=05d1a177
7
8 dev-libs/light: fix multiple bugs
9
10 * Add patch to fix meaning of USE udev
11 * Fix file collisions
12 * Fix fno-fcommon build issue
13
14 Closes: https://bugs.gentoo.org/673520
15 Closes: https://bugs.gentoo.org/709636
16 Closes: https://bugs.gentoo.org/739896
17
18 Reported-by: Petr Zima <zima <AT> matfyz.cz>
19 Signed-off-by: Aaron Bauman <bman <AT> gentoo.org>
20
21 dev-libs/light/Manifest | 1 +
22 dev-libs/light/files/light-1.2.2-fcommon.patch | 22 +++++++++++++++++
23 dev-libs/light/light-1.2.2.ebuild | 33 ++++++++++++++++++++++++++
24 3 files changed, 56 insertions(+)
25
26 diff --git a/dev-libs/light/Manifest b/dev-libs/light/Manifest
27 index bb1931fe604..5d884d0a8cd 100644
28 --- a/dev-libs/light/Manifest
29 +++ b/dev-libs/light/Manifest
30 @@ -1 +1,2 @@
31 +DIST light-1.2.2.tar.gz 33009 BLAKE2B 6e23d7f89c1dbf412943f2b60a09f9189c5420649397a286fa964d249adb57cafb2943ef610dd13470e486d9dfb51ca40289d9974760e907f794baa27963821d SHA512 5815394fb1545d1e06234c261d475e1836e4c43e47e7707b8628891d20b70db04f1661b78ca1d236d549c734430b606498fa46de060c854791b13cf49de07b59
32 DIST light-1.2.tar.gz 32592 BLAKE2B 86d2bf4a88cf61ec1b7af16510db3d26698397d5cc3ddee7f663c1f501ca6b5bf238e5f29f17142d6196908e1d444795abed41a12560c9411214d4a874c96ddb SHA512 3f876262a730ef34219e0d596065c725376218ca88a2e9f56f62a25956b9ba505168f32c5877715abf746090c053873322a3292680055cc2f5b77ec8c0d466a4
33
34 diff --git a/dev-libs/light/files/light-1.2.2-fcommon.patch b/dev-libs/light/files/light-1.2.2-fcommon.patch
35 new file mode 100644
36 index 00000000000..6f37fc4d411
37 --- /dev/null
38 +++ b/dev-libs/light/files/light-1.2.2-fcommon.patch
39 @@ -0,0 +1,22 @@
40 +--- a/src/helpers.c
41 ++++ b/src/helpers.c
42 +@@ -9,6 +9,8 @@
43 + #include <errno.h> // errno
44 + #include <libgen.h> // dirname
45 +
46 ++light_loglevel_t light_loglevel;
47 ++
48 +
49 + bool light_file_read_uint64(char const *filename, uint64_t *val)
50 + {
51 +--- a/src/helpers.h
52 ++++ b/src/helpers.h
53 +@@ -21,7 +21,7 @@
54 + LIGHT_NOTE_LEVEL
55 + } light_loglevel_t;
56 +
57 +-light_loglevel_t light_loglevel;
58 ++extern light_loglevel_t light_loglevel;
59 +
60 + #define LIGHT_LOG(lvl, fp, fmt, args...)\
61 + if (light_loglevel >= lvl)\
62
63 diff --git a/dev-libs/light/light-1.2.2.ebuild b/dev-libs/light/light-1.2.2.ebuild
64 new file mode 100644
65 index 00000000000..1e6fa905666
66 --- /dev/null
67 +++ b/dev-libs/light/light-1.2.2.ebuild
68 @@ -0,0 +1,33 @@
69 +# Copyright 1999-2020 Gentoo Authors
70 +# Distributed under the terms of the GNU General Public License v2
71 +
72 +EAPI=7
73 +
74 +inherit autotools eutils flag-o-matic
75 +
76 +DESCRIPTION="A program to control backlights (and other hardware lights)"
77 +HOMEPAGE="https://github.com/haikarainen/light"
78 +SRC_URI="https://github.com/haikarainen/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
79 +
80 +LICENSE="GPL-3"
81 +SLOT="0"
82 +KEYWORDS="~amd64 ~x86"
83 +
84 +IUSE="udev"
85 +
86 +RDEPEND=""
87 +DEPEND="udev? ( virtual/libudev:= )
88 + ${RDEPEND}"
89 +
90 +src_prepare() {
91 + eapply "${FILESDIR}/${P}-fcommon.patch"
92 + eapply_user
93 + eautoreconf
94 +}
95 +
96 +src_configure() {
97 + local myeconfargs=(
98 + $(usex udev --with-udev="/lib/udev/rules.d" "")
99 + )
100 + econf "${myeconfargs[@]}"
101 +}