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/
Date: Sat, 08 Sep 2018 22:04:55
Message-Id: 1536444281.c2ba61f77034815605f470745da96bb979d4004f.whissi@gentoo
1 commit: c2ba61f77034815605f470745da96bb979d4004f
2 Author: Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
3 AuthorDate: Sat Sep 8 19:27:33 2018 +0000
4 Commit: Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
5 CommitDate: Sat Sep 8 22:04:41 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c2ba61f7
7
8 media-libs/libde265: update live ebuild
9
10 - Bump to EAPI=7
11
12 Package-Manager: Portage-2.3.49, Repoman-2.3.10
13
14 media-libs/libde265/libde265-9999.ebuild | 40 ++++++++++++++++++++++++--------
15 1 file changed, 30 insertions(+), 10 deletions(-)
16
17 diff --git a/media-libs/libde265/libde265-9999.ebuild b/media-libs/libde265/libde265-9999.ebuild
18 index 5fd5bc2676d..271e443495b 100644
19 --- a/media-libs/libde265/libde265-9999.ebuild
20 +++ b/media-libs/libde265/libde265-9999.ebuild
21 @@ -1,15 +1,22 @@
22 -# Copyright 1999-2017 Gentoo Foundation
23 +# Copyright 1999-2018 Gentoo Foundation
24 # Distributed under the terms of the GNU General Public License v2
25
26 -EAPI=5
27 +EAPI="7"
28
29 -AUTOTOOLS_IN_SOURCE_BUILD=1
30 -AUTOTOOLS_AUTORECONF=1
31 -inherit git-r3 autotools-multilib
32 +inherit autotools multilib-minimal
33 +
34 +PATCHES=( "${FILESDIR}/${PN}-1.0.2-qtbindir.patch" )
35 +
36 +if [[ ${PV} == "9999" ]] ; then
37 + EGIT_REPO_URI="https://github.com/strukturag/${PN}.git"
38 + inherit git-r3
39 +else
40 + SRC_URI="https://github.com/strukturag/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
41 + KEYWORDS="~amd64 ~x86"
42 +fi
43
44 DESCRIPTION="Open h.265 video codec implementation"
45 HOMEPAGE="https://github.com/strukturag/libde265"
46 -EGIT_REPO_URI="https://github.com/strukturag/${PN}.git"
47
48 LICENSE="GPL-3"
49 SLOT="0"
50 @@ -27,9 +34,16 @@ DEPEND="
51 "
52 RDEPEND="${DEPEND}"
53
54 -PATCHES=( "${FILESDIR}/${PN}-1.0.2-qtbindir.patch" )
55 +src_prepare() {
56 + default
57 +
58 + eautoreconf
59
60 -src_configure() {
61 + # without this, headers would be missing and make would fail
62 + multilib_copy_sources
63 +}
64 +
65 +multilib_src_configure() {
66 local myeconfargs=(
67 $(use_enable cpu_flags_x86_sse sse)
68 $(use_enable static-libs static)
69 @@ -38,8 +52,14 @@ src_configure() {
70 $(use_enable debug log-trace)
71 $(use_enable qt5 dec265)
72 $(use_enable qt5 sherlock265)
73 - --disable-silent-rules
74 --enable-log-error
75 )
76 - autotools-multilib_src_configure "${myeconfargs[@]}"
77 + econf "${myeconfargs[@]}"
78 +}
79 +
80 +multilib_src_install_all() {
81 + find "${ED}" -name '*.la' -delete || die
82 + if ! use static-libs ; then
83 + find "${ED}" -name "*.a" -delete || die
84 + fi
85 }