summaryrefslogtreecommitdiff
path: root/media-gfx/xloadimage
diff options
context:
space:
mode:
Diffstat (limited to 'media-gfx/xloadimage')
-rw-r--r--media-gfx/xloadimage/Manifest19
-rw-r--r--media-gfx/xloadimage/files/xloadimage-4.1-bracket.patch13
-rw-r--r--media-gfx/xloadimage/files/xloadimage-4.1-c99.patch15
-rw-r--r--media-gfx/xloadimage/files/xloadimage-4.1-endif.patch11
-rw-r--r--media-gfx/xloadimage/files/xloadimage-4.1-fix-incomp-function-pointer-musl.patch14
-rw-r--r--media-gfx/xloadimage/files/xloadimage-4.1-fix-incomp-function-pointer-types.patch17
-rw-r--r--media-gfx/xloadimage/files/xloadimage-4.1-include-errno_h.patch13
-rw-r--r--media-gfx/xloadimage/files/xloadimage-4.1-ldflags_and_exit.patch23
-rw-r--r--media-gfx/xloadimage/files/xloadimage-4.1-libpng15.patch29
-rw-r--r--media-gfx/xloadimage/files/xloadimage-4.1-unaligned-access.patch51
-rw-r--r--media-gfx/xloadimage/files/xloadimage-4.1-zio-shell-meta-char.diff36
-rw-r--r--media-gfx/xloadimage/files/xloadimage-gentoo.patch258
-rw-r--r--media-gfx/xloadimage/metadata.xml5
-rw-r--r--media-gfx/xloadimage/xloadimage-4.1-r15.ebuild92
-rw-r--r--media-gfx/xloadimage/xloadimage-4.1-r16.ebuild93
-rw-r--r--media-gfx/xloadimage/xloadimage-4.1-r17.ebuild97
-rw-r--r--media-gfx/xloadimage/xloadimage-4.1-r18.ebuild97
17 files changed, 0 insertions, 883 deletions
diff --git a/media-gfx/xloadimage/Manifest b/media-gfx/xloadimage/Manifest
deleted file mode 100644
index 49749af09de8..000000000000
--- a/media-gfx/xloadimage/Manifest
+++ /dev/null
@@ -1,19 +0,0 @@
-AUX xloadimage-4.1-bracket.patch 518 BLAKE2B fca92d66bc559f17e091d544f2b726d1db11d54e72a71e901917d19da1e0bef3538f538cee329ad84a867ba3482085367bb0fa3017b5d99d69e1ea581a8bc7bf SHA512 f73b8077c7fe03ca688646f63df24c6dcecf21b1ebccf9983c7c6fb0332b371b17f835985ffccbe39fcb7bfd553a78df70c94d734930e35310a1b8ba0e30bf34
-AUX xloadimage-4.1-c99.patch 381 BLAKE2B b4ef27066cc4dcac1260e8a73975a7d8bc00c2e5d43c8349c19b853e4f99ed5aa059597b0fc1ec92e0cb261ccc86659ca80cbd7306535f9b974a5bf2092dcbbc SHA512 150dc9b13e236f48209b6fec0599a804773e48275e807e5e6074a276ed28736fabe5a4e2819fb26e6a19c42725ac5cee92ee0dacaeb1e7946a07b1cd56a88880
-AUX xloadimage-4.1-endif.patch 321 BLAKE2B dc140933e4b61e9a243f9cc2c4c78b5406a7d4defe0d7ae796c46ea8e21607d27c79481fe528f4c3e40dbfa5b27db09b47600a61454aaa3882c2ff267f18931a SHA512 503fd3672ae22a468ae6ec71a62b3113dc3df2e5bed4b90b641320d954c563118eb53b8681ad38edaff5a87a385fb063592ac422c24c2150084e0171f4f17d25
-AUX xloadimage-4.1-fix-incomp-function-pointer-musl.patch 562 BLAKE2B 194ec4c03aded4e4b2ff2ab1d83a45d64feef85c3f004ec15a35bf469d7d7b3b64b6fff2799d8920d81f4345324d3ffe6aa2b3be8d032b6de93ba21f0b353032 SHA512 665e2150b0b634b634cef9dad12d54f62721846edb9ffaa6920103e98cc3ef37bc07c1414c0380e34419f32b4b86a55805f62eb3b6f2544c3e5c1d71cad4365e
-AUX xloadimage-4.1-fix-incomp-function-pointer-types.patch 582 BLAKE2B 5ac8bf2e35e58bc476bde54228620089fa90bdeb7dc25bffa344775e0d149cbad238e3526a6669f9ee0fe539d68dbad52a62be752e71ef9412d220a4a2d05a19 SHA512 16d3c30d1baa16dbaf8fb3314b2721996d2fbfca9fc73471108ada969b69b4aaf1607cbe6bda284daaeaf6168d5b485dabf68495a51f6a31a925b2fd975627fa
-AUX xloadimage-4.1-include-errno_h.patch 303 BLAKE2B f82f4beadf42e2b5ba0f20ed6c16ea88e829c0b224c219a257c9986d30a8568d8d59e92f686469c26238eb33c6a51f3ba90e854a3f8c9c9c386a4848f745c8f2 SHA512 208261855d1677a755e34b421bbb4f95cbbe1d9d494cb3c895e9f799a376f2162a3f8e08134b06029da5acd318c873c798bd2c64eaf0aaf1d0e2970a56f4ef2f
-AUX xloadimage-4.1-ldflags_and_exit.patch 775 BLAKE2B e2107eca87d99d28d19f2213877bb6e3f6cfa5294c69a2ba9eeb01407b4f2b54f9f96de4b15e1ddd67acde45e8c2df0d4ed135001fdd3dc78afff9a367975fa1 SHA512 724484e06868c818c6c66cfdca9b07972da6c6b7977da9dad4e05109506751641e211dd34a9afbf925fed712ed046764362856079dda11b628b32fe3f6813f59
-AUX xloadimage-4.1-libpng15.patch 751 BLAKE2B 411c7a2fcf62a86e9402e7656b4cf484c16028802cebe97a843669bb12e96897ff47d66544387bc6754180ade67516f6c41b532efe3b1a3b5733b68ad41b0eb0 SHA512 12fae67db18540ca4ccd39e077c7557b878581a79082ae6abd156a4633db59f157bafbcb45d1b0fb40b9f8356a6fb44117da7b1d3e7803361e800435d7877a12
-AUX xloadimage-4.1-unaligned-access.patch 1730 BLAKE2B 03015b18488346a1e690bfd1dab51a39c13b91d543d215cd2ec635da2bacae946bb101569a11bfcd5a0f62d9b61262b01f9cdd32be751cf5e9b137b308293a44 SHA512 4861c805a4bca2cec81fa2e7de44838e8451f08a2e1d189cf9a27e1c078d1ae0403fda3ab9c8ad44187db4fd5078d088f755eef16fbe00d55c02e0c54a5be139
-AUX xloadimage-4.1-zio-shell-meta-char.diff 1372 BLAKE2B 1c960ba7ae4da62eedcdfc283a7d81367e4ede508aa45346d263c18407b62f928a5e1c1112b3e1c864ea87f80013c4f3550d790ef43de2e4feae7639e58e71df SHA512 38e449e005d84a5e93c1a1ef71929a4002b9dfb94d1ad785714f572e4adb0313722620947c091dc5ea2a73fe5d01d321f21259be9ff0770052f5f5ad13c727d6
-AUX xloadimage-gentoo.patch 8956 BLAKE2B 9834cb47e16fb20f970e9d33a6e42fef09d5a3d3cae3f5ab0db5c76661acb7c67a20115f4069bc2769b6d9f54acf4adea27e27b79495d74a77644db5281beba8 SHA512 8eba3107d81f0dc6caf749e9a9889f1662e5d1004e480a9a170533f3ee00c6f9f11d3c2008655322242ab61f31b676406fd44b97d83e4ce93b8f68a12397830b
-DIST xloadimage-4.1-fix-build-for-clang16.patch.xz 23800 BLAKE2B 8417465020f06483c397dd86124297feb320530bd013d6f94b091ac2166da9dc45017b43a21e2ce7a6f03493188e2535294e9b79e7ebbe0062bf0f22166f13d7 SHA512 a8f40fe4a5e8750b2c2b98b1f7488275c1f0763d2814359ec8dce48d1201e78d87f189abf6fcb8fa4753828921fd0c593696ad1958345f954f740687502a896f
-DIST xloadimage-4.1-gentoo-r1.diff.bz2 41535 BLAKE2B 77cdbb2e6d5dda6084aae2831bcb8750a027f59a673f5a1f8eeb61385bd21243d640bd13a3be7fb24d2ce2cb475a05cb04c91c2b53977c61fb3aa4416e67e112 SHA512 a1a52d576eb68c44e5ff3b68a6bd87cd9b8f21f6fa8edee2d7df2329002d40f6513df6c04ecd57f66018583d0251019bd02e15756dac705b8c9cb8470cb386e3
-DIST xloadimage.4.1.tar.gz 596021 BLAKE2B 3c22facf05167d1836c21243799d8f66c211e44d659b4397668ed604cdd82b3bd8f11ab7b3be5e87c59a9b3aa8569d0d3d2e474b572c3bca07b6437b293014bf SHA512 2c91699c8ef07c101ff9b458708ace01cab2979a5e88cf8a4e47ec971f7b4cb5571108afa3e53271ade4e8ccfdcf72ef9e2e09edfc0be6b8afaba50847aa0586
-EBUILD xloadimage-4.1-r15.ebuild 2482 BLAKE2B da71736b8f2ba9eb0e539e0d0ecf72f23b1b6636d0ceadcae6711f2586e6f480214f565caabc348d32eb35eeaaa5f659746208549fdcf54de90032a0ee4f2c14 SHA512 be5ef8f4ca1934bded0a8f21fac46db5c3f00fb3c779ddd99f6fc0e6914602b8dd29ec37afa9283280ecfec2a23661c305944af4ccd0b6a4b29d98db156994dd
-EBUILD xloadimage-4.1-r16.ebuild 2545 BLAKE2B 32e8f96d2df57893d49c053355f5dd3999495de59807236ea8349cf569a9b2c7ec6d3b695431fbc4a14c2b7d3c862854a049400cda85dcda583df0c5fecfc4d6 SHA512 aa2ecb526c49f3f58c6d8b822668eeceb6846782ca7a9a927b49d3940f0e18d86c6d719139fb3ecff86ff2228df571b6e6c83faff9669a2f41ecf71cf0b676a5
-EBUILD xloadimage-4.1-r17.ebuild 2621 BLAKE2B 5f3336248857dd0d3f4a0acf13f1aad12144edac25ac591a35db61826af6c3bf2229a27e38f4ad4ebafa2347377580006a320fee5915b3e5b56c4a25d7036cf0 SHA512 9477605f5bb95995e928fadfdb98daa05078505a1d9cc4c8f49ff0a3e37bb7a9bd329c495b86c7d4da8f40769a8bfbc6c9d376671b3af437ac41daa0248d40bc
-EBUILD xloadimage-4.1-r18.ebuild 2620 BLAKE2B fea6f9d29acecec09a3b659601435bb37d19a1fd75735c96cc778a7dfa106b54eaf87f3516225aaddfeb0b442fd7e95a992d5d6ad228644db9f8d8b41faddd37 SHA512 026f62a676d98e54971fcbbf3a667250895916ad046d7d40fbb261e03805fd89a69916cfd485cf9e4136e75827a1b03fa24ffaed232d3811889efaab400f7a94
-MISC metadata.xml 169 BLAKE2B 25149b73446be31f3ea3dd3a6394230987e7d4c601d1605fd3827b37bd99b3301c2e0edb95d0f59a4577ed27919f43c2cc02b1edf62c4012b935a82e709e0c05 SHA512 55c53f74b001bae56ba8c54581a4168335b6b3a28dac23a2102b76795d5fd41de33b8b3e1ec03f9acc6e7a3a77e93b1a6ff3e3967c3156dcbf22b5b5a6245ef5
diff --git a/media-gfx/xloadimage/files/xloadimage-4.1-bracket.patch b/media-gfx/xloadimage/files/xloadimage-4.1-bracket.patch
deleted file mode 100644
index 5d71028652da..000000000000
--- a/media-gfx/xloadimage/files/xloadimage-4.1-bracket.patch
+++ /dev/null
@@ -1,13 +0,0 @@
-diff -ruN xloadimage.4.1.patched/jpeg.c xloadimage.4.1/jpeg.c
---- xloadimage.4.1.patched/jpeg.c 2011-08-25 22:44:04.835308001 +0200
-+++ xloadimage.4.1/jpeg.c 2011-08-25 22:45:57.391307973 +0200
-@@ -321,8 +321,8 @@
- cinfo->arith_code = TRUE;
- #else
- fprintf(stderr, "jpegDump: sorry, arithmetic coding not supported\n");
-- }
- #endif
-+ }
- else if (!strncmp("grayscale", name, strlen(name)) ||
- !strncmp("greyscale", name, strlen(name)) ||
- !strncmp("monochrome", name, strlen(name))) {
diff --git a/media-gfx/xloadimage/files/xloadimage-4.1-c99.patch b/media-gfx/xloadimage/files/xloadimage-4.1-c99.patch
deleted file mode 100644
index 6da8b008aa86..000000000000
--- a/media-gfx/xloadimage/files/xloadimage-4.1-c99.patch
+++ /dev/null
@@ -1,15 +0,0 @@
-https://bugs.gentoo.org/920772#c11
-Signed-off-by: Stephane Bakhos <nuitari@nuitari.net>
---- a/pdsuncomp.c
-+++ b/pdsuncomp.c
-@@ -421,8 +421,8 @@
- static char obuf[2048];
- char ibuf[2048];
- int left;
-- int in_length;
-- static int out_length= 2048, out_ptr= 0;
-+ long int in_length;
-+ static long int out_length= 2048, out_ptr= 0;
-
- if (Decompressing) {
- left= size;
diff --git a/media-gfx/xloadimage/files/xloadimage-4.1-endif.patch b/media-gfx/xloadimage/files/xloadimage-4.1-endif.patch
deleted file mode 100644
index df6f3e492190..000000000000
--- a/media-gfx/xloadimage/files/xloadimage-4.1-endif.patch
+++ /dev/null
@@ -1,11 +0,0 @@
---- xloadimage.4.1/copyright.orig 2005-03-04 12:58:27.347474256 +0100
-+++ xloadimage.4.1/copyright.h 2005-03-04 12:58:42.913107920 +0100
-@@ -22,7 +22,7 @@
- #ifndef __SABER__
- #ifndef LINT
- static char *Copyright= "Copyright 1989, 1993 Jim Frost";
--#endif LINT
-+#endif /* LINT */
- #endif
- #define _JIM_COPYRIGHT_
- #endif
diff --git a/media-gfx/xloadimage/files/xloadimage-4.1-fix-incomp-function-pointer-musl.patch b/media-gfx/xloadimage/files/xloadimage-4.1-fix-incomp-function-pointer-musl.patch
deleted file mode 100644
index ab76b835c899..000000000000
--- a/media-gfx/xloadimage/files/xloadimage-4.1-fix-incomp-function-pointer-musl.patch
+++ /dev/null
@@ -1,14 +0,0 @@
-__signalhandler_t isn't defined on musl, one needs to drill down to bare type definition
-so code builds both on glibc and musl systems
-https://bugs.gentoo.org/924114
---- a/window.c
-+++ b/window.c
-@@ -833,7 +833,7 @@ char imageInWindow (Display *disp, int scrn, Image *image, OptionSet *global_opt
- /* reset alarm to -delay seconds after every event */
- #ifdef ENABLE_TIMEOUT
- AlarmWentOff = 0;
-- signal(SIGALRM, delayAlarmHandler);
-+ signal(SIGALRM, (void (*)(int))delayAlarmHandler);
- alarm(delay);
- #endif /* ENABLE_TIMEOUT */
- }
diff --git a/media-gfx/xloadimage/files/xloadimage-4.1-fix-incomp-function-pointer-types.patch b/media-gfx/xloadimage/files/xloadimage-4.1-fix-incomp-function-pointer-types.patch
deleted file mode 100644
index 0ddd2da0f65f..000000000000
--- a/media-gfx/xloadimage/files/xloadimage-4.1-fix-incomp-function-pointer-types.patch
+++ /dev/null
@@ -1,17 +0,0 @@
-Inpompatible function pointers are an error instead of a warning by default since clang16
-
-Bug: https://bugs.gentoo.org/896232
-
-Pascal Jäger <pascal.jaeger@leimstift.de> (2023-09-22)
-
---- a/window.c
-+++ b/window.c
-@@ -833,7 +833,7 @@ char imageInWindow (Display *disp, int scrn, Image *image, OptionSet *global_opt
- /* reset alarm to -delay seconds after every event */
- #ifdef ENABLE_TIMEOUT
- AlarmWentOff = 0;
-- signal(SIGALRM, delayAlarmHandler);
-+ signal(SIGALRM, (__sighandler_t)delayAlarmHandler);
- alarm(delay);
- #endif /* ENABLE_TIMEOUT */
- }
diff --git a/media-gfx/xloadimage/files/xloadimage-4.1-include-errno_h.patch b/media-gfx/xloadimage/files/xloadimage-4.1-include-errno_h.patch
deleted file mode 100644
index f071d761617a..000000000000
--- a/media-gfx/xloadimage/files/xloadimage-4.1-include-errno_h.patch
+++ /dev/null
@@ -1,13 +0,0 @@
---- xloadimage.4.1/img.c.orig 2003-01-01 15:14:47.000000000 +0200
-+++ xloadimage.4.1/img.c 2003-01-01 15:15:05.000000000 +0200
-@@ -14,9 +14,9 @@
- #include <stdlib.h>
- #include <string.h>
- #include <math.h>
-+#include <errno.h>
- #include "image.h"
-
--extern int errno;
-
- #define TRUE 1
- #define FALSE 0
diff --git a/media-gfx/xloadimage/files/xloadimage-4.1-ldflags_and_exit.patch b/media-gfx/xloadimage/files/xloadimage-4.1-ldflags_and_exit.patch
deleted file mode 100644
index afdea768aa47..000000000000
--- a/media-gfx/xloadimage/files/xloadimage-4.1-ldflags_and_exit.patch
+++ /dev/null
@@ -1,23 +0,0 @@
-diff -ur xloadimage.4.1.orig/Makefile.in xloadimage.4.1/Makefile.in
---- xloadimage.4.1.orig/Makefile.in 2009-09-04 15:37:09.000000000 +0300
-+++ xloadimage.4.1/Makefile.in 2009-09-04 15:38:50.000000000 +0300
-@@ -27,7 +27,7 @@
- $(CC) -o $@ $(OBJS) build.o $(LDFLAGS) $(XLIB) $(LIBS)
-
- uufilter: uufilter.c
-- $(CC) $(CFLAGS) $(DEFS) uufilter.c -o $@
-+ $(CC) $(LDFLAGS) $(CFLAGS) $(DEFS) uufilter.c -o $@
-
- .c.o: config.h image.h
- $(CC) $(CFLAGS) -c $(DEFS) $<
-diff -ur xloadimage.4.1.orig/uufilter.c xloadimage.4.1/uufilter.c
---- xloadimage.4.1.orig/uufilter.c 2009-09-04 15:37:09.000000000 +0300
-+++ xloadimage.4.1/uufilter.c 2009-09-04 15:37:59.000000000 +0300
-@@ -11,6 +11,7 @@
- */
-
- #include <stdio.h>
-+#include <stdlib.h>
- #include <string.h>
-
- int main(argc, argv)
diff --git a/media-gfx/xloadimage/files/xloadimage-4.1-libpng15.patch b/media-gfx/xloadimage/files/xloadimage-4.1-libpng15.patch
deleted file mode 100644
index da222d68c257..000000000000
--- a/media-gfx/xloadimage/files/xloadimage-4.1-libpng15.patch
+++ /dev/null
@@ -1,29 +0,0 @@
---- a/png.c
-+++ b/png.c
-@@ -75,7 +75,7 @@
- {
- debug(" #error ");
- output_warn( png_ptr, str);
-- longjmp(png_ptr->jmpbuf, 1); /* return control to outer routine */
-+ longjmp(png_jmpbuf(png_ptr), 1); /* return control to outer routine */
- }
-
-
-@@ -164,7 +164,7 @@
- png_destroy_read_struct(png_pp, info_pp, end_pp);
- return 0;
- }
-- if (setjmp((*png_pp)->jmpbuf)) {
-+ if (setjmp(png_jmpbuf(*png_pp))) {
- /* On error */
- png_destroy_read_struct(png_pp, info_pp, end_pp);
- return 0;
-@@ -220,7 +220,7 @@
- zclose(zinput_file);
- return 0;
- }
-- if (setjmp(png_ptr->jmpbuf)) {
-+ if (setjmp(png_jmpbuf(png_ptr))) {
- /* On error */
- freeImage(image);
- png_destroy_read_struct(&png_ptr, &info_ptr, &end_info);
diff --git a/media-gfx/xloadimage/files/xloadimage-4.1-unaligned-access.patch b/media-gfx/xloadimage/files/xloadimage-4.1-unaligned-access.patch
deleted file mode 100644
index 874ad8a4f329..000000000000
--- a/media-gfx/xloadimage/files/xloadimage-4.1-unaligned-access.patch
+++ /dev/null
@@ -1,51 +0,0 @@
-diff -ruN ./cmuwmraster.c /tmp/xloadimage.4.1/cmuwmraster.c
---- a/cmuwmraster.c 2005-07-23 13:15:50 -0700
-+++ b/cmuwmraster.c 2005-07-23 13:08:36 -0700
-@@ -20,7 +20,7 @@
- char *name;
- struct cmuwm_header *headerp;
- {
-- printf("%s is a %ldx%ld %ld plane CMU WM raster\n",
-+ printf("%s is a %lux%lu %lu plane CMU WM raster\n",
- name,
- memToVal(headerp->width, sizeof(long)),
- memToVal(headerp->height, sizeof(long)),
-diff -ruN ./niff.c /tmp/xloadimage.4.1/niff.c
---- a/niff.c 2005-07-23 13:15:50 -0700
-+++ b/niff.c 2005-07-23 13:07:55 -0700
-@@ -24,18 +24,18 @@
- memToVal(header->width, 4),
- memToVal(header->height, 4));
- if (memToVal(header->version, 4) != NIFF_VERSION)
-- printf("version %ld ", memToVal(header->version, 4));
-+ printf("version %lu ", memToVal(header->version, 4));
- printf("NIFF ");
- switch (header->type) {
- case NIFF_BITMAP:
- printf("bitmap image");
- break;
- case NIFF_RGB:
-- printf("%ld-bit RGB image with %ld colors",
-+ printf("%lu-bit RGB image with %lu colors",
- memToVal(header->depth, 4), memToVal(header->cmap_size, 4));
- break;
- case NIFF_TRUE:
-- printf("%ld-bit true color image", memToVal(header->depth, 4));
-+ printf("%lu-bit true color image", memToVal(header->depth, 4));
- break;
- default:
- printf("image with an unknown type");
-diff -ruN ./root.c /tmp/xloadimage.4.1/root.c
---- a/root.c 2005-07-23 13:15:51 -0700
-+++ b/root.c 2005-07-23 13:05:48 -0700
-@@ -68,8 +68,8 @@
- Pixmap *pm;
- Atom actual_type; /* NOTUSED */
- int format;
-- int nitems;
-- int bytes_after;
-+ unsigned long nitems;
-+ unsigned long bytes_after;
-
- /* intern the property name */
- Atom atom = XInternAtom(dpy, RETAIN_PROP_NAME, 0);
diff --git a/media-gfx/xloadimage/files/xloadimage-4.1-zio-shell-meta-char.diff b/media-gfx/xloadimage/files/xloadimage-4.1-zio-shell-meta-char.diff
deleted file mode 100644
index 730504fb43f6..000000000000
--- a/media-gfx/xloadimage/files/xloadimage-4.1-zio-shell-meta-char.diff
+++ /dev/null
@@ -1,36 +0,0 @@
---- xloadimage.4.1/zio.c 1993-10-28 17:10:02.000000000 +0000
-+++ xloadimage.4.1/zio.c 2005-02-28 15:32:05.895470680 +0000
-@@ -210,9 +211,30 @@
- if ((strlen(name) > strlen(filter->extension)) &&
- !strcmp(filter->extension,
- name + (strlen(name) - strlen(filter->extension)))) {
-- debug(("Filtering image through '%s'\n", filter->filter));
-- zf->type= ZPIPE;
-- sprintf(buf, "%s %s", filter->filter, name);
-+ char *fname, *t, *s;
-+
-+ /* meta-char protection from xli.
-+ *
-+ * protect in single quotes, replacing single quotes
-+ * with '"'"', so worst-case expansion is 5x
-+ */
-+
-+ s = fname = (char *) lmalloc(1 + (5 * strlen(name)) + 1 + 1);
-+ *s++ = '\'';
-+ for (t = name; *t; ++t) {
-+ if ('\'' == *t) {
-+ /* 'foo'bar' -> 'foo'"'"'bar' */
-+ strcpy(s, "'\"'\"'");
-+ s += strlen(s);
-+ } else {
-+ *s++ = *t;
-+ }
-+ }
-+ strcpy (s, "'");
-+ debug(("Filtering image through '%s'\n", filter->filter));
-+ zf->type= ZPIPE;
-+ sprintf(buf, "%s %s", filter->filter, fname);
-+ lfree (fname);
- if (! (zf->stream= popen(buf, "r"))) {
- lfree((byte *)zf->filename);
- zf->filename= NULL;
diff --git a/media-gfx/xloadimage/files/xloadimage-gentoo.patch b/media-gfx/xloadimage/files/xloadimage-gentoo.patch
deleted file mode 100644
index 896786680e30..000000000000
--- a/media-gfx/xloadimage/files/xloadimage-gentoo.patch
+++ /dev/null
@@ -1,258 +0,0 @@
-diff -ru xloadimage.4.1.orig/config.c xloadimage.4.1/config.c
---- xloadimage.4.1.orig/config.c 2005-10-22 15:47:17.000000000 +0200
-+++ xloadimage.4.1/config.c 2005-10-22 15:58:16.000000000 +0200
-@@ -313,12 +313,13 @@
- * -1 if access denied or not found, 0 if ok.
- */
-
--int findImage(name, fullname)
-+int findImage(name, fullname, size)
- char *name, *fullname;
-+ size_t size;
- { unsigned int p, e;
- struct stat sbuf;
-
-- strcpy(fullname, name);
-+ strncpy(fullname, name, size);
- if (!strcmp(name, "stdin")) /* stdin is special name */
- return(0);
-
-@@ -327,7 +328,7 @@
- if (! stat(fullname, &sbuf))
- return(fileIsOk(fullname, &sbuf));
- #ifndef NO_COMPRESS
-- strcat(fullname, ".Z");
-+ strncat(fullname, ".Z", size);
- if (! stat(fullname, &sbuf))
- return(fileIsOk(fullname, &sbuf));
- #endif
-@@ -336,12 +337,12 @@
- #ifdef VMS
- sprintf(fullname, "%s%s", Paths[p], name);
- #else
-- sprintf(fullname, "%s/%s", Paths[p], name);
-+ snprintf(fullname, size, "%s/%s", Paths[p], name);
- #endif
- if (! stat(fullname, &sbuf))
- return(fileIsOk(fullname, &sbuf));
- #ifndef NO_COMPRESS
-- strcat(fullname, ".Z");
-+ strncat(fullname, ".Z", size);
- if (! stat(fullname, &sbuf))
- #endif
- return(fileIsOk(fullname, &sbuf));
-@@ -349,12 +350,12 @@
- #ifdef VMS
- sprintf(fullname, "%s%s%s", Paths[p], name, Exts[e]);
- #else
-- sprintf(fullname, "%s/%s%s", Paths[p], name, Exts[e]);
-+ snprintf(fullname, size, "%s/%s%s", Paths[p], name, Exts[e]);
- #endif
- if (! stat(fullname, &sbuf))
- return(fileIsOk(fullname, &sbuf));
- #ifndef NO_COMPRESS
-- strcat(fullname, ".Z");
-+ strncat(fullname, ".Z", size);
- if (! stat(fullname, &sbuf))
- return(fileIsOk(fullname, &sbuf));
- #endif
-@@ -362,11 +363,11 @@
- }
-
- for (e= 0; e < NumExts; e++) {
-- sprintf(fullname, "%s%s", name, Exts[e]);
-+ snprintf(fullname, size, "%s%s", name, Exts[e]);
- if (! stat(fullname, &sbuf))
- return(fileIsOk(fullname, &sbuf));
- #ifndef NO_COMPRESS
-- strcat(fullname, ".Z");
-+ strncat(fullname, ".Z", size);
- if (! stat(fullname, &sbuf))
- return(fileIsOk(fullname, &sbuf));
- #endif
-@@ -392,7 +393,7 @@
- #ifdef VMS
- sprintf(buf, "directory %s", Paths[a]);
- #else
-- sprintf(buf, "ls %s", Paths[a]);
-+ snprintf(buf, sizeof(buf)-1, "ls %s", Paths[a]);
- #endif
- if (system(buf) < 0) {
- #ifdef VMS
-diff -ru xloadimage.4.1.orig/imagetypes.c xloadimage.4.1/imagetypes.c
---- xloadimage.4.1.orig/imagetypes.c 2005-10-22 15:47:17.000000000 +0200
-+++ xloadimage.4.1/imagetypes.c 2005-10-22 15:51:31.000000000 +0200
-@@ -17,7 +17,7 @@
- /* SUPPRESS 560 */
-
- extern int errno;
--extern int findImage(char *name, char *fullname);
-+extern int findImage(char *name, char *fullname, size_t size);
-
- /* load a named image
- */
-@@ -32,7 +32,7 @@
- Image *image;
- int a;
-
-- if (findImage(name, fullname) < 0) {
-+ if (findImage(name, fullname, BUFSIZ) < 0) {
- if (errno == ENOENT)
- fprintf(stderr, "%s: image not found\n", name);
- else
-@@ -109,7 +109,7 @@
- { char fullname[BUFSIZ];
- int a;
-
-- if (findImage(name, fullname) < 0) {
-+ if (findImage(name, fullname, BUFSIZ) < 0) {
- if (errno == ENOENT)
- fprintf(stderr, "%s: image not found\n", name);
- else
-diff -ru xloadimage.4.1.orig/jpeg.c xloadimage.4.1/jpeg.c
---- xloadimage.4.1.orig/jpeg.c 2005-10-22 15:47:17.000000000 +0200
-+++ xloadimage.4.1/jpeg.c 2005-10-22 16:02:03.000000000 +0200
-@@ -19,7 +19,7 @@
- #undef debug
-
- #ifdef DEBUG
--# define debug(xx) fprintf(stderr,xx)
-+# define debug(xx) fprintf(stderr, "%s", xx)
- #else
- # define debug(xx)
- #endif
-diff -ru xloadimage.4.1.orig/mcidas.c xloadimage.4.1/mcidas.c
---- xloadimage.4.1.orig/mcidas.c 2005-10-22 15:47:17.000000000 +0200
-+++ xloadimage.4.1/mcidas.c 2005-10-22 15:48:49.000000000 +0200
-@@ -63,7 +63,7 @@
- minute = (time % 10000) / 100;
- second = (time % 100);
-
-- sprintf(buf, "%d:%2.2d:%2.2d %s %d, %d (day %d)",
-+ snprintf(buf, 29, "%d:%2.2d:%2.2d %s %d, %d (day %d)",
- hour, minute, second, month_info[month].name, day, year,
- (date % 1000));
- return(buf);
-diff -ru xloadimage.4.1.orig/png.c xloadimage.4.1/png.c
---- xloadimage.4.1.orig/png.c 2005-10-22 15:47:17.000000000 +0200
-+++ xloadimage.4.1/png.c 2005-10-22 16:02:20.000000000 +0200
-@@ -30,7 +30,7 @@
- #undef debug
-
- #ifdef DEBUG
--# define debug(xx) fprintf(stderr,xx)
-+# define debug(xx) fprintf(stderr, "%s", xx)
- #else
- # define debug(xx)
- #endif
-diff -ru xloadimage.4.1.orig/reduce.c xloadimage.4.1/reduce.c
---- xloadimage.4.1.orig/reduce.c 2005-10-22 15:47:17.000000000 +0200
-+++ xloadimage.4.1/reduce.c 2005-10-22 15:48:49.000000000 +0200
-@@ -502,7 +502,7 @@
-
- depth= colorsToDepth(n);
- new_image= newRGBImage(image->width, image->height, depth);
-- sprintf(buf, "%s (%d colors)", image->title, n);
-+ snprintf(buf, BUFSIZ - 1, "%s (%d colors)", image->title, n);
- new_image->title= dupString(buf);
-
- /* calculate RGB table from each color area. this should really calculate
-diff -ru xloadimage.4.1.orig/rle.c xloadimage.4.1/rle.c
---- xloadimage.4.1.orig/rle.c 2005-10-22 15:47:17.000000000 +0200
-+++ xloadimage.4.1/rle.c 2005-10-22 16:00:06.000000000 +0200
-@@ -21,7 +21,7 @@
- #undef debug
-
- #ifdef DEBUG
--# define debug(xx) fprintf(stderr,xx)
-+# define debug(xx) fprintf(stderr, "%s", xx)
- #else
- # define debug(xx)
- #endif
-diff -ru xloadimage.4.1.orig/rotate.c xloadimage.4.1/rotate.c
---- xloadimage.4.1.orig/rotate.c 2005-10-22 15:47:17.000000000 +0200
-+++ xloadimage.4.1/rotate.c 2005-10-22 15:48:49.000000000 +0200
-@@ -70,7 +70,7 @@
- { printf(" Rotating image by %d degrees...", degrees);
- fflush(stdout);
- }
-- sprintf(buf, "%s (rotated by %d degrees)", simage->title, degrees);
-+ snprintf(buf, BUFSIZ - 1, "%s (rotated by %d degrees)", simage->title, degrees);
-
- image1 = simage;
- image2 = NULL;
-diff -ru xloadimage.4.1.orig/tiff.c xloadimage.4.1/tiff.c
---- xloadimage.4.1.orig/tiff.c 2005-10-22 15:47:17.000000000 +0200
-+++ xloadimage.4.1/tiff.c 2005-10-22 15:48:49.000000000 +0200
-@@ -133,14 +133,14 @@
- switch (info->photometric) {
- case PHOTOMETRIC_MINISBLACK:
- if (info->bitspersample > 1) {
-- sprintf(buf, "%d-bit greyscale ", info->bitspersample);
-+ snprintf(buf, 31, "%d-bit greyscale ", info->bitspersample);
- return(buf);
- }
- else
- return "white-on-black ";
- case PHOTOMETRIC_MINISWHITE:
- if (info->bitspersample > 1) {
-- sprintf(buf, "%d-bit greyscale ", info->bitspersample);
-+ snprintf(buf, 31, "%d-bit greyscale ", info->bitspersample);
- return(buf);
- }
- else
-diff -ru xloadimage.4.1.orig/window.c xloadimage.4.1/window.c
---- xloadimage.4.1.orig/window.c 2005-10-22 15:47:17.000000000 +0200
-+++ xloadimage.4.1/window.c 2005-10-22 15:48:50.000000000 +0200
-@@ -606,7 +606,7 @@
- else {
- char def_geom[30];
-
-- sprintf(def_geom, "%ux%u+0+0", image->width, image->height);
-+ snprintf(def_geom, 29, "%ux%u+0+0", image->width, image->height);
- XGeometry(disp, scrn, opt->info.geometry.string, def_geom, 0, 1, 1, 0, 0,
- (int *)&winx, (int *)&winy, (int *)&winwidth, (int *)&winheight);
- }
-diff -ru xloadimage.4.1.orig/zio.c xloadimage.4.1/zio.c
---- xloadimage.4.1.orig/zio.c 2005-10-22 15:47:17.000000000 +0200
-+++ xloadimage.4.1/zio.c 2005-10-22 15:48:50.000000000 +0200
-@@ -233,7 +233,7 @@
- strcpy (s, "'");
- debug(("Filtering image through '%s'\n", filter->filter));
- zf->type= ZPIPE;
-- sprintf(buf, "%s %s", filter->filter, fname);
-+ snprintf(buf, BUFSIZ - 1, "%s %s", filter->filter, fname);
- lfree (fname);
- if (! (zf->stream= popen(buf, "r"))) {
- lfree((byte *)zf->filename);
-diff -ru xloadimage.4.1.orig/zoom.c xloadimage.4.1/zoom.c
---- xloadimage.4.1.orig/zoom.c 2005-10-22 15:47:17.000000000 +0200
-+++ xloadimage.4.1/zoom.c 2005-10-22 15:48:50.000000000 +0200
-@@ -63,23 +63,23 @@
- if (!xzoom) {
- if (verbose)
- printf(" Zooming image Y axis by %d%%...", yzoom);
-- sprintf(buf, "%s (Y zoom %d%%)", oimage->title, yzoom);
-+ snprintf(buf, BUFSIZ - 1, "%s (Y zoom %d%%)", oimage->title, yzoom);
- }
- else if (!yzoom) {
- if (verbose)
- printf(" Zooming image X axis by %d%%...", xzoom);
-- sprintf(buf, "%s (X zoom %d%%)", oimage->title, xzoom);
-+ snprintf(buf, BUFSIZ - 1, "%s (X zoom %d%%)", oimage->title, xzoom);
- }
- else if (xzoom == yzoom) {
- if (verbose)
- printf(" Zooming image by %d%%...", xzoom);
-- sprintf(buf, "%s (%d%% zoom)", oimage->title, xzoom);
-+ snprintf(buf, BUFSIZ - 1, "%s (%d%% zoom)", oimage->title, xzoom);
- }
- else {
- if (verbose)
- printf(" Zooming image X axis by %d%% and Y axis by %d%%...",
- xzoom, yzoom);
-- sprintf(buf, "%s (X zoom %d%% Y zoom %d%%)", oimage->title,
-+ snprintf(buf, BUFSIZ - 1, "%s (X zoom %d%% Y zoom %d%%)", oimage->title,
- xzoom, yzoom);
- }
- if (verbose)
diff --git a/media-gfx/xloadimage/metadata.xml b/media-gfx/xloadimage/metadata.xml
deleted file mode 100644
index bef24d2c2337..000000000000
--- a/media-gfx/xloadimage/metadata.xml
+++ /dev/null
@@ -1,5 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
-<pkgmetadata>
- <!-- maintainer-needed -->
-</pkgmetadata>
diff --git a/media-gfx/xloadimage/xloadimage-4.1-r15.ebuild b/media-gfx/xloadimage/xloadimage-4.1-r15.ebuild
deleted file mode 100644
index 984fe17d6d40..000000000000
--- a/media-gfx/xloadimage/xloadimage-4.1-r15.ebuild
+++ /dev/null
@@ -1,92 +0,0 @@
-# Copyright 1999-2023 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-inherit autotools flag-o-matic toolchain-funcs
-
-DESCRIPTION="Utility to view many different types of images under X11"
-HOMEPAGE="https://sioseis.ucsd.edu/xloadimage.html https://tracker.debian.org/pkg/xloadimage"
-SRC_URI="
- ftp://ftp.x.org/R5contrib/${P/-/.}.tar.gz
- mirror://gentoo/${P}-gentoo-r1.diff.bz2
- https://dev.gentoo.org/~sam/distfiles/${CATEGORY}/${PN}/${P}-fix-build-for-clang16.patch.xz
-"
-S="${WORKDIR}"/${P/-/.}
-
-LICENSE="MIT"
-SLOT="0"
-KEYWORDS="~alpha amd64 arm ~hppa ~mips ppc ppc64 sparc x86 ~amd64-linux ~x86-linux ~ppc-macos"
-IUSE="tiff jpeg png"
-
-RDEPEND="x11-libs/libX11
- tiff? ( media-libs/tiff:= )
- png? ( media-libs/libpng:= )
- jpeg? ( media-libs/libjpeg-turbo:= )
- !media-gfx/xli"
-DEPEND="${RDEPEND}"
-
-PATCHES=(
- "${WORKDIR}"/${P}-gentoo-r1.diff
- "${FILESDIR}"/${P}-zio-shell-meta-char.diff
- "${FILESDIR}"/${P}-endif.patch
- # Do not define errno extern, but rather include errno.h
- # <azarah@gentoo.org> (1 Jan 2003)
- "${FILESDIR}"/${P}-include-errno_h.patch
- "${FILESDIR}"/xloadimage-gentoo.patch
- "${FILESDIR}"/${P}-unaligned-access.patch
- "${FILESDIR}"/${P}-ldflags_and_exit.patch
- "${FILESDIR}"/${P}-libpng15.patch
- "${WORKDIR}"/${P}-fix-build-for-clang16.patch
- # One of the previous patches screws up a bracket...
- "${FILESDIR}"/${P}-bracket.patch
-)
-
-src_prepare() {
- default
-
- sed -i -e "s:OPT_FLAGS=:OPT_FLAGS=$CFLAGS:" Make.conf || die
- sed -i -e "s:^#include <varargs.h>:#include <stdarg.h>:" rlelib.c || die
- # qa-sed sees no-op on the next sed on non-gentoo-prefix systems,
- # but that is alright
- sed -i -e "/^DEFS = /s:/etc:${EPREFIX}/etc:" Makefile.in || die
- sed -i \
- -e 's:png_set_gray_1_2_4_to_8:png_set_expand_gray_1_2_4_to_8:' \
- png.c || die
-
- eautoreconf
-}
-
-src_configure() {
- # Set TIFFHeader to TIFFHeaderCommon wrt #319383
- has_version '>=media-libs/tiff-4.0.0_pre' && \
- append-flags -DTIFFHeader=TIFFHeaderCommon
-
- tc-export CC
- econf $(use_with jpeg) \
- $(use_with png) \
- $(use_with tiff)
-}
-
-src_compile() {
- emake SYSPATHFILE="${EPREFIX}"/etc/X11/Xloadimage
-}
-
-src_install() {
- dobin xloadimage uufilter
-
- dosym xloadimage /usr/bin/xsetbg
- dosym xloadimage /usr/bin/xview
-
- insinto /etc/X11
- doins xloadimagerc
-
- newman xloadimage.man xloadimage.1
- newman uufilter.man uufilter.1
-
- echo ".so man1/xloadimage.1" > "${T}"/xsetbg.1 || die
- doman "${T}"/xsetbg.1
- newman "${T}"/xsetbg.1 xview.1
-
- dodoc README
-}
diff --git a/media-gfx/xloadimage/xloadimage-4.1-r16.ebuild b/media-gfx/xloadimage/xloadimage-4.1-r16.ebuild
deleted file mode 100644
index 55580772932d..000000000000
--- a/media-gfx/xloadimage/xloadimage-4.1-r16.ebuild
+++ /dev/null
@@ -1,93 +0,0 @@
-# Copyright 1999-2024 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-inherit autotools flag-o-matic toolchain-funcs
-
-DESCRIPTION="Utility to view many different types of images under X11"
-HOMEPAGE="https://sioseis.ucsd.edu/xloadimage.html https://tracker.debian.org/pkg/xloadimage"
-SRC_URI="
- ftp://ftp.x.org/R5contrib/${P/-/.}.tar.gz
- mirror://gentoo/${P}-gentoo-r1.diff.bz2
- https://dev.gentoo.org/~sam/distfiles/${CATEGORY}/${PN}/${P}-fix-build-for-clang16.patch.xz
-"
-S="${WORKDIR}"/${P/-/.}
-
-LICENSE="MIT"
-SLOT="0"
-KEYWORDS="~alpha amd64 ~arm ~hppa ~mips ppc ~ppc64 sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos"
-IUSE="tiff jpeg png"
-
-RDEPEND="x11-libs/libX11
- tiff? ( media-libs/tiff:= )
- png? ( media-libs/libpng:= )
- jpeg? ( media-libs/libjpeg-turbo:= )
- !media-gfx/xli"
-DEPEND="${RDEPEND}"
-
-PATCHES=(
- "${WORKDIR}"/${P}-gentoo-r1.diff
- "${FILESDIR}"/${P}-zio-shell-meta-char.diff
- "${FILESDIR}"/${P}-endif.patch
- # Do not define errno extern, but rather include errno.h
- # <azarah@gentoo.org> (1 Jan 2003)
- "${FILESDIR}"/${P}-include-errno_h.patch
- "${FILESDIR}"/xloadimage-gentoo.patch
- "${FILESDIR}"/${P}-unaligned-access.patch
- "${FILESDIR}"/${P}-ldflags_and_exit.patch
- "${FILESDIR}"/${P}-libpng15.patch
- "${WORKDIR}"/${P}-fix-build-for-clang16.patch
- # One of the previous patches screws up a bracket...
- "${FILESDIR}"/${P}-bracket.patch
- "${FILESDIR}"/${P}-fix-incomp-function-pointer-types.patch
-)
-
-src_prepare() {
- default
-
- sed -i -e "s:OPT_FLAGS=:OPT_FLAGS=$CFLAGS:" Make.conf || die
- sed -i -e "s:^#include <varargs.h>:#include <stdarg.h>:" rlelib.c || die
- # qa-sed sees no-op on the next sed on non-gentoo-prefix systems,
- # but that is alright
- sed -i -e "/^DEFS = /s:/etc:${EPREFIX}/etc:" Makefile.in || die
- sed -i \
- -e 's:png_set_gray_1_2_4_to_8:png_set_expand_gray_1_2_4_to_8:' \
- png.c || die
-
- eautoreconf
-}
-
-src_configure() {
- # Set TIFFHeader to TIFFHeaderCommon wrt #319383
- has_version '>=media-libs/tiff-4.0.0_pre' && \
- append-flags -DTIFFHeader=TIFFHeaderCommon
-
- tc-export CC
- econf $(use_with jpeg) \
- $(use_with png) \
- $(use_with tiff)
-}
-
-src_compile() {
- emake SYSPATHFILE="${EPREFIX}"/etc/X11/Xloadimage
-}
-
-src_install() {
- dobin xloadimage uufilter
-
- dosym xloadimage /usr/bin/xsetbg
- dosym xloadimage /usr/bin/xview
-
- insinto /etc/X11
- doins xloadimagerc
-
- newman xloadimage.man xloadimage.1
- newman uufilter.man uufilter.1
-
- echo ".so man1/xloadimage.1" > "${T}"/xsetbg.1 || die
- doman "${T}"/xsetbg.1
- newman "${T}"/xsetbg.1 xview.1
-
- dodoc README
-}
diff --git a/media-gfx/xloadimage/xloadimage-4.1-r17.ebuild b/media-gfx/xloadimage/xloadimage-4.1-r17.ebuild
deleted file mode 100644
index 13cc65fc73aa..000000000000
--- a/media-gfx/xloadimage/xloadimage-4.1-r17.ebuild
+++ /dev/null
@@ -1,97 +0,0 @@
-# Copyright 1999-2025 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-inherit autotools flag-o-matic toolchain-funcs
-
-DESCRIPTION="Utility to view many different types of images under X11"
-HOMEPAGE="https://sioseis.ucsd.edu/xloadimage.html https://tracker.debian.org/pkg/xloadimage"
-SRC_URI="
- ftp://ftp.x.org/R5contrib/${P/-/.}.tar.gz
- mirror://gentoo/${P}-gentoo-r1.diff.bz2
- https://dev.gentoo.org/~sam/distfiles/${CATEGORY}/${PN}/${P}-fix-build-for-clang16.patch.xz
-"
-S="${WORKDIR}"/${P/-/.}
-
-LICENSE="MIT"
-SLOT="0"
-KEYWORDS="~alpha amd64 ~arm ~hppa ~mips ppc ppc64 sparc x86 ~amd64-linux ~x86-linux ~ppc-macos"
-IUSE="tiff jpeg png"
-
-RDEPEND="x11-libs/libX11
- tiff? ( media-libs/tiff:= )
- png? ( media-libs/libpng:= )
- jpeg? ( media-libs/libjpeg-turbo:= )
- !media-gfx/xli"
-DEPEND="${RDEPEND}
- x11-base/xorg-proto"
-
-PATCHES=(
- "${WORKDIR}"/${P}-gentoo-r1.diff
- "${FILESDIR}"/${P}-zio-shell-meta-char.diff
- "${FILESDIR}"/${P}-endif.patch
- # Do not define errno extern, but rather include errno.h
- # <azarah@gentoo.org> (1 Jan 2003)
- "${FILESDIR}"/${P}-include-errno_h.patch
- "${FILESDIR}"/xloadimage-gentoo.patch
- "${FILESDIR}"/${P}-unaligned-access.patch
- "${FILESDIR}"/${P}-ldflags_and_exit.patch
- "${FILESDIR}"/${P}-libpng15.patch
- "${WORKDIR}"/${P}-fix-build-for-clang16.patch
- # One of the previous patches screws up a bracket...
- "${FILESDIR}"/${P}-bracket.patch
- "${FILESDIR}"/${P}-fix-incomp-function-pointer-types.patch
- "${FILESDIR}"/${P}-c99.patch
-)
-
-src_prepare() {
- default
-
- sed -i -e "s|OPT_FLAGS=|OPT_FLAGS=$CFLAGS|" Make.conf || die
- sed -i -e "s:^#include <varargs.h>:#include <stdarg.h>:" rlelib.c || die
- # qa-sed sees no-op on the next sed on non-gentoo-prefix systems,
- # but that is alright
- sed -i -e "/^DEFS = /s:/etc:${EPREFIX}/etc:" Makefile.in || die
- sed -i \
- -e 's:png_set_gray_1_2_4_to_8:png_set_expand_gray_1_2_4_to_8:' \
- png.c || die
-
- eautoreconf
-}
-
-src_configure() {
- append-cflags -std=gnu17
-
- # Set TIFFHeader to TIFFHeaderCommon wrt #319383
- has_version '>=media-libs/tiff-4.0.0_pre' && \
- append-flags -DTIFFHeader=TIFFHeaderCommon
-
- tc-export CC
- econf $(use_with jpeg) \
- $(use_with png) \
- $(use_with tiff)
-}
-
-src_compile() {
- emake SYSPATHFILE="${EPREFIX}"/etc/X11/Xloadimage
-}
-
-src_install() {
- dobin xloadimage uufilter
-
- dosym xloadimage /usr/bin/xsetbg
- dosym xloadimage /usr/bin/xview
-
- insinto /etc/X11
- doins xloadimagerc
-
- newman xloadimage.man xloadimage.1
- newman uufilter.man uufilter.1
-
- echo ".so man1/xloadimage.1" > "${T}"/xsetbg.1 || die
- doman "${T}"/xsetbg.1
- newman "${T}"/xsetbg.1 xview.1
-
- dodoc README
-}
diff --git a/media-gfx/xloadimage/xloadimage-4.1-r18.ebuild b/media-gfx/xloadimage/xloadimage-4.1-r18.ebuild
deleted file mode 100644
index 848cd70d77c4..000000000000
--- a/media-gfx/xloadimage/xloadimage-4.1-r18.ebuild
+++ /dev/null
@@ -1,97 +0,0 @@
-# Copyright 1999-2025 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-inherit autotools flag-o-matic toolchain-funcs
-
-DESCRIPTION="Utility to view many different types of images under X11"
-HOMEPAGE="https://sioseis.ucsd.edu/xloadimage.html https://tracker.debian.org/pkg/xloadimage"
-SRC_URI="
- ftp://ftp.x.org/R5contrib/${P/-/.}.tar.gz
- mirror://gentoo/${P}-gentoo-r1.diff.bz2
- https://dev.gentoo.org/~sam/distfiles/${CATEGORY}/${PN}/${P}-fix-build-for-clang16.patch.xz
-"
-S="${WORKDIR}"/${P/-/.}
-
-LICENSE="MIT"
-SLOT="0"
-KEYWORDS="~alpha amd64 ~arm ~hppa ~mips ppc ppc64 sparc x86 ~amd64-linux ~x86-linux ~ppc-macos"
-IUSE="tiff jpeg png"
-
-RDEPEND="x11-libs/libX11
- tiff? ( media-libs/tiff:= )
- png? ( media-libs/libpng:= )
- jpeg? ( media-libs/libjpeg-turbo:= )
- !media-gfx/xli"
-DEPEND="${RDEPEND}
- x11-base/xorg-proto"
-
-PATCHES=(
- "${WORKDIR}"/${P}-gentoo-r1.diff
- "${FILESDIR}"/${P}-zio-shell-meta-char.diff
- "${FILESDIR}"/${P}-endif.patch
- # Do not define errno extern, but rather include errno.h
- # <azarah@gentoo.org> (1 Jan 2003)
- "${FILESDIR}"/${P}-include-errno_h.patch
- "${FILESDIR}"/xloadimage-gentoo.patch
- "${FILESDIR}"/${P}-unaligned-access.patch
- "${FILESDIR}"/${P}-ldflags_and_exit.patch
- "${FILESDIR}"/${P}-libpng15.patch
- "${WORKDIR}"/${P}-fix-build-for-clang16.patch
- # One of the previous patches screws up a bracket...
- "${FILESDIR}"/${P}-bracket.patch
- "${FILESDIR}"/${P}-fix-incomp-function-pointer-musl.patch
- "${FILESDIR}"/${P}-c99.patch
-)
-
-src_prepare() {
- default
-
- sed -i -e "s|OPT_FLAGS=|OPT_FLAGS=$CFLAGS|" Make.conf || die
- sed -i -e "s:^#include <varargs.h>:#include <stdarg.h>:" rlelib.c || die
- # qa-sed sees no-op on the next sed on non-gentoo-prefix systems,
- # but that is alright
- sed -i -e "/^DEFS = /s:/etc:${EPREFIX}/etc:" Makefile.in || die
- sed -i \
- -e 's:png_set_gray_1_2_4_to_8:png_set_expand_gray_1_2_4_to_8:' \
- png.c || die
-
- eautoreconf
-}
-
-src_configure() {
- append-cflags -std=gnu17
-
- # Set TIFFHeader to TIFFHeaderCommon wrt #319383
- has_version '>=media-libs/tiff-4.0.0_pre' && \
- append-flags -DTIFFHeader=TIFFHeaderCommon
-
- tc-export CC
- econf $(use_with jpeg) \
- $(use_with png) \
- $(use_with tiff)
-}
-
-src_compile() {
- emake SYSPATHFILE="${EPREFIX}"/etc/X11/Xloadimage
-}
-
-src_install() {
- dobin xloadimage uufilter
-
- dosym xloadimage /usr/bin/xsetbg
- dosym xloadimage /usr/bin/xview
-
- insinto /etc/X11
- doins xloadimagerc
-
- newman xloadimage.man xloadimage.1
- newman uufilter.man uufilter.1
-
- echo ".so man1/xloadimage.1" > "${T}"/xsetbg.1 || die
- doman "${T}"/xsetbg.1
- newman "${T}"/xsetbg.1 xview.1
-
- dodoc README
-}