1 |
commit: 1eab5fcdc005c843f7e6767bb92085332e0c1650 |
2 |
Author: David Seifert <soap <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Sep 15 19:52:30 2020 +0000 |
4 |
Commit: David Seifert <soap <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Sep 15 19:52:30 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1eab5fcd |
7 |
|
8 |
app-laptop/spicctrl: Fix makefile |
9 |
|
10 |
Closes: https://bugs.gentoo.org/742083 |
11 |
Package-Manager: Portage-3.0.7, Repoman-3.0.1 |
12 |
Signed-off-by: David Seifert <soap <AT> gentoo.org> |
13 |
|
14 |
.../spicctrl/files/spicctrl-1.9-makefile.patch | 22 ++++++++++++++++------ |
15 |
app-laptop/spicctrl/spicctrl-1.9-r1.ebuild | 7 ++++--- |
16 |
2 files changed, 20 insertions(+), 9 deletions(-) |
17 |
|
18 |
diff --git a/app-laptop/spicctrl/files/spicctrl-1.9-makefile.patch b/app-laptop/spicctrl/files/spicctrl-1.9-makefile.patch |
19 |
index edb79ce6d9c..ea2935d0296 100644 |
20 |
--- a/app-laptop/spicctrl/files/spicctrl-1.9-makefile.patch |
21 |
+++ b/app-laptop/spicctrl/files/spicctrl-1.9-makefile.patch |
22 |
@@ -1,11 +1,21 @@ |
23 |
---- a/Makefile 2012-11-20 12:38:41.528871594 +0400 |
24 |
-+++ b/Makefile 2012-11-20 12:39:42.630871103 +0400 |
25 |
-@@ -14,7 +14,7 @@ |
26 |
+--- a/Makefile |
27 |
++++ b/Makefile |
28 |
+@@ -1,6 +1,5 @@ |
29 |
+-CC = gcc |
30 |
+-CFLAGS = -Wall -W -Wshadow -Wstrict-prototypes -Wcast-qual -Wcast-align \ |
31 |
+- -Wwrite-strings -O2 -pipe |
32 |
++CFLAGS += -Wall -W -Wshadow -Wstrict-prototypes -Wcast-qual -Wcast-align \ |
33 |
++ -Wwrite-strings |
34 |
+ SRC = spicctrl.c |
35 |
+ OBJ = $(SRC:.c=.o) |
36 |
+ LIBS = |
37 |
+@@ -13,9 +12,6 @@ |
38 |
+ |
39 |
all: spicctrl |
40 |
|
41 |
- spicctrl: $(OBJ) |
42 |
+-spicctrl: $(OBJ) |
43 |
- $(CC) -o spicctrl $(OBJ) $(LIBS) |
44 |
-+ $(CC) $(CFLAGS) $(LDFLAGS) -o spicctrl $(OBJ) $(LIBS) |
45 |
- |
46 |
+- |
47 |
clean: |
48 |
rm -f $(OBJ) spicctrl *~ |
49 |
+ |
50 |
|
51 |
diff --git a/app-laptop/spicctrl/spicctrl-1.9-r1.ebuild b/app-laptop/spicctrl/spicctrl-1.9-r1.ebuild |
52 |
index d08dd3d8160..673144b0e85 100644 |
53 |
--- a/app-laptop/spicctrl/spicctrl-1.9-r1.ebuild |
54 |
+++ b/app-laptop/spicctrl/spicctrl-1.9-r1.ebuild |
55 |
@@ -13,12 +13,13 @@ LICENSE="GPL-2" |
56 |
SLOT="0" |
57 |
KEYWORDS="~amd64 -ppc x86" |
58 |
|
59 |
-PATCHES=( "${FILESDIR}/${P}-makefile.patch" ) |
60 |
+PATCHES=( "${FILESDIR}"/${P}-makefile.patch ) |
61 |
|
62 |
-src_compile() { |
63 |
- emake CC="$(tc-getCC)" CFLAGS="${CFLAGS}" |
64 |
+src_configure() { |
65 |
+ tc-export CC |
66 |
} |
67 |
|
68 |
src_install() { |
69 |
dobin spicctrl |
70 |
+ einstalldocs |
71 |
} |