mirror of
https://github.com/gentoo-mirror/gentoo-zh.git
synced 2025-04-18 23:38:57 -04:00
46 lines
1.0 KiB
Bash
46 lines
1.0 KiB
Bash
# Copyright 1999-2021 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=8
|
|
|
|
CMAKE_MAKEFILE_GENERATOR="emake"
|
|
inherit cmake
|
|
|
|
if [[ ${PV} == 9999* ]] ; then
|
|
inherit git-r3
|
|
EGIT_REPO_URI="https://github.com/cutefishos/videoplayer.git"
|
|
EGIT_CHECKOUT_DIR=videoplayer-${PV}
|
|
KEYWORDS=""
|
|
else
|
|
EGIT_COMMIT="c1218016e4de425cae23c1ea715e57b68a5b24c2"
|
|
SRC_URI="https://github.com/cutefishos/videoplayer/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz"
|
|
KEYWORDS="~amd64 ~arm64 ~riscv"
|
|
S="${WORKDIR}/videoplayer-${EGIT_COMMIT}"
|
|
fi
|
|
|
|
DESCRIPTION="An open source video player built with Qt/QML and libmpv"
|
|
HOMEPAGE="https://github.com/cutefishos/videoplayer"
|
|
LICENSE="GPL-3"
|
|
SLOT="0"
|
|
IUSE=""
|
|
RDEPEND=""
|
|
DEPEND="dev-qt/qtquickcontrols2[widgets]
|
|
dev-qt/qtdeclarative
|
|
media-video/mpv[libmpv]
|
|
net-misc/youtube-dl
|
|
"
|
|
BDEPEND="${DEPEND}
|
|
kde-frameworks/extra-cmake-modules
|
|
dev-qt/linguist-tools[qml]
|
|
dev-qt/assistant
|
|
dev-qt/designer
|
|
dev-qt/qdbusviewer
|
|
"
|
|
|
|
src_configure(){
|
|
mycmakeargs=(
|
|
-DCMAKE_INSTALL_PREFIX="/usr"
|
|
)
|
|
cmake_src_configure
|
|
}
|