mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-17 14:49:30 -07:00
media-libs/libraw: add 0.22.0
Closes: https://bugs.gentoo.org/971087 Signed-off-by: Brett A C Sheffield <bacs@librecast.net> Part-of: https://codeberg.org/gentoo/gentoo/pulls/412 Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
committed by
Sam James
parent
312d44e0a0
commit
242a4a054e
@@ -1,2 +1,3 @@
|
||||
DIST LibRaw-0.21.2.tar.gz 1639305 BLAKE2B 8ff6cbc205335bdf12bfdfb77e390cf45f6e7a3dfcc0e6cc5ea759ac3a7b11d9f8a89c19218f779951dd8b1d96c779cb1d502c4691ee11cdccd83c27f09c6bf8 SHA512 ba7839d8eb5f999982c7b89f89f63387d7fee82054d7edcc2698924e268559b561230e329a0c669bd6f7c075983da6c054a6d63fad49ab3c1e2e9edc653b2bae
|
||||
DIST LibRaw-0.21.4.tar.gz 1383350 BLAKE2B 9e813556bcd91524277cb6df75c1c232ce81c5409959fabf67b7352138cf86d2f154f695adb41e70203cb006cff426e263e31857889874aa00307d0d960e8e67 SHA512 0f9861e662f1d09a101d5e199f1a5470c417d93598a33d23764b086394285ebfb191a9fdd710db394428fd1624cf7e2fd42d4d030b71c46d7da436bfda2d99f3
|
||||
DIST LibRaw-0.22.0.tar.gz 1627321 BLAKE2B 2063d4f89a1cd065bc4734ab99257f1b3e3b72e1d8c0ea7736dd703315e55f22a00ab336fa1455a9f694c4c1cbc78f7cd22a81d1e9ce9c07c1cd5c976de3f940 SHA512 079009ebd895ca08e81473a596938714df545a49e17fe1abd6b4e7b7e27a6980978283497d0ca2b74c800f4a1c9f09a96e0b54bae11f6e63065e22e858647c6b
|
||||
|
||||
70
media-libs/libraw/libraw-0.22.0.ebuild
Normal file
70
media-libs/libraw/libraw-0.22.0.ebuild
Normal file
@@ -0,0 +1,70 @@
|
||||
# Copyright 1999-2026 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"
|
||||
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? ( virtual/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=(
|
||||
$(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
|
||||
}
|
||||
Reference in New Issue
Block a user