diff options
Diffstat (limited to 'media-video/orion/orion-1.6.1.ebuild')
-rw-r--r-- | media-video/orion/orion-1.6.1.ebuild | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/media-video/orion/orion-1.6.1.ebuild b/media-video/orion/orion-1.6.1.ebuild new file mode 100644 index 000000000000..35f439348e2c --- /dev/null +++ b/media-video/orion/orion-1.6.1.ebuild @@ -0,0 +1,43 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +inherit eutils qmake-utils + +DESCRIPTION="Cross-platform Twitch client" +HOMEPAGE="https://alamminsalo.github.io/orion/" +SRC_URI="https://github.com/alamminsalo/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="+mpv" + +DEPEND="dev-qt/qtquickcontrols2:5 + dev-qt/qtsvg:5 + dev-qt/qtwebengine:5 + mpv? ( media-video/mpv[libmpv] ) + !mpv? ( dev-qt/qtmultimedia:5 )" +RDEPEND="${DEPEND} + !mpv? ( media-plugins/gst-plugins-hls )" + +PATCHES=( "${FILESDIR}"/${P}-fix_desktop.patch ) + +src_configure() { + # TODO: also supports qtav, not yet in portage + local PLAYER + if use mpv; then + PLAYER=mpv + else + PLAYER=multimedia + fi + eqmake5 ${PN}.pro CONFIG+=${PLAYER} +} + +src_install() { + dobin ${PN} + domenu distfiles/*.desktop + + insinto /usr/share/icons/hicolor/scalable/apps + doins distfiles/${PN}.svg +} |