Gentoo Archives: gentoo-commits

From: Pacho Ramos <pacho@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-dotnet/libgdiplus/files/, dev-dotnet/libgdiplus/
Date: Thu, 25 Aug 2016 19:09:52
Message-Id: 1472152183.dd3f2b42cf2984911cadb9ab2a99c2b47f23b99a.pacho@gentoo
1 commit: dd3f2b42cf2984911cadb9ab2a99c2b47f23b99a
2 Author: Pacho Ramos <pacho <AT> gentoo <DOT> org>
3 AuthorDate: Thu Aug 25 19:05:20 2016 +0000
4 Commit: Pacho Ramos <pacho <AT> gentoo <DOT> org>
5 CommitDate: Thu Aug 25 19:09:43 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=dd3f2b42
7
8 dev-dotnet/libgdiplus: Drop old
9
10 Package-Manager: portage-2.3.0
11
12 dev-dotnet/libgdiplus/Manifest | 1 -
13 .../libgdiplus-3.12-giflib-quantizebuffer.patch | 298 ---------------------
14 .../files/libgdiplus-3.12-underlinking.patch | 17 --
15 dev-dotnet/libgdiplus/libgdiplus-2.10.9.ebuild | 48 ----
16 dev-dotnet/libgdiplus/libgdiplus-3.12.ebuild | 66 -----
17 dev-dotnet/libgdiplus/libgdiplus-4.2-r1.ebuild | 51 ----
18 6 files changed, 481 deletions(-)
19
20 diff --git a/dev-dotnet/libgdiplus/Manifest b/dev-dotnet/libgdiplus/Manifest
21 index eac96a4..b0ac70f 100644
22 --- a/dev-dotnet/libgdiplus/Manifest
23 +++ b/dev-dotnet/libgdiplus/Manifest
24 @@ -1,3 +1,2 @@
25 DIST libgdiplus-2.10.9.tar.bz2 2074317 SHA256 6ddeb6c327bada7cb6e06d1a20714f526a0c69520dfd42c12ddd032c3c5d964e SHA512 7f1944795c7ede5fd92a6d7e8d7d6cf2ef3c154e656b83e769b417f8f7195dd975084afe3c3cd1dda1ecb2c1167f76c0b5714cd16d549ff056add09763c6b26c WHIRLPOOL 0930cb2ad191c34b7ebd073f687536663bcfe9a44ed3296cf81bc9d43cfc7ee39d8f60f9b9f83f89847164b7366e514ee945737be50b82257209507c3b6e9c5d
26 -DIST libgdiplus-3.12.tar.gz 688120 SHA256 e61c4dc1bc2ba993e4f79029472efcf5760eb9e60eb20d9cd31f0ebe9113bfc9 SHA512 12c58e7ad99e5aa7caf19f64f47bddd399648292f3c2b9ade64e9051b0495bb8772af8ca9cdb6cb664d20c845d7136f028e10e659548bffd35e7604548bb8743 WHIRLPOOL 288ea9f2b8f5599278f039be1af32f54d0496da6ce70c3e937485d0a3a40494680a7c0fc55430602c256c487df1d57c0b6d8f6220a52b8ac0d7a48e6211d6ead
27 DIST libgdiplus-4.2.tar.gz 687398 SHA256 f332b9b8b44fd1c50b8d8d01a7296360b806c790b8297614739b3de1edbadfeb SHA512 102d1e07a106fa32640a20c4843bf82b3f628c5b7a3813d39c7712f2cd09d80dc5adb337a8d5bdbae065f876a0c433a5d8fcb7d761dff5ee08c48cac2cd2344e WHIRLPOOL a2580f026ec7d767ca038fa4e41c94a5613b69581c836b144c29b5cf1d97895d9c1c17b077caef760ceae65d35e809a7ef9b6c9089c43c0ec5be1d2bcc453ee0
28
29 diff --git a/dev-dotnet/libgdiplus/files/libgdiplus-3.12-giflib-quantizebuffer.patch b/dev-dotnet/libgdiplus/files/libgdiplus-3.12-giflib-quantizebuffer.patch
30 deleted file mode 100644
31 index 5d0b9c2..00000000
32 --- a/dev-dotnet/libgdiplus/files/libgdiplus-3.12-giflib-quantizebuffer.patch
33 +++ /dev/null
34 @@ -1,298 +0,0 @@
35 -diff --git a/src/gifcodec.c b/src/gifcodec.c
36 -index e1a0697..e645c6e 100644
37 ---- a/src/gifcodec.c
38 -+++ b/src/gifcodec.c
39 -@@ -39,6 +39,293 @@ GUID gdip_gif_image_format_guid = {0xb96b3cb0U, 0x0728U, 0x11d3U, {0x9d, 0x7b, 0
40 -
41 - #include "gifcodec.h"
42 -
43 -+#define COLOR_ARRAY_SIZE 32768
44 -+#define BITS_PER_PRIM_COLOR 5
45 -+#define MAX_PRIM_COLOR 0x1f
46 -+
47 -+static int SortRGBAxis;
48 -+
49 -+typedef struct QuantizedColorType {
50 -+ GifByteType RGB[3];
51 -+ GifByteType NewColorIndex;
52 -+ long Count;
53 -+ struct QuantizedColorType *Pnext;
54 -+} QuantizedColorType;
55 -+
56 -+typedef struct NewColorMapType {
57 -+ GifByteType RGBMin[3], RGBWidth[3];
58 -+ unsigned int NumEntries; /* # of QuantizedColorType in linked list below */
59 -+ unsigned long Count; /* Total number of pixels in all the entries */
60 -+ QuantizedColorType *QuantizedColors;
61 -+} NewColorMapType;
62 -+
63 -+
64 -+/****************************************************************************
65 -+ * Routine called by qsort to compare two entries.
66 -+ ****************************************************************************/
67 -+static int
68 -+SortCmpRtn(const void *Entry1,
69 -+ const void *Entry2) {
70 -+
71 -+ return (*((QuantizedColorType **) Entry1))->RGB[SortRGBAxis] -
72 -+ (*((QuantizedColorType **) Entry2))->RGB[SortRGBAxis];
73 -+}
74 -+
75 -+/******************************************************************************
76 -+ * Routine to subdivide the RGB space recursively using median cut in each
77 -+ * axes alternatingly until ColorMapSize different cubes exists.
78 -+ * The biggest cube in one dimension is subdivide unless it has only one entry.
79 -+ * Returns GIF_ERROR if failed, otherwise GIF_OK.
80 -+ ******************************************************************************/
81 -+static int
82 -+SubdivColorMap(NewColorMapType * NewColorSubdiv,
83 -+ unsigned int ColorMapSize,
84 -+ unsigned int *NewColorMapSize) {
85 -+
86 -+ int MaxSize;
87 -+ unsigned int i, j, Index = 0, NumEntries, MinColor, MaxColor;
88 -+ long Sum, Count;
89 -+ QuantizedColorType *QuantizedColor, **SortArray;
90 -+
91 -+ while (ColorMapSize > *NewColorMapSize) {
92 -+ /* Find candidate for subdivision: */
93 -+ MaxSize = -1;
94 -+ for (i = 0; i < *NewColorMapSize; i++) {
95 -+ for (j = 0; j < 3; j++) {
96 -+ if ((((int)NewColorSubdiv[i].RGBWidth[j]) > MaxSize) &&
97 -+ (NewColorSubdiv[i].NumEntries > 1)) {
98 -+ MaxSize = NewColorSubdiv[i].RGBWidth[j];
99 -+ Index = i;
100 -+ SortRGBAxis = j;
101 -+ }
102 -+ }
103 -+ }
104 -+
105 -+ if (MaxSize == -1)
106 -+ return GIF_OK;
107 -+
108 -+ /* Split the entry Index into two along the axis SortRGBAxis: */
109 -+
110 -+ /* Sort all elements in that entry along the given axis and split at
111 -+ * the median. */
112 -+ SortArray = (QuantizedColorType **)malloc(
113 -+ sizeof(QuantizedColorType *) *
114 -+ NewColorSubdiv[Index].NumEntries);
115 -+ if (SortArray == NULL)
116 -+ return GIF_ERROR;
117 -+ for (j = 0, QuantizedColor = NewColorSubdiv[Index].QuantizedColors;
118 -+ j < NewColorSubdiv[Index].NumEntries && QuantizedColor != NULL;
119 -+ j++, QuantizedColor = QuantizedColor->Pnext)
120 -+ SortArray[j] = QuantizedColor;
121 -+
122 -+ qsort(SortArray, NewColorSubdiv[Index].NumEntries,
123 -+ sizeof(QuantizedColorType *), SortCmpRtn);
124 -+
125 -+ /* Relink the sorted list into one: */
126 -+ for (j = 0; j < NewColorSubdiv[Index].NumEntries - 1; j++)
127 -+ SortArray[j]->Pnext = SortArray[j + 1];
128 -+ SortArray[NewColorSubdiv[Index].NumEntries - 1]->Pnext = NULL;
129 -+ NewColorSubdiv[Index].QuantizedColors = QuantizedColor = SortArray[0];
130 -+ free((char *)SortArray);
131 -+
132 -+ /* Now simply add the Counts until we have half of the Count: */
133 -+ Sum = NewColorSubdiv[Index].Count / 2 - QuantizedColor->Count;
134 -+ NumEntries = 1;
135 -+ Count = QuantizedColor->Count;
136 -+ while (QuantizedColor->Pnext != NULL &&
137 -+ (Sum -= QuantizedColor->Pnext->Count) >= 0 &&
138 -+ QuantizedColor->Pnext->Pnext != NULL) {
139 -+ QuantizedColor = QuantizedColor->Pnext;
140 -+ NumEntries++;
141 -+ Count += QuantizedColor->Count;
142 -+ }
143 -+ /* Save the values of the last color of the first half, and first
144 -+ * of the second half so we can update the Bounding Boxes later.
145 -+ * Also as the colors are quantized and the BBoxes are full 0..255,
146 -+ * they need to be rescaled.
147 -+ */
148 -+ MaxColor = QuantizedColor->RGB[SortRGBAxis]; /* Max. of first half */
149 -+ /* coverity[var_deref_op] */
150 -+ MinColor = QuantizedColor->Pnext->RGB[SortRGBAxis]; /* of second */
151 -+ MaxColor <<= (8 - BITS_PER_PRIM_COLOR);
152 -+ MinColor <<= (8 - BITS_PER_PRIM_COLOR);
153 -+
154 -+ /* Partition right here: */
155 -+ NewColorSubdiv[*NewColorMapSize].QuantizedColors =
156 -+ QuantizedColor->Pnext;
157 -+ QuantizedColor->Pnext = NULL;
158 -+ NewColorSubdiv[*NewColorMapSize].Count = Count;
159 -+ NewColorSubdiv[Index].Count -= Count;
160 -+ NewColorSubdiv[*NewColorMapSize].NumEntries =
161 -+ NewColorSubdiv[Index].NumEntries - NumEntries;
162 -+ NewColorSubdiv[Index].NumEntries = NumEntries;
163 -+ for (j = 0; j < 3; j++) {
164 -+ NewColorSubdiv[*NewColorMapSize].RGBMin[j] =
165 -+ NewColorSubdiv[Index].RGBMin[j];
166 -+ NewColorSubdiv[*NewColorMapSize].RGBWidth[j] =
167 -+ NewColorSubdiv[Index].RGBWidth[j];
168 -+ }
169 -+ NewColorSubdiv[*NewColorMapSize].RGBWidth[SortRGBAxis] =
170 -+ NewColorSubdiv[*NewColorMapSize].RGBMin[SortRGBAxis] +
171 -+ NewColorSubdiv[*NewColorMapSize].RGBWidth[SortRGBAxis] - MinColor;
172 -+ NewColorSubdiv[*NewColorMapSize].RGBMin[SortRGBAxis] = MinColor;
173 -+
174 -+ NewColorSubdiv[Index].RGBWidth[SortRGBAxis] =
175 -+ MaxColor - NewColorSubdiv[Index].RGBMin[SortRGBAxis];
176 -+
177 -+ (*NewColorMapSize)++;
178 -+ }
179 -+
180 -+ return GIF_OK;
181 -+}
182 -+
183 -+/******************************************************************************
184 -+ * Quantize high resolution image into lower one. Input image consists of a
185 -+ * 2D array for each of the RGB colors with size Width by Height. There is no
186 -+ * Color map for the input. Output is a quantized image with 2D array of
187 -+ * indexes into the output color map.
188 -+ * Note input image can be 24 bits at the most (8 for red/green/blue) and
189 -+ * the output has 256 colors at the most (256 entries in the color map.).
190 -+ * ColorMapSize specifies size of color map up to 256 and will be updated to
191 -+ * real size before returning.
192 -+ * Also non of the parameter are allocated by this routine.
193 -+ * This function returns GIF_OK if succesfull, GIF_ERROR otherwise.
194 -+ ******************************************************************************/
195 -+static int
196 -+QuantizeBuffer(unsigned int Width,
197 -+ unsigned int Height,
198 -+ int *ColorMapSize,
199 -+ GifByteType * RedInput,
200 -+ GifByteType * GreenInput,
201 -+ GifByteType * BlueInput,
202 -+ GifByteType * OutputBuffer,
203 -+ GifColorType * OutputColorMap) {
204 -+
205 -+ unsigned int Index, NumOfEntries;
206 -+ int i, j, MaxRGBError[3];
207 -+ unsigned int NewColorMapSize;
208 -+ long Red, Green, Blue;
209 -+ NewColorMapType NewColorSubdiv[256];
210 -+ QuantizedColorType *ColorArrayEntries, *QuantizedColor;
211 -+
212 -+ ColorArrayEntries = (QuantizedColorType *)malloc(
213 -+ sizeof(QuantizedColorType) * COLOR_ARRAY_SIZE);
214 -+ if (ColorArrayEntries == NULL) {
215 -+ return GIF_ERROR;
216 -+ }
217 -+
218 -+ for (i = 0; i < COLOR_ARRAY_SIZE; i++) {
219 -+ ColorArrayEntries[i].RGB[0] = i >> (2 * BITS_PER_PRIM_COLOR);
220 -+ ColorArrayEntries[i].RGB[1] = (i >> BITS_PER_PRIM_COLOR) &
221 -+ MAX_PRIM_COLOR;
222 -+ ColorArrayEntries[i].RGB[2] = i & MAX_PRIM_COLOR;
223 -+ ColorArrayEntries[i].Count = 0;
224 -+ }
225 -+
226 -+ /* Sample the colors and their distribution: */
227 -+ for (i = 0; i < (int)(Width * Height); i++) {
228 -+ Index = ((RedInput[i] >> (8 - BITS_PER_PRIM_COLOR)) <<
229 -+ (2 * BITS_PER_PRIM_COLOR)) +
230 -+ ((GreenInput[i] >> (8 - BITS_PER_PRIM_COLOR)) <<
231 -+ BITS_PER_PRIM_COLOR) +
232 -+ (BlueInput[i] >> (8 - BITS_PER_PRIM_COLOR));
233 -+ ColorArrayEntries[Index].Count++;
234 -+ }
235 -+
236 -+ /* Put all the colors in the first entry of the color map, and call the
237 -+ * recursive subdivision process. */
238 -+ for (i = 0; i < 256; i++) {
239 -+ NewColorSubdiv[i].QuantizedColors = NULL;
240 -+ NewColorSubdiv[i].Count = NewColorSubdiv[i].NumEntries = 0;
241 -+ for (j = 0; j < 3; j++) {
242 -+ NewColorSubdiv[i].RGBMin[j] = 0;
243 -+ NewColorSubdiv[i].RGBWidth[j] = 255;
244 -+ }
245 -+ }
246 -+
247 -+ /* Find the non empty entries in the color table and chain them: */
248 -+ for (i = 0; i < COLOR_ARRAY_SIZE; i++)
249 -+ if (ColorArrayEntries[i].Count > 0)
250 -+ break;
251 -+ QuantizedColor = NewColorSubdiv[0].QuantizedColors = &ColorArrayEntries[i];
252 -+ NumOfEntries = 1;
253 -+ while (++i < COLOR_ARRAY_SIZE)
254 -+ if (ColorArrayEntries[i].Count > 0) {
255 -+ QuantizedColor->Pnext = &ColorArrayEntries[i];
256 -+ QuantizedColor = &ColorArrayEntries[i];
257 -+ NumOfEntries++;
258 -+ }
259 -+ QuantizedColor->Pnext = NULL;
260 -+
261 -+ NewColorSubdiv[0].NumEntries = NumOfEntries; /* Different sampled colors */
262 -+ NewColorSubdiv[0].Count = ((long)Width) * Height; /* Pixels */
263 -+ NewColorMapSize = 1;
264 -+ if (SubdivColorMap(NewColorSubdiv, *ColorMapSize, &NewColorMapSize) !=
265 -+ GIF_OK) {
266 -+ free((char *)ColorArrayEntries);
267 -+ return GIF_ERROR;
268 -+ }
269 -+ if (NewColorMapSize < *ColorMapSize) {
270 -+ /* And clear rest of color map: */
271 -+ for (i = NewColorMapSize; i < *ColorMapSize; i++)
272 -+ OutputColorMap[i].Red = OutputColorMap[i].Green =
273 -+ OutputColorMap[i].Blue = 0;
274 -+ }
275 -+
276 -+ /* Average the colors in each entry to be the color to be used in the
277 -+ * output color map, and plug it into the output color map itself. */
278 -+ for (i = 0; i < NewColorMapSize; i++) {
279 -+ if ((j = NewColorSubdiv[i].NumEntries) > 0) {
280 -+ QuantizedColor = NewColorSubdiv[i].QuantizedColors;
281 -+ Red = Green = Blue = 0;
282 -+ while (QuantizedColor) {
283 -+ QuantizedColor->NewColorIndex = i;
284 -+ Red += QuantizedColor->RGB[0];
285 -+ Green += QuantizedColor->RGB[1];
286 -+ Blue += QuantizedColor->RGB[2];
287 -+ QuantizedColor = QuantizedColor->Pnext;
288 -+ }
289 -+ OutputColorMap[i].Red = (Red << (8 - BITS_PER_PRIM_COLOR)) / j;
290 -+ OutputColorMap[i].Green = (Green << (8 - BITS_PER_PRIM_COLOR)) / j;
291 -+ OutputColorMap[i].Blue = (Blue << (8 - BITS_PER_PRIM_COLOR)) / j;
292 -+ } else
293 -+ fprintf(stderr,
294 -+ "\n%s: Null entry in quantized color map - that's weird.\n",
295 -+ "libgdiplus");
296 -+ }
297 -+
298 -+ /* Finally scan the input buffer again and put the mapped index in the
299 -+ * output buffer. */
300 -+ MaxRGBError[0] = MaxRGBError[1] = MaxRGBError[2] = 0;
301 -+ for (i = 0; i < (int)(Width * Height); i++) {
302 -+ Index = ((RedInput[i] >> (8 - BITS_PER_PRIM_COLOR)) <<
303 -+ (2 * BITS_PER_PRIM_COLOR)) +
304 -+ ((GreenInput[i] >> (8 - BITS_PER_PRIM_COLOR)) <<
305 -+ BITS_PER_PRIM_COLOR) +
306 -+ (BlueInput[i] >> (8 - BITS_PER_PRIM_COLOR));
307 -+ Index = ColorArrayEntries[Index].NewColorIndex;
308 -+ OutputBuffer[i] = Index;
309 -+ if (MaxRGBError[0] < ABS(OutputColorMap[Index].Red - RedInput[i]))
310 -+ MaxRGBError[0] = ABS(OutputColorMap[Index].Red - RedInput[i]);
311 -+ if (MaxRGBError[1] < ABS(OutputColorMap[Index].Green - GreenInput[i]))
312 -+ MaxRGBError[1] = ABS(OutputColorMap[Index].Green - GreenInput[i]);
313 -+ if (MaxRGBError[2] < ABS(OutputColorMap[Index].Blue - BlueInput[i]))
314 -+ MaxRGBError[2] = ABS(OutputColorMap[Index].Blue - BlueInput[i]);
315 -+ }
316 -+
317 -+#ifdef DEBUG
318 -+ fprintf(stderr,
319 -+ "Quantization L(0) errors: Red = %d, Green = %d, Blue = %d.\n",
320 -+ MaxRGBError[0], MaxRGBError[1], MaxRGBError[2]);
321 -+#endif /* DEBUG */
322 -+
323 -+ free((char *)ColorArrayEntries);
324 -+
325 -+ *ColorMapSize = NewColorMapSize;
326 -+
327 -+ return GIF_OK;
328 -+}
329 -+
330 - #ifdef EgifOpen
331 - /* giflib declares this incorrectly as EgifOpen */
332 - extern GifFileType *EGifOpen(void *userData, OutputFunc writeFunc);
333
334 diff --git a/dev-dotnet/libgdiplus/files/libgdiplus-3.12-underlinking.patch b/dev-dotnet/libgdiplus/files/libgdiplus-3.12-underlinking.patch
335 deleted file mode 100644
336 index 164f994..00000000
337 --- a/dev-dotnet/libgdiplus/files/libgdiplus-3.12-underlinking.patch
338 +++ /dev/null
339 @@ -1,17 +0,0 @@
340 - tests/Makefile.am | 3 ++-
341 - 1 file changed, 2 insertions(+), 1 deletion(-)
342 -
343 -diff --git a/tests/Makefile.am b/tests/Makefile.am
344 -index fb7aa7e..4d752e1 100644
345 ---- a/tests/Makefile.am
346 -+++ b/tests/Makefile.am
347 -@@ -13,7 +13,8 @@ DEPS = \
348 -
349 -
350 - LDADDS = \
351 -- $(top_builddir)/src/libgdiplus.la
352 -+ $(top_builddir)/src/libgdiplus.la \
353 -+ -lm
354 -
355 - noinst_PROGRAMS = \
356 - testgdi testbits testclip testreversepath
357
358 diff --git a/dev-dotnet/libgdiplus/libgdiplus-2.10.9.ebuild b/dev-dotnet/libgdiplus/libgdiplus-2.10.9.ebuild
359 deleted file mode 100644
360 index fe947ef..00000000
361 --- a/dev-dotnet/libgdiplus/libgdiplus-2.10.9.ebuild
362 +++ /dev/null
363 @@ -1,48 +0,0 @@
364 -# Copyright 1999-2013 Gentoo Foundation
365 -# Distributed under the terms of the GNU General Public License v2
366 -# $Id$
367 -
368 -EAPI=2
369 -
370 -inherit eutils go-mono mono flag-o-matic
371 -
372 -DESCRIPTION="Library for using System.Drawing with mono"
373 -HOMEPAGE="http://www.mono-project.com"
374 -
375 -LICENSE="MIT"
376 -SLOT="0"
377 -KEYWORDS="amd64 ~arm ppc ppc64 x86 ~amd64-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~x86-solaris"
378 -IUSE="cairo"
379 -
380 -RDEPEND=">=dev-libs/glib-2.16:2
381 - >=media-libs/freetype-2.3.7
382 - >=media-libs/fontconfig-2.6
383 - >=media-libs/libpng-1.4:0
384 - x11-libs/libXrender
385 - x11-libs/libX11
386 - x11-libs/libXt
387 - >=x11-libs/cairo-1.8.4[X]
388 - media-libs/libexif
389 - >=media-libs/giflib-4.1.3
390 - virtual/jpeg:0
391 - media-libs/tiff:0
392 - !cairo? ( >=x11-libs/pango-1.20 )"
393 -DEPEND="${RDEPEND}"
394 -
395 -RESTRICT="test"
396 -
397 -PATCHES=(
398 - "${FILESDIR}/${P}-gold.patch"
399 - "${FILESDIR}/${PN}-2.10.1-libpng15.patch" )
400 -
401 -src_prepare() {
402 - go-mono_src_prepare
403 - sed -i -e 's:ungif:gif:g' configure || die
404 -}
405 -
406 -src_configure() {
407 - append-flags -fno-strict-aliasing
408 - go-mono_src_configure --with-cairo=system \
409 - $(use !cairo && printf %s --with-pango) \
410 - || die "configure failed"
411 -}
412
413 diff --git a/dev-dotnet/libgdiplus/libgdiplus-3.12.ebuild b/dev-dotnet/libgdiplus/libgdiplus-3.12.ebuild
414 deleted file mode 100644
415 index 96eb910..00000000
416 --- a/dev-dotnet/libgdiplus/libgdiplus-3.12.ebuild
417 +++ /dev/null
418 @@ -1,66 +0,0 @@
419 -# Copyright 1999-2015 Gentoo Foundation
420 -# Distributed under the terms of the GNU General Public License v2
421 -# $Id$
422 -
423 -EAPI=5
424 -
425 -inherit autotools eutils dotnet flag-o-matic
426 -
427 -DESCRIPTION="Library for using System.Drawing with mono"
428 -HOMEPAGE="http://www.mono-project.com"
429 -
430 -LICENSE="MIT"
431 -SLOT="0"
432 -KEYWORDS="~amd64 ~ppc ~ppc64 ~x86 ~x86-freebsd ~amd64-linux ~x86-linux ~x86-solaris"
433 -SRC_URI="http://download.mono-project.com/sources/${PN}/${P}.tar.gz"
434 -
435 -IUSE="cairo"
436 -
437 -RDEPEND=">=dev-libs/glib-2.2.3:2
438 - >=media-libs/freetype-2.3.7
439 - >=media-libs/fontconfig-2.6
440 - >=media-libs/libpng-1.4:0
441 - x11-libs/libXrender
442 - x11-libs/libX11
443 - x11-libs/libXt
444 - >=x11-libs/cairo-1.8.4[X]
445 - media-libs/libexif
446 - >=media-libs/giflib-4.2.3
447 - virtual/jpeg:0
448 - media-libs/tiff:0
449 - !cairo? ( >=x11-libs/pango-1.20 )"
450 -DEPEND="${RDEPEND}"
451 -
452 -PATCHES=(
453 - "${FILESDIR}/${P}-giflib-quantizebuffer.patch"
454 - "${FILESDIR}/${P}-underlinking.patch"
455 - )
456 -
457 -RESTRICT="test"
458 -
459 -src_prepare() {
460 - epatch "${PATCHES[@]}"
461 - sed -i -e 's:ungif:gif:g' configure.ac || die
462 - append-flags -fno-strict-aliasing
463 - eautoreconf
464 -}
465 -
466 -src_configure() {
467 - econf \
468 - --disable-dependency-tracking \
469 - --disable-static \
470 - $(usex cairo "" "--with-pango")
471 -}
472 -
473 -src_install () {
474 - MAKEOPTS+=" -j1"
475 - default
476 -
477 - dotnet_multilib_comply
478 - local commondoc=( AUTHORS ChangeLog README TODO )
479 - for docfile in "${commondoc[@]}"; do
480 - [[ -e "${docfile}" ]] && dodoc "${docfile}"
481 - done
482 - [[ "${DOCS[@]}" ]] && dodoc "${DOCS[@]}"
483 - prune_libtool_files
484 -}
485
486 diff --git a/dev-dotnet/libgdiplus/libgdiplus-4.2-r1.ebuild b/dev-dotnet/libgdiplus/libgdiplus-4.2-r1.ebuild
487 deleted file mode 100644
488 index 2265860..00000000
489 --- a/dev-dotnet/libgdiplus/libgdiplus-4.2-r1.ebuild
490 +++ /dev/null
491 @@ -1,51 +0,0 @@
492 -# Copyright 1999-2016 Gentoo Foundation
493 -# Distributed under the terms of the GNU General Public License v2
494 -# $Id$
495 -
496 -EAPI=5
497 -
498 -inherit eutils dotnet
499 -
500 -DESCRIPTION="Library for using System.Drawing with mono"
501 -HOMEPAGE="http://www.mono-project.com"
502 -
503 -LICENSE="MIT"
504 -SLOT="0"
505 -KEYWORDS="~amd64 ~ppc ~ppc64 ~x86 ~x86-freebsd ~amd64-linux ~x86-linux ~x86-solaris"
506 -SRC_URI="http://download.mono-project.com/sources/${PN}/${P}.tar.gz"
507 -
508 -IUSE="cairo"
509 -
510 -RDEPEND=">=dev-libs/glib-2.2.3:2
511 - >=media-libs/freetype-2.3.7
512 - >=media-libs/fontconfig-2.6
513 - >=media-libs/libpng-1.4:0
514 - x11-libs/libXrender
515 - x11-libs/libX11
516 - x11-libs/libXt
517 - >=x11-libs/cairo-1.8.4[X]
518 - media-libs/libexif
519 - >=media-libs/giflib-4.2.3
520 - virtual/jpeg:0
521 - media-libs/tiff:0
522 - !cairo? ( >=x11-libs/pango-1.20 )"
523 -DEPEND="${RDEPEND}"
524 -
525 -src_configure() {
526 - econf \
527 - --disable-dependency-tracking \
528 - --disable-static \
529 - $(usex cairo "" "--with-pango")
530 -}
531 -
532 -src_install () {
533 - default
534 -
535 - dotnet_multilib_comply
536 - local commondoc=( AUTHORS ChangeLog README TODO )
537 - for docfile in "${commondoc[@]}"; do
538 - [[ -e "${docfile}" ]] && dodoc "${docfile}"
539 - done
540 - [[ "${DOCS[@]}" ]] && dodoc "${DOCS[@]}"
541 - prune_libtool_files
542 -}