1 |
commit: 10a14c193af4c4365f78ed3140ea63b5a4c2bed3 |
2 |
Author: Jakov Smolic <jakov.smolic <AT> sartura <DOT> hr> |
3 |
AuthorDate: Tue Dec 29 13:37:51 2020 +0000 |
4 |
Commit: David Seifert <soap <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Dec 29 13:37:51 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=10a14c19 |
7 |
|
8 |
media-libs/libde265: Sync live ebuild |
9 |
|
10 |
Closes: https://github.com/gentoo/gentoo/pull/18230 |
11 |
Signed-off-by: Jakov Smolic <jakov.smolic <AT> sartura.hr> |
12 |
Signed-off-by: David Seifert <soap <AT> gentoo.org> |
13 |
|
14 |
media-libs/libde265/libde265-9999.ebuild | 33 +++++++++++++++----------------- |
15 |
1 file changed, 15 insertions(+), 18 deletions(-) |
16 |
|
17 |
diff --git a/media-libs/libde265/libde265-9999.ebuild b/media-libs/libde265/libde265-9999.ebuild |
18 |
index 1b591f16c36..29c28d991c8 100644 |
19 |
--- a/media-libs/libde265/libde265-9999.ebuild |
20 |
+++ b/media-libs/libde265/libde265-9999.ebuild |
21 |
@@ -5,14 +5,12 @@ EAPI=7 |
22 |
|
23 |
inherit autotools multilib-minimal |
24 |
|
25 |
-PATCHES=( "${FILESDIR}/${PN}-1.0.2-qtbindir.patch" ) |
26 |
- |
27 |
-if [[ ${PV} == "9999" ]] ; then |
28 |
+if [[ ${PV} == *9999 ]] ; then |
29 |
EGIT_REPO_URI="https://github.com/strukturag/${PN}.git" |
30 |
inherit git-r3 |
31 |
else |
32 |
SRC_URI="https://github.com/strukturag/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
33 |
- KEYWORDS="~amd64 ~arm64 ~ppc64 ~x86" |
34 |
+ KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86" |
35 |
fi |
36 |
|
37 |
DESCRIPTION="Open h.265 video codec implementation" |
38 |
@@ -20,14 +18,14 @@ HOMEPAGE="https://github.com/strukturag/libde265" |
39 |
|
40 |
LICENSE="GPL-3" |
41 |
SLOT="0" |
42 |
-IUSE="enc265 dec265 sdl tools debug static-libs cpu_flags_x86_sse4_1 cpu_flags_arm_neon cpu_flags_arm_thumb" |
43 |
+IUSE="enc265 dec265 sdl tools debug cpu_flags_x86_sse4_1 cpu_flags_arm_neon cpu_flags_arm_thumb" |
44 |
# IUSE+=" sherlock265" # Require libvideogfx or libswscale |
45 |
|
46 |
RDEPEND=" |
47 |
dec265? ( |
48 |
sdl? ( media-libs/libsdl ) |
49 |
- ) |
50 |
-" |
51 |
+ )" |
52 |
+ |
53 |
# Sherlock265 require libvideogfx or libswscale |
54 |
#RDEPEND+=" |
55 |
# sherlock265? ( |
56 |
@@ -40,12 +38,13 @@ RDEPEND=" |
57 |
#" |
58 |
|
59 |
DEPEND="${RDEPEND}" |
60 |
- |
61 |
BDEPEND="dec265? ( virtual/pkgconfig )" |
62 |
|
63 |
# Sherlock265 require libvideogfx or libswscale |
64 |
#BDEPEND+=" sherlock265? ( virtual/pkgconfig )" |
65 |
|
66 |
+PATCHES=( "${FILESDIR}"/${PN}-1.0.2-qtbindir.patch ) |
67 |
+ |
68 |
src_prepare() { |
69 |
default |
70 |
|
71 |
@@ -57,16 +56,16 @@ src_prepare() { |
72 |
|
73 |
multilib_src_configure() { |
74 |
local myeconfargs=( |
75 |
+ --disable-static |
76 |
+ --enable-log-error |
77 |
ax_cv_check_cflags___msse4_1=$(usex cpu_flags_x86_sse4_1) |
78 |
ax_cv_check_cflags___mfpu_neon=$(usex cpu_flags_arm_neon) |
79 |
$(use_enable cpu_flags_arm_thumb thumb) |
80 |
- $(use_enable static-libs static) |
81 |
$(use_enable debug log-info) |
82 |
$(use_enable debug log-debug) |
83 |
$(use_enable debug log-trace) |
84 |
$(multilib_native_use_enable enc265 encoder) |
85 |
$(multilib_native_use_enable dec265) |
86 |
- --enable-log-error |
87 |
) |
88 |
|
89 |
# myeconfargs+=( $(multilib_native_use_enable sherlock265) ) # Require libvideogfx or libswscale |
90 |
@@ -79,21 +78,19 @@ multilib_src_install() { |
91 |
default |
92 |
|
93 |
if multilib_is_native_abi; then |
94 |
- # Remove useless, unready and test tools (Why package ever tried to install them??) |
95 |
- rm -f "${ED}/usr/bin/"{tests,gen-enc-table,yuv-distortion} || die |
96 |
+ # Remove useless, unready and test tools |
97 |
+ rm "${ED}"/usr/bin/{tests,gen-enc-table,yuv-distortion} || die |
98 |
if ! use tools; then |
99 |
- rm -f "${ED}/usr/bin/"{bjoentegaard,block-rate-estim,rd-curves} || die |
100 |
- rm -f "${ED}/usr/bin/acceleration_speed" || die |
101 |
+ rm "${ED}"/usr/bin/{bjoentegaard,block-rate-estim,rd-curves} || die |
102 |
+ rm "${ED}"/usr/bin/acceleration_speed || die |
103 |
fi |
104 |
else |
105 |
# Remove all non-native binary tools |
106 |
- rm -f "${ED}/usr/bin/"* || die |
107 |
+ rm "${ED}"/usr/bin/* || die |
108 |
fi |
109 |
} |
110 |
|
111 |
multilib_src_install_all() { |
112 |
find "${ED}" -name '*.la' -delete || die |
113 |
- if ! use static-libs ; then |
114 |
- find "${ED}" -name "*.a" -delete || die |
115 |
- fi |
116 |
+ einstalldocs |
117 |
} |