1 |
commit: 5cb2573130f31ad428c1eeb27f9043329f0e78a0 |
2 |
Author: Bernard Cafarelli <voyageur <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Nov 29 17:05:55 2019 +0000 |
4 |
Commit: Bernard Cafarelli <voyageur <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Nov 29 17:06:10 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5cb25731 |
7 |
|
8 |
app-emulation/free42: 2.5.12 bump, switches to GTK 3 |
9 |
|
10 |
Package-Manager: Portage-2.3.80, Repoman-2.3.19 |
11 |
Signed-off-by: Bernard Cafarelli <voyageur <AT> gentoo.org> |
12 |
|
13 |
app-emulation/free42/Manifest | 1 + |
14 |
.../free42/files/free42-2.5.12-fix-makefile.patch | 45 +++++++++++++++++++ |
15 |
app-emulation/free42/free42-2.5.12.ebuild | 50 ++++++++++++++++++++++ |
16 |
3 files changed, 96 insertions(+) |
17 |
|
18 |
diff --git a/app-emulation/free42/Manifest b/app-emulation/free42/Manifest |
19 |
index f6a6e147618..eb7d07fa4a7 100644 |
20 |
--- a/app-emulation/free42/Manifest |
21 |
+++ b/app-emulation/free42/Manifest |
22 |
@@ -1,3 +1,4 @@ |
23 |
DIST free42-nologo-2.0.20.tgz 7390214 BLAKE2B 306f3378bcbb44fa7982c5d9c29bfbea62e915ca50ca5e5216f46fbf483f110a1288d4800991a74622a042517496ff8dd94c3fa3249e8bb4181957e6b23d5ea3 SHA512 9b540fbc50df2f94b135b5e778354f330df77a54ef2ad99b257b5b91d1e3e8d1241e8a834522fc46fe33571ea2695ad8889b427dbcf653870672e89cd56d60f5 |
24 |
DIST free42-nologo-2.5.10.tgz 7408769 BLAKE2B eec27805199b80ce659517479bbaefe871f8e4d2fc06c138e4741d63748acdef7e04b54324ff679a820ca451fcfa34e4202edf196e426679adabe397313f8f37 SHA512 309ee3779b792208ab887b91e43c4bf7a61862b02e3c250fd09367c154345878ad80c2c949138cb5d0c5d7031ebb0d4c6d192962866b6b68fce220ab2d651b42 |
25 |
DIST free42-nologo-2.5.11.tgz 7408708 BLAKE2B a7eedafb15ff52e52774b7750bd00cba0b94176d90572cf60c1b927d47a879ea834704b424b2dfcd467c3ae08566a0269d0b5b7a1418e5c4399f7c4e86dd7198 SHA512 389bacf4af420fe4bb8174d15b049f73004f9cecdfd98b1c4aafbe2076c77ba1ce1f4a7df762f4622ccbec2ffbaffc218d0afe576a977d1c583e4a4ca20eff46 |
26 |
+DIST free42-nologo-2.5.12.tgz 7409287 BLAKE2B 9d2e244c1d7c7c728bfde6331badee412573239e3470e84f30776f62f9c6224ff3dc3d3cea8574349aeebd171c6682cfbc12b9bbdd2decbce6b6223aae705a1f SHA512 d93d55dfedfb33f91868f92e6ab9c1db48ff05e932c6628df5bb8237192aaeb104a2da56422cecfeab2ccc24d41fb518f6901ce2424739450d56a5ae7f90cda1 |
27 |
|
28 |
diff --git a/app-emulation/free42/files/free42-2.5.12-fix-makefile.patch b/app-emulation/free42/files/free42-2.5.12-fix-makefile.patch |
29 |
new file mode 100644 |
30 |
index 00000000000..8a8fa437ba2 |
31 |
--- /dev/null |
32 |
+++ b/app-emulation/free42/files/free42-2.5.12-fix-makefile.patch |
33 |
@@ -0,0 +1,45 @@ |
34 |
+diff -Naur free42-nologo-2.5.12.orig/gtk/Makefile free42-nologo-2.5.12/gtk/Makefile |
35 |
+--- free42-nologo-2.5.12.orig/gtk/Makefile 2019-11-28 20:11:51.000000000 +0100 |
36 |
++++ free42-nologo-2.5.12/gtk/Makefile 2019-11-29 17:59:58.292516949 +0100 |
37 |
+@@ -15,7 +15,7 @@ |
38 |
+ # along with this program; if not, see http://www.gnu.org/licenses/. |
39 |
+ ############################################################################### |
40 |
+ |
41 |
+-CFLAGS = -MMD \ |
42 |
++CFLAGS := -MMD \ |
43 |
+ -Wall \ |
44 |
+ -Wno-parentheses \ |
45 |
+ -Wno-write-strings \ |
46 |
+@@ -34,7 +34,8 @@ |
47 |
+ -DDECIMAL_GLOBAL_ROUNDING=1 \ |
48 |
+ -DDECIMAL_GLOBAL_ROUNDING_ACCESS_FUNCTIONS=1 \ |
49 |
+ -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=1 \ |
50 |
+- -DDECIMAL_GLOBAL_EXCEPTION_FLAGS_ACCESS_FUNCTIONS=1 |
51 |
++ -DDECIMAL_GLOBAL_EXCEPTION_FLAGS_ACCESS_FUNCTIONS=1 \ |
52 |
++ ${CFLAGS} |
53 |
+ |
54 |
+ ############################################################################### |
55 |
+ ### Note that there are deprecation warnings while compiling shell_main.cc ### |
56 |
+@@ -46,10 +47,11 @@ |
57 |
+ ### GTK+ 3.22 for testing. ### |
58 |
+ ############################################################################### |
59 |
+ |
60 |
+-CXXFLAGS = $(CFLAGS) \ |
61 |
++CXXFLAGS := $(CFLAGS) \ |
62 |
+ -fno-exceptions \ |
63 |
+ -fno-rtti \ |
64 |
+- -D_WCHAR_T_DEFINED |
65 |
++ -D_WCHAR_T_DEFINED \ |
66 |
++ ${CFLAGS} |
67 |
+ |
68 |
+ LIBS = gcc111libbid.a $(shell pkg-config --libs gtk+-3.0) |
69 |
+ |
70 |
+@@ -125,7 +127,7 @@ |
71 |
+ |
72 |
+ symlinks: |
73 |
+ for fn in `cd ../common; /bin/ls`; do ln -s ../common/$$fn; done |
74 |
+- sh ./build-intel-lib.sh |
75 |
++ +sh ./build-intel-lib.sh |
76 |
+ ln -s IntelRDFPMathLib20U1/TESTS/readtest.c |
77 |
+ touch symlinks |
78 |
+ |
79 |
|
80 |
diff --git a/app-emulation/free42/free42-2.5.12.ebuild b/app-emulation/free42/free42-2.5.12.ebuild |
81 |
new file mode 100644 |
82 |
index 00000000000..a50835ba399 |
83 |
--- /dev/null |
84 |
+++ b/app-emulation/free42/free42-2.5.12.ebuild |
85 |
@@ -0,0 +1,50 @@ |
86 |
+# Copyright 1999-2019 Gentoo Authors |
87 |
+# Distributed under the terms of the GNU General Public License v2 |
88 |
+ |
89 |
+EAPI=7 |
90 |
+ |
91 |
+inherit toolchain-funcs |
92 |
+ |
93 |
+MY_PV="${PN}-nologo-${PV}" |
94 |
+ |
95 |
+DESCRIPTION="An HP-42S Calculator Simulator" |
96 |
+HOMEPAGE="https://thomasokken.com/free42/" |
97 |
+SRC_URI="https://thomasokken.com/free42/upstream/${MY_PV}.tgz" |
98 |
+ |
99 |
+LICENSE="GPL-2" |
100 |
+SLOT="0" |
101 |
+KEYWORDS="~amd64 ~x86" |
102 |
+IUSE="+alsa" |
103 |
+ |
104 |
+DEPEND="dev-libs/atk |
105 |
+ x11-libs/cairo |
106 |
+ x11-libs/gdk-pixbuf |
107 |
+ x11-libs/gtk+:3 |
108 |
+ alsa? ( media-libs/alsa-lib )" |
109 |
+ |
110 |
+RDEPEND="${DEPEND}" |
111 |
+ |
112 |
+DOCS=( CREDITS HISTORY README ) |
113 |
+S="${WORKDIR}/${MY_PV}" |
114 |
+ |
115 |
+PATCHES=( |
116 |
+ "${FILESDIR}/${PN}-2.5.12-fix-makefile.patch" |
117 |
+ "${FILESDIR}/${PN}-2.5.3-fix-build-intel-lib.patch" |
118 |
+) |
119 |
+ |
120 |
+src_prepare() { |
121 |
+ default |
122 |
+} |
123 |
+ |
124 |
+src_compile() { |
125 |
+ local myconf |
126 |
+ use alsa && myconf="AUDIO_ALSA=yes" |
127 |
+ emake CC="$(tc-getCC)" CXX="$(tc-getCXX)" ${myconf} -C gtk |
128 |
+ emake -C gtk clean |
129 |
+ emake CC="$(tc-getCC)" CXX="$(tc-getCXX)" BCD_MATH=1 ${myconf} -C gtk |
130 |
+} |
131 |
+ |
132 |
+src_install() { |
133 |
+ default |
134 |
+ dobin gtk/free42bin gtk/free42dec |
135 |
+} |