summaryrefslogtreecommitdiff
path: root/media-libs/openjpeg
diff options
context:
space:
mode:
Diffstat (limited to 'media-libs/openjpeg')
-rw-r--r--media-libs/openjpeg/Manifest3
-rw-r--r--media-libs/openjpeg/openjpeg-2.5.3.ebuild98
2 files changed, 101 insertions, 0 deletions
diff --git a/media-libs/openjpeg/Manifest b/media-libs/openjpeg/Manifest
index 69e2c89bf6e6..34744046935f 100644
--- a/media-libs/openjpeg/Manifest
+++ b/media-libs/openjpeg/Manifest
@@ -2,9 +2,12 @@ AUX openjpeg-2.5.0-gnuinstalldirs-r2.patch 19823 BLAKE2B e215c2eecc8fd0949f58a81
AUX openjpeg-2.5.0-gnuinstalldirs.patch 11415 BLAKE2B 9916b82721b9e75dd175d8cf6b85aa9f3b0bbba4d72b5d9c21db853ccf7a40d970db051eff159040fa7b4eb478a5106879044b103e0fb30078704f51c4cb3eef SHA512 d559e1e101b88ea9f391d984e7fe2a28ed5572692f3fbf8c7e79e17105ce83d17ca2a378688c595a8da4f60925de5bf57569424de51a627e629d39479e04c682
DIST openjpeg-2.5.0.tar.gz 1867111 BLAKE2B 472d9998a7407574d3bc059d1c0b662a8a553cfe5cb7806a022cb35e14564417a8e06e9970f06d8e65ef149019bab747caefa8e29bc793d07ad86e076909d306 SHA512 08975a2dd79f1e29fd1824249a5fbe66026640ed787b3a3aa8807c2c69f994240ff33e2132f8bf15bbc2202bef7001f98e42d487231d4eebc8e503538658049a
DIST openjpeg-2.5.2.tar.gz 1871948 BLAKE2B 4c23eecd603c620d3555fa02055104d292cdf4bbb88ab3d8d8a8f62e3c21b52d3c6d9211d8dd6f11d76fb1ca6f2333a7305ae07b5883a62eb7fc28ec9dfafc0f SHA512 24c058b3e0710e689ba7fd6bce8a88353ce64e825b2e5bbf6b00ca3f2a2ec1e9c70a72e0252a5c89d10c537cf84d55af54bf2f16c58ca01db98c2018cf132e1a
+DIST openjpeg-2.5.3.tar.gz 2155188 BLAKE2B 170a425a9180b734ded086ee6c5292f246324260f948598d081c2c27e90328e2f48ad86990a918cf358e0affc5b87e6f973412fea239cafb8f78a71a97c54be3 SHA512 22378f5c38c1eb8ade853716897201d8a253024638bdf94fd9851d6a456601071e705c797c5ffeeb6924be14d7356f9a67f15c2b99e96f7d27fc375a9d94505a
DIST openjpeg-data_20210926.tar.gz 498600110 BLAKE2B 34a1c39379d9f8f4caad6c8263a4bc59e62a6a3b8db744eaeaa7047e58813636341b3fb7ee6a121b7dfcd4bc085f9884c3aef86605633ff0d84a1b77cf003624 SHA512 4444225ddb9c548d7753561188cd2d595ae13d7a45471240fac69c3de786a97fb899cd5bbc67cf1b54bfccff0dcd215ec6e83d1bd66982a44c802d163e365dae
DIST openjpeg-data_20230923.tar.gz 498600318 BLAKE2B cf595b9f8690ad0b9616f080c3bfdaf553802912cd41015f86766085c0bd021cead294372bd9925c2a569fabbd9a0f1684bcf6eb1b5ecdc14d64231a76401a3b SHA512 3e1e3bb489eac6047671395fbf92bbfb2ad7c7c0206c1a233c215ba3d5b5263a6ce65d523f98fdaa4949e28eaa179716264f89eebf73b44c71373a9c86313cc1
+DIST openjpeg-data_20241113.tar.gz 498662590 BLAKE2B 140c2fb2985a59413b1fb8ec52d2dd1e08f1795368b71565a801d425dc1c933b396f674a3c1aca194d4f7cac6574d181acb383fd72dc2083864ca6eee240c2d4 SHA512 5fa7eaa12eae88c0e3d0624f19a6c0aef4890d601d1e5d8aaf52db3e4d7387ae17ab9017cc4ed641283c616d9b440aaec6ca300cab11b4c245cb838f69d93237
EBUILD openjpeg-2.5.0-r5.ebuild 3016 BLAKE2B 58ccde41f1a927a062a7cc9600ff8e7a1224dc1fa2af44d4ed76e88bf03d85429dd2e2f3a56fc45377b779e0aa5fb246be88f645485d17b5c6bd6f27bb6c59ed SHA512 6cf06915de4bb0ca9b96ded1560322673ca98a82c5ad67e8f2b437f83d8b7819efa5a5cee6b9cd41e00e0bb0cbfa17b10d0cd707fb564c2d9d7e6f950c4aafcc
EBUILD openjpeg-2.5.0-r6.ebuild 3019 BLAKE2B 390894e12a72f321302e6cffa4c77bd9ea6d2305968af8b5298d3066b7f4d97fa16da127afc5a0ed1637ed9bb834696d1da6023adaeab4ba395661d3672e8880 SHA512 7e21b4d51c87892ca5e1aff7da50db28285c5d298b324fe250c9cc162e0c7d21922668b4397d509dc0954654614fefe7834e888e6ebd109057f61ab2e29161b5
EBUILD openjpeg-2.5.2.ebuild 2868 BLAKE2B f96d6dd0cf58d628a97695109d75c181ca257628913553f0f628316d6694280aaf05d693cd494bd351431c1a591583f3a440a44ba49d0e42642f0912e1b8acaa SHA512 31b7f72d4d277c8e9ca1d705e7a5884f321dba42a164ca19f6186457753893234ed81a8997808e45c7ac273852f90e64bb56830c16a201f1dbedd11af2e8731e
+EBUILD openjpeg-2.5.3.ebuild 2876 BLAKE2B f19a69fd12dbc694dde0c8a14a872d50a17e96c8736b77c1c080e5fc051759519a0179cf5431dc9c16d54c8e8db1032eb13d2811d071787248079daf0ab4b76d SHA512 5fd72ec326d67df9d3c1ebb937463b46830fa994dfb3ef8b2bd48621e86ef3da9defbfe20900539a0018efd139c1e38c25e1f8ec4c9395bc438419ea56ea8a19
MISC metadata.xml 612 BLAKE2B ecbdd9706b1975ad5a9f5ba9957ee7e1cc7cf42e7dfcb3e8b8f9e1f9851b035ac3d997ec9515a181b52be5112dfa44e9d2f98eeb532b21bf353afedcee035181 SHA512 243f4e9e4bc1d851c97167ab8f19ac240ea12d1e53ea59e6709b6da7a810edeb8aa287d92e0334b6b09d2df7660cc64de2dd9af739b2f3daa6ff19dcc304fa8d
diff --git a/media-libs/openjpeg/openjpeg-2.5.3.ebuild b/media-libs/openjpeg/openjpeg-2.5.3.ebuild
new file mode 100644
index 000000000000..fc91387b2c6f
--- /dev/null
+++ b/media-libs/openjpeg/openjpeg-2.5.3.ebuild
@@ -0,0 +1,98 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit cmake-multilib flag-o-matic
+
+# Make sure that test data are not newer than release;
+# otherwise we will see "Found-But-No-Test" test failures!
+#
+# To update: Go to https://github.com/uclouvain/openjpeg-data and grab the hash
+# of the latest possible commit whose commit date is older than the release
+# date.
+MY_TESTDATA_COMMIT="39524bd3a601d90ed8e0177559400d23945f96a9"
+
+DESCRIPTION="Open-source JPEG 2000 library"
+HOMEPAGE="https://www.openjpeg.org"
+SRC_URI="https://github.com/uclouvain/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz
+ test? ( https://github.com/uclouvain/openjpeg-data/archive/${MY_TESTDATA_COMMIT}.tar.gz -> ${PN}-data_20241113.tar.gz )"
+
+LICENSE="BSD-2"
+SLOT="2/7" # based on SONAME
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~arm64-macos ~ppc-macos ~x64-macos ~x64-solaris"
+IUSE="doc test"
+RESTRICT="!test? ( test )"
+
+RDEPEND="
+ media-libs/lcms:2
+ media-libs/libpng:0=
+ media-libs/tiff:=
+ sys-libs/zlib:=
+"
+DEPEND="${RDEPEND}"
+BDEPEND="doc? ( app-text/doxygen )"
+
+DOCS=( AUTHORS.md CHANGELOG.md NEWS.md README.md THANKS.md )
+
+src_prepare() {
+ if use test; then
+ mv "${WORKDIR}"/openjpeg-data-${MY_TESTDATA_COMMIT} "${WORKDIR}"/data ||
+ die "Failed to rename test data"
+ fi
+
+ cmake_src_prepare
+}
+
+multilib_src_configure() {
+ append-lfs-flags
+
+ local mycmakeargs=(
+ -DBUILD_TESTING="$(multilib_native_usex test)"
+ -DBUILD_DOC=$(multilib_native_usex doc ON OFF)
+ -DBUILD_CODEC=$(multilib_is_native_abi && echo ON || echo OFF)
+ -DBUILD_STATIC_LIBS=OFF
+ )
+
+ # Cheat a little bit and force disabling fixed point magic
+ # The test suite is extremely fragile to small changes
+ # bug #715130, bug #715422
+ # https://github.com/uclouvain/openjpeg/issues/1017
+ if multilib_is_native_abi && use test ; then
+ append-cflags "-ffp-contract=off"
+ fi
+
+ cmake_src_configure
+}
+
+multilib_src_test() {
+ if ! multilib_is_native_abi ; then
+ elog "Cannot run tests for non-multilib abi."
+ return 0
+ fi
+
+ pushd "${BUILD_DIR}" > /dev/null || die
+ [[ -e CTestTestfile.cmake ]] || die "Test suite not available! Check source!"
+
+ elog "Note: Upstream maintains a list of known test failures."
+ elog "We collect all the known failures and skip them."
+ elog
+
+ local toskip=( "${S}"/tools/travis-ci/knownfailures-all.txt )
+ if use amd64 ; then
+ toskip+=( "${S}"/tools/travis-ci/knownfailures-*x86_64*.txt )
+ elif use x86 || use arm || use arm64; then
+ toskip+=( "${S}"/tools/travis-ci/knownfailures-*i386*.txt )
+ fi
+
+ local exp=$(sort "${toskip[@]}" | uniq | tr '\n' '|'; assert)
+ popd > /dev/null || die
+
+ local myctestargs=()
+ if [[ -n ${TEST_VERBOSE} ]]; then
+ myctestargs+=( --extra-verbose --output-on-failure )
+ fi
+ myctestargs+=( -E "(${exp::-1})" )
+
+ cmake_src_test
+}