1 |
commit: 3f4aea9d7d862dc542123802e50c1a4781a7c5c3 |
2 |
Author: Jakov Smolic <jakov.smolic <AT> sartura <DOT> hr> |
3 |
AuthorDate: Mon Dec 28 14:48:00 2020 +0000 |
4 |
Commit: David Seifert <soap <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Dec 28 14:48:00 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3f4aea9d |
7 |
|
8 |
sys-power/athcool: Port to EAPI 7 |
9 |
|
10 |
Closes: https://bugs.gentoo.org/725976 |
11 |
Package-Manager: Portage-3.0.9, Repoman-3.0.1 |
12 |
Signed-off-by: Jakov Smolic <jakov.smolic <AT> sartura.hr> |
13 |
Signed-off-by: David Seifert <soap <AT> gentoo.org> |
14 |
|
15 |
sys-power/athcool/athcool-0.3.12.ebuild | 11 ++++++----- |
16 |
...thcool-0.3.11-build.patch => athcool-0.3.12-build.patch} | 0 |
17 |
sys-power/athcool/files/athcool-0.3.12-fno-common.patch | 13 +++++++++++++ |
18 |
3 files changed, 19 insertions(+), 5 deletions(-) |
19 |
|
20 |
diff --git a/sys-power/athcool/athcool-0.3.12.ebuild b/sys-power/athcool/athcool-0.3.12.ebuild |
21 |
index bd826f25b0f..f1516378cdd 100644 |
22 |
--- a/sys-power/athcool/athcool-0.3.12.ebuild |
23 |
+++ b/sys-power/athcool/athcool-0.3.12.ebuild |
24 |
@@ -1,7 +1,7 @@ |
25 |
-# Copyright 1999-2017 Gentoo Foundation |
26 |
+# Copyright 1999-2020 Gentoo Authors |
27 |
# Distributed under the terms of the GNU General Public License v2 |
28 |
|
29 |
-EAPI=6 |
30 |
+EAPI=7 |
31 |
|
32 |
inherit toolchain-funcs |
33 |
|
34 |
@@ -12,12 +12,13 @@ SRC_URI="http://members.jcom.home.ne.jp/jacobi/linux/files/${P}.tar.gz" |
35 |
LICENSE="GPL-2" |
36 |
SLOT="0" |
37 |
KEYWORDS="-* x86" |
38 |
-IUSE="" |
39 |
|
40 |
DEPEND="sys-apps/pciutils" |
41 |
-RDEPEND="" |
42 |
|
43 |
-PATCHES=( "${FILESDIR}"/${PN}-0.3.11-build.patch ) |
44 |
+PATCHES=( |
45 |
+ "${FILESDIR}"/${P}-build.patch |
46 |
+ "${FILESDIR}"/${P}-fno-common.patch |
47 |
+) |
48 |
|
49 |
src_configure() { |
50 |
tc-export CC |
51 |
|
52 |
diff --git a/sys-power/athcool/files/athcool-0.3.11-build.patch b/sys-power/athcool/files/athcool-0.3.12-build.patch |
53 |
similarity index 100% |
54 |
rename from sys-power/athcool/files/athcool-0.3.11-build.patch |
55 |
rename to sys-power/athcool/files/athcool-0.3.12-build.patch |
56 |
|
57 |
diff --git a/sys-power/athcool/files/athcool-0.3.12-fno-common.patch b/sys-power/athcool/files/athcool-0.3.12-fno-common.patch |
58 |
new file mode 100644 |
59 |
index 00000000000..7fbbea95e9e |
60 |
--- /dev/null |
61 |
+++ b/sys-power/athcool/files/athcool-0.3.12-fno-common.patch |
62 |
@@ -0,0 +1,13 @@ |
63 |
+--- a/scanpci.c |
64 |
++++ b/scanpci.c |
65 |
+@@ -11,8 +11,8 @@ |
66 |
+ |
67 |
+ #define die printf |
68 |
+ |
69 |
+-struct pci_filter filter; |
70 |
+-struct pci_access *pacc; |
71 |
++extern struct pci_filter filter; |
72 |
++extern struct pci_access *pacc; |
73 |
+ static int show_hex = 0; |
74 |
+ |
75 |
+ static struct device *scan_device( struct pci_dev *p ) |