Gentoo Archives: gentoo-commits

From: Michael Palimaka <kensington@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-libs/libopenshot/files/, media-libs/libopenshot/
Date: Sun, 29 Jan 2017 16:45:04
Message-Id: 1485708284.720a7f364f5aaa5de43d4e6bdf61d21757f7da06.kensington@gentoo
1 commit: 720a7f364f5aaa5de43d4e6bdf61d21757f7da06
2 Author: Louis Sautier <sautier.louis <AT> gmail <DOT> com>
3 AuthorDate: Sun Jan 29 13:00:03 2017 +0000
4 Commit: Michael Palimaka <kensington <AT> gentoo <DOT> org>
5 CommitDate: Sun Jan 29 16:44:44 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=720a7f36
7
8 media-libs/libopenshot: bump to 0.1.3
9
10 Package-Manager: Portage-2.3.3, Repoman-2.3.1
11
12 media-libs/libopenshot/Manifest | 1 +
13 .../files/libopenshot-0.1.3-fix-tests.patch | 26 +++++++
14 media-libs/libopenshot/libopenshot-0.1.3.ebuild | 85 ++++++++++++++++++++++
15 media-libs/libopenshot/metadata.xml | 1 -
16 4 files changed, 112 insertions(+), 1 deletion(-)
17
18 diff --git a/media-libs/libopenshot/Manifest b/media-libs/libopenshot/Manifest
19 index 9742eff..3d00751 100644
20 --- a/media-libs/libopenshot/Manifest
21 +++ b/media-libs/libopenshot/Manifest
22 @@ -1,3 +1,4 @@
23 DIST libopenshot-0.1.0.tar.gz 10970157 SHA256 1eb3cc27d9d5a5c966dd5dd445567239c6cbcc08772ba99e5f3b52c87a28d809 SHA512 bd5767b96ae38da7f31bfcca3ec5b34c458ab271d3e899b1982cd09b0576d29a3101c54fc840766d40aa7cbc83130064f0440f5c465999f0518449318ab87480 WHIRLPOOL c485271357545e85b94753659f0a58f4e7b0f4c4ee2a4d53bbcb1d650a3cef730103b73577848d0e2e6a355d42788451fbc1839c82343b2f172c3fd725906f29
24 DIST libopenshot-0.1.1.tar.gz 10970421 SHA256 7f79084b0fda085ee5740f4907a2ac4bd736de6b3c4958b4441f49eaedfc7eee SHA512 7ed329b8a066ace9996342504ce817cd0e20a8599a71fa6483d8b2eeb52b5bfeed0cb4b9d099c34a275fc529d55d1bd0527707264ddd5d106574ee25e4fcd3ec WHIRLPOOL 9a759029f4b0ff1510157c91ac09f67c665446b5551487c6d228c2a668b019bb919aae53e5813b541863d32116017f0fc2a19dbc008e307e3bc9c32cc72df884
25 DIST libopenshot-0.1.2.tar.gz 11012039 SHA256 f5b37250aaa4f7ca29727966b818d73d6a100d92dbb7bc5270ee332f820a3657 SHA512 a713b24c5925ea99f5b749e178a635dd30d1ed666d8a1195beaabd44fd4d8b4e5282ee0fda2fef58dc5db3e1a481f535902496128142c445082130a08841540e WHIRLPOOL 7902060db5e5d4ff4136057f33f0c6149827cfa9000bae70f7271ddabe608b5672caaa3dececb68517f4419b36ecd89fb718caa9823e214203fcfc1c648d5536
26 +DIST libopenshot-0.1.3.tar.gz 11019740 SHA256 4a35318af4fbeeb0c658963275e8ec1edb985497ab9674d76eb02a1d72cbb64d SHA512 d59817505812868db408a88dc1d30b5b1833910f45dd0df03937110b7d4cbd85a270773008e75a1501f4b3b89a09ea798ed9b580755adf3ae79ac24d403f6982 WHIRLPOOL 31e7b7fe98e2709d1d88c6e2c39ceaa0b81c4f9a624ea9853ffd9b86771148e1bec808ec67192cede3578bc30860f8f5a878f67745d2d2ac9838ea93f01b628c
27
28 diff --git a/media-libs/libopenshot/files/libopenshot-0.1.3-fix-tests.patch b/media-libs/libopenshot/files/libopenshot-0.1.3-fix-tests.patch
29 new file mode 100644
30 index 00000000..8ed3102
31 --- /dev/null
32 +++ b/media-libs/libopenshot/files/libopenshot-0.1.3-fix-tests.patch
33 @@ -0,0 +1,26 @@
34 +diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt
35 +index 29fbe45..ff67cb5 100644
36 +--- a/tests/CMakeLists.txt
37 ++++ b/tests/CMakeLists.txt
38 +@@ -24,16 +24,19 @@
39 + # along with OpenShot Library. If not, see <http://www.gnu.org/licenses/>.
40 + ################################################################################
41 +
42 ++SET(TEST_MEDIA_PATH "${openshot_SOURCE_DIR}/src/examples/")
43 +
44 + ################ WINDOWS ##################
45 + # Set some compiler options for Windows
46 + # required for libopenshot-audio headers
47 + IF (WIN32)
48 +- STRING(REPLACE "/" "\\\\" TEST_MEDIA_PATH "${openshot_SOURCE_DIR}/src/examples/")
49 +- add_definitions( -DIGNORE_JUCE_HYPOT=1 -DTEST_MEDIA_PATH="${TEST_MEDIA_PATH}" )
50 ++ STRING(REPLACE "/" "\\\\" TEST_MEDIA_PATH TEST_MEDIA_PATH)
51 ++ add_definitions( -DIGNORE_JUCE_HYPOT=1 )
52 + SET(CMAKE_CXX_FLAGS " ${CMAKE_CXX_FLAGS} -include cmath -std=c++0x")
53 + ENDIF(WIN32)
54 +
55 ++add_definitions( -DTEST_MEDIA_PATH="${TEST_MEDIA_PATH}" )
56 ++
57 + ################### UNITTEST++ #####################
58 + # Find UnitTest++ libraries (used for unit testing)
59 + FIND_PACKAGE(UnitTest++ REQUIRED)
60
61 diff --git a/media-libs/libopenshot/libopenshot-0.1.3.ebuild b/media-libs/libopenshot/libopenshot-0.1.3.ebuild
62 new file mode 100644
63 index 00000000..d07deb8
64 --- /dev/null
65 +++ b/media-libs/libopenshot/libopenshot-0.1.3.ebuild
66 @@ -0,0 +1,85 @@
67 +# Copyright 1999-2017 Gentoo Foundation
68 +# Distributed under the terms of the GNU General Public License v2
69 +# $Id$
70 +
71 +EAPI=6
72 +
73 +PYTHON_COMPAT=( python3_{4,5} )
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: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}/${P}-fix-tests.patch )
109 +
110 +pkg_pretend() {
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_setup() {
120 + use python && python-single-r1_pkg_setup
121 +}
122 +
123 +src_prepare() {
124 + # https://github.com/OpenShot/libopenshot/issues/17
125 + use test || cmake_comment_add_subdirectory tests
126 + cmake-utils_src_prepare
127 +}
128 +
129 +src_configure() {
130 + local mycmakeargs=(
131 + -DENABLE_RUBY=OFF # TODO: add ruby support
132 + -DENABLE_PYTHON=$(usex python)
133 + -DCMAKE_DISABLE_FIND_PACKAGE_ImageMagick=$(usex !imagemagick)
134 + )
135 + use python && mycmakeargs+=(
136 + -DPYTHON_EXECUTABLE="${PYTHON}"
137 + -DPYTHON_INCLUDE_DIR="$(python_get_includedir)"
138 + -DPYTHON_LIBRARY="$(python_get_library_path)"
139 + )
140 + cmake-utils_src_configure
141 +}
142 +
143 +src_test() {
144 + cd "${BUILD_DIR}" || die
145 + emake test
146 +}
147 +
148 +src_install() {
149 + cmake-utils_src_install
150 + python_optimize
151 +}
152
153 diff --git a/media-libs/libopenshot/metadata.xml b/media-libs/libopenshot/metadata.xml
154 index 1c216c0..27f9c3b 100644
155 --- a/media-libs/libopenshot/metadata.xml
156 +++ b/media-libs/libopenshot/metadata.xml
157 @@ -4,7 +4,6 @@
158 <maintainer type="person">
159 <email>sautier.louis@×××××.com</email>
160 <name>Louis Sautier</name>
161 - <description>Proxied maintainer; set to assignee in all bugs</description>
162 </maintainer>
163 <maintainer type="project">
164 <email>proxy-maint@g.o</email>