2020-05-11 12:07:32 +02:00
|
|
|
# Copyright 2020 Gentoo Authors
|
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
|
|
|
|
EAPI=7
|
|
|
|
|
2020-09-22 02:29:31 +02:00
|
|
|
inherit xdg cmake
|
2020-05-11 12:07:32 +02:00
|
|
|
|
|
|
|
DESCRIPTION="Professional open-source non-linear video editor"
|
|
|
|
HOMEPAGE="https://github.com/olive-editor/olive"
|
|
|
|
|
|
|
|
if [[ ${PV} == *9999 ]]; then
|
|
|
|
inherit git-r3
|
|
|
|
EGIT_REPO_URI="https://github.com/olive-editor/olive.git"
|
|
|
|
else
|
|
|
|
SRC_URI="https://github.com/olive-editor/olive/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
|
|
|
KEYWORDS="~amd64"
|
|
|
|
fi
|
|
|
|
|
|
|
|
LICENSE="GPL-3"
|
|
|
|
SLOT="0"
|
2020-12-25 02:27:33 +01:00
|
|
|
IUSE="doxygen"
|
2020-05-11 12:07:32 +02:00
|
|
|
|
|
|
|
COMMON_DEPEND="
|
2020-12-24 03:56:38 +01:00
|
|
|
>=dev-qt/qtcore-5.6.0
|
|
|
|
>=dev-qt/qtgui-5.6.0
|
2020-05-11 12:07:32 +02:00
|
|
|
>=dev-qt/qtmultimedia-5.6.0
|
|
|
|
>=dev-qt/qtopengl-5.6.0
|
|
|
|
>=dev-qt/qtsvg-5.6.0
|
|
|
|
>=dev-qt/qtwidgets-5.6.0
|
2020-12-29 14:52:13 +01:00
|
|
|
>media-libs/opencolorio-1.9.9
|
2020-05-11 12:07:32 +02:00
|
|
|
media-libs/openexr
|
2020-12-24 03:56:38 +01:00
|
|
|
>=media-libs/openimageio-2.1.12
|
|
|
|
>=media-video/ffmpeg-3.0.0
|
2020-05-11 12:07:32 +02:00
|
|
|
virtual/opengl
|
|
|
|
"
|
2020-12-25 02:27:33 +01:00
|
|
|
#media-video/opentimelineio : The CMakeFile tries to find it, but doesnt do anything yet.
|
2020-12-29 14:52:13 +01:00
|
|
|
# Wants opecolorio-2.0.0, but have to do >1.9.9 due to no proper release and portage not seeing prereleases and betas as being >=2.0.0
|
|
|
|
|
2020-05-11 12:07:32 +02:00
|
|
|
DEPEND="
|
|
|
|
"${COMMON_DEPEND}"
|
2020-09-07 00:59:20 +02:00
|
|
|
>=dev-qt/qtconcurrent-5.6.0
|
2020-05-11 12:07:32 +02:00
|
|
|
dev-qt/linguist-tools
|
|
|
|
doxygen? ( app-doc/doxygen[dot] )
|
|
|
|
"
|
|
|
|
RDEPEND="
|
|
|
|
"${COMMON_DEPEND}"
|
2020-12-24 03:56:38 +01:00
|
|
|
dev-qt/qtnetwork
|
2020-05-11 12:07:32 +02:00
|
|
|
"
|
|
|
|
|
|
|
|
src_configure() {
|
|
|
|
local mycmakeargs=(
|
2020-12-24 03:56:38 +01:00
|
|
|
# -DUPDATE_TS=
|
2020-05-11 12:07:32 +02:00
|
|
|
-DBUILD_DOXYGEN="$(usex doxygen)"
|
|
|
|
)
|
2020-06-11 16:35:57 +02:00
|
|
|
cmake_src_configure
|
2020-05-11 12:07:32 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
src_install() {
|
|
|
|
if use doxygen; then
|
|
|
|
docinto html
|
|
|
|
dodoc -r docs/html/.
|
|
|
|
fi
|
2020-06-11 16:35:57 +02:00
|
|
|
cmake_src_install
|
2020-05-11 12:07:32 +02:00
|
|
|
}
|
2020-12-24 03:56:38 +01:00
|
|
|
|
|
|
|
pkg_postinst() {
|
2020-12-29 14:52:13 +01:00
|
|
|
einfo "Olive crashes at runtime when playing video"
|
|
|
|
einfo "with ~ffmpeg-4.3. The current remedy is to"
|
|
|
|
einfo "use ~ffmpeg-4.2 or ffmpeg-9999 instead."
|
2020-12-24 03:56:38 +01:00
|
|
|
}
|