Gentoo Archives: gentoo-commits

From: Thomas Deutschmann <whissi@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-libs/libde265/, media-libs/libde265/files/
Date: Fri, 21 Sep 2018 12:41:12
Message-Id: 1537533660.988c55a52db80f00f6f58bb4cbb4594296be6f22.whissi@gentoo
1 commit: 988c55a52db80f00f6f58bb4cbb4594296be6f22
2 Author: Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
3 AuthorDate: Fri Sep 21 12:39:47 2018 +0000
4 Commit: Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
5 CommitDate: Fri Sep 21 12:41:00 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=988c55a5
7
8 Revert "media-libs/libde265: Security cleanup"
9
10 This reverts commit c54a3c5bd7945246640be1e6e34a2b72d857b097.
11
12 media-libs/libde265/Manifest | 1 +
13 .../libde265/files/libde265-1.0.2-qtbindir.patch | 47 ++++++++++++++++++++
14 media-libs/libde265/libde265-1.0.2.ebuild | 50 ++++++++++++++++++++++
15 3 files changed, 98 insertions(+)
16
17 diff --git a/media-libs/libde265/Manifest b/media-libs/libde265/Manifest
18 index e40b275b4d4..7b7d128f6e5 100644
19 --- a/media-libs/libde265/Manifest
20 +++ b/media-libs/libde265/Manifest
21 @@ -1 +1,2 @@
22 +DIST libde265-1.0.2.tar.gz 381737 BLAKE2B cea70a46193e4cb4a0beb1d0a86af17df13e70602c16c509b85acb918c0ddbdfa3e60bfa2b83922200fd9b1465c18edf20fe0939d7f78f3865a9d54b144de90b SHA512 714ce93f204bd034e3cccd9624d32ea6fcb31be25dbfd1a85f91814b33a01cc1515a3887a1ccabb9f0986686ecbcdd984b88e605190ff33d2bd75cc3b9f4bdd3
23 DIST libde265-1.0.3.tar.gz 399996 BLAKE2B 988b21085f82d3b33b0480542677be96db5219c1b767aae3674f89862fdaf3355dcfea3fa99699798a4fcc6b72a63a3a6f61a3fd8d2ea8483231205cd6d87175 SHA512 0153632afcc9733950e8354997ccd93eddad90e8e0f7362bfe49b93b11cb1756cf803d0ba5c07042aee80e18227613af768ca82baf7891c687edf5e253a129c4
24
25 diff --git a/media-libs/libde265/files/libde265-1.0.2-qtbindir.patch b/media-libs/libde265/files/libde265-1.0.2-qtbindir.patch
26 new file mode 100644
27 index 00000000000..e73d43b5274
28 --- /dev/null
29 +++ b/media-libs/libde265/files/libde265-1.0.2-qtbindir.patch
30 @@ -0,0 +1,47 @@
31 +From 88924722c0e25566953276c52df7ef5040714cc5 Mon Sep 17 00:00:00 2001
32 +From: Andreas Sturmlechner <andreas.sturmlechner@×××××.com>
33 +Date: Tue, 5 Dec 2017 01:19:53 +0100
34 +Subject: [PATCH] Fix Qt5 moc detection, throw away Qt4
35 +
36 +---
37 + configure.ac | 24 ++++++------------------
38 + 1 file changed, 6 insertions(+), 18 deletions(-)
39 +
40 +diff --git a/configure.ac b/configure.ac
41 +index 6580963..eb4ccec 100644
42 +--- a/configure.ac
43 ++++ b/configure.ac
44 +@@ -325,24 +325,12 @@ if eval "test $enable_sherlock265 = yes" && eval "test $have_videogfx != yes" &&
45 + fi
46 +
47 + if eval "test $enable_sherlock265 = yes" ; then
48 +- PKG_CHECK_MODULES([QT], [Qt5Core Qt5Gui Qt5Widgets], [found_qt=5], [found_qt=no])
49 +- if eval "test $found_qt = no" ; then
50 +- PKG_CHECK_MODULES([QT], [QtCore QtGui], [found_qt=4])
51 +- fi
52 +- AC_PATH_PROGS([QTCHOOSER],[qtchooser])
53 +- if eval "test x$QTCHOOSER = x" ; then
54 +- AC_PATH_PROGS([QTMOC],[moc-qt$found_qt moc])
55 +- if eval "test x$QTMOC = x" ; then
56 +- AC_MSG_ERROR([Need the "moc" commandline tool which is required to generate the Qt files required for sherlock265.])
57 +- fi
58 +- else
59 +- QTMOC="$QTCHOOSER -run-tool=moc -qt=$found_qt"
60 +- fi
61 +- AC_MSG_CHECKING([for version of $QTMOC])
62 +- QTMOC_VERSION=`$QTMOC -v 2>&1 | $GREP -o '[[0-9]]\+.[[0-9]]\+.[[0-9]]\+'`
63 +- AC_MSG_RESULT([$QTMOC_VERSION])
64 +- AX_COMPARE_VERSION([$QTMOC_VERSION], [lt], [$found_qt],
65 +- [AC_MSG_ERROR([Please install "moc" for Qt$found_qt (found $QTMOC_VERSION).])])
66 ++ PKG_CHECK_MODULES([QT], [Qt5Core >= 5.1.0 Qt5Gui Qt5Widgets], [
67 ++ QT_PATH="$( eval $PKG_CONFIG --variable=host_bins Qt5Core )"
68 ++ AC_PATH_PROGS([QTMOC], [moc-qt5 moc], [moc], [$QT_PATH])
69 ++ ], [
70 ++ AC_MSG_ERROR([Qt5 moc not found, which is required to generate the Qt files for sherlock265.])
71 ++ ])
72 + AC_SUBST(QTMOC)
73 + fi
74 +
75 +--
76 +2.15.1
77 +
78
79 diff --git a/media-libs/libde265/libde265-1.0.2.ebuild b/media-libs/libde265/libde265-1.0.2.ebuild
80 new file mode 100644
81 index 00000000000..a4b6724cc51
82 --- /dev/null
83 +++ b/media-libs/libde265/libde265-1.0.2.ebuild
84 @@ -0,0 +1,50 @@
85 +# Copyright 1999-2017 Gentoo Foundation
86 +# Distributed under the terms of the GNU General Public License v2
87 +
88 +EAPI=5
89 +
90 +AUTOTOOLS_IN_SOURCE_BUILD=1
91 +AUTOTOOLS_AUTORECONF=1
92 +inherit autotools-multilib
93 +
94 +DESCRIPTION="Open h.265 video codec implementation"
95 +HOMEPAGE="https://github.com/strukturag/libde265"
96 +SRC_URI="https://github.com/strukturag/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
97 +
98 +LICENSE="GPL-3"
99 +SLOT="0"
100 +KEYWORDS="amd64 x86"
101 +IUSE="debug qt5 static-libs cpu_flags_x86_sse"
102 +
103 +DEPEND="
104 + media-libs/libsdl
105 + virtual/ffmpeg
106 + qt5? (
107 + dev-qt/qtcore:5
108 + dev-qt/qtgui:5
109 + dev-qt/qtwidgets:5
110 + )
111 +"
112 +RDEPEND="${DEPEND}"
113 +
114 +PATCHES=( "${FILESDIR}/${P}-qtbindir.patch" )
115 +
116 +src_prepare() {
117 + sed -ri 's/(PIX_FMT_)/AV_\1/g' sherlock265/VideoDecoder.cc || die
118 + autotools-multilib_src_prepare
119 +}
120 +
121 +src_configure() {
122 + local myeconfargs=(
123 + $(use_enable cpu_flags_x86_sse sse)
124 + $(use_enable static-libs static)
125 + $(use_enable debug log-info)
126 + $(use_enable debug log-debug)
127 + $(use_enable debug log-trace)
128 + $(use_enable qt5 dec265)
129 + $(use_enable qt5 sherlock265)
130 + --disable-silent-rules
131 + --enable-log-error
132 + )
133 + autotools-multilib_src_configure "${myeconfargs[@]}"
134 +}