1 |
commit: 10fe9319855a4c353a14cb698ac5bf9bf550a12b |
2 |
Author: Sam James <sam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Apr 28 03:23:46 2022 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Apr 28 03:31:49 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=10fe9319 |
7 |
|
8 |
dev-libs/light: use get_udevdir |
9 |
|
10 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
11 |
|
12 |
dev-libs/light/light-1.2.2-r2.ebuild | 16 +++++++++------- |
13 |
1 file changed, 9 insertions(+), 7 deletions(-) |
14 |
|
15 |
diff --git a/dev-libs/light/light-1.2.2-r2.ebuild b/dev-libs/light/light-1.2.2-r2.ebuild |
16 |
index 64dd04c8b3f4..9d2a121969e2 100644 |
17 |
--- a/dev-libs/light/light-1.2.2-r2.ebuild |
18 |
+++ b/dev-libs/light/light-1.2.2-r2.ebuild |
19 |
@@ -1,4 +1,4 @@ |
20 |
-# Copyright 1999-2021 Gentoo Authors |
21 |
+# Copyright 1999-2022 Gentoo Authors |
22 |
# Distributed under the terms of the GNU General Public License v2 |
23 |
|
24 |
EAPI=8 |
25 |
@@ -12,25 +12,27 @@ SRC_URI="https://github.com/haikarainen/${PN}/archive/v${PV}.tar.gz -> ${P}.tar. |
26 |
LICENSE="GPL-3" |
27 |
SLOT="0" |
28 |
KEYWORDS="amd64 x86" |
29 |
- |
30 |
IUSE="udev" |
31 |
|
32 |
RDEPEND=" |
33 |
acct-group/video |
34 |
!sys-power/acpilight |
35 |
+ udev? ( virtual/libudev:= ) |
36 |
" |
37 |
-DEPEND="udev? ( virtual/libudev:= ) |
38 |
- ${RDEPEND}" |
39 |
+DEPEND="${RDEPEND}" |
40 |
+ |
41 |
+PATCHES=( |
42 |
+ "${FILESDIR}/${P}-fcommon.patch" |
43 |
+) |
44 |
|
45 |
src_prepare() { |
46 |
- eapply "${FILESDIR}/${P}-fcommon.patch" |
47 |
- eapply_user |
48 |
+ default |
49 |
eautoreconf |
50 |
} |
51 |
|
52 |
src_configure() { |
53 |
local myeconfargs=( |
54 |
- $(usex udev --with-udev="/lib/udev/rules.d" "") |
55 |
+ $(usex udev --with-udev="$(get_udevdir)/rules.d" "") |
56 |
) |
57 |
|
58 |
econf "${myeconfargs[@]}" |