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/libheif/
Date: Sun, 09 Sep 2018 00:16:31
Message-Id: 1536452169.dd208d76029e639b4a48c6c2ce90f08d92c854bc.whissi@gentoo
1 commit: dd208d76029e639b4a48c6c2ce90f08d92c854bc
2 Author: Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
3 AuthorDate: Sat Sep 8 23:40:01 2018 +0000
4 Commit: Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
5 CommitDate: Sun Sep 9 00:16:09 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=dd208d76
7
8 media-libs/libheif: initial version
9
10 Package-Manager: Portage-2.3.49, Repoman-2.3.10
11
12 media-libs/libheif/Manifest | 1 +
13 media-libs/libheif/libheif-1.3.2.ebuild | 57 +++++++++++++++++++++++++++++++++
14 media-libs/libheif/libheif-9999.ebuild | 57 +++++++++++++++++++++++++++++++++
15 media-libs/libheif/metadata.xml | 11 +++++++
16 4 files changed, 126 insertions(+)
17
18 diff --git a/media-libs/libheif/Manifest b/media-libs/libheif/Manifest
19 new file mode 100644
20 index 00000000000..477b5f92465
21 --- /dev/null
22 +++ b/media-libs/libheif/Manifest
23 @@ -0,0 +1 @@
24 +DIST libheif-1.3.2.tar.gz 1328174 BLAKE2B 4c0f82bb90d48f89a4ce9aed525c5823bb5d008e54e580e761f6fa4f5493f265929a0607e7b81046ba7c249bd2ca21a0c5ab91da83b7e7f3a2a63e8f24df88ed SHA512 bcc8b4b2522ef6fe68f5a9ffd5312c2c8f6bc3718394eef1860e199c30fb735bb214f665ed6480b5f5fe5d578b3ed77a4301af93775ae2349ba5038b3f3ef63a
25
26 diff --git a/media-libs/libheif/libheif-1.3.2.ebuild b/media-libs/libheif/libheif-1.3.2.ebuild
27 new file mode 100644
28 index 00000000000..c5acd4efc7d
29 --- /dev/null
30 +++ b/media-libs/libheif/libheif-1.3.2.ebuild
31 @@ -0,0 +1,57 @@
32 +# Copyright 1999-2018 Gentoo Foundation
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI="7"
36 +
37 +inherit autotools multilib-minimal
38 +
39 +if [[ ${PV} == "9999" ]] ; then
40 + EGIT_REPO_URI="https://github.com/strukturag/${PN}.git"
41 + inherit git-r3
42 +else
43 + SRC_URI="https://github.com/strukturag/${PN}/releases/download/v${PV}/${P}.tar.gz"
44 + KEYWORDS="~amd64 ~x86"
45 +fi
46 +
47 +DESCRIPTION="ISO/IEC 23008-12:2017 HEIF file format decoder and encoder"
48 +HOMEPAGE="https://github.com/strukturag/libheif"
49 +
50 +LICENSE="GPL-3"
51 +SLOT="0/1.3"
52 +KEYWORDS=""
53 +IUSE="static-libs +threads"
54 +
55 +# Doesn't yet support libjpeg-turbo-2, https://github.com/strukturag/libheif/issues/70
56 +DEPEND="
57 + media-libs/libde265:=[${MULTILIB_USEDEP}]
58 + media-libs/libpng:0=[${MULTILIB_USEDEP}]
59 + media-libs/x265:=[${MULTILIB_USEDEP}]
60 + sys-libs/zlib:=[${MULTILIB_USEDEP}]
61 + virtual/jpeg:0=[${MULTILIB_USEDEP}]
62 + !>=media-libs/libjpeg-turbo-2
63 +"
64 +RDEPEND="${DEPEND}"
65 +
66 +src_prepare() {
67 + default
68 +
69 + sed -i -e 's:-Werror::' \
70 + configure.ac || die
71 +
72 + eautoreconf
73 +}
74 +
75 +multilib_src_configure() {
76 + local myeconfargs=(
77 + $(use_enable threads multithreading)
78 + $(use_enable static-libs static)
79 + )
80 + ECONF_SOURCE="${S}" econf "${myeconfargs[@]}"
81 +}
82 +
83 +multilib_src_install_all() {
84 + find "${ED}" -name '*.la' -delete || die
85 + if ! use static-libs ; then
86 + find "${ED}" -name "*.a" -delete || die
87 + fi
88 +}
89
90 diff --git a/media-libs/libheif/libheif-9999.ebuild b/media-libs/libheif/libheif-9999.ebuild
91 new file mode 100644
92 index 00000000000..aaf71823ade
93 --- /dev/null
94 +++ b/media-libs/libheif/libheif-9999.ebuild
95 @@ -0,0 +1,57 @@
96 +# Copyright 1999-2018 Gentoo Foundation
97 +# Distributed under the terms of the GNU General Public License v2
98 +
99 +EAPI="7"
100 +
101 +inherit autotools multilib-minimal
102 +
103 +if [[ ${PV} == "9999" ]] ; then
104 + EGIT_REPO_URI="https://github.com/strukturag/${PN}.git"
105 + inherit git-r3
106 +else
107 + SRC_URI="https://github.com/strukturag/${PN}/releases/download/v${PV}/${P}.tar.gz"
108 + KEYWORDS="~amd64 ~x86"
109 +fi
110 +
111 +DESCRIPTION="ISO/IEC 23008-12:2017 HEIF file format decoder and encoder"
112 +HOMEPAGE="https://github.com/strukturag/libheif"
113 +
114 +LICENSE="GPL-3"
115 +SLOT="0/1.3.9999"
116 +KEYWORDS=""
117 +IUSE="static-libs +threads"
118 +
119 +# Doesn't yet support libjpeg-turbo-2, https://github.com/strukturag/libheif/issues/70
120 +DEPEND="
121 + media-libs/libde265:=[${MULTILIB_USEDEP}]
122 + media-libs/libpng:0=[${MULTILIB_USEDEP}]
123 + media-libs/x265:=[${MULTILIB_USEDEP}]
124 + sys-libs/zlib:=[${MULTILIB_USEDEP}]
125 + virtual/jpeg:0=[${MULTILIB_USEDEP}]
126 + !>=media-libs/libjpeg-turbo-2
127 +"
128 +RDEPEND="${DEPEND}"
129 +
130 +src_prepare() {
131 + default
132 +
133 + sed -i -e 's:-Werror::' \
134 + configure.ac || die
135 +
136 + eautoreconf
137 +}
138 +
139 +multilib_src_configure() {
140 + local myeconfargs=(
141 + $(use_enable threads multithreading)
142 + $(use_enable static-libs static)
143 + )
144 + ECONF_SOURCE="${S}" econf "${myeconfargs[@]}"
145 +}
146 +
147 +multilib_src_install_all() {
148 + find "${ED}" -name '*.la' -delete || die
149 + if ! use static-libs ; then
150 + find "${ED}" -name "*.a" -delete || die
151 + fi
152 +}
153
154 diff --git a/media-libs/libheif/metadata.xml b/media-libs/libheif/metadata.xml
155 new file mode 100644
156 index 00000000000..22000d0b0b5
157 --- /dev/null
158 +++ b/media-libs/libheif/metadata.xml
159 @@ -0,0 +1,11 @@
160 +<?xml version="1.0" encoding="UTF-8"?>
161 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
162 +<pkgmetadata>
163 + <maintainer type="project">
164 + <email>graphics@g.o</email>
165 + </maintainer>
166 + <upstream>
167 + <bugs-to>https://github.com/strukturag/libheif/issues</bugs-to>
168 + <remote-id type="github">strukturag/libheif</remote-id>
169 + </upstream>
170 +</pkgmetadata>