summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Vetter <jubalh@iodoru.org>2024-03-12 05:17:42 +0000
committerAndrew Ammerlaan <andrewammerlaan@gentoo.org>2024-03-20 21:44:48 +0100
commitfc910346e27cd9d1169d081839bdd79ed33c295c (patch)
treee37e659f98586cc2b9e95a1dad7d8da649af82d6 /media-libs/jasper
parentsci-mathematics/gimps: add 30.19.13 (diff)
downloadgentoo-fc910346e27cd9d1169d081839bdd79ed33c295c.tar.gz
gentoo-fc910346e27cd9d1169d081839bdd79ed33c295c.tar.bz2
gentoo-fc910346e27cd9d1169d081839bdd79ed33c295c.zip
media-libs/jasper: add 4.2.2
Signed-off-by: Michael Vetter <jubalh@iodoru.org> Closes: https://github.com/gentoo/gentoo/pull/35718 Signed-off-by: Andrew Ammerlaan <andrewammerlaan@gentoo.org>
Diffstat (limited to 'media-libs/jasper')
-rw-r--r--media-libs/jasper/Manifest1
-rw-r--r--media-libs/jasper/jasper-4.2.2.ebuild62
2 files changed, 63 insertions, 0 deletions
diff --git a/media-libs/jasper/Manifest b/media-libs/jasper/Manifest
index 6b4b812482f3..bd3dfbc13059 100644
--- a/media-libs/jasper/Manifest
+++ b/media-libs/jasper/Manifest
@@ -2,3 +2,4 @@ DIST jasper-4.0.0.tar.gz 1975127 BLAKE2B d4d8ae3324f3753e999adee57c215b89fa0ddeb
DIST jasper-4.1.1.tar.gz 1979438 BLAKE2B 7f72c7f5633b7b0b119733ea7cdaa51684d3593ea19de21ae45f036ac79245b418b4f72a90f4b7d458b38ea480f008a8b67a74a0c4f440c9d86f76419e04e712 SHA512 a15c196d7e448fb3c8b6512793d4b430e58ba6adf343b46392cac0880ae8c385cd75b43dd566c4a25baab983089cb95c00ae538dc0b84282cc98f2a9ce398d43
DIST jasper-4.1.2.tar.gz 1982427 BLAKE2B 36f1e5abb90f6e684ab9b9479e3f28318c75e1f1cd71dfa9f84f00fca2e04ebec393b48ceec1db02d2777cb09fbf0f425cef017958aec1c7f6fd66277c370baa SHA512 ab3cc1e2a4b4232510eba89d03363ed1a9f74ee981e2e7eeef21d185dbc12f2efa5cc0e281c5d20adf1d3d0f95a44f7b0ece8fd304e26bdcd1ff352dbf398367
DIST jasper-4.2.0.tar.gz 1980712 BLAKE2B 1f01775b23f368ae8380569e82026f24f82eeee1d5dc4f023ab844c3ae14007c79c416860efb414e620059824a2923d6bd3ffa1b4914eb7e11e247016ebead55 SHA512 31da8f49cec3ba2a3bb9ba40fa54fe64c97d1e564631c980619f0b3ffca36814adc6c2cb8dc1ead774a15546f308e7a33990821538d1e7b6c885b14ed4e1f711
+DIST jasper-4.2.2.tar.gz 1980836 BLAKE2B b5b1f1e27904bf3c884c43bd338b836425a68e5162e1e3dce320ac3cd5a0150cfe7e39a2709590378a33fd43eee3f7abe4d1d4d86bc99c0d58061a97cd9751a5 SHA512 5c5e0efae1c00a57d85ca5aa70f2cc332bb45db15e56f022c52a11f4ac8f995412896d62fcaa3b7f390a85de70aa56c421a9ab8e5945048ac94b19847eed67bd
diff --git a/media-libs/jasper/jasper-4.2.2.ebuild b/media-libs/jasper/jasper-4.2.2.ebuild
new file mode 100644
index 000000000000..47b363a4f06e
--- /dev/null
+++ b/media-libs/jasper/jasper-4.2.2.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="~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
+}