diff options
Diffstat (limited to 'games-emulation')
-rw-r--r-- | games-emulation/Manifest.gz | bin | 9523 -> 9529 bytes | |||
-rw-r--r-- | games-emulation/hatari/Manifest | 2 | ||||
-rw-r--r-- | games-emulation/hatari/hatari-2.4.1.ebuild | 98 |
3 files changed, 100 insertions, 0 deletions
diff --git a/games-emulation/Manifest.gz b/games-emulation/Manifest.gz Binary files differindex 9d99b2d9c226..0ebf7930ddde 100644 --- a/games-emulation/Manifest.gz +++ b/games-emulation/Manifest.gz diff --git a/games-emulation/hatari/Manifest b/games-emulation/hatari/Manifest index 8e3a309af601..2a184b7f4194 100644 --- a/games-emulation/hatari/Manifest +++ b/games-emulation/hatari/Manifest @@ -1,5 +1,7 @@ AUX hatari-2.3.1-caps5-include-path.patch 500 BLAKE2B 9462c680cf22368e06f37d313d0d0917b5904977ab0001fc3427bb8532d611481e0414c7a9c76a83f8c3a00691dd702c22a4c27eb3d1ef0a8bfbd5d48d636895 SHA512 53230cfbfc1904fba1af3d9a7554425d76e75f4a4fa51906ebfe12c9f178633bc63334036f3192643dfa2a3d51e5729c7932a58ca009902585a1653b44c28457 AUX hatari-2.3.1-cmake-include-checksym.patch 388 BLAKE2B 45bc03fc6be8feae6d16083ea6fd5c2fbe1f63103c8a274e9e2104d39cb4050dd5cb0ac51e679fbb65c17d0e2df080245e0e5800f14578e956cbff2dd6c3e9f5 SHA512 b9afa6022e7be9dfe9ab47b791d5e7a64e835ae2098f5b04737b2ffc952598bc0e90a181609629d03f9568c8dcd4e5772cb96bd1416531ccba6c66a1d33c439e DIST hatari-2.4.0.tar.bz2 4452205 BLAKE2B fe53b4dac688720372386fc83a83996e2cc83d74fd20f71db5e60f773561dc51d33f3560c1625913a896a9592650460604e821c9f7f07e5bd50d1775b49dfea5 SHA512 8ec542b2f7e27cd185ff8725e8d31ba7f1de709fa638b6162d17b6f1163158cbd16fc2738aa6b073a71cd990a72f305b5322f754faef34399cdca8685a7bf08c +DIST hatari-2.4.1.tar.bz2 4446656 BLAKE2B 0844f14f2161de931ba098d290655152ecde354a80cc9c18b460fda77149759386cf7ed46d0ce1dd36dc303f1f3cfe421f37f169e06d46a06589cef1d601dbc6 SHA512 90c555150b0fa86b88e4ba3360384edf6afa05d45b82b3260853178b77fd542da6f31bd2e80c8307380fff9c61f0230545ec987e6e74b8c3d708bc5ef5ca8f42 EBUILD hatari-2.4.0.ebuild 2450 BLAKE2B 307f2a6995a4c51ad8b30ee1a618be15f883e0fdb751d72f71930243cd957c6bafd7bfe574e9f66b9c7c5fb746ef13b74c42240cb18291586f37f134e7a30487 SHA512 536959b1800e71fc12347a27ea01920b1db8f596d20bc86907f4b9be81f0866985f808bcdaed72f89d1723af8a8e1e552510f6b7848a72c3c196ab321c46027d +EBUILD hatari-2.4.1.ebuild 2450 BLAKE2B 307f2a6995a4c51ad8b30ee1a618be15f883e0fdb751d72f71930243cd957c6bafd7bfe574e9f66b9c7c5fb746ef13b74c42240cb18291586f37f134e7a30487 SHA512 536959b1800e71fc12347a27ea01920b1db8f596d20bc86907f4b9be81f0866985f808bcdaed72f89d1723af8a8e1e552510f6b7848a72c3c196ab321c46027d MISC metadata.xml 551 BLAKE2B 345a7f3e8e1b73d6b6b95e951ee6eab25c2f681ce68020261b3d4ccad07215905b4c726707bcc16db0624d8d04ebe58c31de7ae502999661ce007fd8041ccd63 SHA512 e516f8d601cb654527b4590b865a621df0a661dce8bb40c31a43233995f28188efd1a9babe9b616ee394b7f7eef1fd667d3bb425382017e2f79c870979e1d7d7 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 +} |