diff options
author | V3n3RiX <venerix@koprulu.sector> | 2023-07-06 04:12:55 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2023-07-06 04:12:55 +0100 |
commit | 38d6f110ff1dfdd7c6f0b0baf0ed8b13191dcde3 (patch) | |
tree | 82f1a2074ab61dae5f1333408972f185457e8f30 /media-libs/libopenshot | |
parent | 0d3219165e816e09207a0e1b5b5c8ad764228615 (diff) |
gentoo auto-resync : 06:07:2023 - 04:12:55
Diffstat (limited to 'media-libs/libopenshot')
-rw-r--r-- | media-libs/libopenshot/Manifest | 4 | ||||
-rw-r--r-- | media-libs/libopenshot/libopenshot-0.3.2.ebuild | 98 | ||||
-rw-r--r-- | media-libs/libopenshot/metadata.xml | 3 |
3 files changed, 104 insertions, 1 deletions
diff --git a/media-libs/libopenshot/Manifest b/media-libs/libopenshot/Manifest index e475277a2d8b..5ae083d871c0 100644 --- a/media-libs/libopenshot/Manifest +++ b/media-libs/libopenshot/Manifest @@ -1,3 +1,5 @@ DIST libopenshot-0.2.7.tar.gz 22472544 BLAKE2B 511ed214f0ecc43294a787e1c0119f036e274a1e8d051cb6e926bf7a9b5cea416325a2e051fca758d1f80ec2b9d746a4dd268e5ac5322fe8539fa2041a8c4d9d SHA512 71cb0e4010d8f3ff453486c3da3c7019c6569066845dcc58f438049a08b1c8663f31c29a728ce5461e9d3a1ca550038b757d4528e62a26eeb45ecbe600353988 +DIST libopenshot-0.3.2.tar.gz 26132237 BLAKE2B 5bc371481ddf69b5de909963cb83d1128066280e1259ae8b23f7ef5450f3da00ef1137dcefe2978e10d1a51931529f104aebdf0601be4b066c7ed371ea43439e SHA512 8891077af28a4db6bc3a7cd078ce5570a8f62e0795c13b0fff795eba60c3e977ece70247033ee4017c9785592355b7421655246a5d6807a5790bd18927739795 EBUILD libopenshot-0.2.7-r1.ebuild 2234 BLAKE2B 368a6a3dcd5bf00d06e85bab6841fa1b383826f53775939f8c0fdc6add290f52b186dacf855641a4f6b7614a4eafe4a70304eb4ad4b31d32dbbb47552692ea46 SHA512 88bdfd649812fedbab8e4bcf12158a38a8aa84df0d07233b1ab4acb976ce6268f5a1ba5db9a0ae2dfa11a0642bbb1d2371b35da046b03dca624a3ee1a3154f66 -MISC metadata.xml 616 BLAKE2B de66c4287ffe372cf76e3b48be340b0c981595f2381f8b248de88586cf9cad05b0a9cfc6465b55832db2bc76a5755ad5692494f5f2dc1dc9ee8a569887d50b34 SHA512 b2569b3545ef8a08ae3bc4b1307ee4414c82d488dea41efd4c3c977f2bcde65df273dc8f9aa44ba09abfc3a2fc19c8d83a3dd61faabddabe07bdb8c37f963c46 +EBUILD libopenshot-0.3.2.ebuild 2530 BLAKE2B de78e97102e9a75a9403111ce98032983af21aa444f2ad9e5abf3eee57ef708a7e3dc894a45aca89faab3c93a0065920718f070329abdc5787ed78503719e7e5 SHA512 5909692e8123c73594a364d6f13d351539417eab92334a3604fa57cd98ee43cbe23a27f9c762912f8e104888ba5e333be957266aac5a839db0855abcf4f98a57 +MISC metadata.xml 692 BLAKE2B 4026573a8fcb925db47d77d761687f7b184e1ddc09607575d74f74989ee813171d8ca80b62242aeafff876016a09080813842c8745a91a04c90976bf30f5fe33 SHA512 38ebac4cf25be33304bc04bfe8435750c869f070cfa70d8aa53fe569fa95cbbab61fabefff1b4d6ebfd52d30ed18d806941dc7115d5a1906f2e4e2e2823bb2ec diff --git a/media-libs/libopenshot/libopenshot-0.3.2.ebuild b/media-libs/libopenshot/libopenshot-0.3.2.ebuild new file mode 100644 index 000000000000..b761f5a60dfd --- /dev/null +++ b/media-libs/libopenshot/libopenshot-0.3.2.ebuild @@ -0,0 +1,98 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{10..11} ) + +inherit cmake python-single-r1 toolchain-funcs virtualx + +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/21" +KEYWORDS="~amd64 ~x86" +IUSE="babl doc examples +imagemagick +opencv +python test" + +REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" +RESTRICT="!test? ( test )" + +RDEPEND="dev-libs/jsoncpp:0= + dev-libs/protobuf:= + dev-qt/qtcore:5 + dev-qt/qtgui:5 + dev-qt/qtmultimedia:5[widgets] + >=media-libs/libopenshot-audio-0.3.0:0= + media-video/ffmpeg:0=[encode,x264,xvid,vpx,mp3,theora,vorbis] + net-libs/cppzmq + net-libs/zeromq + babl? ( media-libs/babl ) + imagemagick? ( >=media-gfx/imagemagick-7:0=[cxx] ) + opencv? ( >=media-libs/opencv-4.5.2:=[contrib,contribdnn] ) + python? ( ${PYTHON_DEPS} )" +DEPEND="${RDEPEND}" +BDEPEND="doc? ( app-doc/doxygen ) + python? ( dev-lang/swig ) + test? ( + dev-cpp/catch:0 + dev-libs/unittest++ + )" + +pkg_pretend() { + [[ ${MERGE_TYPE} != binary ]] && tc-check-openmp +} + +pkg_setup() { + [[ ${MERGE_TYPE} != binary ]] && tc-check-openmp + 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=( + -DDISABLE_BUNDLED_JSONCPP=ON + -DENABLE_MAGICK=$(usex imagemagick) + -DENABLE_OPENCV=$(usex opencv) + -DENABLE_RUBY=OFF # TODO: add ruby support + -DENABLE_PYTHON=$(usex python) + -DBUILD_TESTING=$(usex test) + -DENABLE_LIB_DOCS=$(usex doc) + -DUSE_SYSTEM_JSONCPP=ON + # Resvg not packaged yet + -DCMAKE_DISABLE_FIND_PACKAGE_Resvg=ON + $(cmake_use_find_package imagemagick ImageMagick) + $(cmake_use_find_package babl babl) + ) + 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() { + # https://github.com/OpenShot/libopenshot/issues/922 exclude broken test + virtx cmake_src_test -E '(Caption:caption effect)' || die +} + +src_install() { + local DOCS=( AUTHORS README.md doc/HW-ACCEL.md ) + use examples && DOCS+=( examples/ ) + use doc && local HTML_DOCS=( "${BUILD_DIR}"/doc/html/. ) + + cmake_src_install + use python && python_optimize +} diff --git a/media-libs/libopenshot/metadata.xml b/media-libs/libopenshot/metadata.xml index 911d9ba6cb31..4919bd8be349 100644 --- a/media-libs/libopenshot/metadata.xml +++ b/media-libs/libopenshot/metadata.xml @@ -17,5 +17,8 @@ <flag name="opencv"> Enable <pkg>media-libs/opencv</pkg> support </flag> + <flag name="babl"> + Enable <pkg>media-libs/babl</pkg> support + </flag> </use> </pkgmetadata> |