diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 20:20:16 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 20:20:16 +0100 |
commit | 1726f32a4bf939c045d35db6e95ab327213ecf8a (patch) | |
tree | a23a87e7968403fa317c9b9e39e5f355509407e9 /games-emulation/hatari/hatari-2.1.0.ebuild | |
parent | 06e58a0fcb900034d35485fe961fee1875f3a6b0 (diff) |
gentoo resync : 14.07.2018
Diffstat (limited to 'games-emulation/hatari/hatari-2.1.0.ebuild')
-rw-r--r-- | games-emulation/hatari/hatari-2.1.0.ebuild | 76 |
1 files changed, 76 insertions, 0 deletions
diff --git a/games-emulation/hatari/hatari-2.1.0.ebuild b/games-emulation/hatari/hatari-2.1.0.ebuild new file mode 100644 index 000000000000..92eba857519e --- /dev/null +++ b/games-emulation/hatari/hatari-2.1.0.ebuild @@ -0,0 +1,76 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +PYTHON_COMPAT=( python2_7 ) +inherit toolchain-funcs cmake-utils python-single-r1 + +DESCRIPTION="Atari ST emulator" +HOMEPAGE="http://hatari.tuxfamily.org/" +SRC_URI="http://download.tuxfamily.org/hatari/${PV}/${P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="+sdl2" +REQUIRED_USE="${PYTHON_REQUIRED_USE}" + +RDEPEND="${PYTHON_DEPS} + games-emulation/caps + sdl2? ( media-libs/libsdl2[X,sound,video] ) + !sdl2? ( media-libs/libsdl[X,sound,video] ) + media-libs/portaudio + media-libs/portmidi + sys-libs/readline:0= + media-libs/libpng:0= + sys-libs/zlib:0=" +DEPEND="${RDEPEND} + virtual/pkgconfig" +PDEPEND="dev-python/pygtk[${PYTHON_USEDEP}] + >=games-emulation/emutos-0.9.9.1" + +DISABLE_AUTOFORMATTING="yes" +DOC_CONTENTS=" +You need a TOS ROM to run hatari. EmuTOS, a free TOS implementation, +has been installed in /usr/lib*/hatari with a .img extension (there +are several from which to choose). +Another option is to go to http://www.atari.st/ and get a real TOS: +http://www.atari.st/ +The first time you run hatari, you should configure it to find the +TOS you prefer to use. Be sure to save your settings. +" + +DOCS="readme.txt doc/*.txt" +HTML_DOCS="doc/" + +src_prepare() { + cmake-utils_src_prepare + + sed -i -e '/Encoding/d' ./python-ui/hatariui.desktop || die + sed -i -e "s/python/${EPYTHON}/" tools/atari-hd-image.sh || die + sed -i -e "s#@DOCDIR@#/usr/share/doc/${PF}/html/#" python-ui/uihelpers.py || die +} + +src_configure() { + mycmakeargs=( + "-DDOCDIR=/usr/share/doc/${PF}" + "-DENABLE_SDL2=$(usex sdl2)" + ) + cmake-utils_src_configure +} + +src_install() { + cmake-utils_src_install + python_fix_shebang "${ED%/}"/usr/share/hatari/{hatariui,hconsole}/ +} + +pkg_postinst() { + xdg_desktop_database_update + xdg_mimeinfo_database_update + readme.gentoo_print_elog +} + +pkg_postrm() { + xdg_desktop_database_update + xdg_mimeinfo_database_update +} |