1 |
commit: 8d89e160b8cc497095359a4e0caf49a01d24d68a |
2 |
Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Dec 5 00:34:19 2017 +0000 |
4 |
Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Dec 5 00:34:55 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8d89e160 |
7 |
|
8 |
media-libs/libde265: Fix qtbindir |
9 |
|
10 |
Closes: https://bugs.gentoo.org/595462 |
11 |
Package-Manager: Portage-2.3.16, Repoman-2.3.6 |
12 |
|
13 |
media-libs/libde265/Manifest | 2 +- |
14 |
.../libde265/files/libde265-1.0.2-qtbindir.patch | 47 ++++++++++++++++++++++ |
15 |
media-libs/libde265/libde265-1.0.2.ebuild | 2 + |
16 |
media-libs/libde265/libde265-9999.ebuild | 2 + |
17 |
4 files changed, 52 insertions(+), 1 deletion(-) |
18 |
|
19 |
diff --git a/media-libs/libde265/Manifest b/media-libs/libde265/Manifest |
20 |
index 4dba2d1bb4b..1c531c91197 100644 |
21 |
--- a/media-libs/libde265/Manifest |
22 |
+++ b/media-libs/libde265/Manifest |
23 |
@@ -1 +1 @@ |
24 |
-DIST libde265-1.0.2.tar.gz 381737 SHA256 c9769a621d568bf5d1e687453cb5d996d7a813476813edb4752ce0fea437fca8 SHA512 714ce93f204bd034e3cccd9624d32ea6fcb31be25dbfd1a85f91814b33a01cc1515a3887a1ccabb9f0986686ecbcdd984b88e605190ff33d2bd75cc3b9f4bdd3 WHIRLPOOL 39daca6fc9d6b68cf69c696467343f780d3e1333e0ff0b94ff942e893deb3898a2d91070d07c64b7c7a5eb24d4097c4bf55b7466327110566bfa4fc87fa9073a |
25 |
+DIST libde265-1.0.2.tar.gz 381737 BLAKE2B cea70a46193e4cb4a0beb1d0a86af17df13e70602c16c509b85acb918c0ddbdfa3e60bfa2b83922200fd9b1465c18edf20fe0939d7f78f3865a9d54b144de90b SHA512 714ce93f204bd034e3cccd9624d32ea6fcb31be25dbfd1a85f91814b33a01cc1515a3887a1ccabb9f0986686ecbcdd984b88e605190ff33d2bd75cc3b9f4bdd3 |
26 |
|
27 |
diff --git a/media-libs/libde265/files/libde265-1.0.2-qtbindir.patch b/media-libs/libde265/files/libde265-1.0.2-qtbindir.patch |
28 |
new file mode 100644 |
29 |
index 00000000000..e73d43b5274 |
30 |
--- /dev/null |
31 |
+++ b/media-libs/libde265/files/libde265-1.0.2-qtbindir.patch |
32 |
@@ -0,0 +1,47 @@ |
33 |
+From 88924722c0e25566953276c52df7ef5040714cc5 Mon Sep 17 00:00:00 2001 |
34 |
+From: Andreas Sturmlechner <andreas.sturmlechner@×××××.com> |
35 |
+Date: Tue, 5 Dec 2017 01:19:53 +0100 |
36 |
+Subject: [PATCH] Fix Qt5 moc detection, throw away Qt4 |
37 |
+ |
38 |
+--- |
39 |
+ configure.ac | 24 ++++++------------------ |
40 |
+ 1 file changed, 6 insertions(+), 18 deletions(-) |
41 |
+ |
42 |
+diff --git a/configure.ac b/configure.ac |
43 |
+index 6580963..eb4ccec 100644 |
44 |
+--- a/configure.ac |
45 |
++++ b/configure.ac |
46 |
+@@ -325,24 +325,12 @@ if eval "test $enable_sherlock265 = yes" && eval "test $have_videogfx != yes" && |
47 |
+ fi |
48 |
+ |
49 |
+ if eval "test $enable_sherlock265 = yes" ; then |
50 |
+- PKG_CHECK_MODULES([QT], [Qt5Core Qt5Gui Qt5Widgets], [found_qt=5], [found_qt=no]) |
51 |
+- if eval "test $found_qt = no" ; then |
52 |
+- PKG_CHECK_MODULES([QT], [QtCore QtGui], [found_qt=4]) |
53 |
+- fi |
54 |
+- AC_PATH_PROGS([QTCHOOSER],[qtchooser]) |
55 |
+- if eval "test x$QTCHOOSER = x" ; then |
56 |
+- AC_PATH_PROGS([QTMOC],[moc-qt$found_qt moc]) |
57 |
+- if eval "test x$QTMOC = x" ; then |
58 |
+- AC_MSG_ERROR([Need the "moc" commandline tool which is required to generate the Qt files required for sherlock265.]) |
59 |
+- fi |
60 |
+- else |
61 |
+- QTMOC="$QTCHOOSER -run-tool=moc -qt=$found_qt" |
62 |
+- fi |
63 |
+- AC_MSG_CHECKING([for version of $QTMOC]) |
64 |
+- QTMOC_VERSION=`$QTMOC -v 2>&1 | $GREP -o '[[0-9]]\+.[[0-9]]\+.[[0-9]]\+'` |
65 |
+- AC_MSG_RESULT([$QTMOC_VERSION]) |
66 |
+- AX_COMPARE_VERSION([$QTMOC_VERSION], [lt], [$found_qt], |
67 |
+- [AC_MSG_ERROR([Please install "moc" for Qt$found_qt (found $QTMOC_VERSION).])]) |
68 |
++ PKG_CHECK_MODULES([QT], [Qt5Core >= 5.1.0 Qt5Gui Qt5Widgets], [ |
69 |
++ QT_PATH="$( eval $PKG_CONFIG --variable=host_bins Qt5Core )" |
70 |
++ AC_PATH_PROGS([QTMOC], [moc-qt5 moc], [moc], [$QT_PATH]) |
71 |
++ ], [ |
72 |
++ AC_MSG_ERROR([Qt5 moc not found, which is required to generate the Qt files for sherlock265.]) |
73 |
++ ]) |
74 |
+ AC_SUBST(QTMOC) |
75 |
+ fi |
76 |
+ |
77 |
+-- |
78 |
+2.15.1 |
79 |
+ |
80 |
|
81 |
diff --git a/media-libs/libde265/libde265-1.0.2.ebuild b/media-libs/libde265/libde265-1.0.2.ebuild |
82 |
index 59318a1ef2c..a4b6724cc51 100644 |
83 |
--- a/media-libs/libde265/libde265-1.0.2.ebuild |
84 |
+++ b/media-libs/libde265/libde265-1.0.2.ebuild |
85 |
@@ -27,6 +27,8 @@ DEPEND=" |
86 |
" |
87 |
RDEPEND="${DEPEND}" |
88 |
|
89 |
+PATCHES=( "${FILESDIR}/${P}-qtbindir.patch" ) |
90 |
+ |
91 |
src_prepare() { |
92 |
sed -ri 's/(PIX_FMT_)/AV_\1/g' sherlock265/VideoDecoder.cc || die |
93 |
autotools-multilib_src_prepare |
94 |
|
95 |
diff --git a/media-libs/libde265/libde265-9999.ebuild b/media-libs/libde265/libde265-9999.ebuild |
96 |
index 6fd9decdd8c..5fd5bc2676d 100644 |
97 |
--- a/media-libs/libde265/libde265-9999.ebuild |
98 |
+++ b/media-libs/libde265/libde265-9999.ebuild |
99 |
@@ -27,6 +27,8 @@ DEPEND=" |
100 |
" |
101 |
RDEPEND="${DEPEND}" |
102 |
|
103 |
+PATCHES=( "${FILESDIR}/${PN}-1.0.2-qtbindir.patch" ) |
104 |
+ |
105 |
src_configure() { |
106 |
local myeconfargs=( |
107 |
$(use_enable cpu_flags_x86_sse sse) |