1 |
commit: f4bab0b01a536d4897269aed19f88eb238606b75 |
2 |
Author: Bernard Cafarelli <voyageur <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Jun 2 17:31:42 2017 +0000 |
4 |
Commit: Bernard Cafarelli <voyageur <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Jun 2 17:33:42 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f4bab0b0 |
7 |
|
8 |
x11-wm/windowmaker: fix build with imagemagick-7, bug #619588 |
9 |
|
10 |
Sync latest changes in live ebuild |
11 |
|
12 |
Package-Manager: Portage-2.3.6, Repoman-2.3.2 |
13 |
|
14 |
.../files/windowmaker-0.95.8-imagemagick7.patch | 35 ++++++++++++++++++++++ |
15 |
...er-9999.ebuild => windowmaker-0.95.8-r1.ebuild} | 30 +++++++++---------- |
16 |
x11-wm/windowmaker/windowmaker-9999.ebuild | 14 +++++---- |
17 |
3 files changed, 58 insertions(+), 21 deletions(-) |
18 |
|
19 |
diff --git a/x11-wm/windowmaker/files/windowmaker-0.95.8-imagemagick7.patch b/x11-wm/windowmaker/files/windowmaker-0.95.8-imagemagick7.patch |
20 |
new file mode 100644 |
21 |
index 00000000000..b4cccab5a71 |
22 |
--- /dev/null |
23 |
+++ b/x11-wm/windowmaker/files/windowmaker-0.95.8-imagemagick7.patch |
24 |
@@ -0,0 +1,35 @@ |
25 |
+imagemagick 7.0 now uses MagickWand/ |
26 |
+--- |
27 |
+ m4/wm_imgfmt_check.m4 | 2 +- |
28 |
+ wrlib/load_magick.c | 2 +- |
29 |
+ 2 files changed, 2 insertions(+), 2 deletions(-) |
30 |
+ |
31 |
+diff --git a/m4/wm_imgfmt_check.m4 b/m4/wm_imgfmt_check.m4 |
32 |
+index 5dd9ec7f..14e52bb3 100644 |
33 |
+--- a/m4/wm_imgfmt_check.m4 |
34 |
++++ b/m4/wm_imgfmt_check.m4 |
35 |
+@@ -312,7 +312,7 @@ AS_IF([test "x$enable_magick" = "xno"], |
36 |
+ dnl |
37 |
+ dnl The library was found, check if header is available and compiles |
38 |
+ wm_save_CFLAGS="$CFLAGS" |
39 |
+- AS_IF([wm_fn_lib_try_compile "wand/magick_wand.h" "MagickWand *wand;" "wand = NewMagickWand()" "$wm_cv_libchk_magick_cflags"], |
40 |
++ AS_IF([wm_fn_lib_try_compile "MagickWand/MagickWand.h" "MagickWand *wand;" "wand = NewMagickWand()" "$wm_cv_libchk_magick_cflags"], |
41 |
+ [wm_cv_libchk_magick="$wm_cv_libchk_magick_cflags % $wm_cv_libchk_magick_libs"], |
42 |
+ [AC_MSG_ERROR([found MagickWand library but could not compile its header])]) |
43 |
+ CFLAGS="$wm_save_CFLAGS"])dnl |
44 |
+diff --git a/wrlib/load_magick.c b/wrlib/load_magick.c |
45 |
+index 3e809ba2..1edbebc3 100644 |
46 |
+--- a/wrlib/load_magick.c |
47 |
++++ b/wrlib/load_magick.c |
48 |
+@@ -22,7 +22,7 @@ |
49 |
+ |
50 |
+ #include "config.h" |
51 |
+ |
52 |
+-#include <wand/MagickWand.h> |
53 |
++#include <MagickWand/MagickWand.h> |
54 |
+ |
55 |
+ #include "wraster.h" |
56 |
+ #include "imgformat.h" |
57 |
+-- |
58 |
+2.13.0 |
59 |
+ |
60 |
|
61 |
diff --git a/x11-wm/windowmaker/windowmaker-9999.ebuild b/x11-wm/windowmaker/windowmaker-0.95.8-r1.ebuild |
62 |
similarity index 79% |
63 |
copy from x11-wm/windowmaker/windowmaker-9999.ebuild |
64 |
copy to x11-wm/windowmaker/windowmaker-0.95.8-r1.ebuild |
65 |
index 687bb19f61b..c644be13c9a 100644 |
66 |
--- a/x11-wm/windowmaker/windowmaker-9999.ebuild |
67 |
+++ b/x11-wm/windowmaker/windowmaker-0.95.8-r1.ebuild |
68 |
@@ -1,19 +1,18 @@ |
69 |
-# Copyright 1999-2016 Gentoo Foundation |
70 |
+# Copyright 1999-2017 Gentoo Foundation |
71 |
# Distributed under the terms of the GNU General Public License v2 |
72 |
|
73 |
-EAPI=5 |
74 |
-inherit autotools eutils git-r3 |
75 |
+EAPI=6 |
76 |
+inherit autotools eutils |
77 |
|
78 |
DESCRIPTION="The fast and light GNUstep window manager" |
79 |
HOMEPAGE="http://www.windowmaker.org/" |
80 |
-SRC_URI="http://www.windowmaker.org/pub/source/release/WindowMaker-extra-0.1.tar.gz" |
81 |
-EGIT_REPO_URI="git://repo.or.cz/wmaker-crm.git" |
82 |
-EGIT_BRANCH="next" |
83 |
+SRC_URI=" http://windowmaker.org/pub/source/release/${P/windowm/WindowM}.tar.gz |
84 |
+ http://www.windowmaker.org/pub/source/release/WindowMaker-extra-0.1.tar.gz" |
85 |
|
86 |
SLOT="0" |
87 |
LICENSE="GPL-2" |
88 |
IUSE="gif imagemagick jpeg modelock nls png tiff webp xinerama +xpm xrandr" |
89 |
-KEYWORDS="" |
90 |
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~mips ~ppc ~ppc64 ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris" |
91 |
|
92 |
DEPEND="media-libs/fontconfig |
93 |
>=x11-libs/libXft-2.1.0 |
94 |
@@ -22,7 +21,7 @@ DEPEND="media-libs/fontconfig |
95 |
x11-libs/libXt |
96 |
x11-libs/libXv |
97 |
gif? ( >=media-libs/giflib-4.1.0-r3 ) |
98 |
- imagemagick? ( media-gfx/imagemagick ) |
99 |
+ imagemagick? ( media-gfx/imagemagick:0= ) |
100 |
jpeg? ( virtual/jpeg:0= ) |
101 |
png? ( media-libs/libpng:0= ) |
102 |
tiff? ( media-libs/tiff:0 ) |
103 |
@@ -30,15 +29,9 @@ DEPEND="media-libs/fontconfig |
104 |
xinerama? ( x11-libs/libXinerama ) |
105 |
xrandr? ( x11-libs/libXrandr )" |
106 |
RDEPEND="${DEPEND} |
107 |
- nls? ( >=sys-devel/gettext-0.10.39 ) |
108 |
- !app-i18n/scim-anthy[gtk3]" |
109 |
+ nls? ( >=sys-devel/gettext-0.10.39 )" |
110 |
|
111 |
-src_unpack() { |
112 |
- # wm-extras |
113 |
- unpack ${A} |
114 |
- |
115 |
- git-r3_src_unpack |
116 |
-} |
117 |
+S=${WORKDIR}/${P/windowm/WindowM} |
118 |
|
119 |
src_prepare() { |
120 |
# Fix some paths |
121 |
@@ -50,6 +43,11 @@ src_prepare() { |
122 |
fi; |
123 |
done; |
124 |
|
125 |
+ if has_version '>=media-gfx/imagemagick-7.0.1.0' ; then |
126 |
+ eapply "${FILESDIR}/${P}-imagemagick7.patch" |
127 |
+ fi |
128 |
+ |
129 |
+ default |
130 |
eautoreconf |
131 |
} |
132 |
|
133 |
|
134 |
diff --git a/x11-wm/windowmaker/windowmaker-9999.ebuild b/x11-wm/windowmaker/windowmaker-9999.ebuild |
135 |
index 687bb19f61b..5378b5e3d34 100644 |
136 |
--- a/x11-wm/windowmaker/windowmaker-9999.ebuild |
137 |
+++ b/x11-wm/windowmaker/windowmaker-9999.ebuild |
138 |
@@ -1,7 +1,7 @@ |
139 |
-# Copyright 1999-2016 Gentoo Foundation |
140 |
+# Copyright 1999-2017 Gentoo Foundation |
141 |
# Distributed under the terms of the GNU General Public License v2 |
142 |
|
143 |
-EAPI=5 |
144 |
+EAPI=6 |
145 |
inherit autotools eutils git-r3 |
146 |
|
147 |
DESCRIPTION="The fast and light GNUstep window manager" |
148 |
@@ -22,7 +22,7 @@ DEPEND="media-libs/fontconfig |
149 |
x11-libs/libXt |
150 |
x11-libs/libXv |
151 |
gif? ( >=media-libs/giflib-4.1.0-r3 ) |
152 |
- imagemagick? ( media-gfx/imagemagick ) |
153 |
+ imagemagick? ( media-gfx/imagemagick:0= ) |
154 |
jpeg? ( virtual/jpeg:0= ) |
155 |
png? ( media-libs/libpng:0= ) |
156 |
tiff? ( media-libs/tiff:0 ) |
157 |
@@ -30,8 +30,7 @@ DEPEND="media-libs/fontconfig |
158 |
xinerama? ( x11-libs/libXinerama ) |
159 |
xrandr? ( x11-libs/libXrandr )" |
160 |
RDEPEND="${DEPEND} |
161 |
- nls? ( >=sys-devel/gettext-0.10.39 ) |
162 |
- !app-i18n/scim-anthy[gtk3]" |
163 |
+ nls? ( >=sys-devel/gettext-0.10.39 )" |
164 |
|
165 |
src_unpack() { |
166 |
# wm-extras |
167 |
@@ -50,6 +49,11 @@ src_prepare() { |
168 |
fi; |
169 |
done; |
170 |
|
171 |
+ if has_version '>=media-gfx/imagemagick-7.0.1.0' ; then |
172 |
+ eapply "${FILESDIR}/${PN}-0.95.8-imagemagick7.patch" |
173 |
+ fi |
174 |
+ |
175 |
+ default |
176 |
eautoreconf |
177 |
} |