1 |
commit: 04d823027daf8b17a875e0396669fd4e744bc6c5 |
2 |
Author: Tony Vroon <chainsaw <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Apr 21 21:13:33 2021 +0000 |
4 |
Commit: Tony Vroon <chainsaw <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Apr 21 21:14:19 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=04d82302 |
7 |
|
8 |
app-misc/ckb: Fix systemd unit install. |
9 |
|
10 |
As pointed out by John "ajak" Helmert III, the automatic detection of systemd |
11 |
vs OpenRC can fail. Override it with a USE-flag, and use that to simplify |
12 |
the first-use elog messages. |
13 |
|
14 |
Closes: https://bugs.gentoo.org/783789 |
15 |
Signed-Off-By: Tony Vroon <chainsaw <AT> gentoo.org> |
16 |
Package-Manager: Portage-3.0.17, Repoman-3.0.2 |
17 |
|
18 |
app-misc/ckb/ckb-0.4.4-r1.ebuild | 61 ++++++++++++++++++++++++++++++++++++++++ |
19 |
1 file changed, 61 insertions(+) |
20 |
|
21 |
diff --git a/app-misc/ckb/ckb-0.4.4-r1.ebuild b/app-misc/ckb/ckb-0.4.4-r1.ebuild |
22 |
new file mode 100644 |
23 |
index 00000000000..7b290d85ef3 |
24 |
--- /dev/null |
25 |
+++ b/app-misc/ckb/ckb-0.4.4-r1.ebuild |
26 |
@@ -0,0 +1,61 @@ |
27 |
+# Copyright 1999-2021 Gentoo Authors |
28 |
+# Distributed under the terms of the GNU General Public License v2 |
29 |
+ |
30 |
+EAPI=7 |
31 |
+ |
32 |
+inherit xdg cmake |
33 |
+ |
34 |
+DESCRIPTION="Corsair K65/K70/K95 Driver" |
35 |
+HOMEPAGE="https://github.com/ckb-next/ckb-next" |
36 |
+SRC_URI="https://github.com/ckb-next/ckb-next/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
37 |
+ |
38 |
+LICENSE="GPL-2" |
39 |
+SLOT="0" |
40 |
+KEYWORDS="~amd64" |
41 |
+IUSE="systemd" |
42 |
+ |
43 |
+RDEPEND=" |
44 |
+ dev-libs/libdbusmenu-qt |
45 |
+ dev-libs/quazip:0= |
46 |
+ dev-qt/qtcore:5 |
47 |
+ dev-qt/qtdbus:5 |
48 |
+ dev-qt/qtgui:5 |
49 |
+ dev-qt/qtnetwork:5 |
50 |
+ dev-qt/qtwidgets:5 |
51 |
+ dev-qt/qtx11extras:5 |
52 |
+ media-sound/pulseaudio |
53 |
+ virtual/libudev:= |
54 |
+ x11-libs/libX11 |
55 |
+ x11-libs/libxcb:= |
56 |
+ x11-libs/xcb-util-wm" |
57 |
+DEPEND="${RDEPEND}" |
58 |
+BDEPEND="dev-qt/linguist-tools:5" |
59 |
+ |
60 |
+S="${WORKDIR}/${PN}-next-${PV}" |
61 |
+ |
62 |
+src_configure() { |
63 |
+ local mycmakeargs=( |
64 |
+ -DDISABLE_UPDATER=yes |
65 |
+ -DFORCE_INIT_SYSTEM=$(usex systemd systemd openrc) |
66 |
+ ) |
67 |
+ cmake_src_configure |
68 |
+} |
69 |
+ |
70 |
+src_install() { |
71 |
+ cmake_src_install |
72 |
+ dodoc CHANGELOG.md |
73 |
+ |
74 |
+ newinitd "${FILESDIR}"/ckb.initd ckb-daemon |
75 |
+} |
76 |
+ |
77 |
+pkg_postinst() { |
78 |
+ if [[ -z "${REPLACING_VERSIONS}" ]]; then |
79 |
+ elog "The ckb daemon will have to be started before use:" |
80 |
+ elog |
81 |
+ if use systemd ; then |
82 |
+ elog "# systemctl start ckb-next-daemon" |
83 |
+ else |
84 |
+ elog "# rc-service ckb start" |
85 |
+ fi |
86 |
+ fi |
87 |
+} |