5 |
5 |
|
6 |
6 |
PYTHON_COMPAT=( python3_{10..11} )
|
7 |
7 |
|
8 |
|
inherit cmake python-single-r1 toolchain-funcs
|
|
8 |
inherit cmake python-single-r1 toolchain-funcs virtualx
|
9 |
9 |
|
10 |
10 |
DESCRIPTION="Video editing library used by OpenShot"
|
11 |
11 |
HOMEPAGE="https://www.openshot.org/"
|
... | ... | |
13 |
13 |
|
14 |
14 |
LICENSE="GPL-3+"
|
15 |
15 |
SLOT="0/21"
|
16 |
|
KEYWORDS="amd64 x86"
|
17 |
|
IUSE="doc examples +imagemagick +opencv +python test"
|
|
16 |
KEYWORDS="amd64 ~x86"
|
|
17 |
IUSE="babl doc examples +imagemagick +opencv +python test"
|
18 |
18 |
|
19 |
19 |
REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
|
20 |
20 |
RESTRICT="!test? ( test )"
|
... | ... | |
24 |
24 |
dev-qt/qtcore:5
|
25 |
25 |
dev-qt/qtgui:5
|
26 |
26 |
dev-qt/qtmultimedia:5[widgets]
|
27 |
|
>=media-libs/libopenshot-audio-0.2.1:0=
|
|
27 |
dev-qt/qtsvg:5
|
|
28 |
>=media-libs/libopenshot-audio-0.3.0:0=
|
28 |
29 |
media-video/ffmpeg:0=[encode,x264,xvid,vpx,mp3,theora,vorbis]
|
29 |
30 |
net-libs/cppzmq
|
30 |
31 |
net-libs/zeromq
|
|
32 |
babl? ( media-libs/babl )
|
31 |
33 |
imagemagick? ( >=media-gfx/imagemagick-7:0=[cxx] )
|
32 |
34 |
opencv? ( >=media-libs/opencv-4.5.2:=[contrib,contribdnn] )
|
33 |
35 |
python? ( ${PYTHON_DEPS} )"
|
... | ... | |
39 |
41 |
dev-libs/unittest++
|
40 |
42 |
)"
|
41 |
43 |
|
|
44 |
PATCHES=(
|
|
45 |
"${FILESDIR}"/libopenshot-0.3.2-fix-test-file-collisions.patch
|
|
46 |
)
|
|
47 |
|
42 |
48 |
pkg_pretend() {
|
43 |
49 |
[[ ${MERGE_TYPE} != binary ]] && tc-check-openmp
|
44 |
50 |
}
|
... | ... | |
61 |
67 |
-DENABLE_OPENCV=$(usex opencv)
|
62 |
68 |
-DENABLE_RUBY=OFF # TODO: add ruby support
|
63 |
69 |
-DENABLE_PYTHON=$(usex python)
|
64 |
|
-DENABLE_TESTS=$(usex test)
|
|
70 |
-DBUILD_TESTING=$(usex test)
|
|
71 |
-DENABLE_LIB_DOCS=$(usex doc)
|
65 |
72 |
-DUSE_SYSTEM_JSONCPP=ON
|
|
73 |
# Resvg not packaged yet
|
|
74 |
-DCMAKE_DISABLE_FIND_PACKAGE_Resvg=ON
|
66 |
75 |
$(cmake_use_find_package imagemagick ImageMagick)
|
|
76 |
$(cmake_use_find_package babl babl)
|
67 |
77 |
)
|
68 |
78 |
use python && mycmakeargs+=(
|
69 |
79 |
-DPYTHON_EXECUTABLE="${PYTHON}"
|
... | ... | |
79 |
89 |
}
|
80 |
90 |
|
81 |
91 |
src_test() {
|
82 |
|
cmake_build test
|
|
92 |
# https://github.com/OpenShot/libopenshot/issues/922 exclude broken test
|
|
93 |
virtx cmake_src_test -E '(Caption:caption effect|Timeline:Multi-threaded Timeline GetFrame)' || die
|
83 |
94 |
}
|
84 |
95 |
|
85 |
96 |
src_install() {
|