From: "Ionen Wolkens" <ionen@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: games-emulation/hatari/
Date: Mon, 29 Aug 2022 05:09:58 +0000 (UTC) [thread overview]
Message-ID: <1661749225.04fae423d59af0bdeb047d7c37955dd9faa3752d.ionen@gentoo> (raw)
commit: 04fae423d59af0bdeb047d7c37955dd9faa3752d
Author: Ionen Wolkens <ionen <AT> gentoo <DOT> org>
AuthorDate: Mon Aug 29 04:01:14 2022 +0000
Commit: Ionen Wolkens <ionen <AT> gentoo <DOT> org>
CommitDate: Mon Aug 29 05:00:25 2022 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=04fae423
games-emulation/hatari: add 2.4.1
Just a quick bump, haven't looked at lto mismatch issues.
Signed-off-by: Ionen Wolkens <ionen <AT> gentoo.org>
games-emulation/hatari/Manifest | 1 +
games-emulation/hatari/hatari-2.4.1.ebuild | 98 ++++++++++++++++++++++++++++++
2 files changed, 99 insertions(+)
diff --git a/games-emulation/hatari/Manifest b/games-emulation/hatari/Manifest
index f7f6ebc198a6..c2b7a9379001 100644
--- a/games-emulation/hatari/Manifest
+++ b/games-emulation/hatari/Manifest
@@ -1 +1,2 @@
DIST hatari-2.4.0.tar.bz2 4452205 BLAKE2B fe53b4dac688720372386fc83a83996e2cc83d74fd20f71db5e60f773561dc51d33f3560c1625913a896a9592650460604e821c9f7f07e5bd50d1775b49dfea5 SHA512 8ec542b2f7e27cd185ff8725e8d31ba7f1de709fa638b6162d17b6f1163158cbd16fc2738aa6b073a71cd990a72f305b5322f754faef34399cdca8685a7bf08c
+DIST hatari-2.4.1.tar.bz2 4446656 BLAKE2B 0844f14f2161de931ba098d290655152ecde354a80cc9c18b460fda77149759386cf7ed46d0ce1dd36dc303f1f3cfe421f37f169e06d46a06589cef1d601dbc6 SHA512 90c555150b0fa86b88e4ba3360384edf6afa05d45b82b3260853178b77fd542da6f31bd2e80c8307380fff9c61f0230545ec987e6e74b8c3d708bc5ef5ca8f42
diff --git a/games-emulation/hatari/hatari-2.4.1.ebuild b/games-emulation/hatari/hatari-2.4.1.ebuild
new file mode 100644
index 000000000000..db2b63faf515
--- /dev/null
+++ b/games-emulation/hatari/hatari-2.4.1.ebuild
@@ -0,0 +1,98 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_{8..11} )
+inherit cmake python-single-r1 xdg
+
+DESCRIPTION="Atari ST emulator"
+HOMEPAGE="https://hatari.tuxfamily.org/"
+SRC_URI="https://download.tuxfamily.org/hatari/${PV}/${P}.tar.bz2"
+
+LICENSE="GPL-2+"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="X capsimage gui png portmidi readline udev zlib"
+REQUIRED_USE="
+ ${PYTHON_REQUIRED_USE}
+ png? ( zlib )"
+
+COMMON_DEPEND="
+ media-libs/libsdl2[X?,joystick,sound,video]
+ X? ( x11-libs/libX11 )
+ capsimage? ( >=dev-libs/spsdeclib-5.1-r1 )
+ png? ( media-libs/libpng:= )
+ portmidi? ( media-libs/portmidi )
+ readline? ( sys-libs/readline:= )
+ udev? ( virtual/udev )
+ zlib? ( sys-libs/zlib:= )"
+RDEPEND="
+ ${PYTHON_DEPS}
+ ${COMMON_DEPEND}
+ gui? (
+ $(python_gen_cond_dep 'dev-python/pygobject:3[${PYTHON_USEDEP}]')
+ x11-libs/gtk+:3[introspection]
+ )
+ >=games-emulation/emutos-1.1.1"
+DEPEND="
+ ${COMMON_DEPEND}
+ X? ( x11-base/xorg-proto )"
+BDEPEND="${PYTHON_DEPS}"
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-2.3.1-caps5-include-path.patch
+ "${FILESDIR}"/${PN}-2.3.1-cmake-include-checksym.patch
+)
+
+DOCS=(
+ readme.txt
+ doc/{bugs,changelog,scsi-driver,thanks,video-recording}.txt
+)
+
+src_prepare() {
+ cmake_src_prepare
+
+ sed -i "s/\.1\.gz\b/.1/;T;s/gzip[^\$]*/cat /" {*/,}*/CMakeLists.txt || die
+ sed -i "s:doc/${PN}:doc/${PF}/html:" python-ui/uihelpers.py || die
+ sed -e "s/python3/${EPYTHON}/" \
+ -e 's/mkdosfs/mkfs.fat/' \
+ -i tools/atari-hd-image.sh || die
+
+ # use emutos package rather than bundled ROM
+ rm src/tos.img || die
+ cat <<-EOF > hatari.cfg || die
+ [ROM]
+ szTosImageFileName = ${EPREFIX}/usr/share/emutos/etos1024k.img
+ EOF
+}
+
+src_configure() {
+ local mycmakeargs=(
+ -DBUILD_SHARED_LIBS=OFF
+ -DDOCDIR="${EPREFIX}"/usr/share/doc/${PF}/html
+ -DETCDIR="${EPREFIX}"/etc
+ $(cmake_use_find_package X X11)
+ $(cmake_use_find_package capsimage CapsImage)
+ $(cmake_use_find_package png PNG)
+ $(cmake_use_find_package portmidi PortMidi)
+ $(cmake_use_find_package readline Readline)
+ $(cmake_use_find_package udev Udev)
+ $(cmake_use_find_package zlib ZLIB)
+ $(usev !gui -DPYTHON_EXECUTABLE=false) # only disables python-ui/
+ )
+
+ cmake_src_configure
+}
+
+src_install() {
+ cmake_src_install
+
+ insinto /etc
+ doins hatari.cfg
+
+ mv "${ED}"/usr/share/doc/${PF}/{html/*.txt,} || die
+
+ python_fix_shebang "${ED}"/usr/bin
+ use gui && python_fix_shebang "${ED}"/usr/share/${PN}/${PN}ui
+}
next reply other threads:[~2022-08-29 5:10 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-08-29 5:09 Ionen Wolkens [this message]
-- strict thread matches above, loose matches on Subject: below --
2024-05-04 17:27 [gentoo-commits] repo/gentoo:master commit in: games-emulation/hatari/ Ionen Wolkens
2022-09-17 8:42 Ionen Wolkens
2022-07-21 5:38 Ionen Wolkens
2022-07-11 22:26 Ionen Wolkens
2022-07-11 22:26 Ionen Wolkens
2021-09-12 19:19 Ionen Wolkens
2021-09-03 16:09 Ionen Wolkens
2021-06-08 7:10 Ionen Wolkens
2021-01-11 20:59 Sam James
2020-05-07 15:08 Michał Górny
2020-02-09 16:25 Michał Górny
2018-08-12 18:28 Michał Górny
2018-07-13 9:27 Tony Vroon
2017-10-16 0:08 David Seifert
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1661749225.04fae423d59af0bdeb047d7c37955dd9faa3752d.ionen@gentoo \
--to=ionen@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox