Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-libs/libopenraw/
Date: Sat, 31 Dec 2022 23:09:42
Message-Id: 1672527908.18c5c05a7b49e9e81776197927accf75f02bf0ce.sam@gentoo
1 commit: 18c5c05a7b49e9e81776197927accf75f02bf0ce
2 Author: Sam James <sam <AT> gentoo <DOT> org>
3 AuthorDate: Sat Dec 31 23:05:08 2022 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Sat Dec 31 23:05:08 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=18c5c05a
7
8 media-libs/libopenraw: add 0.3.3
9
10 Signed-off-by: Sam James <sam <AT> gentoo.org>
11
12 media-libs/libopenraw/libopenraw-0.3.3.ebuild | 101 ++++++++++++++++++++++++++
13 1 file changed, 101 insertions(+)
14
15 diff --git a/media-libs/libopenraw/libopenraw-0.3.3.ebuild b/media-libs/libopenraw/libopenraw-0.3.3.ebuild
16 new file mode 100644
17 index 000000000000..9333b1a4b20a
18 --- /dev/null
19 +++ b/media-libs/libopenraw/libopenraw-0.3.3.ebuild
20 @@ -0,0 +1,101 @@
21 +# Copyright 1999-2022 Gentoo Authors
22 +# Distributed under the terms of the GNU General Public License v2
23 +
24 +EAPI=8
25 +
26 +# Run cargo-build or cargo fetch in lib/mp4 to get this list
27 +CRATES="
28 +ahash-0.7.6
29 +aho-corasick-0.7.18
30 +atty-0.2.14
31 +autocfg-1.0.0
32 +bitreader-0.3.2
33 +byteorder-1.2.2
34 +cfg-if-0.1.10
35 +cfg-if-1.0.0
36 +env_logger-0.8.4
37 +fallible_collections-0.4.4
38 +getrandom-0.2.7
39 +hashbrown-0.11.2
40 +hermit-abi-0.1.8
41 +humantime-2.1.0
42 +libc-0.2.126
43 +log-0.4.17
44 +memchr-2.5.0
45 +num-traits-0.2.15
46 +once_cell-1.12.0
47 +regex-1.5.6
48 +regex-syntax-0.6.26
49 +static_assertions-1.1.0
50 +termcolor-1.1.3
51 +version_check-0.9.4
52 +wasi-0.11.0+wasi-snapshot-preview1
53 +winapi-0.3.8
54 +winapi-i686-pc-windows-gnu-0.4.0
55 +winapi-util-0.1.5
56 +winapi-x86_64-pc-windows-gnu-0.4.0
57 +"
58 +
59 +inherit cargo gnome2-utils
60 +
61 +DESCRIPTION="RAW image formats decoding library"
62 +HOMEPAGE="https://libopenraw.freedesktop.org/"
63 +SRC_URI="https://${PN}.freedesktop.org/download/${P}.tar.xz"
64 +SRC_URI+=" $(cargo_crate_uris)"
65 +
66 +LICENSE="GPL-3 LGPL-3"
67 +SLOT="0/9"
68 +KEYWORDS="~amd64 ~arm ~arm64 ~mips ~ppc ~ppc64 ~riscv ~sparc ~x86 ~amd64-linux ~x86-linux ~x64-macos ~x86-solaris"
69 +IUSE="gtk test"
70 +RESTRICT="!test? ( test )"
71 +
72 +RDEPEND="
73 + dev-libs/libxml2
74 + media-libs/libjpeg-turbo:=
75 + gtk? (
76 + dev-libs/glib:2
77 + >=x11-libs/gdk-pixbuf-2.24.0:2
78 + )
79 +"
80 +DEPEND="
81 + ${RDEPEND}
82 + dev-libs/boost
83 +"
84 +BDEPEND="
85 + virtual/pkgconfig
86 + test? ( net-misc/curl )
87 +"
88 +
89 +src_configure() {
90 + econf \
91 + --with-boost="${EPREFIX}"/usr \
92 + $(use_enable gtk gnome)
93 +}
94 +
95 +src_compile() {
96 + # Avoid cargo_src_compile
97 + default
98 +}
99 +
100 +src_test() {
101 + # Avoid cargo_src_test
102 + default
103 +}
104 +
105 +src_install() {
106 + default
107 +
108 + find "${ED}" -name '*.la' -delete || die
109 +}
110 +
111 +pkg_preinst() {
112 + use gtk && gnome2_gdk_pixbuf_savelist
113 +}
114 +
115 +pkg_postinst() {
116 + use gtk && gnome2_gdk_pixbuf_update
117 +}
118 +
119 +pkg_postrm() {
120 + use gtk && gnome2_gdk_pixbuf_update
121 +}