Gentoo Archives: gentoo-commits

From: Bernard Cafarelli <voyageur@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-emulation/plus42/files/, app-emulation/plus42/
Date: Mon, 04 Jul 2022 17:42:42
Message-Id: 1656956524.83dbb4dd6c6ab25423b5bf69b0043ab710ff6bb3.voyageur@gentoo
1 commit: 83dbb4dd6c6ab25423b5bf69b0043ab710ff6bb3
2 Author: Bernard Cafarelli <voyageur <AT> gentoo <DOT> org>
3 AuthorDate: Mon Jul 4 17:41:18 2022 +0000
4 Commit: Bernard Cafarelli <voyageur <AT> gentoo <DOT> org>
5 CommitDate: Mon Jul 4 17:42:04 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=83dbb4dd
7
8 app-emulation/plus42: add 1.0.9
9
10 Signed-off-by: Bernard Cafarelli <voyageur <AT> gentoo.org>
11
12 app-emulation/plus42/Manifest | 1 +
13 .../plus42/files/plus42-1.0.9-fix-makefile.patch | 25 +++++++++++
14 app-emulation/plus42/plus42-1.0.9.ebuild | 50 ++++++++++++++++++++++
15 3 files changed, 76 insertions(+)
16
17 diff --git a/app-emulation/plus42/Manifest b/app-emulation/plus42/Manifest
18 index f522f663e83d..efe80441b319 100644
19 --- a/app-emulation/plus42/Manifest
20 +++ b/app-emulation/plus42/Manifest
21 @@ -1,2 +1,3 @@
22 DIST plus42-upstream-1.0.4.tgz 7583399 BLAKE2B 801c125e8b320a2ae2220595aa6244451f55938db644beb5e619c7789b506ada86b4f22e62c724af19da1240aa6c0fad791e2d6176eb4787435f16c1a44aaccc SHA512 a9c23b582047767fe0c57f35fdb4dfb72d7fdf480106a64f1d1151541c5d08e8a1a973156b0e2e5e9ca2f4f74acfbde2a1d69590c02f480d52dec20981be6c6e
23 DIST plus42-upstream-1.0.6.tgz 7583604 BLAKE2B 3cfdf41ee3ba627cfe5191cf9c0e452917b8511931206fd46df8516a225c7e0e447d8410348d9ab324269a3182dd9c4708ac881f46ae5058fdd4784acec82e2d SHA512 9f4573de916ba20fae4400f50cbf64b9bfbc452b4b51e4c674cffd5129cac9c9828eee33ab613abed6d94c5863797c17e3bd78b0df50bbaa8e0f9594450713ab
24 +DIST plus42-upstream-1.0.9.tgz 7585218 BLAKE2B e6c09c985fcf3f037a0c1dc1f4f445ef18c4f73962ffbf46939b91d5a96c9f079bd36b328b30fcae42f0bc13ebee7a1f56e51762f225f41fb715ab88e8b93d56 SHA512 77c06cf33d375f513c6806910f6b8bdda865853e7890922174364a7d2a07e35a6bbae2e62800c7658be01fe8b3aafbfc7f53a19451475b411865fe69bef090d8
25
26 diff --git a/app-emulation/plus42/files/plus42-1.0.9-fix-makefile.patch b/app-emulation/plus42/files/plus42-1.0.9-fix-makefile.patch
27 new file mode 100644
28 index 000000000000..b66c15b89b5a
29 --- /dev/null
30 +++ b/app-emulation/plus42/files/plus42-1.0.9-fix-makefile.patch
31 @@ -0,0 +1,25 @@
32 +diff -Naur plus42-upstream-1.0.9.orig/gtk/Makefile plus42-upstream-1.0.9/gtk/Makefile
33 +--- plus42-upstream-1.0.9.orig/gtk/Makefile 2022-06-19 14:44:32.000000000 +0200
34 ++++ plus42-upstream-1.0.9/gtk/Makefile 2022-07-04 19:37:35.533799322 +0200
35 +@@ -40,9 +40,10 @@
36 + -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=1 \
37 + -DDECIMAL_GLOBAL_EXCEPTION_FLAGS_ACCESS_FUNCTIONS=1
38 +
39 +-CXXFLAGS = $(CFLAGS) \
40 ++CXXFLAGS := $(CFLAGS) \
41 + -fno-rtti \
42 +- -D_WCHAR_T_DEFINED
43 ++ -D_WCHAR_T_DEFINED \
44 ++ ${CXXFLAGS}
45 +
46 + LIBS = gcc111libbid.a $(shell $(PKG_CONFIG) --libs gtk+-3.0)
47 +
48 +@@ -121,7 +122,7 @@
49 + ./keymap2cc
50 +
51 + gcc111libbid.a:
52 +- sh ./build-intel-lib.sh
53 ++ +sh ./build-intel-lib.sh
54 + ln -s IntelRDFPMathLib20U1/TESTS/readtest.c
55 +
56 + symlinks:
57
58 diff --git a/app-emulation/plus42/plus42-1.0.9.ebuild b/app-emulation/plus42/plus42-1.0.9.ebuild
59 new file mode 100644
60 index 000000000000..b73a2da34bf8
61 --- /dev/null
62 +++ b/app-emulation/plus42/plus42-1.0.9.ebuild
63 @@ -0,0 +1,50 @@
64 +# Copyright 1999-2022 Gentoo Authors
65 +# Distributed under the terms of the GNU General Public License v2
66 +
67 +EAPI=8
68 +
69 +inherit toolchain-funcs
70 +
71 +MY_PV="${PN}-upstream-${PV}"
72 +
73 +DESCRIPTION="An Enhanced HP-42S Calculator Simulator"
74 +HOMEPAGE="https://thomasokken.com/plus42/"
75 +SRC_URI="https://thomasokken.com/plus42/upstream/${MY_PV}.tgz"
76 +
77 +LICENSE="GPL-2"
78 +SLOT="0"
79 +KEYWORDS="~amd64 ~x86"
80 +IUSE="+alsa"
81 +
82 +DEPEND="dev-libs/atk
83 + x11-libs/cairo
84 + x11-libs/gdk-pixbuf
85 + x11-libs/gtk+:3
86 + alsa? ( media-libs/alsa-lib )"
87 +
88 +RDEPEND="${DEPEND}"
89 +
90 +DOCS=( CREDITS HISTORY README )
91 +S="${WORKDIR}/${MY_PV}"
92 +
93 +PATCHES=(
94 + "${FILESDIR}/${PN}-1.0.9-fix-makefile.patch"
95 + "${FILESDIR}/${PN}-1.0.4-fix-build-intel-lib.patch"
96 +)
97 +
98 +src_prepare() {
99 + default
100 +}
101 +
102 +src_compile() {
103 + local myconf
104 + use alsa && myconf="AUDIO_ALSA=yes"
105 + emake CC="$(tc-getCC)" CXX="$(tc-getCXX)" ${myconf} -C gtk
106 + emake -C gtk clean
107 + emake CC="$(tc-getCC)" CXX="$(tc-getCXX)" BCD_MATH=1 ${myconf} -C gtk
108 +}
109 +
110 +src_install() {
111 + default
112 + dobin gtk/plus42bin gtk/plus42dec
113 +}