diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2020-06-21 17:50:24 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2020-06-21 17:50:24 +0100 |
commit | feb0daf81d888e9160f9f94502de09b66f2a63fd (patch) | |
tree | b6e5c40ce2abef3da27ed50a023153f475e0ddef /games-emulation/atari800/atari800-4.2.0.ebuild | |
parent | 9452a6e87b6c2c70513bc47a2470bf9f1168920e (diff) |
gentoo resync : 21.06.2020
Diffstat (limited to 'games-emulation/atari800/atari800-4.2.0.ebuild')
-rw-r--r-- | games-emulation/atari800/atari800-4.2.0.ebuild | 73 |
1 files changed, 73 insertions, 0 deletions
diff --git a/games-emulation/atari800/atari800-4.2.0.ebuild b/games-emulation/atari800/atari800-4.2.0.ebuild new file mode 100644 index 000000000000..dd1008578547 --- /dev/null +++ b/games-emulation/atari800/atari800-4.2.0.ebuild @@ -0,0 +1,73 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 +inherit desktop autotools + +DESCRIPTION="Atari 800 emulator" +HOMEPAGE="https://atari800.github.io/" +SRC_URI=" + https://github.com/atari800/atari800/releases/download/ATARI800_${PV//./_}/${P}-src.tgz + https://sourceforge.net/projects/${PN}/files/ROM/Original%20XL%20ROM/xf25.zip" + +LICENSE="GPL-2+" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="opengl readline +sdl +sound" + +RDEPEND=" + sdl? ( + >=media-libs/libsdl-1.2.0[opengl?,sound?,video] + ) + !sdl? ( + sys-libs/ncurses:= + ) + readline? ( + sys-libs/readline:= + sys-libs/ncurses:= + ) + media-libs/libpng:= + sys-libs/zlib +" +DEPEND=${RDEPEND} +BDEPEND=" + app-arch/unzip +" + +src_prepare() { + default + + # Bug 544608 + eapply -p2 "${FILESDIR}/atari800-3.1.0-tgetent-detection.patch" + eautoreconf +} + +src_configure() { + local video=ncurses + local sound=no + + if use sdl; then + video=sdl + use sound && sound=sdl + elif use sound; then + sound=oss + fi + + local myconf=( + $(use_with opengl) + $(use_with readline) + --with-video=${video} + --with-sound=${sound} + ) + econf "${myconf[@]}" +} + +src_install() { + default + insinto "/usr/share/${PN}" + doins "${WORKDIR}/"*.ROM + insinto /etc + newins "${FILESDIR}"/atari800-4.2.0.cfg atari800.cfg + newicon data/atari2.svg ${PN}.svg + make_desktop_entry ${PN} "Atari 800 emulator" +} |