diff options
author | Thomas Deutschmann <whissi@gentoo.org> | 2017-08-10 17:28:06 +0200 |
---|---|---|
committer | Thomas Deutschmann <whissi@gentoo.org> | 2017-08-10 17:28:25 +0200 |
commit | d9be9d430ee9bf0e135942ad274edf99f5aaf703 (patch) | |
tree | 724d2fd18e184fc9e23a267d7fc932b1e264da3d /media-libs/openjpeg | |
parent | package.mask: Remove dev-db/postgresql-9.1 mask (diff) | |
download | gentoo-d9be9d430ee9bf0e135942ad274edf99f5aaf703.tar.gz gentoo-d9be9d430ee9bf0e135942ad274edf99f5aaf703.tar.bz2 gentoo-d9be9d430ee9bf0e135942ad274edf99f5aaf703.zip |
media-libs/openjpeg: Bump to v2.2.0
Package-Manager: Portage-2.3.5, Repoman-2.3.2
Diffstat (limited to 'media-libs/openjpeg')
-rw-r--r-- | media-libs/openjpeg/Manifest | 2 | ||||
-rw-r--r-- | media-libs/openjpeg/openjpeg-2.2.0.ebuild | 130 |
2 files changed, 132 insertions, 0 deletions
diff --git a/media-libs/openjpeg/Manifest b/media-libs/openjpeg/Manifest index e9bff229b080..84f506695e58 100644 --- a/media-libs/openjpeg/Manifest +++ b/media-libs/openjpeg/Manifest @@ -1,4 +1,6 @@ DIST openjpeg-1.5.2.tar.gz 1385702 SHA256 15df7b194a5d8dba0052cd21c17a4dc761149a770a907d73fffb972078c28a87 SHA512 b945cf4f8b5e3227a0c07120c94b0ed5bf30c901de73059ee1d47975f46744fb62bbe84cdb2917c6431128f400020874eb07160af870b5448ced897998b08862 WHIRLPOOL 4ca974b411baa1fad7821b3ea88ad5c6a39643098af32bd8e92f66ccaa534d36ef15f55711eba489e91254f667d5f917febdb09539ac9698709c00bf680d45fe 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-data_20160921.tar.gz 401771303 SHA256 a483c0c81e82c9e8d2e41a550b70aa0e016cdfb13571b3caac596c147fa36e0d SHA512 58521c14f49c546b24a0c7b17ebdb3dfecf6ffdcc814b3c59a79a1325e5adf88047b2bd8a4ae608c5d106b584f08efc4e6c66f03254119763e01abee2da7d027 WHIRLPOOL c9a112887bea64b12f9bfdc0feb7d899a87689dcb002defd0582f9a8592e0e012380ec9b808771919147c3f5878425e76c27d2ff96dbbcc3698f6e94fa63f8c4 +DIST openjpeg-data_20170809.tar.gz 497454555 SHA256 08ee5a1cd59ffca153b90830e93b3522811e90cceccdafefaa18cdd4718c5962 SHA512 7beb0cb944764b526ed7a011ba0c72768e22516950f337f1df713fa6949b1255e800933aebffde81c6ebeedd32050b7d5627112e44bf7d24cab75274c59d7d49 WHIRLPOOL e095ebca682391b5eaf5c95649656dd23002fe7dccad579864b304d760d4775d336f3cc1f986aedf6f31ca45569516266d6c81279f6a9c3fb54a2f1a505fbe62 diff --git a/media-libs/openjpeg/openjpeg-2.2.0.ebuild b/media-libs/openjpeg/openjpeg-2.2.0.ebuild new file mode 100644 index 000000000000..04f14a31d3d7 --- /dev/null +++ b/media-libs/openjpeg/openjpeg-2.2.0.ebuild @@ -0,0 +1,130 @@ +# 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="40f427cb5e8d6b186fa497618532656331d09d0c" + +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_20170809.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="$(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() { + 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. Now 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 +} |