diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2021-05-31 20:59:14 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2021-05-31 20:59:14 +0100 |
commit | e748ba9741f6540f4675c23e3e37b73e822c13a4 (patch) | |
tree | 23dece8beabb3a3d7c6c0273b0eb40b21c62a889 /media-libs/libopenshot | |
parent | 908778078736bd36f7a60a2d576d415cb8e000fa (diff) |
gentoo resync : 31.05.2021
Diffstat (limited to 'media-libs/libopenshot')
4 files changed, 2 insertions, 184 deletions
diff --git a/media-libs/libopenshot/Manifest b/media-libs/libopenshot/Manifest index fef00c162404..29df3c2bea4a 100644 --- a/media-libs/libopenshot/Manifest +++ b/media-libs/libopenshot/Manifest @@ -1,8 +1,5 @@ -AUX libopenshot-0.2.2-imagemagick7.patch 3545 BLAKE2B e2fe6ae205459c69ff288f14ba2d0a2b461b761e7ff6e9e66e11e4895b10661d5fc2ab9e2011899ca983399af685a0d411aa4820c02d02b4600617bd314d7670 SHA512 06622c81253fd15440e1cf0256a0beb21e2039a5a98a8c889828898b137a9a6efeb6fb295a0646dc5aa12da9805ff73b62c29272b0037cb1ea2454de7571f59b AUX libopenshot-0.2.5-gcc10.patch 2605 BLAKE2B 34967db6b59816738e7895f8c608603eab656ae90878fbaa146231ac14370fb11da0be616d5df9bf9c750c73a93d01643543abe81cf9228078060fa1b31d3b70 SHA512 29c974bbb896417b27c70eb9238038f05a4d2d1267f17b4e4f935696cc706fff4c3e0124c369bd24a8128dfd8bddc57bb4e7a740a9c0203b07fc40979875b999 AUX libopenshot-0.2.5-no-hwaccel-testfix.patch 1691 BLAKE2B a587449964691bfd2940507f4a1d0b74342c0225bbe7b0a7620044603e0baffde73e7d71f6ca2ffa1ae7748e461ce661a86f11dd0b347a8c55eb07d19d7db75b SHA512 807c77c87a011e12e0a3c8696cbe83b4a6aea9c0770c5ac5194b4c3a6457e772795ca6ae309fdbbb458fefaaa03c7b930084e686e680b23e881f56a21493f85d -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 2411 BLAKE2B 37db8467408553053705be036b15cde984df57757f26e42272a680997806a21e3528f583c4f70ce1d58c5acbf762f3a81a10f86e381fa8d9584776b4475eba11 SHA512 a66cd503b35117daf5779ab2139683ff51e6d15dd667e933171cb6ae6a600fe4e9babb5f4f674f88d67ecf663709b0907b9713c6ea781cd54ac6b006a69d15d6 -EBUILD libopenshot-0.2.5-r1.ebuild 2359 BLAKE2B 76242572db063730fd06f42a2278870c685df5b7a932d6c20bbc57dd91fb76b097b1143c1b78025e714e074aeac38a4cb4bf1167d1e07f82bbeeb752460c713b SHA512 51e9d1621b9ab777164cb87882756d8715946a3be54ac2e31426b3ba687b9d46c7a9766a06c3b6c0cc463c0bfee119a5386eaf3853b420cea469307d1f0cbea9 +EBUILD libopenshot-0.2.5-r1.ebuild 2358 BLAKE2B 15048bc7befc3b2a4136af3b87ca1a59fc93f334ac1911c23ca054f523f90cc1fe0e21ec4db0d360f499e1b2b1fbad37345067a4bd1f97b52f75ba9ec5844d99 SHA512 ac7ad11b69bdbef10dc337a3a42a35ba119c289dd54b6a8c906db39cebd5c5458d18a3482e0945d6fa734ebe023a781b578e4ef8065c2f609409bd855dc0e4bf MISC metadata.xml 520 BLAKE2B d4eba07a3598f2fd073fb11a885ccb303a30624ea396fe43799348bc7284375d7223f0553cb01b582d5ceb7daa402878c89290eb27a7e6797d366c5bc1146e91 SHA512 19cdd8b9200c01945b48efbd52b78a45ee681244076bde7045d8d737d00fc7fe41cce6845459cccc2e4ff7b4be1e42eb3c6b14f43165435a9122ff266bbf0b15 diff --git a/media-libs/libopenshot/files/libopenshot-0.2.2-imagemagick7.patch b/media-libs/libopenshot/files/libopenshot-0.2.2-imagemagick7.patch deleted file mode 100644 index bc5f738d7f63..000000000000 --- a/media-libs/libopenshot/files/libopenshot-0.2.2-imagemagick7.patch +++ /dev/null @@ -1,78 +0,0 @@ -diff -Nru a/include/TextReader.h b/include/TextReader.h ---- a/include/TextReader.h 2018-09-22 21:47:46.000000000 +0200 -+++ b/include/TextReader.h 2018-09-23 16:17:21.212888285 +0200 -@@ -91,7 +91,7 @@ - string text_color; - string background_color; - std::shared_ptr<Magick::Image> image; -- list<Magick::Drawable> lines; -+ vector<Magick::Drawable> lines; - bool is_open; - GravityType gravity; - -diff -Nru a/src/Frame.cpp b/src/Frame.cpp ---- a/src/Frame.cpp 2018-09-22 21:47:46.000000000 +0200 -+++ b/src/Frame.cpp 2018-09-23 16:21:44.921563711 +0200 -@@ -29,6 +29,9 @@ - - using namespace std; - using namespace openshot; -+#ifdef USE_IMAGEMAGICK -+using namespace Magick; -+#endif - - // Constructor - blank frame (300x200 blank image, 48kHz audio silence) - Frame::Frame() : number(1), pixel_ratio(1,1), channels(2), width(1), height(1), color("#000000"), -@@ -904,7 +907,7 @@ - // Give image a transparent background color - magick_image->backgroundColor(Magick::Color("none")); - magick_image->virtualPixelMethod(Magick::TransparentVirtualPixelMethod); -- magick_image->matte(true); -+ magick_image->alpha(true); - - return magick_image; - } -@@ -926,13 +929,14 @@ - // Iterate through the pixel packets, and load our own buffer - // Each color needs to be scaled to 8 bit (using the ImageMagick built-in ScaleQuantumToChar function) - int numcopied = 0; -- Magick::PixelPacket *pixels = new_image->getPixels(0,0, new_image->columns(), new_image->rows()); -+ const Quantum *pixels = new_image->getConstPixels(0,0, new_image->columns(), new_image->rows()); - for (int n = 0, i = 0; n < new_image->columns() * new_image->rows(); n += 1, i += 4) { -- buffer[i+0] = MagickCore::ScaleQuantumToChar((Magick::Quantum) pixels[n].red); -- buffer[i+1] = MagickCore::ScaleQuantumToChar((Magick::Quantum) pixels[n].green); -- buffer[i+2] = MagickCore::ScaleQuantumToChar((Magick::Quantum) pixels[n].blue); -- buffer[i+3] = 255 - MagickCore::ScaleQuantumToChar((Magick::Quantum) pixels[n].opacity); -+ buffer[i+0] = MagickCore::ScaleQuantumToChar(MagickCore::GetPixelRed(new_image->image(), pixels)); -+ buffer[i+1] = MagickCore::ScaleQuantumToChar(MagickCore::GetPixelGreen(new_image->image(), pixels)); -+ buffer[i+2] = MagickCore::ScaleQuantumToChar(MagickCore::GetPixelBlue(new_image->image(), pixels)); -+ buffer[i+3] = MagickCore::ScaleQuantumToChar(MagickCore::GetPixelAlpha(new_image->image(), pixels)); - numcopied+=4; -+ pixels += MagickCore::GetPixelChannels(new_image->image()); - } - - // Create QImage of frame data -diff -Nru a/src/ImageReader.cpp b/src/ImageReader.cpp ---- a/src/ImageReader.cpp 2018-09-22 21:47:46.000000000 +0200 -+++ b/src/ImageReader.cpp 2018-09-23 16:22:32.330865516 +0200 -@@ -59,7 +59,7 @@ - - // Give image a transparent background color - image->backgroundColor(Magick::Color("none")); -- image->matte(true); -+ image->alpha(true); - } - catch (Magick::Exception e) { - // raise exception -diff -Nru a/src/ImageWriter.cpp b/src/ImageWriter.cpp ---- a/src/ImageWriter.cpp 2018-09-22 21:47:46.000000000 +0200 -+++ b/src/ImageWriter.cpp 2018-09-23 16:22:58.380031419 +0200 -@@ -97,7 +97,7 @@ - std::shared_ptr<Magick::Image> frame_image = frame->GetMagickImage(); - frame_image->magick( info.vcodec ); - frame_image->backgroundColor(Magick::Color("none")); -- frame_image->matte(true); -+ frame_image->alpha(true); - frame_image->quality(image_quality); - frame_image->animationDelay(info.video_timebase.ToFloat() * 100); - frame_image->animationIterations(number_of_loops); diff --git a/media-libs/libopenshot/libopenshot-0.2.4_pre20190609.ebuild b/media-libs/libopenshot/libopenshot-0.2.4_pre20190609.ebuild deleted file mode 100644 index eea5ca7a14f4..000000000000 --- a/media-libs/libopenshot/libopenshot-0.2.4_pre20190609.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_7 ) - -inherit cmake python-single-r1 toolchain-funcs - -COMMIT="0d4ea7fe71e88bcee4a7fd1404bd52c8e2169997" - -DESCRIPTION="Video editing library used by OpenShot" -HOMEPAGE="https://www.openshot.org/" -SRC_URI="https://github.com/OpenShot/${PN}/archive/${COMMIT}.tar.gz -> ${P}.tar.gz" - -LICENSE="GPL-3+" -SLOT="0/17" -KEYWORDS="amd64 x86" -IUSE="doc examples +imagemagick +python test" -RESTRICT="!test? ( test )" - -REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" - -RDEPEND=" - net-libs/cppzmq - dev-qt/qtcore:5 - dev-qt/qtgui:5 - dev-qt/qtmultimedia:5[widgets] - >=media-libs/libopenshot-audio-0.1.9_pre20190502:0= - imagemagick? ( >=media-gfx/imagemagick-7:0=[cxx] ) - media-video/ffmpeg:0=[encode,x264,xvid,vpx,mp3,theora] - python? ( ${PYTHON_DEPS} ) -" -DEPEND="${RDEPEND}" -BDEPEND=" - doc? ( app-doc/doxygen ) - python? ( dev-lang/swig ) - test? ( dev-libs/unittest++ ) -" - -S="${WORKDIR}/${PN}-${COMMIT}" - -# From Mageia -# https://github.com/OpenShot/libopenshot/issues/60 -PATCHES=( ${FILESDIR}/${PN}-0.2.2-imagemagick7.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) - $(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-r1.ebuild b/media-libs/libopenshot/libopenshot-0.2.5-r1.ebuild index fefc007eaa7e..0ce3d1ebb499 100644 --- a/media-libs/libopenshot/libopenshot-0.2.5-r1.ebuild +++ b/media-libs/libopenshot/libopenshot-0.2.5-r1.ebuild @@ -13,7 +13,7 @@ SRC_URI="https://github.com/OpenShot/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" LICENSE="GPL-3+" SLOT="0/19" -KEYWORDS="amd64 ~x86" +KEYWORDS="amd64 x86" IUSE="doc examples +imagemagick +python test" REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" |