Gentoo Archives: gentoo-commits

From: "José María Alonso" <nimiux@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-emulation/free42/, app-emulation/free42/files/
Date: Sat, 24 Sep 2016 19:10:36
Message-Id: 1474744226.ae20937aa36bfc25fdc96639bd45859a0778e8a0.nimiux@gentoo
1 commit: ae20937aa36bfc25fdc96639bd45859a0778e8a0
2 Author: Chema Alonso Josa <nimiux <AT> gentoo <DOT> org>
3 AuthorDate: Sat Sep 24 19:10:04 2016 +0000
4 Commit: José María Alonso <nimiux <AT> gentoo <DOT> org>
5 CommitDate: Sat Sep 24 19:10:26 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ae20937a
7
8 app-emulation/free42: Bump to version 1.5.10
9
10 Package-Manager: portage-2.2.28
11
12 app-emulation/free42/Manifest | 1 +
13 .../files/free42-1.5.10-fix-build-intel-lib.patch | 12 ++++++
14 .../free42/files/free42-1.5.10-fix-makefile.patch | 38 +++++++++++++++++
15 app-emulation/free42/free42-1.5.10.ebuild | 47 ++++++++++++++++++++++
16 4 files changed, 98 insertions(+)
17
18 diff --git a/app-emulation/free42/Manifest b/app-emulation/free42/Manifest
19 index 9a2b8a6..55490b1 100644
20 --- a/app-emulation/free42/Manifest
21 +++ b/app-emulation/free42/Manifest
22 @@ -1,2 +1,3 @@
23 +DIST free42-1.5.10.tgz 22616956 SHA256 960d94cce3d67047d8968b4ee8b4d324bf1257002d67f971bd1f6e2552a870d1 SHA512 dfdcbdb051aa7cf7a60c27e44ae8dc5458dd418e08cd71e79eff443d09f8021efacc87e06531f312521e5b1f5af0aa72e77b0ce18b8d657499ad174b6a12578e WHIRLPOOL 8324418ab0047e05136937aa6741a4faa518f39eae203eec181958fdc6aa42f577c66716deb81b0dc6d833f79e4e49cfda37fc80e3917f0157583feac1b66985
24 DIST free42-1.5.7.tgz 8159655 SHA256 63c868880e0c18374f4b309dc19e2ea36b9463471d2d77563f53036eea645316 SHA512 fb18712643f73388512fc4dc069d55ef3597f5e6a4e1b47bcd12ab05224027c4ec981ade2398fd8c1e4534003ee6c4de2b7402bade66a3dbe90a46299e7132a3 WHIRLPOOL 0504da8589d3dbf9270a914b2cb6ad86982b926f40abee43d6bbe3f8ec997efe8b0ae50b9d61952e5acd3f2a70d34e16cf0e665cec06d555b0c92438c7a32a43
25 DIST free42-1.5.8.tgz 45400324 SHA256 f8ffa54a5f77b5061e1a983962e989fc6679f7e128d996a0550922e366855f2f SHA512 1abaeea314b55f456b65eef530fe692534d92dde95876982c6df1715853055632a4a2305774dc691ca0af28632a393d8d9872bd86353c09d57d2dc8a0ef6cfe2 WHIRLPOOL 9b0abef9d548f09e567e8debe15f9a0635038d6ef655a64885ebc02eb241a0f577ca40b4bdc39c881fe8b2c6f4d97e5575c715a05ccc06df37f90bc5d28d16e8
26
27 diff --git a/app-emulation/free42/files/free42-1.5.10-fix-build-intel-lib.patch b/app-emulation/free42/files/free42-1.5.10-fix-build-intel-lib.patch
28 new file mode 100644
29 index 00000000..23641b5
30 --- /dev/null
31 +++ b/app-emulation/free42/files/free42-1.5.10-fix-build-intel-lib.patch
32 @@ -0,0 +1,12 @@
33 +diff -Nuar a/gtk/build-intel-lib.sh b/gtk/build-intel-lib.sh
34 +--- a/gtk/build-intel-lib.sh 2016-09-04 18:56:12.000000000 +0200
35 ++++ b/gtk/build-intel-lib.sh 2016-09-24 19:39:49.284126118 +0200
36 +@@ -4,7 +4,7 @@
37 + cd IntelRDFPMathLib20U1
38 + patch -p0 <../intel-lib-linux.patch
39 + cd LIBRARY
40 +-make CC=gcc CALL_BY_REF=1 GLOBAL_RND=1 GLOBAL_FLAGS=1 UNCHANGED_BINARY_FLAGS=0
41 ++make A=a CC=gcc CALL_BY_REF=1 GLOBAL_RND=1 GLOBAL_FLAGS=1 UNCHANGED_BINARY_FLAGS=0
42 + mv libbid.a ../../gcc111libbid.a
43 + cd ../..
44 + ( echo '#ifdef FREE42_FPTEST'; echo 'const char *readtest_lines[] = {'; tr -d '\r' < IntelRDFPMathLib20U1/TESTS/readtest.in | sed 's/^\(.*\)$/"\1",/'; echo '0 };'; echo '#endif' ) > readtest_lines.cc
45
46 diff --git a/app-emulation/free42/files/free42-1.5.10-fix-makefile.patch b/app-emulation/free42/files/free42-1.5.10-fix-makefile.patch
47 new file mode 100644
48 index 00000000..3fe1baf
49 --- /dev/null
50 +++ b/app-emulation/free42/files/free42-1.5.10-fix-makefile.patch
51 @@ -0,0 +1,38 @@
52 +diff -Nuar a/gtk/Makefile b/gtk/Makefile
53 +--- a/gtk/Makefile 2016-09-04 18:56:12.000000000 +0200
54 ++++ b/gtk/Makefile 2016-09-24 16:13:34.824116365 +0200
55 +@@ -15,11 +15,10 @@
56 + # along with this program; if not, see http://www.gnu.org/licenses/.
57 + ###############################################################################
58 +
59 +-CFLAGS = -MMD \
60 ++CFLAGS := -MMD \
61 + -Wall \
62 + -Wno-parentheses \
63 + -Wno-write-strings \
64 +- -g \
65 + -I/usr/X11R6/include \
66 + $(shell pkg-config --cflags gtk+-2.0) \
67 + -DVERSION="\"$(shell cat ../VERSION)\"" \
68 +@@ -27,14 +26,16 @@
69 + -DDECIMAL_GLOBAL_ROUNDING=1 \
70 + -DDECIMAL_GLOBAL_ROUNDING_ACCESS_FUNCTIONS=1 \
71 + -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=1 \
72 +- -DDECIMAL_GLOBAL_EXCEPTION_FLAGS_ACCESS_FUNCTIONS=1
73 ++ -DDECIMAL_GLOBAL_EXCEPTION_FLAGS_ACCESS_FUNCTIONS=1 \
74 ++ ${CFLAGS}
75 +
76 +-CXXFLAGS = $(CFLAGS) \
77 ++CXXFLAGS := $(CFLAGS) \
78 + -fno-exceptions \
79 + -fno-rtti \
80 +- -D_WCHAR_T_DEFINED
81 ++ -D_WCHAR_T_DEFINED \
82 ++ ${CXXFLAGS}
83 +
84 +-LDFLAGS = -L/usr/X11R6/lib
85 ++LDFLAGS := -L/usr/X11R6/lib ${LDFLAGS}
86 +-LIBS = gcc111libbid.a -lXmu $(shell pkg-config --libs gtk+-2.0)
87 ++LIBS = gcc111libbid.a -lX11 -ldl -lXmu $(shell pkg-config --libs gtk+-2.0)
88 +
89 + ifeq "$(shell uname -s)" "Linux"
90
91 diff --git a/app-emulation/free42/free42-1.5.10.ebuild b/app-emulation/free42/free42-1.5.10.ebuild
92 new file mode 100644
93 index 00000000..d1950de
94 --- /dev/null
95 +++ b/app-emulation/free42/free42-1.5.10.ebuild
96 @@ -0,0 +1,47 @@
97 +# Copyright 1999-2016 Gentoo Foundation
98 +# Distributed under the terms of the GNU General Public License v2
99 +# $Id$
100 +
101 +EAPI=5
102 +
103 +inherit eutils toolchain-funcs
104 +
105 +DESCRIPTION="An HP-42S Calculator Simulator"
106 +HOMEPAGE="http://thomasokken.com/free42/"
107 +SRC_URI="mirror://gentoo/${P}.tgz"
108 +
109 +LICENSE="GPL-2"
110 +SLOT="0"
111 +KEYWORDS="~amd64 ~x86"
112 +IUSE="alsa"
113 +
114 +DEPEND="dev-libs/atk
115 + x11-libs/cairo
116 + x11-libs/gdk-pixbuf
117 + x11-libs/gtk+:2
118 + x11-libs/pango
119 + alsa? ( media-libs/alsa-lib )"
120 +
121 +RDEPEND="${DEPEND}
122 + x11-libs/libX11
123 + x11-libs/libXmu"
124 +
125 +S="${WORKDIR}/${PN}"
126 +
127 +src_prepare() {
128 + sed -i -e 's/print_gif_name\[FILENAMELEN\]/print_gif_name\[1000\]/' \
129 + "${S}/gtk/shell_main.cc" || die
130 + epatch "${FILESDIR}"/${P}-fix-makefile.patch
131 + epatch "${FILESDIR}"/${P}-fix-build-intel-lib.patch
132 +}
133 +
134 +src_compile() {
135 + local myconf
136 + use alsa && myconf="AUDIO_ALSA=yes"
137 + emake CC="$(tc-getCC)" CXX="$(tc-getCXX)" BCD_MATH=1 ${myconf} -C "${S}/gtk"
138 +}
139 +
140 +src_install() {
141 + dodoc CREDITS HISTORY README TODO
142 + dobin gtk/free42dec
143 +}