diff --git a/media-libs/libopenshot-audio/Manifest b/media-libs/libopenshot-audio/Manifest new file mode 100644 index 000000000..27a7d424d --- /dev/null +++ b/media-libs/libopenshot-audio/Manifest @@ -0,0 +1 @@ +DIST libopenshot-audio-0.3.0.tar.gz 1772242 BLAKE2B a5cc1eba31ebc9750d69046d0a8963a5b4af5615bf57ca3ecb9989fc0c67ffd525b19162958aaab14d51d0d29ce9643da86f8bd1afd8de8e0483bfe11663c893 SHA512 75f4f4170f8e4f442a31834e65b9ab56bfb2e034d81e0015add5d79c9ccaa3dd2806ae78b1ca97fab20eefa4c37990609755d0c07c306ca19f9cdca3884f0163 diff --git a/media-libs/libopenshot-audio/libopenshot-audio-0.3.0.ebuild b/media-libs/libopenshot-audio/libopenshot-audio-0.3.0.ebuild new file mode 100644 index 000000000..36d12a9fa --- /dev/null +++ b/media-libs/libopenshot-audio/libopenshot-audio-0.3.0.ebuild @@ -0,0 +1,24 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit cmake + +DESCRIPTION="Library for audio editing and playback 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/8" +KEYWORDS="amd64 x86" + +RDEPEND="media-libs/alsa-lib + media-libs/freetype + sys-libs/zlib + x11-libs/libX11 + x11-libs/libXcursor + x11-libs/libXext + x11-libs/libXinerama + x11-libs/libXrandr" +DEPEND="${RDEPEND}" diff --git a/media-libs/libopenshot-audio/metadata.xml b/media-libs/libopenshot-audio/metadata.xml new file mode 100644 index 000000000..c0c094ab8 --- /dev/null +++ b/media-libs/libopenshot-audio/metadata.xml @@ -0,0 +1,16 @@ + + + + + steils@gentoo.org + Stefan Strogin + + + media-video@gentoo.org + Gentoo Video project + + + OpenShot/libopenshot-audio + https://github.com/OpenShot/libopenshot-audio/issues + + diff --git a/media-libs/libopenshot/Manifest b/media-libs/libopenshot/Manifest new file mode 100644 index 000000000..5a02cf437 --- /dev/null +++ b/media-libs/libopenshot/Manifest @@ -0,0 +1 @@ +DIST libopenshot-0.3.0.tar.gz 26122831 BLAKE2B 65cadf634b6b7c6da35af64ba96c92fa32ee075966ba3d7f1711210dc784f7e263b01eecdc0c613e529cc501072b8b4a0ee6b297df62fa323ed1fddfc844f874 SHA512 5c72db9c39d2afaecb1c4ebf3192cd8795d4683f2b1210029b99657baf853515b92f392c25b65ea652a71d204a1b172123d264c95f1c3676a612e21f9ca38d2e diff --git a/media-libs/libopenshot/libopenshot-0.3.0.ebuild b/media-libs/libopenshot/libopenshot-0.3.0.ebuild new file mode 100644 index 000000000..a964a8865 --- /dev/null +++ b/media-libs/libopenshot/libopenshot-0.3.0.ebuild @@ -0,0 +1,92 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{8..10} ) + +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/21" +KEYWORDS="amd64 x86" +IUSE="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 + 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) + -DENABLE_TESTS=$(usex test) + -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 test +} + +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 new file mode 100644 index 000000000..911d9ba6c --- /dev/null +++ b/media-libs/libopenshot/metadata.xml @@ -0,0 +1,21 @@ + + + + + steils@gentoo.org + Stefan Strogin + + + media-video@gentoo.org + Gentoo Video project + + + OpenShot/libopenshot + https://github.com/OpenShot/libopenshot/issues + + + + Enable media-libs/opencv support + + + diff --git a/media-video/openshot/Manifest b/media-video/openshot/Manifest new file mode 100644 index 000000000..95f30a249 --- /dev/null +++ b/media-video/openshot/Manifest @@ -0,0 +1 @@ +DIST openshot-3.0.0.tar.gz 92552771 BLAKE2B 1e7bd8921a472e4ff62b160d67fcb5a8d8c0e6614a28cce87db5078fae5401c69610bd44801344da55fc4df3c8f973263b75a8567d4372fc350f76dbeec428a1 SHA512 d1115095b34937419d0f08aadacc849768a97ba5d3866a46cb8d416a26ac7fbb754b383c99ea8cb70291bd08cec0343191e71cfdd19c046bbd1a43541fc0673a diff --git a/media-video/openshot/metadata.xml b/media-video/openshot/metadata.xml new file mode 100644 index 000000000..bd4e0bfea --- /dev/null +++ b/media-video/openshot/metadata.xml @@ -0,0 +1,16 @@ + + + + + steils@gentoo.org + Stefan Strogin + + + media-video@gentoo.org + Gentoo Video project + + + OpenShot/openshot-qt + https://github.com/OpenShot/openshot-qt/issues + + diff --git a/media-video/openshot/openshot-3.0.0.ebuild b/media-video/openshot/openshot-3.0.0.ebuild new file mode 100644 index 000000000..3ae63d2f3 --- /dev/null +++ b/media-video/openshot/openshot-3.0.0.ebuild @@ -0,0 +1,55 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{8..10} ) +PYTHON_REQ_USE=xml +DISTUTILS_SINGLE_IMPL=1 + +inherit distutils-r1 xdg + +MY_PN="${PN}-qt" + +DESCRIPTION="Award-winning free and open-source video editor" +HOMEPAGE="https://openshot.org/" +SRC_URI="https://github.com/OpenShot/${MY_PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" +S="${WORKDIR}/${MY_PN}-${PV}" + +LICENSE="GPL-3+" +SLOT="1" +KEYWORDS="amd64 x86" +IUSE="doc" + +RDEPEND="$(python_gen_cond_dep ' + dev-python/httplib2[${PYTHON_USEDEP}] + dev-python/PyQt5[${PYTHON_USEDEP},gui,svg,widgets] + dev-python/PyQtWebEngine[${PYTHON_USEDEP}] + dev-python/pyzmq[${PYTHON_USEDEP}] + dev-python/requests[${PYTHON_USEDEP}] + ') + >=media-libs/libopenshot-0.3.0:0=[python,${PYTHON_SINGLE_USEDEP}]" +DEPEND="" +BDEPEND="$(python_gen_cond_dep ' + doc? ( dev-python/sphinx[${PYTHON_USEDEP}] ) + ')" + +src_prepare() { + distutils-r1_python_prepare_all + # prevent setup.py from trying to update MIME databases + sed -i 's/^ROOT =.*/ROOT = False/' setup.py || die +} + +python_compile_all() { + use doc && emake -C doc html +} + +python_install_all() { + use doc && local HTML_DOCS=( doc/_build/html/. ) + distutils-r1_python_install_all +} + +python_test() { + distutils_install_for_testing + "${EPYTHON}" src/tests/query_tests.py -v --platform minimal || die +}