Gentoo Archives: gentoo-commits

From: Pacho Ramos <pacho@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-libs/libopenshot/
Date: Sat, 13 Oct 2018 17:36:07
Message-Id: 1539452106.4585f3ce9b02b841a713a6712f81a3d5111005c5.pacho@gentoo
1 commit: 4585f3ce9b02b841a713a6712f81a3d5111005c5
2 Author: Pacho Ramos <pacho <AT> gentoo <DOT> org>
3 AuthorDate: Sat Oct 13 17:30:57 2018 +0000
4 Commit: Pacho Ramos <pacho <AT> gentoo <DOT> org>
5 CommitDate: Sat Oct 13 17:35:06 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4585f3ce
7
8 media-libs/libopenshot: Version bump, fix imagemagick7 compat (#626014)
9
10 Closes: https://bugs.gentoo.org/626014
11 Signed-off-by: Pacho Ramos <pacho <AT> gentoo.org>
12 Package-Manager: Portage-2.3.51, Repoman-2.3.11
13
14 media-libs/libopenshot/Manifest | 1 +
15 media-libs/libopenshot/libopenshot-0.2.2.ebuild | 88 +++++++++++++++++++++++++
16 2 files changed, 89 insertions(+)
17
18 diff --git a/media-libs/libopenshot/Manifest b/media-libs/libopenshot/Manifest
19 index 19d8b0b08ff..be122d9c41a 100644
20 --- a/media-libs/libopenshot/Manifest
21 +++ b/media-libs/libopenshot/Manifest
22 @@ -1,3 +1,4 @@
23 DIST libopenshot-0.1.3.tar.gz 11019740 BLAKE2B a706889f709024300ef79518406da861111a8445b5ce23364b8492a72e74e7944c88ba9b4a29da356ca21500253d19e8c32abe7b5aaa0ac35bebec85e52ba970 SHA512 d59817505812868db408a88dc1d30b5b1833910f45dd0df03937110b7d4cbd85a270773008e75a1501f4b3b89a09ea798ed9b580755adf3ae79ac24d403f6982
24 DIST libopenshot-0.1.7.tar.gz 11022594 BLAKE2B f3e0836ebb6dd89ce42085dc9d18dd3bce9ab3011550958bec41eead2c62b454459d219d2efeece1a43eb0536cb99866eaf9b478205d717da4c173e954772a46 SHA512 4c8871ff30c03a14766e35a64052695768311afd81ecc55598720ad146f53c122ef3b1293467670f7dd48da77bf6cb4f4f14a18c298a649b8827f901ed653709
25 DIST libopenshot-0.1.8.tar.gz 11019495 BLAKE2B a86994a09328e24705fe06ec3c47cbedb89815e6ec1440237dc58babfc066655f1c7dacc19257b02b645a9415c63cd4e0c1191fa452b7632cf531d98a1b073c3 SHA512 02630d7ce9fd378ad648d034622d4f971728a2074691d7facc8a36dcd52b87c1372dd5a9588c0ba852589105bdbf78941083fd6b1eb1bcc0a33d4ca49634162c
26 +DIST libopenshot-0.2.2.tar.gz 11037768 BLAKE2B c307e41bf17d40ae421a541bbdf4cd53c6ef4d97041a476c6910bd156c10815aa5a5811813b24fdc472401516f29cf8cb68fbda17a0b434767c3f3aa63d6f222 SHA512 b89189e57e82da68a063417bba9c94704c04b0546c0aed227daa23a794eee56341a05988d8e28dbd339edfcdeeaed48103b347060eccf94f32fe1a4bf23d6553
27
28 diff --git a/media-libs/libopenshot/libopenshot-0.2.2.ebuild b/media-libs/libopenshot/libopenshot-0.2.2.ebuild
29 new file mode 100644
30 index 00000000000..4b0aeae13e1
31 --- /dev/null
32 +++ b/media-libs/libopenshot/libopenshot-0.2.2.ebuild
33 @@ -0,0 +1,88 @@
34 +# Copyright 1999-2018 Gentoo Authors
35 +# Distributed under the terms of the GNU General Public License v2
36 +
37 +EAPI=6
38 +PYTHON_COMPAT=( python3_{4,5,6} )
39 +
40 +inherit cmake-utils python-single-r1 toolchain-funcs versionator
41 +
42 +DESCRIPTION="Video editing library used by OpenShot"
43 +HOMEPAGE="http://www.openshotvideo.com/"
44 +SRC_URI="https://github.com/OpenShot/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
45 +
46 +LICENSE="GPL-3"
47 +SLOT="0"
48 +KEYWORDS="~amd64 ~x86"
49 +IUSE="+imagemagick libav +python test"
50 +# https://github.com/OpenShot/libopenshot/issues/43
51 +RESTRICT="test"
52 +
53 +REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
54 +
55 +RDEPEND="
56 + net-libs/cppzmq
57 + dev-qt/qtcore:5
58 + dev-qt/qtgui:5
59 + dev-qt/qtmultimedia:5[widgets]
60 + >=media-libs/libopenshot-audio-0.1.4
61 + imagemagick? ( >=media-gfx/imagemagick-7:0=[cxx] )
62 + libav? ( media-video/libav:=[encode,x264,xvid,vpx,mp3,theora] )
63 + !libav? ( media-video/ffmpeg:0=[encode,x264,xvid,vpx,mp3,theora] )
64 + python? ( ${PYTHON_DEPS} )
65 +"
66 +DEPEND="
67 + ${RDEPEND}
68 + python? ( dev-lang/swig )
69 + test? ( dev-libs/unittest++ )
70 +"
71 +
72 +# From Mageia
73 +# https://github.com/OpenShot/libopenshot/issues/60
74 +PATCHES=( ${FILESDIR}/${PN}-0.2.2-imagemagick7.patch )
75 +
76 +check_compiler() {
77 + if [[ ${MERGE_TYPE} != binary ]] && ! tc-has-openmp; then
78 + eerror "${P} requires a compiler with OpenMP support. Your current"
79 + eerror "compiler does not support it. If you use gcc, you can"
80 + eerror "re-emerge it with the 'openmp' use flag enabled."
81 + die "The current compiler does not support OpenMP"
82 + fi
83 +}
84 +
85 +pkg_pretend() {
86 + check_compiler
87 +}
88 +
89 +pkg_setup() {
90 + check_compiler
91 + use python && python-single-r1_pkg_setup
92 +}
93 +
94 +src_prepare() {
95 + cmake-utils_src_prepare
96 + # https://github.com/OpenShot/libopenshot/issues/17
97 + use test || cmake_comment_add_subdirectory tests
98 +}
99 +
100 +src_configure() {
101 + local mycmakeargs=(
102 + -DENABLE_RUBY=OFF # TODO: add ruby support
103 + -DENABLE_PYTHON=$(usex python)
104 + $(cmake-utils_use_find_package imagemagick ImageMagick)
105 + )
106 + use python && mycmakeargs+=(
107 + -DPYTHON_EXECUTABLE="${PYTHON}"
108 + -DPYTHON_INCLUDE_DIR="$(python_get_includedir)"
109 + -DPYTHON_LIBRARY="$(python_get_library_path)"
110 + )
111 + cmake-utils_src_configure
112 +}
113 +
114 +src_test() {
115 + cmake-utils_src_make test
116 +}
117 +
118 +src_install() {
119 + cmake-utils_src_install
120 + python_optimize
121 +}