summaryrefslogtreecommitdiff
path: root/media-libs/compface
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2023-10-01 11:42:50 +0100
committerV3n3RiX <venerix@koprulu.sector>2023-10-01 11:42:50 +0100
commitb447ac3a6d1bb09ddb6a5686620670e223b37642 (patch)
tree4d6d1ca6d418b0dc7c50e0e94cef5038f5fb2483 /media-libs/compface
parent9a92076d428b51966bd8d699427341e5500b3a8a (diff)
gentoo auto-resync : 01:10:2023 - 11:42:49
Diffstat (limited to 'media-libs/compface')
-rw-r--r--media-libs/compface/Manifest2
-rw-r--r--media-libs/compface/compface-1.5.2-r1.ebuild31
-rw-r--r--media-libs/compface/files/compface-modern-c-porting.patch515
3 files changed, 548 insertions, 0 deletions
diff --git a/media-libs/compface/Manifest b/media-libs/compface/Manifest
index bc0c77513936..3e65af866d0f 100644
--- a/media-libs/compface/Manifest
+++ b/media-libs/compface/Manifest
@@ -1,4 +1,6 @@
AUX compface-gentoo.patch 1415 BLAKE2B cac49f8b6cb2680df1ef46a811a3dfaf1f7c170b69f3eeb91daa784e885fd75925169a85e6716944056b9f0fa4d29df96c795c3d16f1a1b89d54468faf555c17 SHA512 e966f02c7566a657751ad4ecd30805c5cb77e9fd76a458d639ff3291d0bd3c4e886bfc37106a755b1387c5ceee331eee1921595249e07175918bb218cd449a10
+AUX compface-modern-c-porting.patch 8123 BLAKE2B db65f7854886637ee990bce3d3b46e57af7da0e21e43267cac8dc59bb20fb09b04ed77939631ceeb594029b0be0823965e67a7be52efd462490067addbc107a5 SHA512 a8f8b2d4be269c7a1135394aee9d0d65323fc54db21a73a085c6a50b7659d172f20a9ecf397443292c40ebefd059b3caed2c843b301d9d37f3a31472822e0e85
DIST compface-1.5.2.tar.gz 46970 BLAKE2B d26c25a35b3a2e63ddfb50feace61930fa3be9f4150ad8f8c96a3820ccebf1422fda5703628d58ad646f1d1eeaccc5f2f08ed5f2e74b845f5d7328f2829e63d6 SHA512 0da9ee4c5fb2b5c712466d9fa6170e5687b23c038e6304baa42d7ede6d9bd50a1b84da416eb853a420c01a6b9eccd5e7d92a4ebc26295714b85254c05c9e3360
+EBUILD compface-1.5.2-r1.ebuild 672 BLAKE2B 81f426ef10babdfaf974657b573f899eca46f0e6f8845d10b540be3a95345d045e54d80a75a43c1af9336ad81ea9918b53aad33b71fb7956498e5d94047b0a49 SHA512 b8ee00fbe66fb561b9e892f9a92dd9b474437c4436e8c83212d45947189ec3efa01a5e80345eb5978e075513eb72b26bde4fbe4379cb080c54178ef8a12ae675
EBUILD compface-1.5.2.ebuild 620 BLAKE2B 445cf51de262bbd945e747b196d500a3d959cfd24edad59f15595f1d1181352bd503c5512366b9d5ea606258bbd9a85165cdf21b6b597b5424dffabcbee79835 SHA512 461b140c9979c1c83d8288d0edfdd16bd1631c19a8d97c206a7f8a484713974ad46110b091940160843697466c794f7634ba1cfbf7db603ed6072643eb87ee3a
MISC metadata.xml 249 BLAKE2B a37da98d387308dab889eab2665b67e4176707f3c115a7a69cb7f4b19f9864b96bc2fe70efa105e627c4b57a7d626f6b23dc2709a225a9debada3356f3cf32a0 SHA512 a5095fb01e05f24583a962e36131b2f02cf2d1dd7a97051200e465ad97db014721de7c1857f5eb736cb0290682e8de833cb4c735f7de8d98cdfae1aed6d3d549
diff --git a/media-libs/compface/compface-1.5.2-r1.ebuild b/media-libs/compface/compface-1.5.2-r1.ebuild
new file mode 100644
index 000000000000..4577e34db17b
--- /dev/null
+++ b/media-libs/compface/compface-1.5.2-r1.ebuild
@@ -0,0 +1,31 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="7"
+
+inherit autotools
+
+DESCRIPTION="Utilities and library to convert to/from X-Face format"
+HOMEPAGE="http://www.xemacs.org/Download/optLibs.html"
+SRC_URI="http://ftp.xemacs.org/pub/xemacs/aux/${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~ppc ~ppc64 ~riscv ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos"
+
+RDEPEND="dev-lang/perl"
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-gentoo.patch
+ "${FILESDIR}"/${PN}-modern-c-porting.patch
+)
+
+src_prepare() {
+ default
+ eautoreconf
+}
+
+src_install() {
+ default
+ newbin xbm2xface{.pl,}
+}
diff --git a/media-libs/compface/files/compface-modern-c-porting.patch b/media-libs/compface/files/compface-modern-c-porting.patch
new file mode 100644
index 000000000000..bc29be071240
--- /dev/null
+++ b/media-libs/compface/files/compface-modern-c-porting.patch
@@ -0,0 +1,515 @@
+diff --git a/arith.c b/arith.c
+index 784946f..a4dd9df 100644
+--- a/arith.c
++++ b/arith.c
+@@ -20,8 +20,7 @@
+ #include "compface.h"
+
+ void
+-RevPush(p)
+-Prob *p;
++RevPush(Prob *p)
+ {
+ if (NumProbs >= PIXELS * 2 - 1)
+ longjmp(comp_env, ERR_INTERNAL);
+@@ -29,8 +28,7 @@ Prob *p;
+ }
+
+ void
+-BigPush(p)
+-Prob *p;
++BigPush(Prob *p)
+ {
+ static WORD tmp;
+
+@@ -40,11 +38,10 @@ Prob *p;
+ }
+
+ int
+-BigPop(p)
+-register Prob *p;
++BigPop(Prob *p)
+ {
+ static WORD tmp;
+- register int i;
++ int i;
+
+ BigDiv(0, &tmp);
+ i = 0;
+@@ -61,11 +58,11 @@ register Prob *p;
+ #ifdef DEBUG
+ /* Print a BigInt in HexaDecimal
+ */
+-void
+-BigPrint()
++void
++BigPrint (void)
+ {
+- register int i, c, count;
+- register WORD *w;
++ int i, c, count;
++ WORD *w;
+
+ count = 0;
+ w = B.b_word + (i = B.b_words);
+@@ -91,12 +88,11 @@ BigPrint()
+ * pointer to by r
+ */
+ void
+-BigDiv(a, r)
+-register WORD a, *r;
++BigDiv(WORD a, WORD *r)
+ {
+- register int i;
+- register WORD *w;
+- register COMP c, d;
++ int i;
++ WORD *w;
++ COMP c, d;
+
+ a &= WORDMASK;
+ if ((a == 1) || (B.b_words == 0))
+@@ -135,12 +131,11 @@ register WORD a, *r;
+ /* Multiply a by B storing the result in B
+ */
+ void
+-BigMul(a)
+-register WORD a;
++BigMul(WORD a)
+ {
+- register int i;
+- register WORD *w;
+- register COMP c;
++ int i;
++ WORD *w;
++ COMP c;
+
+ a &= WORDMASK;
+ if ((a == 1) || (B.b_words == 0))
+@@ -179,12 +174,11 @@ register WORD a;
+ /* Subtract a from B storing the result in B
+ */
+ void
+-BigSub(a)
+-WORD a;
++BigSub(WORD a)
+ {
+- register int i;
+- register WORD *w;
+- register COMP c;
++ int i;
++ WORD *w;
++ COMP c;
+
+ a &= WORDMASK;
+ if (a == 0)
+@@ -209,12 +203,11 @@ WORD a;
+ /* Add to a to B storing the result in B
+ */
+ void
+-BigAdd(a)
+-WORD a;
++BigAdd(WORD a)
+ {
+- register int i;
+- register WORD *w;
+- register COMP c;
++ int i;
++ WORD *w;
++ COMP c;
+
+ a &= WORDMASK;
+ if (a == 0)
+@@ -237,8 +230,8 @@ WORD a;
+ }
+ }
+
+-void
+-BigClear()
++void
++BigClear (void)
+ {
+ B.b_words = 0;
+ }
+diff --git a/cmain.c b/cmain.c
+index ec0558d..2a95bc2 100644
+--- a/cmain.c
++++ b/cmain.c
+@@ -61,9 +61,7 @@ char *strerrorwrap();
+ #define WARN {(void)strcat(fbuf, "\n"); (void)write(2, fbuf, strlen(fbuf));}
+
+ int
+-main(argc, argv)
+-int argc;
+-char *argv[];
++main(int argc, char **argv)
+ {
+ cmdname = *argv;
+ while (**argv)
+@@ -121,11 +119,11 @@ char *argv[];
+ }
+
+
+-int
+-WriteBuf()
++int
++WriteBuf (void)
+ {
+- register char *s, *t;
+- register int len;
++ char *s, *t;
++ int len;
+
+ s = fbuf;
+ t = s + strlen(s);
+@@ -144,15 +142,15 @@ WriteBuf()
+ }
+
+
+-int
+-ReadBuf()
++int
++ReadBuf (void)
+ {
+- register int count, len;
+- register char *t;
++ int count, len;
++ char *t;
+
+ count = 0;
+ t = fbuf;
+- while (len = read(infile, t, FACEBUFLEN - count))
++ while ((len = read(infile, t, FACEBUFLEN - count)))
+ {
+ if (len == -1)
+ {
+@@ -175,8 +173,7 @@ ReadBuf()
+ }
+
+ #ifdef HAVE_STRERROR
+-char *strerrorwrap(err)
+-int err;
++char *strerrorwrap(int err)
+ {
+ char *c = strerror(err);
+ return ((c) ? (c) : "" );
+diff --git a/compface.c b/compface.c
+index 90664c4..b1b00a8 100644
+--- a/compface.c
++++ b/compface.c
+@@ -22,8 +22,7 @@
+ #include "compface_private.h"
+
+ int
+-compface(fbuf)
+-char *fbuf;
++compface(char *fbuf)
+ {
+ if (!(status = setjmp(comp_env)))
+ {
+diff --git a/compface.h b/compface.h
+index fc4f486..23ae426 100644
+--- a/compface.h
++++ b/compface.h
+@@ -17,6 +17,7 @@
+ #define COMPFACE_H
+
+ #include <setjmp.h>
++#include <unistd.h>
+
+ /* For all function declarations, if ANSI then use a prototype. */
+
+diff --git a/compress.c b/compress.c
+index 3c97806..6f22e17 100644
+--- a/compress.c
++++ b/compress.c
+@@ -21,12 +21,10 @@
+ #include "compface.h"
+
+ int
+-Same(f, wid, hei)
+-register char *f;
+-register int wid, hei;
++Same(char *f, int wid, int hei)
+ {
+- register char val, *row;
+- register int x;
++ char val, *row;
++ int x;
+
+ val = *f;
+ while (hei--)
+@@ -42,9 +40,7 @@ register int wid, hei;
+ }
+
+ int
+-AllBlack(f, wid, hei)
+-char *f;
+-int wid, hei;
++AllBlack(char *f, int wid, int hei)
+ {
+ if (wid > 3)
+ {
+@@ -59,17 +55,13 @@ int wid, hei;
+ }
+
+ int
+-AllWhite(f, wid, hei)
+-char *f;
+-int wid, hei;
++AllWhite(char *f, int wid, int hei)
+ {
+ return ((*f == 0) && Same(f, wid, hei));
+ }
+
+ void
+-PopGreys(f, wid, hei)
+-char *f;
+-int wid, hei;
++PopGreys(char *f, int wid, int hei)
+ {
+ if (wid > 3)
+ {
+@@ -95,9 +87,7 @@ int wid, hei;
+ }
+
+ void
+-PushGreys(f, wid, hei)
+-char *f;
+-int wid, hei;
++PushGreys(char *f, int wid, int hei)
+ {
+ if (wid > 3)
+ {
+@@ -114,9 +104,7 @@ int wid, hei;
+ }
+
+ void
+-UnCompress(f, wid, hei, lev)
+-register char *f;
+-register int wid, hei, lev;
++UnCompress(char *f, int wid, int hei, int lev)
+ {
+ switch (BigPop(&levels[lev][0]))
+ {
+@@ -138,9 +126,7 @@ register int wid, hei, lev;
+ }
+
+ void
+-Compress(f, wid, hei, lev)
+-register char *f;
+-register int wid, hei, lev;
++Compress(char *f, int wid, int hei, int lev)
+ {
+ if (AllWhite(f, wid, hei))
+ {
+@@ -164,10 +150,9 @@ register int wid, hei, lev;
+ }
+
+ void
+-UnCompAll(fbuf)
+-char *fbuf;
++UnCompAll(char *fbuf)
+ {
+- register char *p;
++ char *p;
+
+ BigClear();
+ BigRead(fbuf);
+@@ -186,8 +171,7 @@ char *fbuf;
+ }
+
+ void
+-CompAll(fbuf)
+-char *fbuf;
++CompAll(char *fbuf)
+ {
+ Compress(F, 16, 16, 0);
+ Compress(F + 16, 16, 16, 0);
+diff --git a/file.c b/file.c
+index 3a3809e..c69f5b5 100644
+--- a/file.c
++++ b/file.c
+@@ -23,10 +23,9 @@
+ int compface_xbitmap=0;
+
+ void
+-BigRead(fbuf)
+-register char *fbuf;
++BigRead(char *fbuf)
+ {
+- register int c;
++ int c;
+
+ while (*fbuf != '\0')
+ {
+@@ -39,13 +38,12 @@ register char *fbuf;
+ }
+
+ void
+-BigWrite(fbuf)
+-register char *fbuf;
++BigWrite(char *fbuf)
+ {
+ static WORD tmp;
+ static char buf[DIGITS];
+- register char *s;
+- register int i;
++ char *s;
++ int i;
+
+ s = buf;
+ while (B.b_words > 0)
+@@ -72,11 +70,10 @@ register char *fbuf;
+ }
+
+ void
+-ReadFace(fbuf)
+-char *fbuf;
++ReadFace(char *fbuf)
+ {
+- register int c, i;
+- register char *s, *t;
++ int c, i;
++ char *s, *t;
+
+ t = s = fbuf;
+ for(i = strlen(s); i > 0; i--)
+@@ -129,11 +126,10 @@ char *fbuf;
+ }
+
+ void
+-WriteFace(fbuf)
+-char *fbuf;
++WriteFace(char *fbuf)
+ {
+- register char *s, *t;
+- register int i, bits, digits, words;
++ char *s, *t;
++ int i, bits, digits, words;
+ int digsperword = DIGSPERWORD;
+ int wordsperline = WORDSPERLINE;
+
+diff --git a/gen.c b/gen.c
+index 4dedc09..1b99536 100644
+--- a/gen.c
++++ b/gen.c
+@@ -25,10 +25,9 @@
+ static void Gen P((char *)) ;
+
+ static void
+-Gen(f)
+-register char *f;
++Gen(char *f)
+ {
+- register int m, l, k, j, i, h;
++ int m, l, k, j, i, h;
+
+ for (j = 0; j < HEIGHT; j++)
+ {
+@@ -91,13 +90,13 @@ register char *f;
+ }
+ }
+
+-void
+-GenFace()
++void
++GenFace (void)
+ {
+ static char new[PIXELS];
+- register char *f1;
+- register char *f2;
+- register int i;
++ char *f1;
++ char *f2;
++ int i;
+
+ f1 = new;
+ f2 = F;
+@@ -107,8 +106,8 @@ GenFace()
+ Gen(new);
+ }
+
+-void
+-UnGenFace()
++void
++UnGenFace (void)
+ {
+ Gen(F);
+ }
+diff --git a/uncmain.c b/uncmain.c
+index a94279d..52d3173 100644
+--- a/uncmain.c
++++ b/uncmain.c
+@@ -57,9 +57,7 @@ char *strerrorwrap(int err);
+ #define WARN {(void)strcat(fbuf, "\n"); (void)write(2, fbuf, strlen(fbuf));}
+
+ int
+-main(argc, argv)
+-int argc;
+-char *argv[];
++main(int argc, char **argv)
+ {
+ cmdname = *argv;
+ while (**argv)
+@@ -124,11 +122,11 @@ char *argv[];
+ }
+
+
+-int
+-WriteBuf()
++int
++WriteBuf (void)
+ {
+- register char *s, *t;
+- register int len;
++ char *s, *t;
++ int len;
+
+ s = fbuf;
+ t = s + strlen(s);
+@@ -147,15 +145,15 @@ WriteBuf()
+ }
+
+
+-int
+-ReadBuf()
++int
++ReadBuf (void)
+ {
+- register int count, len;
+- register char *t;
++ int count, len;
++ char *t;
+
+ count = 0;
+ t = fbuf;
+- while (len = read(infile, t, FACEBUFLEN - count))
++ while ((len = read(infile, t, FACEBUFLEN - count)))
+ {
+ if (len == -1)
+ {
+@@ -178,8 +176,7 @@ ReadBuf()
+ }
+
+ #ifdef HAVE_STRERROR
+-char *strerrorwrap(err)
+-int err;
++char *strerrorwrap(int err)
+ {
+ char *c = strerror(err);
+ return ((c) ? (c) : "" );
+diff --git a/uncompface.c b/uncompface.c
+index 1a61eb5..d41f9bc 100644
+--- a/uncompface.c
++++ b/uncompface.c
+@@ -23,8 +23,7 @@
+ #include "compface_private.h"
+
+ int
+-uncompface(fbuf)
+-char *fbuf;
++uncompface(char *fbuf)
+ {
+ if (!(status = setjmp(comp_env)))
+ {