summaryrefslogtreecommitdiff
path: root/media-libs/libraw
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2022-12-20 13:51:21 +0000
committerV3n3RiX <venerix@koprulu.sector>2022-12-20 13:51:21 +0000
commit4161fa7d1be6dac96e36f8ed343f234a8ef3a74f (patch)
treeee6d7260a8c03fb6191fead616b7dd50f07a7aa4 /media-libs/libraw
parentef4d67f1907798e309efed58d673fd60594a14a8 (diff)
gentoo auto-resync : 20:12:2022 - 13:51:21
Diffstat (limited to 'media-libs/libraw')
-rw-r--r--media-libs/libraw/Manifest2
-rw-r--r--media-libs/libraw/libraw-0.21.0.ebuild60
2 files changed, 62 insertions, 0 deletions
diff --git a/media-libs/libraw/Manifest b/media-libs/libraw/Manifest
index 1caee4c0449b..21562a0c9020 100644
--- a/media-libs/libraw/Manifest
+++ b/media-libs/libraw/Manifest
@@ -1,3 +1,5 @@
DIST LibRaw-0.20.2.tar.gz 1432141 BLAKE2B 6e41d91b560951ad4595c41a1d089505ca91337f4fc6b98bafe44211971bee143709482a070bacb7daebbd643bbbf17730f544d791c0237bf1689a7a59133079 SHA512 96b1aaf09e2d46448d1b3619270c1f1c32e9bcbd866567cec67d5b1f889362f0fae3f3533ea9bf6a11a917be3b61ee6c9938bad09209d93453039ed04eaeae4a
+DIST LibRaw-0.21.0.tar.gz 1638463 BLAKE2B 1a87417e73f22411661bb6150c12dda745d931975f76357496ab92e6f48b5a1e6e7a907bd6ae8d0655f4250c4524290fec8130955da1cabaedfe6a238253274b SHA512 af5a7361d39ea77315e883eff3afe8aa7d998e65afa6da5019368b46eef862e275bf6eadc095d626573a821de9b86e76dc2bfa955382a4bd030f97b30699f149
EBUILD libraw-0.20.2.ebuild 1418 BLAKE2B 848a04befc4bf6c4b1eefeb4573edfc30796af76460efd4626d47eaa472e964ae87f43e590d06b89ce6fccdfd57c8f179f99e95f80a28f938e3211ffaba22bcd SHA512 69524c743d44de0159311d5f2765a2c9460de97dc5a7a40ea1a6a45b2c843b8410df2e4de9b26654e9d8977bf8b2990ef2535d6eeebd81e0b1e1431003eb300c
+EBUILD libraw-0.21.0.ebuild 1552 BLAKE2B 12aeb35242810cd3e99e5eb7965bc283a68f6a247d72bc374e10cbd0090022391335e95619634b0bb88e9b8cc256dff43dcb085a656c16df688c0ea39af482bd SHA512 032be67a0af77c7e8c60348938598013e4f488196979c52baf5b802644473efee7be90fbb6fd89dbc5fdb234cb2989b22548798497fbda73fb5c7bbd106780b5
MISC metadata.xml 384 BLAKE2B d58c1c7f027fa62de0ba86f59f1c654bab4cba1d5f7c5d33f6584550c7b91396345c80d4821368878a63fc04e28a9795fa1e8f6a6510f450fded152c0dc23f66 SHA512 758f4ff9a0a4bc933797597c2c54f61e99041f347e8e94a8ffcaa886937029c88630fa8bb717942358e5b2587e53491f321d75551ae93d57af09e5e057399ec8
diff --git a/media-libs/libraw/libraw-0.21.0.ebuild b/media-libs/libraw/libraw-0.21.0.ebuild
new file mode 100644
index 000000000000..47594160ed5d
--- /dev/null
+++ b/media-libs/libraw/libraw-0.21.0.ebuild
@@ -0,0 +1,60 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit 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"
+
+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 ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~sparc ~x86 ~amd64-linux ~x86-linux"
+IUSE="examples 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"
+
+S="${WORKDIR}/${MY_P}"
+
+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
+}
+
+multilib_src_configure() {
+ 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
+}