commit:     fe0b65e8434f5da4d930e6d7d6c7bb0235a40fb7
Author:     Dennis Eisele <kernlpanic <AT> dennis-eisele <DOT> de>
AuthorDate: Sun Jul 13 11:45:51 2025 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Wed Jul 16 03:11:37 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fe0b65e8

media-libs/libraw: add 0.21.4

Closes: https://bugs.gentoo.org/959650

Signed-off-by: Dennis Eisele <kernlpanic <AT> dennis-eisele.de>
Part-of: https://github.com/gentoo/gentoo/pull/42909
Closes: https://github.com/gentoo/gentoo/pull/42909
Signed-off-by: Sam James <sam <AT> gentoo.org>

 media-libs/libraw/Manifest             |  1 +
 media-libs/libraw/libraw-0.21.4.ebuild | 71 ++++++++++++++++++++++++++++++++++
 2 files changed, 72 insertions(+)

diff --git a/media-libs/libraw/Manifest b/media-libs/libraw/Manifest
index 74cbc8c8e2b9..736dc4e87e8c 100644
--- a/media-libs/libraw/Manifest
+++ b/media-libs/libraw/Manifest
@@ -1,2 +1,3 @@
 DIST LibRaw-0.21.2.tar.gz 1639305 BLAKE2B 
8ff6cbc205335bdf12bfdfb77e390cf45f6e7a3dfcc0e6cc5ea759ac3a7b11d9f8a89c19218f779951dd8b1d96c779cb1d502c4691ee11cdccd83c27f09c6bf8
 SHA512 
ba7839d8eb5f999982c7b89f89f63387d7fee82054d7edcc2698924e268559b561230e329a0c669bd6f7c075983da6c054a6d63fad49ab3c1e2e9edc653b2bae
 DIST LibRaw-0.21.3.tar.gz 1483982 BLAKE2B 
7aa1368a45b4e3e2a73ac886b0ac7e5fb9faadca5c6e2f29a88980578f04f7045278cb859739f70b09cf4f88beb48b7c9162be8e971041b1da78e6e2d1127d16
 SHA512 
c83363cdf5619f069affc9473ab3ea6560f67e72ab5e7bf6eefcf6a23521a729c9d417f323c4cc6679780c0536e5804390c243cace8a40341a0c5f26865d6a2d
+DIST LibRaw-0.21.4.tar.gz 1383350 BLAKE2B 
9e813556bcd91524277cb6df75c1c232ce81c5409959fabf67b7352138cf86d2f154f695adb41e70203cb006cff426e263e31857889874aa00307d0d960e8e67
 SHA512 
0f9861e662f1d09a101d5e199f1a5470c417d93598a33d23764b086394285ebfb191a9fdd710db394428fd1624cf7e2fd42d4d030b71c46d7da436bfda2d99f3

diff --git a/media-libs/libraw/libraw-0.21.4.ebuild 
b/media-libs/libraw/libraw-0.21.4.ebuild
new file mode 100644
index 000000000000..b95cc3c95628
--- /dev/null
+++ b/media-libs/libraw/libraw-0.21.4.ebuild
@@ -0,0 +1,71 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit flag-o-matic libtool multilib-minimal toolchain-funcs
+
+MY_PN=LibRaw
+MY_PV="${PV/_b/-B}"
+MY_P="${MY_PN}-${MY_PV}"
+
+DESCRIPTION="LibRaw is a library for reading RAW files obtained from digital 
photo cameras"
+HOMEPAGE="https://www.libraw.org/ https://github.com/LibRaw/LibRaw";
+SRC_URI="https://www.libraw.org/data/${MY_P}.tar.gz";
+S="${WORKDIR}/${MY_P}"
+
+LICENSE="LGPL-2.1 CDDL"
+# SONAME isn't exactly the same as PV but it does correspond and
+# libraw has unstable ABI across releases.
+SLOT="0/$(ver_cut 1-2)"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~m68k ~mips ~ppc ~ppc64 
~riscv ~sparc ~x86 ~amd64-linux ~x86-linux"
+IUSE="examples hardened jpeg +lcms openmp zlib"
+
+RDEPEND="
+       jpeg? ( media-libs/libjpeg-turbo:=[${MULTILIB_USEDEP}] )
+       lcms? ( >=media-libs/lcms-2.5:2[${MULTILIB_USEDEP}] )
+       zlib? ( sys-libs/zlib[${MULTILIB_USEDEP}] )
+"
+DEPEND="${RDEPEND}"
+BDEPEND="virtual/pkgconfig"
+
+DOCS=( Changelog.txt README.md )
+
+pkg_pretend() {
+       [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp
+}
+
+pkg_setup() {
+       [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp
+}
+
+src_prepare() {
+       default
+       elibtoolize
+
+       if tc-is-clang && use openmp ; then
+               append-libs omp
+       fi
+}
+
+multilib_src_configure() {
+       # added in 0.21.3 if selected calloc() will be used to prevent 
uninitialized heap data leak
+       use hardened && append-cppflags "-DLIBRAW_CALLOC_RAWSTORE"
+
+       local myeconfargs=(
+               --disable-jasper
+               $(multilib_native_use_enable examples)
+               $(use_enable jpeg)
+               $(use_enable lcms)
+               $(use_enable openmp)
+               $(use_enable zlib)
+       )
+       ECONF_SOURCE="${S}" econf "${myeconfargs[@]}"
+}
+
+multilib_src_install_all() {
+       einstalldocs
+
+       # package installs .pc files
+       find "${D}" -name '*.la' -delete || die
+}

Reply via email to