1 |
commit: 070c5274a522921f52eb05ab3389c1a2356c98fd |
2 |
Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Feb 20 10:36:08 2018 +0000 |
4 |
Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Feb 20 10:36:08 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=070c5274 |
7 |
|
8 |
media-video/dvdauthor: Marked 0.7.2-r2 stable where 0.7.2-r1 was stable |
9 |
|
10 |
Renamed fixed patch file. |
11 |
|
12 |
Package-Manager: Portage-2.3.24, Repoman-2.3.6 |
13 |
|
14 |
media-video/dvdauthor/dvdauthor-0.7.2-r2.ebuild | 4 +- |
15 |
.../files/dvdauthor-0.7.2-imagemagick7.patch | 48 ++++++++++++-- |
16 |
.../files/dvdauthor-0.7.2-r2-imagemagick7.patch | 75 ---------------------- |
17 |
3 files changed, 45 insertions(+), 82 deletions(-) |
18 |
|
19 |
diff --git a/media-video/dvdauthor/dvdauthor-0.7.2-r2.ebuild b/media-video/dvdauthor/dvdauthor-0.7.2-r2.ebuild |
20 |
index bab0a74a5cf..6ac055e70b4 100644 |
21 |
--- a/media-video/dvdauthor/dvdauthor-0.7.2-r2.ebuild |
22 |
+++ b/media-video/dvdauthor/dvdauthor-0.7.2-r2.ebuild |
23 |
@@ -10,7 +10,7 @@ SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" |
24 |
|
25 |
LICENSE="GPL-2" |
26 |
SLOT="0" |
27 |
-KEYWORDS="~amd64 ~ppc ~ppc64 ~sparc ~x86" |
28 |
+KEYWORDS="amd64 ppc ppc64 ~sparc x86" |
29 |
IUSE="graphicsmagick +imagemagick" |
30 |
REQUIRED_USE="^^ ( graphicsmagick imagemagick )" |
31 |
|
32 |
@@ -32,7 +32,7 @@ src_prepare() { |
33 |
default |
34 |
|
35 |
if use imagemagick && has_version '>=media-gfx/imagemagick-7.0.1.0' ; then |
36 |
- eapply "${FILESDIR}/${PN}-0.7.2-r2-imagemagick7.patch" |
37 |
+ eapply "${FILESDIR}/${PN}-0.7.2-imagemagick7.patch" |
38 |
fi |
39 |
|
40 |
if use graphicsmagick ; then |
41 |
|
42 |
diff --git a/media-video/dvdauthor/files/dvdauthor-0.7.2-imagemagick7.patch b/media-video/dvdauthor/files/dvdauthor-0.7.2-imagemagick7.patch |
43 |
index 9f9e3a0b301..e7b9ac15d3c 100644 |
44 |
--- a/media-video/dvdauthor/files/dvdauthor-0.7.2-imagemagick7.patch |
45 |
+++ b/media-video/dvdauthor/files/dvdauthor-0.7.2-imagemagick7.patch |
46 |
@@ -9,17 +9,54 @@ |
47 |
#else |
48 |
#include <png.h> |
49 |
#endif |
50 |
-@@ -181,7 +181,8 @@ |
51 |
+@@ -176,18 +176,18 @@ |
52 |
+ { |
53 |
+ Image *im; |
54 |
+ ImageInfo *ii; |
55 |
+- ExceptionInfo ei; |
56 |
++ ExceptionInfo *ei; |
57 |
+ int x,y; |
58 |
unsigned long magickver; |
59 |
unsigned char amask; |
60 |
|
61 |
- GetExceptionInfo(&ei); |
62 |
-+ ExceptionInfo *exception_info; |
63 |
-+ exception_info = AcquireExceptionInfo(); |
64 |
++ ei = AcquireExceptionInfo(); |
65 |
ii=CloneImageInfo(NULL); |
66 |
strcpy(ii->filename,s->fname); |
67 |
- im=ReadImage(ii,&ei); |
68 |
-@@ -1098,13 +1099,13 @@ |
69 |
+- im=ReadImage(ii,&ei); |
70 |
++ im=ReadImage(ii,ei); |
71 |
+ |
72 |
+ if( !im ) { |
73 |
+- MagickError(ei.severity,"Unable to load file",ii->filename); |
74 |
++ MagickError(ei->severity,"Unable to load file",ii->filename); |
75 |
+ return -1; |
76 |
+ } |
77 |
+ |
78 |
+@@ -202,10 +202,10 @@ |
79 |
+ for( y=0; y<im->rows; y++ ) { |
80 |
+ char pdata[MAXX*4]; |
81 |
+ |
82 |
+- if(!ExportImagePixels(im,0,y,im->columns,1,"RGBA",CharPixel,pdata,&ei)) { |
83 |
+- fprintf(stderr,"ERR: Extracting row %d from %s (%s,%s)\n",y,s->fname,ei.reason,ei.description); |
84 |
+- CatchException(&ei); |
85 |
+- MagickError(ei.severity,ei.reason,ei.description); |
86 |
++ if(!ExportImagePixels(im,0,y,im->columns,1,"RGBA",CharPixel,pdata,ei)) { |
87 |
++ fprintf(stderr,"ERR: Extracting row %d from %s (%s,%s)\n",y,s->fname,ei->reason,ei->description); |
88 |
++ CatchException(ei); |
89 |
++ MagickError(ei->severity,ei->reason,ei->description); |
90 |
+ DestroyImage(im); |
91 |
+ return -1; |
92 |
+ } |
93 |
+@@ -219,7 +219,7 @@ |
94 |
+ } |
95 |
+ } |
96 |
+ DestroyImage(im); |
97 |
+- DestroyExceptionInfo(&ei); |
98 |
++ DestroyExceptionInfo(ei); |
99 |
+ fprintf(stderr,"INFO: Picture %s had %d colors\n",s->fname,s->numpal); |
100 |
+ |
101 |
+ return 0; |
102 |
+@@ -1098,13 +1098,13 @@ |
103 |
void image_init() |
104 |
{ |
105 |
#if defined(HAVE_MAGICK) || defined(HAVE_GMAGICK) |
106 |
@@ -35,3 +72,4 @@ |
107 |
+ MagickCoreTerminus(); |
108 |
#endif |
109 |
} |
110 |
+ |
111 |
|
112 |
diff --git a/media-video/dvdauthor/files/dvdauthor-0.7.2-r2-imagemagick7.patch b/media-video/dvdauthor/files/dvdauthor-0.7.2-r2-imagemagick7.patch |
113 |
deleted file mode 100644 |
114 |
index 0f6bed4372a..00000000000 |
115 |
--- a/media-video/dvdauthor/files/dvdauthor-0.7.2-r2-imagemagick7.patch |
116 |
+++ /dev/null |
117 |
@@ -1,75 +0,0 @@ |
118 |
---- dvdauthor/src/subgen-image.c 2014-01-21 00:12:37.000000000 +0100 |
119 |
-+++ dvdauthor/src/subgen-image.c 2017-11-27 20:26:53.682914041 +0100 |
120 |
-@@ -30,7 +30,7 @@ |
121 |
- |
122 |
- #if defined(HAVE_MAGICK) || defined(HAVE_GMAGICK) |
123 |
- #include <stdarg.h> |
124 |
--#include <magick/api.h> |
125 |
-+#include <MagickWand/MagickWand.h> |
126 |
- #else |
127 |
- #include <png.h> |
128 |
- #endif |
129 |
-@@ -176,18 +176,18 @@ |
130 |
- { |
131 |
- Image *im; |
132 |
- ImageInfo *ii; |
133 |
-- ExceptionInfo ei; |
134 |
-+ ExceptionInfo *ei; |
135 |
- int x,y; |
136 |
- unsigned long magickver; |
137 |
- unsigned char amask; |
138 |
- |
139 |
-- GetExceptionInfo(&ei); |
140 |
-+ ei = AcquireExceptionInfo(); |
141 |
- ii=CloneImageInfo(NULL); |
142 |
- strcpy(ii->filename,s->fname); |
143 |
-- im=ReadImage(ii,&ei); |
144 |
-+ im=ReadImage(ii,ei); |
145 |
- |
146 |
- if( !im ) { |
147 |
-- MagickError(ei.severity,"Unable to load file",ii->filename); |
148 |
-+ MagickError(ei->severity,"Unable to load file",ii->filename); |
149 |
- return -1; |
150 |
- } |
151 |
- |
152 |
-@@ -202,10 +202,10 @@ |
153 |
- for( y=0; y<im->rows; y++ ) { |
154 |
- char pdata[MAXX*4]; |
155 |
- |
156 |
-- if(!ExportImagePixels(im,0,y,im->columns,1,"RGBA",CharPixel,pdata,&ei)) { |
157 |
-- fprintf(stderr,"ERR: Extracting row %d from %s (%s,%s)\n",y,s->fname,ei.reason,ei.description); |
158 |
-- CatchException(&ei); |
159 |
-- MagickError(ei.severity,ei.reason,ei.description); |
160 |
-+ if(!ExportImagePixels(im,0,y,im->columns,1,"RGBA",CharPixel,pdata,ei)) { |
161 |
-+ fprintf(stderr,"ERR: Extracting row %d from %s (%s,%s)\n",y,s->fname,ei->reason,ei->description); |
162 |
-+ CatchException(ei); |
163 |
-+ MagickError(ei->severity,ei->reason,ei->description); |
164 |
- DestroyImage(im); |
165 |
- return -1; |
166 |
- } |
167 |
-@@ -219,7 +219,7 @@ |
168 |
- } |
169 |
- } |
170 |
- DestroyImage(im); |
171 |
-- DestroyExceptionInfo(&ei); |
172 |
-+ DestroyExceptionInfo(ei); |
173 |
- fprintf(stderr,"INFO: Picture %s had %d colors\n",s->fname,s->numpal); |
174 |
- |
175 |
- return 0; |
176 |
-@@ -1098,13 +1098,13 @@ |
177 |
- void image_init() |
178 |
- { |
179 |
- #if defined(HAVE_MAGICK) || defined(HAVE_GMAGICK) |
180 |
-- InitializeMagick(NULL); |
181 |
-+ MagickCoreGenesis("", MagickFalse); |
182 |
- #endif |
183 |
- } |
184 |
- |
185 |
- void image_shutdown() |
186 |
- { |
187 |
- #if defined(HAVE_MAGICK) || defined(HAVE_GMAGICK) |
188 |
-- DestroyMagick(); |
189 |
-+ MagickCoreTerminus(); |
190 |
- #endif |
191 |
- } |
192 |
- |