Gentoo Archives: gentoo-commits

From: Patrice Clement <monsieurp@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-libs/libopenshot/files/, media-libs/libopenshot/
Date: Tue, 03 Oct 2017 22:14:29
Message-Id: 1507068861.840dce2c7b99de72b1c6515d2ad334db3746758a.monsieurp@gentoo
1 commit: 840dce2c7b99de72b1c6515d2ad334db3746758a
2 Author: Louis Sautier <sautier.louis <AT> gmail <DOT> com>
3 AuthorDate: Tue Sep 19 19:47:14 2017 +0000
4 Commit: Patrice Clement <monsieurp <AT> gentoo <DOT> org>
5 CommitDate: Tue Oct 3 22:14:21 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=840dce2c
7
8 media-libs/libopenshot: version bump to 0.1.8.
9
10 Closes: https://bugs.gentoo.org/631426
11
12 Package-Manager: Portage-2.3.8, Repoman-2.3.3
13
14 media-libs/libopenshot/Manifest | 1 +
15 .../files/libopenshot-0.1.8-fix-tests.patch | 26 +++++++
16 media-libs/libopenshot/libopenshot-0.1.8.ebuild | 88 ++++++++++++++++++++++
17 media-libs/libopenshot/metadata.xml | 9 +--
18 4 files changed, 116 insertions(+), 8 deletions(-)
19
20 diff --git a/media-libs/libopenshot/Manifest b/media-libs/libopenshot/Manifest
21 index 2b94907f7ac..3a35d834afc 100644
22 --- a/media-libs/libopenshot/Manifest
23 +++ b/media-libs/libopenshot/Manifest
24 @@ -1,2 +1,3 @@
25 DIST libopenshot-0.1.3.tar.gz 11019740 SHA256 4a35318af4fbeeb0c658963275e8ec1edb985497ab9674d76eb02a1d72cbb64d SHA512 d59817505812868db408a88dc1d30b5b1833910f45dd0df03937110b7d4cbd85a270773008e75a1501f4b3b89a09ea798ed9b580755adf3ae79ac24d403f6982 WHIRLPOOL 31e7b7fe98e2709d1d88c6e2c39ceaa0b81c4f9a624ea9853ffd9b86771148e1bec808ec67192cede3578bc30860f8f5a878f67745d2d2ac9838ea93f01b628c
26 DIST libopenshot-0.1.7.tar.gz 11022594 SHA256 71cf5c18c76c36bec40c775cb98ab1ed672aa48d2de63a26c33c5cc5d6f0875a SHA512 4c8871ff30c03a14766e35a64052695768311afd81ecc55598720ad146f53c122ef3b1293467670f7dd48da77bf6cb4f4f14a18c298a649b8827f901ed653709 WHIRLPOOL 1730155af6b22ead4655e69c47df395566eb97dc66e5ec683ac2025130eded9060b515fd637b58de0254c4673adfbea1620a3253064f150fcb9bf9dfd492eb88
27 +DIST libopenshot-0.1.8.tar.gz 11019495 SHA256 a9b0706433c5c0e6edc9b1cc3c0ff1af4c8b7e8e31b5e071445a113fbb365d45 SHA512 02630d7ce9fd378ad648d034622d4f971728a2074691d7facc8a36dcd52b87c1372dd5a9588c0ba852589105bdbf78941083fd6b1eb1bcc0a33d4ca49634162c WHIRLPOOL ce007a69609ef34c3be0828d8b337a9eca795e5e806a056a3a391b804e438aa43063d80a7df0c42d31e79932c56eef5f55c17ebbd2fd846410c16bf227c6c844
28
29 diff --git a/media-libs/libopenshot/files/libopenshot-0.1.8-fix-tests.patch b/media-libs/libopenshot/files/libopenshot-0.1.8-fix-tests.patch
30 new file mode 100644
31 index 00000000000..bad8bcb9b4f
32 --- /dev/null
33 +++ b/media-libs/libopenshot/files/libopenshot-0.1.8-fix-tests.patch
34 @@ -0,0 +1,26 @@
35 +diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt
36 +index 431987b..2c45550 100644
37 +--- a/tests/CMakeLists.txt
38 ++++ b/tests/CMakeLists.txt
39 +@@ -24,16 +24,19 @@
40 + # along with OpenShot Library. If not, see <http://www.gnu.org/licenses/>.
41 + ################################################################################
42 +
43 ++SET(TEST_MEDIA_PATH "${openshot_SOURCE_DIR}/src/examples/")
44 +
45 + ################ WINDOWS ##################
46 + # Set some compiler options for Windows
47 + # required for libopenshot-audio headers
48 + IF (WIN32)
49 +- STRING(REPLACE "/" "\\\\" TEST_MEDIA_PATH "${openshot_SOURCE_DIR}/src/examples/")
50 +- add_definitions( -DIGNORE_JUCE_HYPOT=1 -DTEST_MEDIA_PATH="${TEST_MEDIA_PATH}" )
51 ++ STRING(REPLACE "/" "\\\\" TEST_MEDIA_PATH TEST_MEDIA_PATH)
52 ++ add_definitions( -DIGNORE_JUCE_HYPOT=1 )
53 + SET(CMAKE_CXX_FLAGS " ${CMAKE_CXX_FLAGS} -include cmath")
54 + ENDIF(WIN32)
55 +
56 ++add_definitions( -DTEST_MEDIA_PATH="${TEST_MEDIA_PATH}" )
57 ++
58 + ################### UNITTEST++ #####################
59 + # Find UnitTest++ libraries (used for unit testing)
60 + FIND_PACKAGE(UnitTest++ REQUIRED)
61
62 diff --git a/media-libs/libopenshot/libopenshot-0.1.8.ebuild b/media-libs/libopenshot/libopenshot-0.1.8.ebuild
63 new file mode 100644
64 index 00000000000..b663cdc7ff2
65 --- /dev/null
66 +++ b/media-libs/libopenshot/libopenshot-0.1.8.ebuild
67 @@ -0,0 +1,88 @@
68 +# Copyright 1999-2017 Gentoo Foundation
69 +# Distributed under the terms of the GNU General Public License v2
70 +
71 +EAPI=6
72 +
73 +PYTHON_COMPAT=( python3_{4,5,6} )
74 +
75 +inherit cmake-utils python-single-r1 toolchain-funcs versionator
76 +
77 +DESCRIPTION="Video editing library used by OpenShot"
78 +HOMEPAGE="http://www.openshotvideo.com/"
79 +SRC_URI="https://github.com/OpenShot/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
80 +
81 +LICENSE="GPL-3"
82 +SLOT="0"
83 +KEYWORDS="~amd64 ~x86"
84 +IUSE="+imagemagick libav +python test"
85 +# https://github.com/OpenShot/libopenshot/issues/43
86 +RESTRICT="test"
87 +
88 +REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
89 +
90 +RDEPEND="
91 + net-libs/cppzmq
92 + dev-qt/qtcore:5
93 + dev-qt/qtgui:5
94 + dev-qt/qtmultimedia:5[widgets]
95 + media-libs/libopenshot-audio
96 + imagemagick? ( <media-gfx/imagemagick-7:0=[cxx] )
97 + libav? ( media-video/libav:=[encode,x264,xvid,vpx,mp3,theora] )
98 + !libav? ( media-video/ffmpeg:0=[encode,x264,xvid,vpx,mp3,theora] )
99 + python? ( ${PYTHON_DEPS} )
100 +"
101 +DEPEND="
102 + ${RDEPEND}
103 + python? ( dev-lang/swig )
104 + test? ( dev-libs/unittest++ )
105 +"
106 +
107 +# https://github.com/OpenShot/libopenshot/pull/45
108 +PATCHES=( ${FILESDIR}/${PN}-0.1.8-fix-tests.patch )
109 +
110 +check_compiler() {
111 + if [[ ${MERGE_TYPE} != binary ]] && ! tc-has-openmp; then
112 + eerror "${P} requires a compiler with OpenMP support. Your current"
113 + eerror "compiler does not support it. If you use gcc, you can"
114 + eerror "re-emerge it with the 'openmp' use flag enabled."
115 + die "The current compiler does not support OpenMP"
116 + fi
117 +}
118 +
119 +pkg_pretend() {
120 + check_compiler
121 +}
122 +
123 +pkg_setup() {
124 + check_compiler
125 + use python && python-single-r1_pkg_setup
126 +}
127 +
128 +src_prepare() {
129 + cmake-utils_src_prepare
130 + # https://github.com/OpenShot/libopenshot/issues/17
131 + use test || cmake_comment_add_subdirectory tests
132 +}
133 +
134 +src_configure() {
135 + local mycmakeargs=(
136 + -DENABLE_RUBY=OFF # TODO: add ruby support
137 + -DENABLE_PYTHON=$(usex python)
138 + $(cmake-utils_use_find_package imagemagick ImageMagick)
139 + )
140 + use python && mycmakeargs+=(
141 + -DPYTHON_EXECUTABLE="${PYTHON}"
142 + -DPYTHON_INCLUDE_DIR="$(python_get_includedir)"
143 + -DPYTHON_LIBRARY="$(python_get_library_path)"
144 + )
145 + cmake-utils_src_configure
146 +}
147 +
148 +src_test() {
149 + cmake-utils_src_make test
150 +}
151 +
152 +src_install() {
153 + cmake-utils_src_install
154 + python_optimize
155 +}
156
157 diff --git a/media-libs/libopenshot/metadata.xml b/media-libs/libopenshot/metadata.xml
158 index 27f9c3bcefe..2f5ef7858c7 100644
159 --- a/media-libs/libopenshot/metadata.xml
160 +++ b/media-libs/libopenshot/metadata.xml
161 @@ -1,14 +1,7 @@
162 <?xml version="1.0" encoding="UTF-8"?>
163 <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
164 <pkgmetadata>
165 - <maintainer type="person">
166 - <email>sautier.louis@×××××.com</email>
167 - <name>Louis Sautier</name>
168 - </maintainer>
169 - <maintainer type="project">
170 - <email>proxy-maint@g.o</email>
171 - <name>Proxy Maintainers</name>
172 - </maintainer>
173 + <!-- maintainer-needed -->
174 <upstream>
175 <remote-id type="launchpad">libopenshot</remote-id>
176 <remote-id type="github">OpenShot/libopenshot</remote-id>