1 |
commit: 5120e24cdc12a81a5717ea20b6e7897937dccc27 |
2 |
Author: Jakov Smolic <jakov.smolic <AT> sartura <DOT> hr> |
3 |
AuthorDate: Thu Oct 8 17:42:38 2020 +0000 |
4 |
Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Oct 12 09:05:59 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5120e24c |
7 |
|
8 |
media-libs/libheif: add missing media-libs/libaom dep |
9 |
|
10 |
Package-Manager: Portage-3.0.4, Repoman-3.0.1 |
11 |
Signed-off-by: Jakov Smolic <jakov.smolic <AT> sartura.hr> |
12 |
Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org> |
13 |
|
14 |
media-libs/libheif/libheif-1.7.0-r2.ebuild | 63 ++++++++++++++++++++++++++++++ |
15 |
1 file changed, 63 insertions(+) |
16 |
|
17 |
diff --git a/media-libs/libheif/libheif-1.7.0-r2.ebuild b/media-libs/libheif/libheif-1.7.0-r2.ebuild |
18 |
new file mode 100644 |
19 |
index 00000000000..e54b807b2df |
20 |
--- /dev/null |
21 |
+++ b/media-libs/libheif/libheif-1.7.0-r2.ebuild |
22 |
@@ -0,0 +1,63 @@ |
23 |
+# Copyright 1999-2020 Gentoo Authors |
24 |
+# Distributed under the terms of the GNU General Public License v2 |
25 |
+ |
26 |
+EAPI=7 |
27 |
+ |
28 |
+inherit autotools xdg multilib-minimal |
29 |
+ |
30 |
+if [[ ${PV} == "9999" ]] ; then |
31 |
+ EGIT_REPO_URI="https://github.com/strukturag/${PN}.git" |
32 |
+ inherit git-r3 |
33 |
+else |
34 |
+ SRC_URI="https://github.com/strukturag/${PN}/releases/download/v${PV}/${P}.tar.gz" |
35 |
+ KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86" |
36 |
+fi |
37 |
+ |
38 |
+DESCRIPTION="ISO/IEC 23008-12:2017 HEIF file format decoder and encoder" |
39 |
+HOMEPAGE="https://github.com/strukturag/libheif" |
40 |
+ |
41 |
+LICENSE="GPL-3" |
42 |
+SLOT="0/1.7" |
43 |
+IUSE="gdk-pixbuf go static-libs test +threads" |
44 |
+RESTRICT="!test? ( test )" |
45 |
+ |
46 |
+BDEPEND="test? ( dev-lang/go )" |
47 |
+DEPEND=" |
48 |
+ >=media-libs/libaom-2.0.0:=[${MULTILIB_USEDEP}] |
49 |
+ media-libs/libde265:=[${MULTILIB_USEDEP}] |
50 |
+ media-libs/libpng:0=[${MULTILIB_USEDEP}] |
51 |
+ media-libs/x265:=[${MULTILIB_USEDEP}] |
52 |
+ sys-libs/zlib:=[${MULTILIB_USEDEP}] |
53 |
+ virtual/jpeg:0=[${MULTILIB_USEDEP}] |
54 |
+ gdk-pixbuf? ( x11-libs/gdk-pixbuf ) |
55 |
+ go? ( dev-lang/go ) |
56 |
+" |
57 |
+RDEPEND="${DEPEND}" |
58 |
+PATCHES=( |
59 |
+ "${FILESDIR}"/${P}-aom.patch |
60 |
+) |
61 |
+ |
62 |
+src_prepare() { |
63 |
+ default |
64 |
+ |
65 |
+ sed -i -e 's:-Werror::' configure.ac || die |
66 |
+ |
67 |
+ eautoreconf |
68 |
+ |
69 |
+ # prevent "stat heif-test.go: no such file or directory" |
70 |
+ multilib_copy_sources |
71 |
+} |
72 |
+ |
73 |
+multilib_src_configure() { |
74 |
+ local econf_args=( |
75 |
+ $(multilib_is_native_abi && use_enable go || echo --disable-go) |
76 |
+ $(use_enable gdk-pixbuf) |
77 |
+ $(use_enable static-libs static) |
78 |
+ $(use_enable threads multithreading) |
79 |
+ ) |
80 |
+ ECONF_SOURCE="${S}" econf "${econf_args[@]}" |
81 |
+} |
82 |
+ |
83 |
+multilib_src_install_all() { |
84 |
+ find "${ED}" -name '*.la' -delete || die |
85 |
+} |