Gentoo Archives: gentoo-commits

From: Ionen Wolkens <ionen@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: games-emulation/hatari/
Date: Sun, 12 Sep 2021 19:19:22
Message-Id: 1631474138.7cf3854d74a862a56ff4dab52822ef4ad5bad6aa.ionen@gentoo
1 commit: 7cf3854d74a862a56ff4dab52822ef4ad5bad6aa
2 Author: Ionen Wolkens <ionen <AT> gentoo <DOT> org>
3 AuthorDate: Sun Sep 12 19:07:00 2021 +0000
4 Commit: Ionen Wolkens <ionen <AT> gentoo <DOT> org>
5 CommitDate: Sun Sep 12 19:15:38 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7cf3854d
7
8 games-emulation/hatari: drop 2.3.1
9
10 Signed-off-by: Ionen Wolkens <ionen <AT> gentoo.org>
11
12 games-emulation/hatari/hatari-2.3.1.ebuild | 90 ------------------------------
13 1 file changed, 90 deletions(-)
14
15 diff --git a/games-emulation/hatari/hatari-2.3.1.ebuild b/games-emulation/hatari/hatari-2.3.1.ebuild
16 deleted file mode 100644
17 index 2512ca06655..00000000000
18 --- a/games-emulation/hatari/hatari-2.3.1.ebuild
19 +++ /dev/null
20 @@ -1,90 +0,0 @@
21 -# Copyright 1999-2021 Gentoo Authors
22 -# Distributed under the terms of the GNU General Public License v2
23 -
24 -EAPI=7
25 -
26 -PYTHON_COMPAT=( python3_{7..10} )
27 -inherit cmake python-single-r1 xdg
28 -
29 -DESCRIPTION="Atari ST emulator"
30 -HOMEPAGE="https://hatari.tuxfamily.org/"
31 -SRC_URI="https://download.tuxfamily.org/hatari/${PV}/${P}.tar.bz2"
32 -
33 -LICENSE="GPL-2+"
34 -SLOT="0"
35 -KEYWORDS="~amd64 ~x86"
36 -IUSE="capsimage gui microphone png portmidi readline udev zlib"
37 -REQUIRED_USE="${PYTHON_REQUIRED_USE}"
38 -
39 -DEPEND="
40 - ${PYTHON_DEPS}
41 - media-libs/libsdl2[sound,video]
42 - capsimage? ( >=dev-libs/spsdeclib-5.1-r1 )
43 - microphone? ( media-libs/portaudio )
44 - png? ( media-libs/libpng:= )
45 - portmidi? ( media-libs/portmidi )
46 - readline? ( sys-libs/readline:= )
47 - udev? ( virtual/udev )
48 - zlib? ( sys-libs/zlib:= )"
49 -RDEPEND="
50 - ${DEPEND}
51 - gui? (
52 - $(python_gen_cond_dep '
53 - dev-python/pygobject:3[${PYTHON_USEDEP}]
54 - ')
55 - x11-libs/gtk+:3[introspection]
56 - )
57 - >=games-emulation/emutos-0.9.9.1"
58 -BDEPEND="virtual/pkgconfig"
59 -
60 -PATCHES=(
61 - "${FILESDIR}"/${P}-caps5-include-path.patch
62 - "${FILESDIR}"/${P}-cmake-include-checksym.patch
63 -)
64 -DOCS=(
65 - readme.txt
66 - doc/{bugs,changelog,scsi-driver,thanks,video-recording}.txt
67 -)
68 -
69 -src_prepare() {
70 - cmake_src_prepare
71 -
72 - sed -i "s/\.1\.gz\b/.1/g;T;s/gzip[^\$]*/cat /g" {*/,}*/CMakeLists.txt || die
73 - sed -i "s:doc/${PN}:doc/${PF}:" python-ui/uihelpers.py || die
74 - # Note: >2.3.1 renames /python/ to /python3/, update accordingly
75 - sed -i "s/python/${EPYTHON}/;s/dosfs/fs.fat/" tools/atari-hd-image.sh || die
76 -
77 - # Use emutos package rather than bundled ROM.
78 - rm src/tos.img || die
79 - cat <<-EOF > hatari.cfg || die
80 - [ROM]
81 - szTosImageFileName = ${EPREFIX}/usr/share/emutos/etos512k.img
82 - EOF
83 -}
84 -
85 -src_configure() {
86 - local mycmakeargs=(
87 - -DBUILD_SHARED_LIBS=OFF
88 - -DCMAKE_DISABLE_FIND_PACKAGE_CapsImage=$(usex !capsimage)
89 - -DCMAKE_DISABLE_FIND_PACKAGE_PNG=$(usex !png)
90 - -DCMAKE_DISABLE_FIND_PACKAGE_PortAudio=$(usex !microphone)
91 - -DCMAKE_DISABLE_FIND_PACKAGE_PortMidi=$(usex !portmidi)
92 - -DCMAKE_DISABLE_FIND_PACKAGE_Readline=$(usex !readline)
93 - -DCMAKE_DISABLE_FIND_PACKAGE_Udev=$(usex !udev)
94 - -DCMAKE_DISABLE_FIND_PACKAGE_ZLIB=$(usex !zlib)
95 - -DDOCDIR="${EPREFIX}"/usr/share/doc/${PF}
96 - -DETCDIR="${EPREFIX}"/etc
97 - $(usex gui '' -DPYTHON_EXECUTABLE=false) # disables python-ui/
98 - )
99 - cmake_src_configure
100 -}
101 -
102 -src_install() {
103 - cmake_src_install
104 -
105 - insinto /etc
106 - doins hatari.cfg
107 -
108 - python_fix_shebang "${ED}"/usr/bin
109 - use gui && python_fix_shebang "${ED}"/usr/share/${PN}/${PN}ui
110 -}