public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Sam James" <sam@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: media-libs/libopenshot/
Date: Thu,  6 Jul 2023 00:06:02 +0000 (UTC)	[thread overview]
Message-ID: <1688601928.089d4eceb88f2ca296eca6247a803429a0728d8f.sam@gentoo> (raw)

commit:     089d4eceb88f2ca296eca6247a803429a0728d8f
Author:     Ninpo <ninpo <AT> qap <DOT> la>
AuthorDate: Wed Jul  5 14:30:45 2023 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Thu Jul  6 00:05:28 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=089d4ece

media-libs/libopenshot: add 0.3.2

Closes: https://bugs.gentoo.org/825726
Closes: https://bugs.gentoo.org/875626
Closes: https://bugs.gentoo.org/909641
Signed-off-by: Ninpo <ninpo <AT> qap.la>
Signed-off-by: Sam James <sam <AT> gentoo.org>

 media-libs/libopenshot/Manifest                 |  1 +
 media-libs/libopenshot/libopenshot-0.3.2.ebuild | 98 +++++++++++++++++++++++++
 media-libs/libopenshot/metadata.xml             |  4 +-
 3 files changed, 101 insertions(+), 2 deletions(-)

diff --git a/media-libs/libopenshot/Manifest b/media-libs/libopenshot/Manifest
index 1fdb03ff76d6..a4e5e56b70a7 100644
--- a/media-libs/libopenshot/Manifest
+++ b/media-libs/libopenshot/Manifest
@@ -1 +1,2 @@
 DIST libopenshot-0.2.7.tar.gz 22472544 BLAKE2B 511ed214f0ecc43294a787e1c0119f036e274a1e8d051cb6e926bf7a9b5cea416325a2e051fca758d1f80ec2b9d746a4dd268e5ac5322fe8539fa2041a8c4d9d SHA512 71cb0e4010d8f3ff453486c3da3c7019c6569066845dcc58f438049a08b1c8663f31c29a728ce5461e9d3a1ca550038b757d4528e62a26eeb45ecbe600353988
+DIST libopenshot-0.3.2.tar.gz 26132237 BLAKE2B 5bc371481ddf69b5de909963cb83d1128066280e1259ae8b23f7ef5450f3da00ef1137dcefe2978e10d1a51931529f104aebdf0601be4b066c7ed371ea43439e SHA512 8891077af28a4db6bc3a7cd078ce5570a8f62e0795c13b0fff795eba60c3e977ece70247033ee4017c9785592355b7421655246a5d6807a5790bd18927739795

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 bc629a100f8e..4919bd8be349 100644
--- a/media-libs/libopenshot/metadata.xml
+++ b/media-libs/libopenshot/metadata.xml
@@ -18,7 +18,7 @@
 			Enable <pkg>media-libs/opencv</pkg> support
 		</flag>
 		<flag name="babl">
-            Enable <pkg>media-libs/babl</pkg> support
-        </flag>
+			Enable <pkg>media-libs/babl</pkg> support
+		</flag>
 	</use>
 </pkgmetadata>


             reply	other threads:[~2023-07-06  0:06 UTC|newest]

Thread overview: 38+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-07-06  0:06 Sam James [this message]
  -- strict thread matches above, loose matches on Subject: below --
2023-09-07 20:55 [gentoo-commits] repo/gentoo:master commit in: media-libs/libopenshot/ Sam James
2023-07-06  7:48 Sam James
2023-05-03  7:22 Sam James
2022-10-27 23:46 Sam James
2022-10-26 19:38 Stefan Strogin
2022-06-10  6:48 Agostino Sarubbo
2022-06-09  7:39 Agostino Sarubbo
2022-06-07  5:17 Sam James
2022-05-14 21:30 David Seifert
2021-11-21 16:17 Stefan Strogin
2021-09-04 19:20 Stefan Strogin
2021-05-25 11:15 Sam James
2021-01-21  7:40 Agostino Sarubbo
2021-01-10 11:56 Andreas Sturmlechner
2021-01-01 22:14 Andreas Sturmlechner
2020-12-03 15:42 Andreas Sturmlechner
2020-12-03 15:42 Andreas Sturmlechner
2020-04-25 18:51 Mikle Kolyada
2020-02-10 19:59 Stefan Strogin
2019-11-20 13:21 Agostino Sarubbo
2019-08-14  2:33 Stefan Strogin
2019-06-13 15:31 Stefan Strogin
2019-06-13 15:31 Stefan Strogin
2018-11-12 14:31 Mikle Kolyada
2018-11-12  1:14 Thomas Deutschmann
2018-10-13 17:36 Pacho Ramos
2018-10-13 17:36 Pacho Ramos
2018-10-13 17:36 Pacho Ramos
2018-02-06 15:10 Thomas Deutschmann
2017-07-26  8:12 Michał Górny
2017-07-26  8:12 Michał Górny
2016-09-14  7:38 David Seifert
2016-04-22 15:30 Ian Delaney
2016-04-21 10:06 Ian Delaney
2016-04-21  9:52 Ian Delaney
2016-04-20 17:24 Kacper Kowalik
2016-04-18  8:13 Patrice Clement

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1688601928.089d4eceb88f2ca296eca6247a803429a0728d8f.sam@gentoo \
    --to=sam@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox