1 # Copyright 1999-2019 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
6 if [ "$PV" != "9999" ]; then
7 SRC_URI
="https://github.com/realnc/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
14 inherit desktop qmake-utils xdg
16 if [ "$PV" == "9999" ]; then
17 EGIT_REPO_URI
="https://github.com/realnc/hugor.git"
21 DESCRIPTION
="Multimedia interpreter for Hugo text adventures"
22 HOMEPAGE
="http://ifwiki.org/index.php/Hugor"
33 gstreamer? ( media-libs/gst-plugins-base:1.0 )
35 media-libs/libsdl2[sound]
37 >=media-sound/fluidsynth-2:=
39 vlc? ( || ( media-video/vlc[ffmpeg] media-video/vlc[libav] ) )
40 x11-misc/shared-mime-info
44 media-libs/gst-plugins-good:1.0
45 media-plugins/gst-plugins-libav
52 # VLC is slightly better, so we prefer it.
55 elif use gstreamer
; then
56 conf
="gstreamer-video"
60 if use gstreamer
&& use vlc
; then
61 elog
"Both the gstreamer and the vlc USE flags are set. Hugor "
62 elog
"will be built with vlc, since it's slightly better."
64 eqmake5 PREFIX
="${EPREFIX}/usr" \
65 DOCDIR
="${EPREFIX}/usr/share/doc/${PF}" \
66 CONFIG
+="${conf} modplug" \
71 emake INSTALL_ROOT
="${D}" install