diff options
author | Lars Wendler <polynomial-c@gentoo.org> | 2017-10-05 12:43:41 +0200 |
---|---|---|
committer | Lars Wendler <polynomial-c@gentoo.org> | 2017-10-05 12:44:00 +0200 |
commit | c27f3dd5c8618b40acf020cd734396c3aa448162 (patch) | |
tree | 78e06296c66023cb630cb537a3b58f92fd0f3b63 /media-libs/openjpeg | |
parent | dev-libs/libatomic_ops: stable 7.6.0 for hppa/sparc, bug #630994 (thanks to R... (diff) | |
download | gentoo-c27f3dd5c8618b40acf020cd734396c3aa448162.tar.gz gentoo-c27f3dd5c8618b40acf020cd734396c3aa448162.tar.bz2 gentoo-c27f3dd5c8618b40acf020cd734396c3aa448162.zip |
media-libs/openjpeg: Bump to version 2.3.0
Package-Manager: Portage-2.3.11, Repoman-2.3.3
Diffstat (limited to 'media-libs/openjpeg')
-rw-r--r-- | media-libs/openjpeg/Manifest | 2 | ||||
-rw-r--r-- | media-libs/openjpeg/openjpeg-2.3.0.ebuild | 135 |
2 files changed, 137 insertions, 0 deletions
diff --git a/media-libs/openjpeg/Manifest b/media-libs/openjpeg/Manifest index 84f506695e58..2d49458ffb5b 100644 --- a/media-libs/openjpeg/Manifest +++ b/media-libs/openjpeg/Manifest @@ -2,5 +2,7 @@ DIST openjpeg-1.5.2.tar.gz 1385702 SHA256 15df7b194a5d8dba0052cd21c17a4dc761149a DIST openjpeg-2.1.1_p20160922.tar.gz 2004620 SHA256 85e609feaa1cab7ce4f2dd427b0623a2fcc792c02c575d2d556c173e58ce8f9d SHA512 e4e40297ab36188bf6d375648d4ca1d96946f30fb86bc6a0fc18f7e19c02a08b700007503acef25cdb086562a273c77d94391b715cc364fdba2c8480d3c5fd1d WHIRLPOOL cc229e50a622249b53b03378188a7a6dc441cc940ce7c1864d923465208b3f1806790ec175910ef83b66f409b0a1a24536116cec18b242479134b40e111f234d DIST openjpeg-2.1.2.tar.gz 1987071 SHA256 4ce77b6ef538ef090d9bde1d5eeff8b3069ab56c4906f083475517c2c023dfa7 SHA512 411067e33c8e4da9921d0281e932a4ac2af592cf822bfad828daea9e2b9c414859455bcec6d912ce76460ea462fa4cbd94a401333bda5716ec017d18b8e5942c WHIRLPOOL df84a9b0dc9d159f3f67b620e35dfe1dfdb0ad2d622afa543eae0372d9d184d07698e3d528699dc6f529a2d2116b01935459845322aaf1519e4714a4944b9481 DIST openjpeg-2.2.0.tar.gz 2847582 SHA256 6fddbce5a618e910e03ad00d66e7fcd09cc6ee307ce69932666d54c73b7c6e7b SHA512 20651c380bee582ab1950994c424cc00061ad852e9c5438fb32a9809e3f275571a4cc7e92589add0d91debf2394262e58f441c2dd918809fc1c602ed68396a3a WHIRLPOOL 2c8b6177ec0be738822c189a489a782fb18b67aa57e7e68ca861e32dee7431ee65eb150857b4541a88ad6d2c7bfb2fbf8511690fc6dafa3adf6b8f0104285614 +DIST openjpeg-2.3.0.tar.gz 2207329 SHA256 3dc787c1bb6023ba846c2a0d9b1f6e179f1cd255172bde9eb75b01f1e6c7d71a SHA512 0a9d427be4a820b1d759fca4b50e293721b45fe4885aa61ca1ae09e099f75ed93520448090c780d62f51076d575cc03618cd6d5181bdb6b34e4fc07b4cfdd568 WHIRLPOOL 1fa4c3fda1508190630f1a156631007c3ea0eb41240e6dfab946a7141396a25593731ff561b6893fc05e0f4f79655b31d2a0335f6b1f69fb87c492c711c4855d DIST openjpeg-data_20160921.tar.gz 401771303 SHA256 a483c0c81e82c9e8d2e41a550b70aa0e016cdfb13571b3caac596c147fa36e0d SHA512 58521c14f49c546b24a0c7b17ebdb3dfecf6ffdcc814b3c59a79a1325e5adf88047b2bd8a4ae608c5d106b584f08efc4e6c66f03254119763e01abee2da7d027 WHIRLPOOL c9a112887bea64b12f9bfdc0feb7d899a87689dcb002defd0582f9a8592e0e012380ec9b808771919147c3f5878425e76c27d2ff96dbbcc3698f6e94fa63f8c4 DIST openjpeg-data_20170809.tar.gz 497454555 SHA256 08ee5a1cd59ffca153b90830e93b3522811e90cceccdafefaa18cdd4718c5962 SHA512 7beb0cb944764b526ed7a011ba0c72768e22516950f337f1df713fa6949b1255e800933aebffde81c6ebeedd32050b7d5627112e44bf7d24cab75274c59d7d49 WHIRLPOOL e095ebca682391b5eaf5c95649656dd23002fe7dccad579864b304d760d4775d336f3cc1f986aedf6f31ca45569516266d6c81279f6a9c3fb54a2f1a505fbe62 +DIST openjpeg-data_20170814.tar.gz 497454197 SHA256 f690d693f794e6b80833626bce3dcf88e529d4cd89a96d32c38fa70e3f888855 SHA512 a13c941839f0d3f3a71b3f5b36d6c2ddb789e765526ebb6aed99150991bb717363e3ce40f335451a983d44a0b047538e0870d0fe5b37d6a002497eb99a403e24 WHIRLPOOL eb3c56a40ed444cff85b53431725ded7a3ca7153be2aa42433cc91d58d03ad270955a69329047d0a9c01289b5366fe3515a7843c167dd5e2bd114326f314d96c diff --git a/media-libs/openjpeg/openjpeg-2.3.0.ebuild b/media-libs/openjpeg/openjpeg-2.3.0.ebuild new file mode 100644 index 000000000000..9bf6d66e6ade --- /dev/null +++ b/media-libs/openjpeg/openjpeg-2.3.0.ebuild @@ -0,0 +1,135 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +inherit multilib cmake-multilib + +# Make sure that test data are not newer than release; +# otherwise we will see "Found-But-No-Test" test failures! +MY_TESTDATA_COMMIT="c07f38fae1e67adc288c2d6679df5d3652017fbe" + +DESCRIPTION="An open-source JPEG 2000 library" +HOMEPAGE="http://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_20170814.tar.gz )" + +LICENSE="BSD-2" +SLOT="2/7" # based on SONAME +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris" +IUSE="doc static-libs test" + +RDEPEND="media-libs/lcms:2= + media-libs/libpng:0= + media-libs/tiff:0= + sys-libs/zlib:=" +DEPEND="${RDEPEND} + doc? ( app-doc/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 + + default + + # Stop installing LICENSE file, and install CHANGES from DOCS instead: + sed -i -e '/install.*FILES.*DESTINATION.*OPENJPEG_INSTALL_DOC_DIR/d' CMakeLists.txt || die + + # Install doxygen docs to the right directory: + sed -i -e "s:DESTINATION\s*share/doc:\0/${PF}:" doc/CMakeLists.txt || die +} + +multilib_src_configure() { + local mycmakeargs=( + -DOPENJPEG_INSTALL_LIB_DIR="$(get_libdir)" + -DBUILD_TESTING="$(multilib_native_usex test)" + -DBUILD_DOC=$(multilib_native_usex doc ON OFF) + -DBUILD_CODEC=$(multilib_is_native_abi && echo ON || echo OFF) + ) + + cmake-utils_src_configure + + if use static-libs; then + mycmakeargs=( + -DOPENJPEG_INSTALL_LIB_DIR="$(get_libdir)" + -DBUILD_TESTING="$(usex test)" + -DBUILD_SHARED_LIBS=OFF + -DBUILD_CODEC="$(usex test)" + ) + BUILD_DIR=${BUILD_DIR}_static cmake-utils_src_configure + fi +} + +multilib_src_compile() { + cmake-utils_src_compile + + if use static-libs; then + BUILD_DIR=${BUILD_DIR}_static cmake-utils_src_compile + fi +} + +multilib_src_test() { + if ! multilib_is_native_abi ; then + elog "Cannot run tests for non-multilib abi." + return 0 + fi + + local myctestargs= + + pushd "${BUILD_DIR}" > /dev/null || die + [[ -e CTestTestfile.cmake ]] || die "Test suite not available! Check source!" + + [[ -n ${TEST_VERBOSE} ]] && myctestargs+=( --extra-verbose --output-on-failure ) + + echo ctest "${myctestargs[@]}" "$@" + if ctest "${myctestargs[@]}" "$@" ; then + einfo "Tests succeeded." + popd > /dev/null || die + return 0 + else + echo "" + einfo "Note: Upstream is maintaining a list of known test failures." + einfo "We will now compare our test results against this list and sort out any known failure." + + local KNOWN_FAILURES_LIST="${S}/tools/travis-ci/knownfailures-all.txt" + local FAILEDTEST_LOG="${BUILD_DIR}/Testing/Temporary/LastTestsFailed.log" + local FAILURES_LOG="${BUILD_DIR}/Testing/Temporary/failures.txt" + local FAILEDTEST= + local HAS_UNKNOWN_TEST_FAILURES=0 + if [[ -f "${KNOWN_FAILURES_LIST}" && -f "${FAILEDTEST_LOG}" ]]; then + # Logic copied from $S/tools/travis-ci/run.sh + + echo "" + + awk -F: '{ print $2 }' "${FAILEDTEST_LOG}" > "${FAILURES_LOG}" + while read FAILEDTEST; do + # Common errors + if grep -x "${FAILEDTEST}" "${S}/tools/travis-ci/knownfailures-all.txt" > /dev/null; then + ewarn "Test '${FAILEDTEST}' is known to fail, ignoring ..." + continue + fi + eerror "New/unknown test failure found: '${FAILEDTEST}'" + HAS_UNKNOWN_TEST_FAILURES=1 + done < "${FAILURES_LOG}" + + if [[ ${HAS_UNKNOWN_TEST_FAILURES} -ne 0 ]]; then + die "Test suite failed. New/unknown test failure(s) found!" + else + echo "" + einfo "Test suite passed. No new/unknown test failure(s) found!" + fi + + return 0 + fi + fi +} + +multilib_src_install() { + if use static-libs; then + BUILD_DIR=${BUILD_DIR}_static cmake-utils_src_install + fi + + cmake-utils_src_install +} |