commit:     1b0d4fba75b3b047b0e04f6e38d6f82e90632ec7
Author:     Michael Vetter <jubalh <AT> iodoru <DOT> org>
AuthorDate: Mon Aug 19 15:10:22 2024 +0000
Commit:     Eli Schwartz <eschwartz <AT> gentoo <DOT> org>
CommitDate: Wed Aug 21 22:53:19 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1b0d4fba

media-libs/jasper: add 4.2.4

Signed-off-by: Michael Vetter <jubalh <AT> iodoru.org>
Closes: https://github.com/gentoo/gentoo/pull/38204
Signed-off-by: Eli Schwartz <eschwartz <AT> gentoo.org>

 media-libs/jasper/Manifest            |  1 +
 media-libs/jasper/jasper-4.2.4.ebuild | 62 +++++++++++++++++++++++++++++++++++
 2 files changed, 63 insertions(+)

diff --git a/media-libs/jasper/Manifest b/media-libs/jasper/Manifest
index 0b7a56284b92..f909bb35f308 100644
--- a/media-libs/jasper/Manifest
+++ b/media-libs/jasper/Manifest
@@ -1 +1,2 @@
 DIST jasper-4.2.2.tar.gz 1980836 BLAKE2B 
b5b1f1e27904bf3c884c43bd338b836425a68e5162e1e3dce320ac3cd5a0150cfe7e39a2709590378a33fd43eee3f7abe4d1d4d86bc99c0d58061a97cd9751a5
 SHA512 
5c5e0efae1c00a57d85ca5aa70f2cc332bb45db15e56f022c52a11f4ac8f995412896d62fcaa3b7f390a85de70aa56c421a9ab8e5945048ac94b19847eed67bd
+DIST jasper-4.2.4.tar.gz 1987060 BLAKE2B 
ff65214e4a18a9853e8c441ddc3b0908534db5d625aa4e4dd5d60536d150fcbd068cf0fdd4ca36d4c7047c91b02ac9721e85563c435b9f75db980c64b6d3629f
 SHA512 
4552e4823e08f7cb444d5835f30180ae1631b1784078769f0c1d51f40dd3bb6c8a1e960147d07312164dbb3b489561d06ee8f75112e76dbba8aacfd09c7d03e4

diff --git a/media-libs/jasper/jasper-4.2.4.ebuild 
b/media-libs/jasper/jasper-4.2.4.ebuild
new file mode 100644
index 000000000000..2c68c17ea760
--- /dev/null
+++ b/media-libs/jasper/jasper-4.2.4.ebuild
@@ -0,0 +1,62 @@
+# Copyright 2023-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit cmake
+
+DESCRIPTION="Implementation of the codec specified in the JPEG-2000 Part-1 
standard"
+HOMEPAGE="https://jasper-software.github.io/jasper/";
+
+if [[ ${PV} == *9999 ]]; then
+       inherit git-r3
+       EGIT_REPO_URI="https://github.com/jasper-software/jasper.git";
+else
+       
SRC_URI="https://github.com/jasper-software/${PN}/archive/version-${PV}.tar.gz 
-> ${P}.tar.gz"
+       KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~loong ~x86"
+       S="${WORKDIR}/${PN}-version-${PV}"
+fi
+
+LICENSE="JasPer2.0"
+SLOT="0/7"
+IUSE="doc heif jpeg opengl test"
+RESTRICT="!test? ( test )"
+
+RDEPEND="
+       heif? ( media-libs/libheif:= )
+       jpeg? ( media-libs/libjpeg-turbo:= )
+       opengl? (
+               media-libs/freeglut
+               virtual/opengl
+               virtual/glu
+       )"
+DEPEND="${RDEPEND}"
+BDEPEND="
+       app-shells/bash
+       doc? (
+               app-text/doxygen
+               dev-texlive/texlive-latexextra
+               dev-texlive/texlive-plaingeneric
+               virtual/latex-base
+       )
+       test? ( media-libs/openjpeg )"
+
+src_configure() {
+       local mycmakeargs=(
+               -DBASH_PROGRAM="${BROOT}"/bin/bash
+
+               # documentation
+               $(cmake_use_find_package doc Doxygen)
+               $(cmake_use_find_package doc LATEX)
+
+               # HEIF
+               -DJAS_ENABLE_LIBHEIF=$(usex heif)
+
+               # JPEG
+               -DJAS_ENABLE_LIBJPEG=$(usex jpeg)
+
+               # OpenGL
+               -DJAS_ENABLE_OPENGL=$(usex opengl)
+       )
+       cmake_src_configure
+}

Reply via email to