Gentoo Archives: gentoo-commits

From: Alexis Ballier <aballier@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-plugins/frei0r-plugins/
Date: Thu, 01 Jun 2017 09:09:32
Message-Id: 1496307951.fd11105f8b8bb6327d2693f22b4c12ed08795238.aballier@gentoo
1 commit: fd11105f8b8bb6327d2693f22b4c12ed08795238
2 Author: Alexis Ballier <aballier <AT> gentoo <DOT> org>
3 AuthorDate: Thu Jun 1 09:05:51 2017 +0000
4 Commit: Alexis Ballier <aballier <AT> gentoo <DOT> org>
5 CommitDate: Thu Jun 1 09:05:51 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fd11105f
7
8 media-plugins/frei0r-plugins: bump to 1.6.0
9
10 Package-Manager: Portage-2.3.6, Repoman-2.3.2
11
12 media-plugins/frei0r-plugins/Manifest | 1 +
13 .../frei0r-plugins/frei0r-plugins-1.6.0.ebuild | 65 ++++++++++++++++++++++
14 2 files changed, 66 insertions(+)
15
16 diff --git a/media-plugins/frei0r-plugins/Manifest b/media-plugins/frei0r-plugins/Manifest
17 index 300026122b8..82273b1119b 100644
18 --- a/media-plugins/frei0r-plugins/Manifest
19 +++ b/media-plugins/frei0r-plugins/Manifest
20 @@ -1 +1,2 @@
21 DIST frei0r-plugins-1.5.0.tar.gz 1519006 SHA256 781cf84a6c2a9a3252f54d2967b57f6de75a31fc1684371e112638c981f72b60 SHA512 9be0384421ff5ac9000dcda9acefb5cb2b6dc05ea72d9771fae990cb5fad4424dcef8dd15c1e5031a89169f914af8c7a30e47934ad007a3bc0150f3c005bc6bf WHIRLPOOL c582118da0d832edd10bf3e4473edb5ff352d67d723d84381befda0cee7deaaeb5f200b5db49603055d620921669d9e0346a7654db2f12e8d922419e7456eaf3
22 +DIST frei0r-plugins-1.6.0.tar.gz 1090145 SHA256 ab2d7254f3a822944252f6c85453eeb8b38fd9368e087034c8d47d68fe6e36fe SHA512 0736c3e874d9406777e9dd1d7010e6ddd87c656df6d803d2dc689e1d6ee0d053aaaab5991484b58d142f14fe52f8dc51a31d2a6604f06d567fbb3414cb62645d WHIRLPOOL eecbf00dc9cfc9929b6a550e39a0e938b096a221b7b30213e616528c3c3a1a8bf78cd4765a5d40d03196fe1a00040d089490ed35aa6a9fab5b33333b728e7420
23
24 diff --git a/media-plugins/frei0r-plugins/frei0r-plugins-1.6.0.ebuild b/media-plugins/frei0r-plugins/frei0r-plugins-1.6.0.ebuild
25 new file mode 100644
26 index 00000000000..6c92b93da41
27 --- /dev/null
28 +++ b/media-plugins/frei0r-plugins/frei0r-plugins-1.6.0.ebuild
29 @@ -0,0 +1,65 @@
30 +# Copyright 1999-2017 Gentoo Foundation
31 +# Distributed under the terms of the GNU General Public License v2
32 +
33 +EAPI=6
34 +
35 +inherit cmake-utils multilib
36 +
37 +DESCRIPTION="A minimalistic plugin API for video effects"
38 +HOMEPAGE="http://www.dyne.org/software/frei0r/"
39 +SRC_URI="http://files.dyne.org/frei0r/releases/${P}.tar.gz"
40 +
41 +LICENSE="GPL-2"
42 +SLOT="0"
43 +KEYWORDS="~amd64 ~arm ~hppa ~ppc ~x86 ~amd64-fbsd ~x86-fbsd"
44 +IUSE="doc +facedetect +scale0tilt"
45 +
46 +RDEPEND="x11-libs/cairo
47 + facedetect? ( >=media-libs/opencv-2.3.0:= )
48 + scale0tilt? ( >=media-libs/gavl-1.2.0 )"
49 +DEPEND="${RDEPEND}
50 + virtual/pkgconfig
51 + doc? ( app-doc/doxygen )"
52 +
53 +DOCS=( AUTHORS.txt ChangeLog.txt README.txt TODO.txt )
54 +
55 +src_prepare() {
56 + cmake-utils_src_prepare
57 +
58 + local f=CMakeLists.txt
59 +
60 + sed -i \
61 + -e '/set(CMAKE_C_FLAGS/d' \
62 + -e "/LIBDIR.*frei0r-1/s:lib:$(get_libdir):" \
63 + ${f} || die
64 +
65 + # https://bugs.gentoo.org/418243
66 + sed -i \
67 + -e '/set.*CMAKE_C_FLAGS/s:"): ${CMAKE_C_FLAGS}&:' \
68 + src/filter/*/${f} || die
69 +}
70 +
71 +src_configure() {
72 + local mycmakeargs=(
73 + -DWITHOUT_OPENCV=$(usex !facedetect)
74 + -DWITHOUT_GAVL=$(usex !scale0tilt)
75 + )
76 +
77 + cmake-utils_src_configure
78 +}
79 +
80 +src_compile() {
81 + cmake-utils_src_compile
82 +
83 + if use doc; then
84 + pushd doc
85 + doxygen || die
86 + popd
87 + fi
88 +}
89 +
90 +src_install() {
91 + cmake-utils_src_install
92 +
93 + use doc && dodoc -r doc/html
94 +}