1 |
commit: 7f012ff20c9f10efdba59f54a06019d026d788d5 |
2 |
Author: Bernard Cafarelli <voyageur <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Sep 3 10:57:14 2020 +0000 |
4 |
Commit: Bernard Cafarelli <voyageur <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Sep 3 10:57:56 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7f012ff2 |
7 |
|
8 |
app-misc/razertool: fix ar call, broken symlink |
9 |
|
10 |
Closes: https://bugs.gentoo.org/722326 |
11 |
Closes: https://bugs.gentoo.org/726668 |
12 |
Package-Manager: Portage-3.0.5, Repoman-3.0.1 |
13 |
Signed-off-by: Bernard Cafarelli <voyageur <AT> gentoo.org> |
14 |
|
15 |
app-misc/razertool/files/razertool-0.0.7-ar.patch | 11 +++++++++++ |
16 |
app-misc/razertool/razertool-0.0.7-r4.ebuild | 18 ++++++++++++------ |
17 |
2 files changed, 23 insertions(+), 6 deletions(-) |
18 |
|
19 |
diff --git a/app-misc/razertool/files/razertool-0.0.7-ar.patch b/app-misc/razertool/files/razertool-0.0.7-ar.patch |
20 |
new file mode 100644 |
21 |
index 00000000000..b585205b1b9 |
22 |
--- /dev/null |
23 |
+++ b/app-misc/razertool/files/razertool-0.0.7-ar.patch |
24 |
@@ -0,0 +1,11 @@ |
25 |
+diff -Naur razertool-0.0.7.orig/configure.in razertool-0.0.7/configure.in |
26 |
+--- razertool-0.0.7.orig/configure.in 2006-08-13 21:57:35.000000000 +0200 |
27 |
++++ razertool-0.0.7/configure.in 2020-09-03 12:53:51.991020189 +0200 |
28 |
+@@ -10,6 +10,7 @@ |
29 |
+ dnl checks for programs |
30 |
+ AC_ISC_POSIX |
31 |
+ AC_PROG_CC |
32 |
++AM_PROG_AR |
33 |
+ AM_PROG_CC_STDC |
34 |
+ AC_PROG_RANLIB |
35 |
+ AC_HEADER_STDC |
36 |
|
37 |
diff --git a/app-misc/razertool/razertool-0.0.7-r4.ebuild b/app-misc/razertool/razertool-0.0.7-r4.ebuild |
38 |
index 916571dbd9e..6ce2b396b52 100644 |
39 |
--- a/app-misc/razertool/razertool-0.0.7-r4.ebuild |
40 |
+++ b/app-misc/razertool/razertool-0.0.7-r4.ebuild |
41 |
@@ -1,8 +1,8 @@ |
42 |
-# Copyright 1999-2017 Gentoo Foundation |
43 |
+# Copyright 1999-2020 Gentoo Authors |
44 |
# Distributed under the terms of the GNU General Public License v2 |
45 |
|
46 |
EAPI=6 |
47 |
-inherit eutils |
48 |
+inherit autotools eutils |
49 |
|
50 |
DESCRIPTION="Unofficial tool for controlling the Razer Copperhead mouse" |
51 |
HOMEPAGE="http://razertool.sourceforge.net/" |
52 |
@@ -27,17 +27,21 @@ DEPEND="${RDEPEND} |
53 |
|
54 |
DOCS=( AUTHORS ChangeLog NEWS README ) |
55 |
|
56 |
+PATCHES=( "${FILESDIR}"/${P}-ar.patch ) |
57 |
+ |
58 |
src_prepare() { |
59 |
default |
60 |
|
61 |
sed -i razertool.rules.example \ |
62 |
-e 's:ACTION=="add", ::;s:BUS=:SUBSYSTEMS=:;s:SYSFS{:ATTRS{:g' \ |
63 |
- || die "sed razertool.rules.example action failed" |
64 |
+ || die |
65 |
|
66 |
# plugdev group may not exist (created by hal), default to usb |
67 |
sed -i razertool.rules.example \ |
68 |
-e 's:plugdev:usb:' \ |
69 |
- || die "sed razertool.rules.example plugdev failed" |
70 |
+ || die |
71 |
+ |
72 |
+ eautoreconf |
73 |
} |
74 |
|
75 |
src_configure() { |
76 |
@@ -51,8 +55,10 @@ src_install() { |
77 |
newins razertool.rules.example 90-razertool.rules |
78 |
|
79 |
# Icon and desktop entry |
80 |
- dosym ../razertool/pixmaps/razertool-icon.png /usr/share/pixmaps/razertool-icon.png |
81 |
- make_desktop_entry "razertool-gtk" "RazerTool" ${PN}-icon "GTK;Settings;HardwareSettings" |
82 |
+ if use gtk; then |
83 |
+ dosym ../razertool/pixmaps/razertool-icon.png /usr/share/pixmaps/razertool-icon.png |
84 |
+ make_desktop_entry "razertool-gtk" "RazerTool" ${PN}-icon "GTK;Settings;HardwareSettings" |
85 |
+ fi |
86 |
} |
87 |
|
88 |
pkg_postinst() { |