From abaa75b10f899ada8dd05b23cc03205064394bc6 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Fri, 22 Jan 2021 20:28:19 +0000 Subject: gentoo resync : 22.01.2021 --- media-libs/libopenshot/Manifest | 2 +- media-libs/libopenshot/libopenshot-0.2.5-r1.ebuild | 101 +++++++++++++++++++++ media-libs/libopenshot/libopenshot-0.2.5.ebuild | 101 --------------------- 3 files changed, 102 insertions(+), 102 deletions(-) create mode 100644 media-libs/libopenshot/libopenshot-0.2.5-r1.ebuild delete mode 100644 media-libs/libopenshot/libopenshot-0.2.5.ebuild (limited to 'media-libs/libopenshot') diff --git a/media-libs/libopenshot/Manifest b/media-libs/libopenshot/Manifest index f13ba25da2d6..88457a6bcb20 100644 --- a/media-libs/libopenshot/Manifest +++ b/media-libs/libopenshot/Manifest @@ -4,5 +4,5 @@ AUX libopenshot-0.2.5-no-hwaccel-testfix.patch 1691 BLAKE2B a587449964691bfd2940 DIST libopenshot-0.2.4_pre20190609.tar.gz 10268173 BLAKE2B 01e07c0a7c051b5804f24fab1bfb920862a165ef14d3fdd020430b9e3a47858842c8cab3408ba0d161cb15cc6e90531a3b5df9ad327a01f414ff2e7e392fc243 SHA512 bf8c06aba6a899cb1ca6fbe9ac89fc859083b03175338c04af8dce68698f4ac78eac0b5b594e2b02390cd5e64576445b1c95324b254a267506353bed97ca16d1 DIST libopenshot-0.2.5.tar.gz 10295768 BLAKE2B 19205c4f02d8b863b48e920164302853c7a505893783161e6a146e7a9728cefa19d4e48bc82b862e920967f110988ac28f5f495912efabbbacc98f55ebb51856 SHA512 b7cdf72897e6edaa8cc00e17dbe30f5b22a6b5d69aab64ddafb184458b41ef0332db1f3e2c6f039492bf7adb521d9758834d0bf6c24e6421a55970d8cf8caba7 EBUILD libopenshot-0.2.4_pre20190609.ebuild 2415 BLAKE2B c890e1777e9fa8f01412bd50dffd1ff455c786805cde1717420fdaa846b2451ec0396dc2203a75baf969329525b75c5179830f145176dc3385a1496fd79da2bc SHA512 676bbbdc2958a228a0907e260a2a421f753283893415f393ebd3ba66379cc4910e3fc0b64dd7f87534db7e76d2ff6eb8f78bb22725ab4e095c9c969065410fab -EBUILD libopenshot-0.2.5.ebuild 2355 BLAKE2B 2b7225b9b3bad2843595c4c6657392ef4f77722929c2de868222cb619354d05ad4f4e1886fb63b4208835b27396a6db57b24d337f77a7e89043c17589f1bced4 SHA512 5b0c6e16eb01ad7b5858397b6e803b83d32d7c03e5bdb7b66c1d733f37136da930976b8f17e8bd540f4c9078f1b365e4d01d8ab7b00423420fc4eac45b5c3c0a +EBUILD libopenshot-0.2.5-r1.ebuild 2361 BLAKE2B 480a89ff5f2b2190d4596e5ba5f1505ad9fe16c1febfe4a1f2f6b7a37291b2b3bff8a3223fe531735a3e8098431d7a2184a6763f07c72ba4bab06aaf6e737f4e SHA512 99ab2e14e80b9bd7a4ef4b939b4f2f9f326add36c4e915223a0572e4175219f92dcbf07fe949524456970d2f6439e05770b7503f51969702b867e0f0e9f48b48 MISC metadata.xml 520 BLAKE2B d4eba07a3598f2fd073fb11a885ccb303a30624ea396fe43799348bc7284375d7223f0553cb01b582d5ceb7daa402878c89290eb27a7e6797d366c5bc1146e91 SHA512 19cdd8b9200c01945b48efbd52b78a45ee681244076bde7045d8d737d00fc7fe41cce6845459cccc2e4ff7b4be1e42eb3c6b14f43165435a9122ff266bbf0b15 diff --git a/media-libs/libopenshot/libopenshot-0.2.5-r1.ebuild b/media-libs/libopenshot/libopenshot-0.2.5-r1.ebuild new file mode 100644 index 000000000000..1c5d1a9b83e7 --- /dev/null +++ b/media-libs/libopenshot/libopenshot-0.2.5-r1.ebuild @@ -0,0 +1,101 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{6,7,8,9} ) + +inherit cmake python-single-r1 toolchain-funcs + +DESCRIPTION="Video editing library used by OpenShot" +HOMEPAGE="https://www.openshot.org/" +SRC_URI="https://github.com/OpenShot/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="GPL-3+" +SLOT="0/19" +KEYWORDS="amd64 ~x86" +IUSE="doc examples +imagemagick +python test" + +REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" +RESTRICT="!test? ( test )" + +RDEPEND=" + dev-libs/jsoncpp:0= + dev-qt/qtcore:5 + dev-qt/qtgui:5 + dev-qt/qtmultimedia:5[widgets] + >=media-libs/libopenshot-audio-0.2.0:0= + media-video/ffmpeg:0=[encode,x264,xvid,vpx,mp3,theora,vorbis] + net-libs/cppzmq + net-libs/zeromq + imagemagick? ( >=media-gfx/imagemagick-7:0=[cxx] ) + python? ( ${PYTHON_DEPS} ) +" +DEPEND="${RDEPEND}" +BDEPEND=" + doc? ( app-doc/doxygen ) + python? ( dev-lang/swig ) + test? ( dev-libs/unittest++ ) +" + +PATCHES=( + "${FILESDIR}/${P}-gcc10.patch" + "${FILESDIR}/${P}-no-hwaccel-testfix.patch" +) + +check_compiler() { + if [[ ${MERGE_TYPE} != binary ]] && ! tc-has-openmp; then + eerror "${P} requires a compiler with OpenMP support. Your current" + eerror "compiler does not support it. If you use gcc, you can" + eerror "re-emerge it with the 'openmp' use flag enabled." + die "The current compiler does not support OpenMP" + fi +} + +pkg_pretend() { + check_compiler +} + +pkg_setup() { + check_compiler + use python && python-single-r1_pkg_setup +} + +src_prepare() { + cmake_src_prepare + # https://github.com/OpenShot/libopenshot/issues/17 + use test || cmake_comment_add_subdirectory tests +} + +src_configure() { + local mycmakeargs=( + -DENABLE_RUBY=OFF # TODO: add ruby support + -DENABLE_PYTHON=$(usex python) + -DUSE_SYSTEM_JSONCPP=ON + $(cmake_use_find_package imagemagick ImageMagick) + ) + use python && mycmakeargs+=( + -DPYTHON_EXECUTABLE="${PYTHON}" + -DPYTHON_INCLUDE_DIR="$(python_get_includedir)" + -DPYTHON_LIBRARY="$(python_get_library_path)" + ) + cmake_src_configure +} + +src_compile() { + cmake_src_compile + use doc && cmake_build doc +} + +src_test() { + cmake_build os_test +} + +src_install() { + local DOCS=( AUTHORS README.md doc/HW-ACCEL.md ) + use examples && DOCS+=( src/examples/ ) + use doc && local HTML_DOCS=( "${BUILD_DIR}"/doc/html/. ) + + cmake_src_install + use python && python_optimize +} diff --git a/media-libs/libopenshot/libopenshot-0.2.5.ebuild b/media-libs/libopenshot/libopenshot-0.2.5.ebuild deleted file mode 100644 index 37973900308f..000000000000 --- a/media-libs/libopenshot/libopenshot-0.2.5.ebuild +++ /dev/null @@ -1,101 +0,0 @@ -# Copyright 1999-2020 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -PYTHON_COMPAT=( python3_{6,7,8,9} ) - -inherit cmake python-single-r1 toolchain-funcs - -DESCRIPTION="Video editing library used by OpenShot" -HOMEPAGE="https://www.openshot.org/" -SRC_URI="https://github.com/OpenShot/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" - -LICENSE="GPL-3+" -SLOT="0/19" -KEYWORDS="~amd64 ~x86" -IUSE="doc examples +imagemagick +python test" -RESTRICT="!test? ( test )" - -REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" - -RDEPEND=" - dev-libs/jsoncpp:0= - dev-qt/qtcore:5 - dev-qt/qtgui:5 - dev-qt/qtmultimedia:5[widgets] - >=media-libs/libopenshot-audio-0.2.0:0= - media-video/ffmpeg:0=[encode,x264,xvid,vpx,mp3,theora] - net-libs/cppzmq - net-libs/zeromq - imagemagick? ( >=media-gfx/imagemagick-7:0=[cxx] ) - python? ( ${PYTHON_DEPS} ) -" -DEPEND="${RDEPEND}" -BDEPEND=" - doc? ( app-doc/doxygen ) - python? ( dev-lang/swig ) - test? ( dev-libs/unittest++ ) -" - -PATCHES=( - "${FILESDIR}/${P}-gcc10.patch" - "${FILESDIR}/${P}-no-hwaccel-testfix.patch" -) - -check_compiler() { - if [[ ${MERGE_TYPE} != binary ]] && ! tc-has-openmp; then - eerror "${P} requires a compiler with OpenMP support. Your current" - eerror "compiler does not support it. If you use gcc, you can" - eerror "re-emerge it with the 'openmp' use flag enabled." - die "The current compiler does not support OpenMP" - fi -} - -pkg_pretend() { - check_compiler -} - -pkg_setup() { - check_compiler - use python && python-single-r1_pkg_setup -} - -src_prepare() { - cmake_src_prepare - # https://github.com/OpenShot/libopenshot/issues/17 - use test || cmake_comment_add_subdirectory tests -} - -src_configure() { - local mycmakeargs=( - -DENABLE_RUBY=OFF # TODO: add ruby support - -DENABLE_PYTHON=$(usex python) - -DUSE_SYSTEM_JSONCPP=ON - $(cmake_use_find_package imagemagick ImageMagick) - ) - use python && mycmakeargs+=( - -DPYTHON_EXECUTABLE="${PYTHON}" - -DPYTHON_INCLUDE_DIR="$(python_get_includedir)" - -DPYTHON_LIBRARY="$(python_get_library_path)" - ) - cmake_src_configure -} - -src_compile() { - cmake_src_compile - use doc && cmake_build doc -} - -src_test() { - cmake_build os_test -} - -src_install() { - local DOCS=( AUTHORS README.md doc/HW-ACCEL.md ) - use examples && DOCS+=( src/examples/ ) - use doc && local HTML_DOCS=( "${BUILD_DIR}"/doc/html/. ) - - cmake_src_install - use python && python_optimize -} -- cgit v1.2.3