1 |
commit: 2a1d01a2d1aff43310a0bf5337fcfffdaef00914 |
2 |
Author: Jakov Smolic <jakov.smolic <AT> sartura <DOT> hr> |
3 |
AuthorDate: Sat Nov 28 23:09:09 2020 +0000 |
4 |
Commit: David Seifert <soap <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Nov 28 23:09:09 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2a1d01a2 |
7 |
|
8 |
sci-calculators/hcalc: port to EAPI 7 |
9 |
|
10 |
* Thanks to Jeroen Roovers for submitting the patch. |
11 |
|
12 |
Closes: https://bugs.gentoo.org/709722 |
13 |
Package-Manager: Portage-3.0.9, Repoman-3.0.1 |
14 |
Signed-off-by: Jakov Smolic <jakov.smolic <AT> sartura.hr> |
15 |
Signed-off-by: David Seifert <soap <AT> gentoo.org> |
16 |
|
17 |
sci-calculators/hcalc/files/hcalc-1.2-fno-common.patch | 13 +++++++++++++ |
18 |
sci-calculators/hcalc/hcalc-1.2-r1.ebuild | 9 +++++---- |
19 |
2 files changed, 18 insertions(+), 4 deletions(-) |
20 |
|
21 |
diff --git a/sci-calculators/hcalc/files/hcalc-1.2-fno-common.patch b/sci-calculators/hcalc/files/hcalc-1.2-fno-common.patch |
22 |
new file mode 100644 |
23 |
index 00000000000..b8bdcc73e30 |
24 |
--- /dev/null |
25 |
+++ b/sci-calculators/hcalc/files/hcalc-1.2-fno-common.patch |
26 |
@@ -0,0 +1,13 @@ |
27 |
+--- a/hcalc.h |
28 |
++++ b/hcalc.h |
29 |
+@@ -25,8 +25,8 @@ |
30 |
+ extern Pixmap face; |
31 |
+ extern Pixmap chars; |
32 |
+ |
33 |
+-int bit_on; |
34 |
+-int bit_off; |
35 |
++extern int bit_on; |
36 |
++extern int bit_off; |
37 |
+ |
38 |
+ extern int char_to_x[256]; |
39 |
+ extern char charmap[]; |
40 |
|
41 |
diff --git a/sci-calculators/hcalc/hcalc-1.2-r1.ebuild b/sci-calculators/hcalc/hcalc-1.2-r1.ebuild |
42 |
index bbd0de3fcfa..6a6b90666a0 100644 |
43 |
--- a/sci-calculators/hcalc/hcalc-1.2-r1.ebuild |
44 |
+++ b/sci-calculators/hcalc/hcalc-1.2-r1.ebuild |
45 |
@@ -1,9 +1,9 @@ |
46 |
-# Copyright 1999-2017 Gentoo Foundation |
47 |
+# Copyright 1999-2020 Gentoo Authors |
48 |
# Distributed under the terms of the GNU General Public License v2 |
49 |
|
50 |
-EAPI=6 |
51 |
+EAPI=7 |
52 |
|
53 |
-inherit cmake-utils |
54 |
+inherit cmake |
55 |
|
56 |
DESCRIPTION="DJ's Hex Calculator" |
57 |
HOMEPAGE="http://www.delorie.com/store/hcalc/ https://github.com/jlec/hcalc" |
58 |
@@ -12,13 +12,14 @@ SRC_URI="https://github.com/downloads/jlec/hcalc/${P}.tar.xz" |
59 |
LICENSE="GPL-2" |
60 |
SLOT="0" |
61 |
KEYWORDS="amd64 ppc x86 ~amd64-linux ~x86-linux" |
62 |
-IUSE="" |
63 |
|
64 |
RDEPEND=" |
65 |
x11-libs/libX11 |
66 |
x11-libs/libXpm" |
67 |
DEPEND="${RDEPEND}" |
68 |
|
69 |
+PATCHES=( "${FILESDIR}"/${P}-fno-common.patch ) |
70 |
+ |
71 |
pkg_postinst() { |
72 |
einfo "Enter hcalc to run and use kill or ctrl-c to exit." |
73 |
} |