diff options
author | Henrik Pihl <ahvenas@gmail.com> | 2020-07-25 22:52:39 +0300 |
---|---|---|
committer | Craig Andrews <candrews@gentoo.org> | 2020-08-13 16:50:32 -0400 |
commit | 51deb2b497294bd8e1a1e72532411a006f6c427d (patch) | |
tree | d9ab5f738dd0f13b61a5ba42e475d86503d9547b | |
parent | games-emulation/libretro-snes9x: block games-emulation/snes9x[libretro] (diff) | |
download | gentoo-51deb2b497294bd8e1a1e72532411a006f6c427d.tar.gz gentoo-51deb2b497294bd8e1a1e72532411a006f6c427d.tar.bz2 gentoo-51deb2b497294bd8e1a1e72532411a006f6c427d.zip |
games-emulation/snes9x: libretro use flag for optional build
Fixed dependency list to enable build without gtk.
Package now hardblocks games-emulation/libretro-snes9x when
libretro is selected.
Closes: https://bugs.gentoo.org/661936
Package-Manager: Portage-3.0.0, Repoman-2.3.23
Signed-off-by: Henrik Pihl <ahvenas@gmail.com>
Signed-off-by: Craig Andrews <candrews@gentoo.org>
-rw-r--r-- | games-emulation/snes9x/metadata.xml | 1 | ||||
-rw-r--r-- | games-emulation/snes9x/snes9x-1.60.ebuild | 26 |
2 files changed, 19 insertions, 8 deletions
diff --git a/games-emulation/snes9x/metadata.xml b/games-emulation/snes9x/metadata.xml index 7bbb65b9c765..50035d2edc74 100644 --- a/games-emulation/snes9x/metadata.xml +++ b/games-emulation/snes9x/metadata.xml @@ -7,6 +7,7 @@ </maintainer> <use> <flag name="netplay">Enable playing ROMs over the network (not recommended)</flag> + <flag name="libretro">Build libretro port</flag> </use> <upstream> <remote-id type="google-code">snes9x-gtk</remote-id> diff --git a/games-emulation/snes9x/snes9x-1.60.ebuild b/games-emulation/snes9x/snes9x-1.60.ebuild index 1460433e5d76..14b09f9d7545 100644 --- a/games-emulation/snes9x/snes9x-1.60.ebuild +++ b/games-emulation/snes9x/snes9x-1.60.ebuild @@ -12,14 +12,10 @@ 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 opengl oss png pulseaudio portaudio wayland xinerama +xv" +IUSE="alsa debug gtk libretro multilib netplay opengl oss png pulseaudio portaudio wayland xinerama +xv" RESTRICT="bindist" RDEPEND=" - sys-libs/zlib:=[minizip] - x11-libs/libX11 - x11-libs/libXext - png? ( media-libs/libpng:0= ) gtk? ( dev-libs/glib:2 media-libs/libsdl2[joystick] @@ -36,7 +32,15 @@ RDEPEND=" xv? ( x11-libs/libXv ) wayland? ( dev-libs/wayland ) ) - xinerama? ( x11-libs/libXinerama )" + !gtk? ( x11-libs/libXv ) + libretro? ( !!games-emulation/libretro-snes9x ) + png? ( media-libs/libpng:0= ) + sys-libs/zlib:=[minizip] + xinerama? ( x11-libs/libXinerama ) + x11-libs/cairo + x11-libs/gdk-pixbuf + x11-libs/libX11 + x11-libs/libXext" DEPEND="${RDEPEND} x11-base/xorg-proto" BDEPEND="virtual/pkgconfig" @@ -96,6 +100,7 @@ src_configure() { } src_compile() { + use libretro && emake -C ../libretro emake use gtk && meson_src_compile } @@ -106,13 +111,18 @@ src_install() { dodoc ../docs/{changes,control-inputs,controls,snapshots}.txt dodoc snes9x.conf.default + if use libretro ; then + cd "${WORKDIR}/${PF}/libretro/" + dolib.so snes9x_libretro.so + fi + if use gtk ; then meson_src_install dodoc ../gtk/AUTHORS fi - docinto html - dodoc {.,..}/docs/*.html + HTML_DOCS="${WORKDIR}/${PF}/docs/*.html" + einstalldocs } pkg_preinst() { |