-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sci-calculators/tiemu: Fix call to undeclared function romcalls_is_addr
Closes: https://bugs.gentoo.org/886067 Signed-off-by: Brahmajit Das <brahmajit.xyz@gmail.com>
- Loading branch information
Showing
2 changed files
with
90 additions
and
0 deletions.
There are no files selected for viewing
23 changes: 23 additions & 0 deletions
23
sci-calculators/tiemu/files/tiemu-3.03-clang16-build-fix.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
Bug: https://bugs.gentoo.org/886067 | ||
--- a/src/core/uae/newcpu.c | ||
+++ b/src/core/uae/newcpu.c | ||
@@ -19,6 +19,8 @@ | ||
#include "options.h" | ||
#include "memory.h" | ||
#include "newcpu.h" | ||
+#include "romcalls.h" | ||
+#include "handles.h" | ||
|
||
// tiemu begin | ||
#include "tilibs.h" | ||
--- a/src/gui/logger/log_link.c | ||
+++ b/src/gui/logger/log_link.c | ||
@@ -36,7 +36,7 @@ | ||
#include "filesel.h" | ||
|
||
static GtkTextBuffer *txtbuf; | ||
-static logger_enabled = 0; | ||
+static int logger_enabled = 0; | ||
|
||
static void udpate_widgets(GtkWidget *button, GtkWidget *spin) | ||
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
# Copyright 1999-2023 Gentoo Authors | ||
# Distributed under the terms of the GNU General Public License v2 | ||
|
||
EAPI=8 | ||
|
||
inherit desktop | ||
|
||
DESCRIPTION="Texas Instruments hand-helds emulator" | ||
HOMEPAGE="http://lpg.ticalc.org/prj_tiemu/" | ||
SRC_URI="http://repo.calcforge.org/debian/source/${PN}_${PV}.orig.tar.gz" | ||
|
||
LICENSE="GPL-2" | ||
SLOT="0" | ||
KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" | ||
IUSE="dbus nls sdl threads xinerama" | ||
|
||
RDEPEND=" | ||
gnome-base/libglade:2.0 | ||
sci-libs/libticables2 | ||
sci-libs/libticalcs2 | ||
sci-libs/libtifiles2 | ||
sci-libs/libticonv | ||
x11-libs/gtk+:2 | ||
dbus? ( >=dev-libs/dbus-glib-0.60 ) | ||
nls? ( virtual/libintl ) | ||
sdl? ( media-libs/libsdl ) | ||
xinerama? ( x11-libs/libXinerama )" | ||
DEPEND="${RDEPEND} | ||
xinerama? ( x11-base/xorg-proto )" | ||
BDEPEND=" | ||
virtual/pkgconfig | ||
nls? ( sys-devel/gettext )" | ||
|
||
PATCHES=( | ||
"${FILESDIR}"/${P}-remove_depreciated_gtk_calls.patch | ||
"${FILESDIR}"/${P}-r2820.patch | ||
"${FILESDIR}"/${P}-fix-ftbfs-with-customized-abort-function.patch | ||
"${FILESDIR}"/${P}-clang16-build-fix.patch | ||
) | ||
|
||
src_prepare() { | ||
default | ||
# Don't use GTK_DISABLE_DEPRECATED flags | ||
sed 's:-DGTK_DISABLE_DEPRECATED::g' -i configure.ac configure || die | ||
} | ||
|
||
src_configure() { | ||
econf \ | ||
--disable-rpath \ | ||
--disable-debugger \ | ||
--disable-gdb \ | ||
$(use_enable nls) \ | ||
$(use_enable sdl sound) \ | ||
$(use_enable threads) \ | ||
$(use_enable threads threading) \ | ||
$(use_with dbus) \ | ||
--without-kde \ | ||
$(use_with xinerama) | ||
} | ||
|
||
src_install() { | ||
default | ||
|
||
rm -f "${ED}"/usr/share/tiemu/{Manpage.txt,COPYING,RELEASE,AUTHORS,LICENSES} || die | ||
make_desktop_entry tiemu "TiEmu Calculator" \ | ||
"${EPREFIX}"/usr/share/tiemu/pixmaps/icon.xpm | ||
} |