Gentoo Archives: gentoo-commits

From: Andreas Sturmlechner <asturm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-libs/qimageblitz/, media-libs/qimageblitz/files/
Date: Sat, 06 May 2017 21:33:28
Message-Id: 1494105659.64e49bf02c10178003bd87bd27ad303bd3e118da.asturm@gentoo
1 commit: 64e49bf02c10178003bd87bd27ad303bd3e118da
2 Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
3 AuthorDate: Tue Mar 14 23:52:04 2017 +0000
4 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
5 CommitDate: Sat May 6 21:20:59 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=64e49bf0
7
8 media-libs/qimageblitz: Add Qt5-based snapshot
9
10 Package-Manager: Portage-2.3.3, Repoman-2.3.1
11
12 media-libs/qimageblitz/Manifest | 1 +
13 .../files/qimageblitz-0.0.6_p20131029-gcc.patch | 16 ++++++++
14 .../qimageblitz/qimageblitz-0.0.6_p20131029.ebuild | 43 ++++++++++++++++++++++
15 3 files changed, 60 insertions(+)
16
17 diff --git a/media-libs/qimageblitz/Manifest b/media-libs/qimageblitz/Manifest
18 index c4e3a063d5b..8b2de06d2e2 100644
19 --- a/media-libs/qimageblitz/Manifest
20 +++ b/media-libs/qimageblitz/Manifest
21 @@ -1 +1,2 @@
22 DIST qimageblitz-0.0.6.tar.bz2 57617 SHA256 9f102269dec50641440e23a449df215a0db9efef9a3969939d618c5e78a5010f SHA512 dbd506c01622824efdec69640eb95e737d7848fa15d33351084a6499ca2321d7bc08e080d1e443f8ab9015cd2967c10d9b5aa2f3c6eaa7558153821c46133af9 WHIRLPOOL e13f5c11e2094296af558de4e9054d3c5a162be5e40a0418c5a505e222fe749c8dac319defc25bc2a2b6a5238e5d1fefb966fd64198d43b6b8af99d608362b45
23 +DIST qimageblitz-0.0.6_p20131029.tar.xz 43428 SHA256 256e7b4d7cfb6f061c6957ebdc6066e3a7fbf1d62b9ced35dc9c5467e5551622 SHA512 2a32105aed52ea33fbd46702a2b7cdd9671efef9bb52209ede534abc95ac40dd9ae2bd22cf09b30a309337653c4a754c50ef3fe4ad0aad7d4ffd0b5994a85981 WHIRLPOOL fd1593c7f77a334be4189bc6c3bdf365dd54363023318f3e25b0dd1aa53231b8d915582352ca29da35dd8a0d30958d120dd67cd4aaf2c81af79eb0e8388776cd
24
25 diff --git a/media-libs/qimageblitz/files/qimageblitz-0.0.6_p20131029-gcc.patch b/media-libs/qimageblitz/files/qimageblitz-0.0.6_p20131029-gcc.patch
26 new file mode 100644
27 index 00000000000..922a2629835
28 --- /dev/null
29 +++ b/media-libs/qimageblitz/files/qimageblitz-0.0.6_p20131029-gcc.patch
30 @@ -0,0 +1,16 @@
31 +--- a/blitz/CMakeLists.txt
32 ++++ b/blitz/CMakeLists.txt
33 +@@ -31,12 +31,8 @@
34 +
35 + if(HAVE_MMX)
36 + if(NOT APPLE AND NOT WIN32)
37 ++ enable_language(ASM)
38 + set( blitz_LIB_SRCS ${blitz_LIB_SRCS} asm_scale.S )
39 +- add_custom_command(OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/asm_scale.o
40 +- COMMAND ${CMAKE_C_COMPILER} -c ${CMAKE_CURRENT_SOURCE_DIR}/asm_scale.S
41 +- DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/asm_scale.S )
42 +- set( blitz_LIB_EXTRA_SRCS ${CMAKE_CURRENT_BINARY_DIR}/asm_scale.o )
43 +- set(HAVE_EXTERNAL_ASM TRUE)
44 + endif(NOT APPLE AND NOT WIN32)
45 + endif(HAVE_MMX)
46 + configure_file (config-processor.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config-processor.h )
47
48 diff --git a/media-libs/qimageblitz/qimageblitz-0.0.6_p20131029.ebuild b/media-libs/qimageblitz/qimageblitz-0.0.6_p20131029.ebuild
49 new file mode 100644
50 index 00000000000..edeaa2ce759
51 --- /dev/null
52 +++ b/media-libs/qimageblitz/qimageblitz-0.0.6_p20131029.ebuild
53 @@ -0,0 +1,43 @@
54 +# Copyright 1999-2017 Gentoo Foundation
55 +# Distributed under the terms of the GNU General Public License v2
56 +
57 +EAPI=6
58 +
59 +inherit cmake-utils
60 +
61 +DESCRIPTION="Graphical effect and filter library by KDE"
62 +HOMEPAGE="https://websvn.kde.org/trunk/kdesupport/qimageblitz/"
63 +SRC_URI="http://dev.gentoo.org/~asturm/distfiles/${P}.tar.xz"
64 +
65 +LICENSE="GPL-2 LGPL-2"
66 +KEYWORDS="~amd64 ~arm ~hppa ~ppc ~ppc64 ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~x86-macos ~x86-solaris"
67 +SLOT="0"
68 +IUSE="altivec cpu_flags_x86_3dnow cpu_flags_x86_mmx cpu_flags_x86_sse cpu_flags_x86_sse2 debug qt5"
69 +
70 +DEPEND="
71 + qt5? (
72 + dev-qt/qtcore:5
73 + dev-qt/qtgui:5
74 + dev-qt/qtwidgets:5
75 + )
76 + !qt5? (
77 + dev-qt/qtcore:4
78 + dev-qt/qtgui:4
79 + )
80 +"
81 +RDEPEND="${DEPEND}"
82 +
83 +PATCHES=( "${FILESDIR}/${P}-gcc.patch" )
84 +
85 +src_configure() {
86 + local mycmakeargs=(
87 + -DQT4_BUILD=$(usex !qt5)
88 + -DHAVE_3DNOW=$(usex cpu_flags_x86_3dnow)
89 + -DHAVE_MMX=$(usex cpu_flags_x86_mmx)
90 + -DHAVE_SSE=$(usex cpu_flags_x86_sse)
91 + -DHAVE_SSE2=$(usex cpu_flags_x86_sse2)
92 + )
93 + use ppc && mycmakeargs+=( -DHAVE_ALTIVEC=$(usex altivec) )
94 +
95 + cmake-utils_src_configure
96 +}