summaryrefslogtreecommitdiff
path: root/games-emulation/snes9x
diff options
context:
space:
mode:
Diffstat (limited to 'games-emulation/snes9x')
-rw-r--r--games-emulation/snes9x/Manifest4
-rw-r--r--games-emulation/snes9x/snes9x-1.60.ebuild (renamed from games-emulation/snes9x/snes9x-1.58.ebuild)72
2 files changed, 33 insertions, 43 deletions
diff --git a/games-emulation/snes9x/Manifest b/games-emulation/snes9x/Manifest
index 9b0ce101e849..a15473db70b0 100644
--- a/games-emulation/snes9x/Manifest
+++ b/games-emulation/snes9x/Manifest
@@ -2,8 +2,8 @@ AUX snes9x-1.53-cross-compile.patch 892 BLAKE2B 9fb806ad16d48d5f07f1ab84feb5f7ea
AUX snes9x-1.58-build-system.patch 1654 BLAKE2B e2264b61035a8a06b55a710fe9c5d2c689fccd9869af115706edbb28c8ab0a468482c1848e2fa81ee91e7708f0edcbb9c140d0d911442f570b837a48296982eb SHA512 8b898a96ff316d50e97f8d0a89842b57b22612c8e6e49b0ad4bfd203e462f48fd24647c568e602fdaeb99d6a8cc3674994659aea8d35bcce4071e0e7cac7a8f1
AUX snes9x-1.58-without-screenshot_build_fix.patch 846 BLAKE2B a8afca89a9d5a85df688610e2e136f1e47c1558f3be1a02585f47c075587993b68fbc29de987b7e791517a4584aa9373c4985dbdaed979e0688ae6cb3e5c9d58 SHA512 4cb91935d39766c091fdc30a5eb7b01eb60e29ea365da75968b5302d1f44be6992f46c04ba91af412edc787ddd0738ac8455d7127fbfe79ba7782abc423bab32
AUX snes9x-1.59-build-system.patch 1303 BLAKE2B 48a349bc5d56fcf154faab76cf76fcbb98808ce7933ff5e6da2cbf2b22d62819367e2ac1224f66735108de44419375d6f6eb2c2a4a104a4d492148866b6e829e SHA512 abbd0bfea5ad23f652e8249adbdf1118a4efa2ed43301b1786bbd91a253e98fb7ff99f68ff62c128972fe0af47aee9fa48fa9e3218b0a33c9e68f468fbe2b9e8
-DIST snes9x-1.58.tar.gz 2830667 BLAKE2B 66446e56a172b318f7cefecc59d927270377f725df0ca89888e1c50eb3f5475729ffc9da86ead5e50f106ab0781ad644ae3b3ed5719724db9b78b687135ead04 SHA512 51f8e92258db58e55f7b0b6c4537a916358891bb5ee35bd984d1970d2fedbdb2f8b3a4f560e0302d3011e521a1072c8a0d69723e8b151f61d33802c02f392d7d
DIST snes9x-1.59.2.tar.gz 2819803 BLAKE2B 3e077fe68dbc6ae9acf7625c1371971300cfb72143e0e98841dc8d75be5ccc45812d79d7810d28d1a5dc5c17a69cf0f9483e9c69e91437d864a4cbaf34852b35 SHA512 84d2dfc12a991b77b30ba9a591d285ecd4cc5fbb418282900209db9191d61611123ffa7d715b7abeed9b891e9af88ab4c46616502523a881127e2ede008236e4
-EBUILD snes9x-1.58.ebuild 2794 BLAKE2B 52f8fb2b4963726d48342aa4a187269f26136d75efd171ae42293af904652933cfe0f4d1972c5f7b57f81a8a7b3ddaf5ed7a15aa06cad0a024d709230b518d1e SHA512 a7bc93e81e219f345238ca537fca56e84363cbd8afbd6c4918b4eea8b2bf52dc45cfd25389c1f2e7790a99b84c5e5adfb481c0937049b35a1653138b0f6267a7
+DIST snes9x-1.60.tar.gz 2863228 BLAKE2B 0ac3bdd2403221f1013e2b5438aacc4e7d361e943ac7edc56f8ef22827d81484e0b162b84f739ce0f68fe58021124275fd908ccdde99e1e1d6d6c9c0a6e3d17b SHA512 840b006a8fbd479fd5ceb2d94af4ef6470c5e27a3e6c8ddb0dffc8d3e51f465669144cd428bfce28b2ed4f68e70d8f252f2d8a2cae602ba797791d7e483c14c9
EBUILD snes9x-1.59.2.ebuild 2723 BLAKE2B e365643b7c13bae7577eeda034963a946e3dd78153696f09f95503d0c758115294f4295d797b6b7be2950c0e584afcb3aeaea57d55683f7988ca286aa7b70f96 SHA512 9a474aba0c8fd071f090bec4694ebc036733b6831cfb01e35a9b1fffea049340fe2cc0b1fe840dae93df03b3740faf65ac000ec58d71adfd465d11767cf917d7
+EBUILD snes9x-1.60.ebuild 2723 BLAKE2B 76a612ec32ebf70698c2d6996d58e05e1191c1505b6bdca6c047aef5d5b7a2781644d9e2ab1fa00f2baa071471f61c10029523e5d13ebc7707d6e07ada68ea13 SHA512 7ee4da1e9d2ce81a419490802d375c39d53d86cd05239bc6815a8e36924d9905bc749080e400b0d0370dbff8f48477c7b182f946e8cd9310c1de220b89e2e67c
MISC metadata.xml 489 BLAKE2B 3cb6bc463e0eb5ca5203722cc2320eba2bc2e000fbd42e1386fcef807df3aa6e853bbff49fb6b323ae012b44b6add2c354530df0ebc56d232aa89188297426cc SHA512 805a8089e2e324dcf14ca5d25b168fdd79dc72113710b820904982ce9b2c49e2876095cd461ed52f4905041c14b25626f4540db7e1b38e47a9d55bbac98ebbfc
diff --git a/games-emulation/snes9x/snes9x-1.58.ebuild b/games-emulation/snes9x/snes9x-1.60.ebuild
index c933203fc0d1..1460433e5d76 100644
--- a/games-emulation/snes9x/snes9x-1.58.ebuild
+++ b/games-emulation/snes9x/snes9x-1.60.ebuild
@@ -1,9 +1,9 @@
-# Copyright 1999-2019 Gentoo Authors
+# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
-EAPI=6
+EAPI=7
-inherit autotools flag-o-matic gnome2-utils xdg-utils
+inherit autotools flag-o-matic meson xdg
DESCRIPTION="Super Nintendo Entertainment System (SNES) emulator"
HOMEPAGE="https://github.com/snes9xgit/snes9x"
@@ -12,7 +12,7 @@ SRC_URI="https://github.com/snes9xgit/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="Snes9x GPL-2 GPL-2+ LGPL-2.1 LGPL-2.1+ ISC MIT ZLIB Info-ZIP"
SLOT="0"
KEYWORDS="~amd64 ~ppc64 ~x86"
-IUSE="alsa debug gtk multilib netplay nls opengl oss png pulseaudio portaudio wayland xinerama +xv"
+IUSE="alsa debug gtk multilib netplay opengl oss png pulseaudio portaudio wayland xinerama +xv"
RESTRICT="bindist"
RDEPEND="
@@ -38,27 +38,24 @@ RDEPEND="
)
xinerama? ( x11-libs/libXinerama )"
DEPEND="${RDEPEND}
- virtual/pkgconfig
- x11-base/xorg-proto
- nls? ( dev-util/intltool )"
+ x11-base/xorg-proto"
+BDEPEND="virtual/pkgconfig"
S="${WORKDIR}/${P}/unix"
PATCHES=(
"${FILESDIR}"/${PN}-1.53-cross-compile.patch
- "${FILESDIR}"/${PN}-1.58-build-system.patch
- "${FILESDIR}"/${P}-without-screenshot_build_fix.patch
+ "${FILESDIR}"/${PN}-1.59-build-system.patch
)
src_prepare() {
- cd "${WORKDIR}"/${P} || die
+ cd "${WORKDIR}/${P}" || die
rm -r unzip || die
default
cd unix || die
eautoreconf
- if use gtk; then
- cd ../gtk || die
- eautoreconf
+ if use gtk ; then
+ export EMESON_SOURCE="${WORKDIR}/${P}/gtk"
fi
}
@@ -79,29 +76,28 @@ src_configure() {
econf "${myeconfargs[@]}"
if use gtk; then
- cd ../gtk || die
- myeconfargs=(
- --with-gtk3
- --with-zlib
- --with-system-zip
- --without-gtk2
- $(use_enable nls)
- $(use_with opengl)
- $(use_with xv)
- $(use_with alsa)
- $(use_with oss)
- $(use_with pulseaudio)
- $(use_with portaudio)
- $(use_with png screenshot)
- $(use_with wayland)
+ local emesonargs=(
+ -Dalsa="$(usex alsa true false)"
+ -Ddebugger="$(usex debug true false)"
+ -Dgtk2=false
+ -Dgtk3=true
+ -Dopengl="$(usex opengl true false)"
+ -Doss="$(usex oss true false)"
+ -Dportaudio="$(usex portaudio true false)"
+ -Dpulseaudio="$(usex pulseaudio true false)"
+ -Dscreenshot="$(usex png true false)"
+ -Dsystem-zip=true
+ -Dxv="$(usex xv true false)"
+ -Dzlib=true
+ -Dwayland="$(usex wayland true false)"
)
- econf "${myeconfargs[@]}"
+ meson_src_configure
fi
}
src_compile() {
emake
- use gtk && emake -C ../gtk
+ use gtk && meson_src_compile
}
src_install() {
@@ -110,8 +106,8 @@ src_install() {
dodoc ../docs/{changes,control-inputs,controls,snapshots}.txt
dodoc snes9x.conf.default
- if use gtk; then
- emake -C ../gtk DESTDIR="${D}" install
+ if use gtk ; then
+ meson_src_install
dodoc ../gtk/AUTHORS
fi
@@ -120,19 +116,13 @@ src_install() {
}
pkg_preinst() {
- use gtk && gnome2_icon_savelist
+ use gtk && xdg_pkg_preinst
}
pkg_postinst() {
- if use gtk ; then
- gnome2_icon_cache_update
- xdg_desktop_database_update
- fi
+ use gtk && xdg_pkg_postinst
}
pkg_postrm() {
- if use gtk ; then
- gnome2_icon_cache_update
- xdg_desktop_database_update
- fi
+ use gtk && xdg_pkg_postrm
}