Skip to content

Commit

Permalink
sci-calculators/tiemu: Fix call to undeclared function romcalls_is_addr
Browse files Browse the repository at this point in the history
Closes: https://bugs.gentoo.org/886067
Signed-off-by: Brahmajit Das <brahmajit.xyz@gmail.com>
  • Loading branch information
listout committed Oct 11, 2023
1 parent 720178b commit 0a88fd8
Show file tree
Hide file tree
Showing 2 changed files with 90 additions and 0 deletions.
23 changes: 23 additions & 0 deletions sci-calculators/tiemu/files/tiemu-3.03-clang16-build-fix.patch
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)
{
67 changes: 67 additions & 0 deletions sci-calculators/tiemu/tiemu-3.03-r3.ebuild
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
}

0 comments on commit 0a88fd8

Please sign in to comment.