You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
44 lines
972 B
44 lines
972 B
7 years ago
|
# 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.8:5
|
||
|
>=dev-qt/qtsvg-5.8:5
|
||
|
>=dev-qt/qtwebengine-5.8:5
|
||
|
mpv? ( media-video/mpv[libmpv] )
|
||
|
!mpv? ( >=dev-qt/qtmultimedia-5.8: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
|
||
|
}
|