[gentoo-commits] repo/gentoo:master commit in: media-libs/kvazaar/files/, media-libs/kvazaar/
commit: f0f3677537f204ec4473b3b4b37d30276b890271 Author: Andreas Sturmlechner gentoo org> AuthorDate: Thu Jun 27 17:02:27 2019 + Commit: Andreas Sturmlechner gentoo org> CommitDate: Thu Jun 27 17:18:04 2019 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f0f36775 media-libs/kvazaar: Drop old Package-Manager: Portage-2.3.67, Repoman-2.3.16 Signed-off-by: Andreas Sturmlechner gentoo.org> media-libs/kvazaar/Manifest | 1 - media-libs/kvazaar/files/gcc7.patch | 46 - media-libs/kvazaar/kvazaar-1.1.0.ebuild | 60 - media-libs/kvazaar/kvazaar-1.2.0.ebuild | 55 -- 4 files changed, 162 deletions(-) diff --git a/media-libs/kvazaar/Manifest b/media-libs/kvazaar/Manifest index a1c41dca370..2fa789b2afd 100644 --- a/media-libs/kvazaar/Manifest +++ b/media-libs/kvazaar/Manifest @@ -1,3 +1,2 @@ DIST greatest-1.2.1.tar.gz 19792 BLAKE2B e6abd20eebf3223311fcd62e341595318dd00f192cf4b62ef3f0443a3e10fee71f4283f836931fee52672f2b37398f86046ae97220c2b6c6045fec9f9bf5cda8 SHA512 c17162fa222c84fef7826ba5202aae573d516a71bc2c59c8991db2a76f7069ed53d00aaab1b792e0c7e4243fae38183764c2e7ae0a61faf2ff13e78b29ccc211 -DIST kvazaar-1.1.0.tar.gz 484601 BLAKE2B fc35fe5bbd12779d4e14b8cef6fbc6950f188ccffef567c77411bf32f80f2e355f235ad9df4762f8a615415778b322715d09d21a910a256d1bb2054bc13dbdb2 SHA512 72cee44e32c76c0a94acf33347457145d3f88d644fb4703588d0db6bff1c7064c9b623034efe4ba39219150767012544e4f45141b6a6183d41e4a29c6cb258b9 DIST kvazaar-1.2.0.tar.gz 486455 BLAKE2B e7b9ceee4e4edeb051128cfa798e59114cd9175b5ba8a4531c7e872327658c58d22ad21ce40b1b71c632e94cef96b78b77646048629683d24bf69107497f1acd SHA512 5a28c1b21e47d9f45e04ee40a253f478c4ce3c6c41134db8301e843ef0b5d620bce493eacf82ce1ddda88140aa4d2e9401612b63ff592fc2273cf532458d2bb4 diff --git a/media-libs/kvazaar/files/gcc7.patch b/media-libs/kvazaar/files/gcc7.patch deleted file mode 100644 index 12ff8ad00ff..000 --- a/media-libs/kvazaar/files/gcc7.patch +++ /dev/null @@ -1,46 +0,0 @@ -commit 47a9f0de049e77e866ea5bdd4bc7c795ea6dd641 -Author: Ari Lemmetti -Date: Tue Apr 11 12:57:22 2017 +0300 - -Modify and use FILL_ARRAY macro to prevent warning on GCC 7 - -Following warning was given and is false positive - -error: 'memset' used with length equal to number of elements without multiplication by element size [-Werror=memset-elt-size] - -diff --git a/src/global.h b/src/global.h -index bedcd49..5181674 100644 a/src/global.h -+++ b/src/global.h -@@ -219,7 +219,11 @@ typedef int16_t coeff_t; - // Fill a structure or a static array with val bytes. - #define FILL(var, val) memset(&(var), (val), sizeof(var)) - // Fill a number of elements in an array with val bytes. --#define FILL_ARRAY(ar, val, size) memset((ar), (val), (size) * sizeof(*(ar))) -+#define FILL_ARRAY(ar, val, size) \ -+{\ -+ void *temp_ptr = (void*)(ar);\ -+ memset((temp_ptr), (val), (size) * sizeof(*(ar)));\ -+} - - #define FREE_POINTER(pointer) { free((void*)pointer); pointer = NULL; } - #define MOVE_POINTER(dst_pointer,src_pointer) { dst_pointer = src_pointer; src_pointer = NULL; } -diff --git a/src/rdo.c b/src/rdo.c -index 52305fd..2579f28 100644 a/src/rdo.c -+++ b/src/rdo.c -@@ -558,10 +558,10 @@ void kvz_rdoq(encoder_state_t * const state, coeff_t *coef, coeff_t *dest_coeff, - // Explicitly tell the only possible numbers of elements to be zeroed. - // Hope the compiler is able to utilize this information. - switch (cg_num) { --case 1: memset(sig_coeffgroup_flag, 0, 1 * sizeof(sig_coeffgroup_flag[0])); break; --case 4: memset(sig_coeffgroup_flag, 0, 4 * sizeof(sig_coeffgroup_flag[0])); break; --case 16: memset(sig_coeffgroup_flag, 0, 16 * sizeof(sig_coeffgroup_flag[0])); break; --case 64: memset(sig_coeffgroup_flag, 0, 64 * sizeof(sig_coeffgroup_flag[0])); break; -+case 1: FILL_ARRAY(sig_coeffgroup_flag, 0, 1); break; -+case 4: FILL_ARRAY(sig_coeffgroup_flag, 0, 4); break; -+case 16: FILL_ARRAY(sig_coeffgroup_flag, 0, 16); break; -+case 64: FILL_ARRAY(sig_coeffgroup_flag, 0, 64); break; - default: assert(0 && "There should be 1, 4, 16 or 64 coefficient groups"); - } - diff --git a/media-libs/kvazaar/kvazaar-1.1.0.ebuild b/media-libs/kvazaar/kvazaar-1.1.0.ebuild deleted file mode 100644 index 88a19051ba6..000 --- a/media-libs/kvazaar/kvazaar-1.1.0.ebuild +++ /dev/null @@ -1,60 +0,0 @@ -# Copyright 1999-2018 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -EAPI=5 - -SCM="" - -GREATEST_PV="1.2.1" - -if [ "${PV#}" != "${PV}" ] ; then - SCM="git-r3" - EGIT_REPO_URI="https://github.com/ultravideo/kvazaar; -fi - -inherit eutils multilib autotools multilib-minimal toolchain-funcs ${SCM} - -DESCRIPTION="An open-source HEVC encoder" -HOMEPAGE="http://ultravideo.cs.tut.fi/ https://github.com/ultravideo/kvazaar; - -if [
[gentoo-commits] repo/gentoo:master commit in: media-libs/kvazaar/files/, media-libs/kvazaar/
commit: bb4c53415c23a7a2e70f97f0690afad9ea06bb8f Author: Alexis Ballier gentoo org> AuthorDate: Fri Jun 16 09:15:58 2017 + Commit: Alexis Ballier gentoo org> CommitDate: Fri Jun 16 09:36:29 2017 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bb4c5341 media-libs/kvazaar: backport upstream fix to build with gcc7. Package-Manager: Portage-2.3.6, Repoman-2.3.2 media-libs/kvazaar/files/gcc7.patch | 46 + media-libs/kvazaar/kvazaar-1.1.0.ebuild | 1 + 2 files changed, 47 insertions(+) diff --git a/media-libs/kvazaar/files/gcc7.patch b/media-libs/kvazaar/files/gcc7.patch new file mode 100644 index 000..12ff8ad00ff --- /dev/null +++ b/media-libs/kvazaar/files/gcc7.patch @@ -0,0 +1,46 @@ +commit 47a9f0de049e77e866ea5bdd4bc7c795ea6dd641 +Author: Ari Lemmetti+Date: Tue Apr 11 12:57:22 2017 +0300 + +Modify and use FILL_ARRAY macro to prevent warning on GCC 7 + +Following warning was given and is false positive + +error: 'memset' used with length equal to number of elements without multiplication by element size [-Werror=memset-elt-size] + +diff --git a/src/global.h b/src/global.h +index bedcd49..5181674 100644 +--- a/src/global.h b/src/global.h +@@ -219,7 +219,11 @@ typedef int16_t coeff_t; + // Fill a structure or a static array with val bytes. + #define FILL(var, val) memset(&(var), (val), sizeof(var)) + // Fill a number of elements in an array with val bytes. +-#define FILL_ARRAY(ar, val, size) memset((ar), (val), (size) * sizeof(*(ar))) ++#define FILL_ARRAY(ar, val, size) \ ++{\ ++ void *temp_ptr = (void*)(ar);\ ++ memset((temp_ptr), (val), (size) * sizeof(*(ar)));\ ++} + + #define FREE_POINTER(pointer) { free((void*)pointer); pointer = NULL; } + #define MOVE_POINTER(dst_pointer,src_pointer) { dst_pointer = src_pointer; src_pointer = NULL; } +diff --git a/src/rdo.c b/src/rdo.c +index 52305fd..2579f28 100644 +--- a/src/rdo.c b/src/rdo.c +@@ -558,10 +558,10 @@ void kvz_rdoq(encoder_state_t * const state, coeff_t *coef, coeff_t *dest_coeff, + // Explicitly tell the only possible numbers of elements to be zeroed. + // Hope the compiler is able to utilize this information. + switch (cg_num) { +-case 1: memset(sig_coeffgroup_flag, 0, 1 * sizeof(sig_coeffgroup_flag[0])); break; +-case 4: memset(sig_coeffgroup_flag, 0, 4 * sizeof(sig_coeffgroup_flag[0])); break; +-case 16: memset(sig_coeffgroup_flag, 0, 16 * sizeof(sig_coeffgroup_flag[0])); break; +-case 64: memset(sig_coeffgroup_flag, 0, 64 * sizeof(sig_coeffgroup_flag[0])); break; ++case 1: FILL_ARRAY(sig_coeffgroup_flag, 0, 1); break; ++case 4: FILL_ARRAY(sig_coeffgroup_flag, 0, 4); break; ++case 16: FILL_ARRAY(sig_coeffgroup_flag, 0, 16); break; ++case 64: FILL_ARRAY(sig_coeffgroup_flag, 0, 64); break; + default: assert(0 && "There should be 1, 4, 16 or 64 coefficient groups"); + } + diff --git a/media-libs/kvazaar/kvazaar-1.1.0.ebuild b/media-libs/kvazaar/kvazaar-1.1.0.ebuild index 750b6feced9..959e9d94b3d 100644 --- a/media-libs/kvazaar/kvazaar-1.1.0.ebuild +++ b/media-libs/kvazaar/kvazaar-1.1.0.ebuild @@ -38,6 +38,7 @@ DEPEND="${DEPEND} abi_x86_64? ( ${ASM_DEP} )" src_prepare() { + epatch "${FILESDIR}/gcc7.patch" eautoreconf if use test && [ "${PV#}" = "${PV}" ]; then # https://bugs.gentoo.org/show_bug.cgi?id=595932
[gentoo-commits] repo/gentoo:master commit in: media-libs/kvazaar/files/, media-libs/kvazaar/
commit: 0ef1e5f072a695444bdfe65e8bb1e59291ca0288 Author: Alexis Ballier gentoo org> AuthorDate: Fri Jun 16 09:16:38 2017 + Commit: Alexis Ballier gentoo org> CommitDate: Fri Jun 16 09:36:29 2017 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0ef1e5f0 media-libs/kvazaar: remove old Package-Manager: Portage-2.3.6, Repoman-2.3.2 media-libs/kvazaar/Manifest | 1 - media-libs/kvazaar/files/ppc.patch | 19 media-libs/kvazaar/kvazaar-0.8.3.ebuild | 51 - 3 files changed, 71 deletions(-) diff --git a/media-libs/kvazaar/Manifest b/media-libs/kvazaar/Manifest index 97f0d7f0d2c..948a9e8db7f 100644 --- a/media-libs/kvazaar/Manifest +++ b/media-libs/kvazaar/Manifest @@ -1,4 +1,3 @@ DIST greatest-1.2.1.tar.gz 19792 SHA256 e3c1211ec5dfea61092833bca56c6a14620ac23aa0d53940d99943587cbe1677 SHA512 c17162fa222c84fef7826ba5202aae573d516a71bc2c59c8991db2a76f7069ed53d00aaab1b792e0c7e4243fae38183764c2e7ae0a61faf2ff13e78b29ccc211 WHIRLPOOL b4e01659539e02224d5396609ba73715eca1391e9da165ac22cf28f25c13cf89a9c4059cfe3f88e1d88d06e35153f7d1d3e012433b9b4f4deaa2a464e6d6b7ca -DIST kvazaar-0.8.3.tar.gz 429852 SHA256 a5cebc313bc2edcf631684e67c33227e56d803bfbc940cf8c2f3906b4f543a12 SHA512 7de2c311c75b77d1f9a95f1de79212560b86bd6f8d7ae743240ff33cec52ecb2837be7984f12fe617560445838381ada245196bf1bf67eeb3861f025998fdf60 WHIRLPOOL 1fdcf9835aca8a4d4261c184e957abcc4fa21df5e3d0520a63e95dfc800d086dc6ae5f70fc4110db232a013f84205230f1c5e2043f57db21cc100b33ef504d05 DIST kvazaar-1.0.0.tar.gz 473495 SHA256 40eb7b4b23897299e99050f0c011e9380cf898b25615dd143f018b278b972a46 SHA512 94939e9560e82543c0f3a8de6f45e228156544b56cc3ce813385e24d52f5a7b65950f6f752344930951440255ca96c06e93e87ff9e721d7c63d82a7a5714c340 WHIRLPOOL ed0c6332c5a1efa88b569845f2cb5436881c3866e381369d770a3393d61e37605ad5c114dcbdae424035f451ceea5ab1ee0787769c9bf44fc44bbd2815e87ed7 DIST kvazaar-1.1.0.tar.gz 484601 SHA256 8e382738a51004bfcfca4c832e8b41fe6a17f889f3c39151dc1c1a37261a3a6d SHA512 72cee44e32c76c0a94acf33347457145d3f88d644fb4703588d0db6bff1c7064c9b623034efe4ba39219150767012544e4f45141b6a6183d41e4a29c6cb258b9 WHIRLPOOL c37df11389c237af2c31cfcdbb6244c7e87f4d95f5550ee46e5f27c6eca39dd0328aaa81fbef3d555fc869072ac2226efb71566b7ca7ddda11bab3508d1f2caf diff --git a/media-libs/kvazaar/files/ppc.patch b/media-libs/kvazaar/files/ppc.patch deleted file mode 100644 index 9ee9f70e49f..000 --- a/media-libs/kvazaar/files/ppc.patch +++ /dev/null @@ -1,19 +0,0 @@ -commit 99e37ec23532a247b9e306ef87e9879385c625d8 -Author: Ari Lemmetti-Date: Sat Jan 30 19:33:09 2016 +0200 - -Update old pixel type to the current one - -diff --git a/src/strategies/altivec/picture-altivec.c b/src/strategies/altivec/picture-altivec.c -index 7c9d1fb..28e86e8 100644 a/src/strategies/altivec/picture-altivec.c -+++ b/src/strategies/altivec/picture-altivec.c -@@ -28,7 +28,7 @@ - #include - - --static unsigned reg_sad_altivec(const pixel * const data1, const pixel * const data2, -+static unsigned reg_sad_altivec(const kvz_pixel * const data1, const kvz_pixel * const data2, - const int width, const int height, const unsigned stride1, const unsigned stride2) - { - vector unsigned int vsad = {0,0,0,0}, vzero = {0,0,0,0}; diff --git a/media-libs/kvazaar/kvazaar-0.8.3.ebuild b/media-libs/kvazaar/kvazaar-0.8.3.ebuild deleted file mode 100644 index 53dc8fab282..000 --- a/media-libs/kvazaar/kvazaar-0.8.3.ebuild +++ /dev/null @@ -1,51 +0,0 @@ -# Copyright 1999-2016 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -EAPI=5 - -SCM="" - -if [ "${PV#}" != "${PV}" ] ; then - SCM="git-r3" - EGIT_REPO_URI="https://github.com/ultravideo/kvazaar; -fi - -inherit eutils multilib autotools multilib-minimal toolchain-funcs ${SCM} - -DESCRIPTION="An open-source HEVC encoder" -HOMEPAGE="http://ultravideo.cs.tut.fi/ https://github.com/ultravideo/kvazaar; - -if [ "${PV#}" = "${PV}" ] ; then - SRC_URI="https://github.com/ultravideo/kvazaar/archive/v${PV}.tar.gz -> ${P}.tar.gz" - KEYWORDS="~amd64 ~ppc ~x86" -fi - -LICENSE="LGPL-2.1" -# subslot = libkvazaar major -SLOT="0/3" -IUSE="cpu_flags_x86_avx2 static-libs" - -DEPEND="" -RDEPEND="${DEPEND}" - -ASM_DEP=">=dev-lang/yasm-1.2.0" -DEPEND="${DEPEND} - abi_x86_32? ( ${ASM_DEP} ) - abi_x86_64? ( ${ASM_DEP} )" - -src_prepare() { - epatch "${FILESDIR}/ppc.patch" - eautoreconf -} - -multilib_src_configure() { - ECONF_SOURCE="${S}" \ - econf \ - --docdir "/usr/share/doc/${PF}" \ - $(use_enable static-libs static) \ - $(use_enable cpu_flags_x86_avx2 asm) -} - -multilib_src_install_all() { - find "${ED}" -name '*.la' -delete -}
[gentoo-commits] repo/gentoo:master commit in: media-libs/kvazaar/files/, media-libs/kvazaar/
commit: 62d6aa651cc9cba85937b117a0d8a00e24cf0f22 Author: Alexis Ballier gentoo org> AuthorDate: Fri Oct 14 16:20:12 2016 + Commit: Alexis Ballier gentoo org> CommitDate: Fri Oct 14 16:20:18 2016 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=62d6aa65 media-libs/kvazaar: Bump to 1.0.0. Fix tests by downloading greatest, bug #595932 Package-Manager: portage-2.3.2 media-libs/kvazaar/Manifest | 2 ++ media-libs/kvazaar/files/multilib.patch | 15 +++ .../{kvazaar-.ebuild => kvazaar-1.0.0.ebuild} | 19 ++- media-libs/kvazaar/kvazaar-.ebuild| 17 - 4 files changed, 43 insertions(+), 10 deletions(-) diff --git a/media-libs/kvazaar/Manifest b/media-libs/kvazaar/Manifest index 10fb437..63b16fc 100644 --- a/media-libs/kvazaar/Manifest +++ b/media-libs/kvazaar/Manifest @@ -1 +1,3 @@ +DIST greatest-1.2.1.tar.gz 19792 SHA256 e3c1211ec5dfea61092833bca56c6a14620ac23aa0d53940d99943587cbe1677 SHA512 c17162fa222c84fef7826ba5202aae573d516a71bc2c59c8991db2a76f7069ed53d00aaab1b792e0c7e4243fae38183764c2e7ae0a61faf2ff13e78b29ccc211 WHIRLPOOL b4e01659539e02224d5396609ba73715eca1391e9da165ac22cf28f25c13cf89a9c4059cfe3f88e1d88d06e35153f7d1d3e012433b9b4f4deaa2a464e6d6b7ca DIST kvazaar-0.8.3.tar.gz 429852 SHA256 a5cebc313bc2edcf631684e67c33227e56d803bfbc940cf8c2f3906b4f543a12 SHA512 7de2c311c75b77d1f9a95f1de79212560b86bd6f8d7ae743240ff33cec52ecb2837be7984f12fe617560445838381ada245196bf1bf67eeb3861f025998fdf60 WHIRLPOOL 1fdcf9835aca8a4d4261c184e957abcc4fa21df5e3d0520a63e95dfc800d086dc6ae5f70fc4110db232a013f84205230f1c5e2043f57db21cc100b33ef504d05 +DIST kvazaar-1.0.0.tar.gz 473495 SHA256 40eb7b4b23897299e99050f0c011e9380cf898b25615dd143f018b278b972a46 SHA512 94939e9560e82543c0f3a8de6f45e228156544b56cc3ce813385e24d52f5a7b65950f6f752344930951440255ca96c06e93e87ff9e721d7c63d82a7a5714c340 WHIRLPOOL ed0c6332c5a1efa88b569845f2cb5436881c3866e381369d770a3393d61e37605ad5c114dcbdae424035f451ceea5ab1ee0787769c9bf44fc44bbd2815e87ed7 diff --git a/media-libs/kvazaar/files/multilib.patch b/media-libs/kvazaar/files/multilib.patch new file mode 100644 index ..fb0711d --- /dev/null +++ b/media-libs/kvazaar/files/multilib.patch @@ -0,0 +1,15 @@ +https://github.com/ultravideo/kvazaar/pull/141 + +Index: kvazaar-1.0.0/src/global.h +=== +--- kvazaar-1.0.0.orig/src/global.h kvazaar-1.0.0/src/global.h +@@ -253,7 +253,7 @@ typedef enum { COLOR_Y = 0, COLOR_U, COL + + + // Hardware data (abstraction of defines). Extend for other compilers +-#if defined(_M_IX86) || defined(__i586__) || defined(__i686__) || defined(_M_X64) || defined(_M_AMD64) || defined(__amd64__) || defined(__x86_64__) ++#if defined(_M_IX86) || defined(__i386__) || defined(__i486__) || defined(__i586__) || defined(__i686__) || defined(_M_X64) || defined(_M_AMD64) || defined(__amd64__) || defined(__x86_64__) + # define COMPILE_INTEL 1 + #else + # define COMPILE_INTEL 0 diff --git a/media-libs/kvazaar/kvazaar-.ebuild b/media-libs/kvazaar/kvazaar-1.0.0.ebuild similarity index 62% copy from media-libs/kvazaar/kvazaar-.ebuild copy to media-libs/kvazaar/kvazaar-1.0.0.ebuild index 4d22819..ef87a92 100644 --- a/media-libs/kvazaar/kvazaar-.ebuild +++ b/media-libs/kvazaar/kvazaar-1.0.0.ebuild @@ -6,25 +6,29 @@ EAPI=5 SCM="" +GREATEST_PV="1.2.1" + if [ "${PV#}" != "${PV}" ] ; then SCM="git-r3" EGIT_REPO_URI="https://github.com/ultravideo/kvazaar; fi -inherit multilib autotools multilib-minimal toolchain-funcs ${SCM} +inherit eutils multilib autotools multilib-minimal toolchain-funcs ${SCM} DESCRIPTION="An open-source HEVC encoder" HOMEPAGE="http://ultravideo.cs.tut.fi/ https://github.com/ultravideo/kvazaar; if [ "${PV#}" = "${PV}" ] ; then - SRC_URI="https://github.com/ultravideo/kvazaar/archive/v${PV}.tar.gz -> ${P}.tar.gz" + SRC_URI="https://github.com/ultravideo/kvazaar/archive/v${PV}.tar.gz -> ${P}.tar.gz + test? ( https://github.com/silentbicycle/greatest/archive/v${GREATEST_PV}.tar.gz -> greatest-${GREATEST_PV}.tar.gz )" KEYWORDS="~amd64 ~ppc" fi LICENSE="LGPL-2.1" # subslot = libkvazaar major SLOT="0/3" -IUSE="cpu_flags_x86_avx2 static-libs" +IUSE="static-libs test" +REQUIRED_USE="test? ( static-libs )" DEPEND="" RDEPEND="${DEPEND}" @@ -35,15 +39,20 @@ DEPEND="${DEPEND} abi_x86_64? ( ${ASM_DEP} )" src_prepare() { + epatch "${FILESDIR}/multilib.patch" eautoreconf + if use test ; then + # https://bugs.gentoo.org/show_bug.cgi?id=595932 + rmdir "${S}/greatest" || die + mv "${WORKDIR}/greatest-${GREATEST_PV}" "${S}/greatest" || die + fi } multilib_src_configure() { ECONF_SOURCE="${S}" \ econf \ --docdir