diff --git a/media-video/olive/files/FindOpenEXRUndefinedbehavior.patch b/media-video/olive/files/FindOpenEXRUndefinedbehavior.patch new file mode 100644 index 0000000..efaa0b9 --- /dev/null +++ b/media-video/olive/files/FindOpenEXRUndefinedbehavior.patch @@ -0,0 +1,27 @@ +diff --git a//cmake/FindOpenEXR.cmake b/cmake/FindOpenEXR.cmake +index 2d71428..b7ea7cb 100644 +--- a/cmake/FindOpenEXR.cmake ++++ b/cmake/FindOpenEXR.cmake +@@ -40,19 +40,19 @@ if(OPENEXR_INCLUDE_DIR) + ${openexr_config_file} + TMP + REGEX "#define OPENEXR_VERSION_STRING.*$") +- string(REGEX MATCHALL "[0-9.]+" OPENEXR_VERSION ${TMP}) ++ string(REGEX MATCHALL "[0-9.]+" OPENEXR_VERSION "${TMP}") + + file(STRINGS + ${openexr_config_file} + TMP + REGEX "#define OPENEXR_VERSION_MAJOR.*$") +- string(REGEX MATCHALL "[0-9]" OPENEXR_MAJOR_VERSION ${TMP}) ++ string(REGEX MATCHALL "[0-9]" OPENEXR_MAJOR_VERSION "${TMP}") + + file(STRINGS + ${openexr_config_file} + TMP + REGEX "#define OPENEXR_VERSION_MINOR.*$") +- string(REGEX MATCHALL "[0-9]" OPENEXR_MINOR_VERSION ${TMP}) ++ string(REGEX MATCHALL "[0-9]" OPENEXR_MINOR_VERSION "${TMP}") + endif() + endif() + diff --git a/media-video/olive/metadata.xml b/media-video/olive/metadata.xml new file mode 100644 index 0000000..ffd109a --- /dev/null +++ b/media-video/olive/metadata.xml @@ -0,0 +1,7 @@ + + + + + Build and install source code documentation + + diff --git a/media-video/olive/olive-9999.ebuild b/media-video/olive/olive-9999.ebuild new file mode 100644 index 0000000..1e37620 --- /dev/null +++ b/media-video/olive/olive-9999.ebuild @@ -0,0 +1,79 @@ +# Copyright 2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit xdg-utils cmake-utils + +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" +IUSE="doxygen" + +CMAKE_MIN_VERSION=3.13 +CMAKE_IN_SOURCE_BUILD=YES + +COMMON_DEPEND=" + >=dev-qt/qtcore-5.6.0[icu] + >=dev-qt/qtgui-5.6.0[png] + >=dev-qt/qtmultimedia-5.6.0 + >=dev-qt/qtopengl-5.6.0 + >=dev-qt/qtsvg-5.6.0 + >=dev-qt/qtwidgets-5.6.0 + media-libs/opencolorio + media-libs/openexr + >=media-libs/openimageio-1.6.0[gif,ssl,truetype] + >=media-video/ffmpeg-3.0.0[bzip2] + virtual/opengl +" + +DEPEND=" + "${COMMON_DEPEND}" + dev-qt/linguist-tools + doxygen? ( app-doc/doxygen[dot] ) +" + +RDEPEND=" + "${COMMON_DEPEND}" + dev-qt/qtnetwork[ssl] + media-libs/harfbuzz[graphite] +" + +PATCHES=( "${FILESDIR}/FindOpenEXRUndefinedbehavior.patch" ) + +src_configure() { + local mycmakeargs=( + -DBUILD_DOXYGEN="$(usex doxygen)" + ) + cmake-utils_src_configure +} + +src_install() { + if use doxygen; then + docinto html + dodoc -r docs/html/. + fi + cmake-utils_src_install +} + +pkg_postinst() { + xdg_desktop_database_update + xdg_mimeinfo_database_update + xdg_icon_cache_update +} + +pkg_postrm() { + xdg_desktop_database_update + xdg_mimeinfo_database_update + xdg_icon_cache_update +}