1 |
commit: 21e8d862edc7aa56fac82fae29e846eab8784178 |
2 |
Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Aug 14 22:32:23 2020 +0000 |
4 |
Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Aug 16 15:51:47 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/kde-sunset.git/commit/?id=21e8d862 |
7 |
|
8 |
media-libs/qimageblitz: Import from Gentoo ebuild repo before last-rites |
9 |
|
10 |
Required by kde-apps/okular. |
11 |
|
12 |
Package-Manager: Portage-3.0.2, Repoman-2.3.23 |
13 |
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org> |
14 |
|
15 |
.../files/qimageblitz-0.0.6_p20131029-gcc.patch | 16 ++++++++ |
16 |
media-libs/qimageblitz/metadata.xml | 5 +++ |
17 |
.../qimageblitz/qimageblitz-0.0.6_p20131029.ebuild | 43 ++++++++++++++++++++++ |
18 |
3 files changed, 64 insertions(+) |
19 |
|
20 |
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 |
21 |
new file mode 100644 |
22 |
index 00000000..922a2629 |
23 |
--- /dev/null |
24 |
+++ b/media-libs/qimageblitz/files/qimageblitz-0.0.6_p20131029-gcc.patch |
25 |
@@ -0,0 +1,16 @@ |
26 |
+--- a/blitz/CMakeLists.txt |
27 |
++++ b/blitz/CMakeLists.txt |
28 |
+@@ -31,12 +31,8 @@ |
29 |
+ |
30 |
+ if(HAVE_MMX) |
31 |
+ if(NOT APPLE AND NOT WIN32) |
32 |
++ enable_language(ASM) |
33 |
+ set( blitz_LIB_SRCS ${blitz_LIB_SRCS} asm_scale.S ) |
34 |
+- add_custom_command(OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/asm_scale.o |
35 |
+- COMMAND ${CMAKE_C_COMPILER} -c ${CMAKE_CURRENT_SOURCE_DIR}/asm_scale.S |
36 |
+- DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/asm_scale.S ) |
37 |
+- set( blitz_LIB_EXTRA_SRCS ${CMAKE_CURRENT_BINARY_DIR}/asm_scale.o ) |
38 |
+- set(HAVE_EXTERNAL_ASM TRUE) |
39 |
+ endif(NOT APPLE AND NOT WIN32) |
40 |
+ endif(HAVE_MMX) |
41 |
+ configure_file (config-processor.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config-processor.h ) |
42 |
|
43 |
diff --git a/media-libs/qimageblitz/metadata.xml b/media-libs/qimageblitz/metadata.xml |
44 |
new file mode 100644 |
45 |
index 00000000..7a38bb90 |
46 |
--- /dev/null |
47 |
+++ b/media-libs/qimageblitz/metadata.xml |
48 |
@@ -0,0 +1,5 @@ |
49 |
+<?xml version="1.0" encoding="UTF-8"?> |
50 |
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
51 |
+<pkgmetadata> |
52 |
+ <!-- maintainer-needed --> |
53 |
+</pkgmetadata> |
54 |
|
55 |
diff --git a/media-libs/qimageblitz/qimageblitz-0.0.6_p20131029.ebuild b/media-libs/qimageblitz/qimageblitz-0.0.6_p20131029.ebuild |
56 |
new file mode 100644 |
57 |
index 00000000..96e5ffaa |
58 |
--- /dev/null |
59 |
+++ b/media-libs/qimageblitz/qimageblitz-0.0.6_p20131029.ebuild |
60 |
@@ -0,0 +1,43 @@ |
61 |
+# Copyright 1999-2020 Gentoo Authors |
62 |
+# Distributed under the terms of the GNU General Public License v2 |
63 |
+ |
64 |
+EAPI=7 |
65 |
+ |
66 |
+inherit cmake-utils |
67 |
+ |
68 |
+DESCRIPTION="Graphical effect and filter library by KDE" |
69 |
+HOMEPAGE="https://websvn.kde.org/trunk/kdesupport/qimageblitz/" |
70 |
+SRC_URI="http://dev.gentoo.org/~asturm/distfiles/${P}.tar.xz" |
71 |
+ |
72 |
+LICENSE="GPL-2 LGPL-2" |
73 |
+KEYWORDS="~amd64 ~arm ~hppa ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux ~x86-macos ~x86-solaris" |
74 |
+SLOT="0" |
75 |
+IUSE="altivec cpu_flags_x86_3dnow cpu_flags_x86_mmx cpu_flags_x86_sse cpu_flags_x86_sse2 debug qt5" |
76 |
+ |
77 |
+DEPEND=" |
78 |
+ qt5? ( |
79 |
+ dev-qt/qtcore:5 |
80 |
+ dev-qt/qtgui:5 |
81 |
+ dev-qt/qtwidgets:5 |
82 |
+ ) |
83 |
+ !qt5? ( |
84 |
+ dev-qt/qtcore:4 |
85 |
+ dev-qt/qtgui:4 |
86 |
+ ) |
87 |
+" |
88 |
+RDEPEND="${DEPEND}" |
89 |
+ |
90 |
+PATCHES=( "${FILESDIR}/${P}-gcc.patch" ) |
91 |
+ |
92 |
+src_configure() { |
93 |
+ local mycmakeargs=( |
94 |
+ -DQT4_BUILD=$(usex !qt5) |
95 |
+ -DHAVE_3DNOW=$(usex cpu_flags_x86_3dnow) |
96 |
+ -DHAVE_MMX=$(usex cpu_flags_x86_mmx) |
97 |
+ -DHAVE_SSE=$(usex cpu_flags_x86_sse) |
98 |
+ -DHAVE_SSE2=$(usex cpu_flags_x86_sse2) |
99 |
+ ) |
100 |
+ use ppc && mycmakeargs+=( -DHAVE_ALTIVEC=$(usex altivec) ) |
101 |
+ |
102 |
+ cmake-utils_src_configure |
103 |
+} |