summaryrefslogtreecommitdiff
path: root/media-gfx/transfig
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2024-01-24 16:45:44 +0000
committerV3n3RiX <venerix@koprulu.sector>2024-01-24 16:45:44 +0000
commitb0fd0bc5c186e99078ed8d07146e8c14f1089639 (patch)
tree5567654e1937500080d1c90411624ab268d27795 /media-gfx/transfig
parent1804d2ae908b26fe4e3d3a38646c7d6ffa733d92 (diff)
gentoo auto-resync : 24:01:2024 - 16:45:44
Diffstat (limited to 'media-gfx/transfig')
-rw-r--r--media-gfx/transfig/Manifest5
-rw-r--r--media-gfx/transfig/files/transfig-3.2.5e-clang-17.patch258
-rw-r--r--media-gfx/transfig/metadata.xml9
-rw-r--r--media-gfx/transfig/transfig-3.2.5e-r2.ebuild (renamed from media-gfx/transfig/transfig-3.2.5e-r1.ebuild)5
4 files changed, 272 insertions, 5 deletions
diff --git a/media-gfx/transfig/Manifest b/media-gfx/transfig/Manifest
index 7c3388dac695..13685fcfc408 100644
--- a/media-gfx/transfig/Manifest
+++ b/media-gfx/transfig/Manifest
@@ -1,7 +1,8 @@
+AUX transfig-3.2.5e-clang-17.patch 6831 BLAKE2B 7a0c77e0697d4e7465edc3484d07b0be307322d0f9fab58e62c3371fecda937fb8e39a3c067d72ab2ffaadab26a517be45d59d3480b0469c2c41ab53e5e1a28d SHA512 2ed8864c47ade249509a903efaced6fd7036c1ddd257ef86604533d53645a46cc543b5ac7355d21b00b69a76725b6adf0a506522a80df3ab0979863b8a3f4461
AUX transfig-3.2.5e-clang.patch 352 BLAKE2B 4fd67be2edad08f410b846bc57701d4e3eaa88eb6eda65500ed2cf530d1e8a7772f4618e83d0440c4429ebbf0c14f08f8424896057eb5ebc230e1f1c5f12e982 SHA512 72ccf2ef21f7d90e688cd0bcc7e6aa91b0a460e34b6484ae0dc1e6d059ffc0f921af9c7637bf38aecbd66116583d4a13aee16d5643f6c4f771b480fa75828511
AUX transfig-3.2.5e-gcc10-fno-common.patch 939 BLAKE2B 70af7830470b5ed524d6b5df5ae11369476bbc60594da9bd766aa1d752020171b82e0d35e0d57ce1499f69e13b5a5f5274c9c530a2d7fa0f9deabda55462f0a0 SHA512 7b4b5dd4da00180f2eb34a7dcdc407e958df69ba843c371c496dc488977aa8045c31e1007f05e9dcb96765bfa83df75caabd92c99114555b252846892292e465
DIST fig2mpdf-1.1.2.tar.bz2 191438 BLAKE2B 411791fecf6e10aac92c004c7da69a10c97a6e12f811452f12d0b51b3a1eeff8fff97d831a5e64c9047855d27e6825a4e65f62be2536651e5876edd00cc822a9 SHA512 36dea40008371386b47a4451e2f311cc2540ab063e3b61e628a535775d62a8840c5cc20c37b80465184bf041c6e583aaf3e5156079e72211d0a87ff3346d2980
DIST transfig-3.2.5e-gentoo-patchset-r1.tar.bz2 21160 BLAKE2B 093020827fc0636f7549c3b325e4f148aa52407d8e288038dd02012875737523e83e0717662d04e463a01e8cfacfabffaaa4362b5bb1276c4f2052f6653fa26f SHA512 dbef1ca464929de45f3c706e76eb9f324ea9e692cc8c924893926e07ef7d4e0dbe597bcf465a9c7fc9fca22abe0acc6784ab09658a18aeff4ba44921b52b02ff
DIST transfig.3.2.5e.tar.gz 531256 BLAKE2B 830a97cb801b9cb284f7746a7f4a9645263cc34fd35d904288143d730331901302b12223ba135d8fa936f5ca0eeccacd194bbe2e74dfcfbf0cf4aede273ab507 SHA512 ed1379f1112514d90a4b3eecd3222baad311d804b5090e8e66867ec299e4f9a5f8d83ef8939aa6ecaa85a18143b8fb9b97f78e078ac5eeb934a158c55de6bb1e
-EBUILD transfig-3.2.5e-r1.ebuild 3476 BLAKE2B 5a3788a5a7ca45a75a53ea6b8fc98fa876ebb0e7b6af615f7a7d573982768829da9d518b838173f34efa0bf26c074e2fb29fd60ccdfa5ec6e61d02fb62b50c9f SHA512 1c54f2856a177750af53322b035b9bea6d0f44539fca467caf48461ac6812e2374f9f37e62a67f55629caaf1ad11274033b38b34d6833fb95f23a4185af17fc3
-MISC metadata.xml 239 BLAKE2B 7318d5b7bc5c4e143cab638973eb637b4d3b5e7d8ff039231251371b0574f12e318412fd306c2bcf7b6b3d5b04a7b103ca5e74c4f8088f944fa79b15f271a51f SHA512 f6816d8f304e955fa8f8e188f0ea7f0e20c2a13f19e5f5832d1e7ec7dda03c644196b762e5b76de6c19efc02fbafc4fc7add41627d36bcce537f7ec877a0ce3b
+EBUILD transfig-3.2.5e-r2.ebuild 3533 BLAKE2B 1bb12eb1dfe83010911b1278197e89ea707acae87e1b597eb34743c6ee583fe5d2a62898736d6eaba74f356c3739fff6726a7232615dd9afcacee7f98410b9cc SHA512 d402ce783ea7c50eb85b25b1bd9278bb11cf39d6a90ff5cd21654d06fe59d7f350298fc259fdcb16d5e86519b7b0fffa31f4364458eca87b631279b3d554d9bc
+MISC metadata.xml 484 BLAKE2B 8f0c03a4eae95a088a590133f0a911b6ff795d23aba1fddcafeceb40433b5af14c530b288552e6e97d5fd981dd37fc8491a7e4cfe5b79cf872c2fb70015d7cb6 SHA512 4c8313b75726d3fe87f68b7810f9f69a0a9fa4deddd856d5e7276bb5b419400ca583a96d59f3333edba52c71bc53f4687dcfe4e72e37e85e80a9cc95c52a733e
diff --git a/media-gfx/transfig/files/transfig-3.2.5e-clang-17.patch b/media-gfx/transfig/files/transfig-3.2.5e-clang-17.patch
new file mode 100644
index 000000000000..a4b68f22e55e
--- /dev/null
+++ b/media-gfx/transfig/files/transfig-3.2.5e-clang-17.patch
@@ -0,0 +1,258 @@
+diff --git a/fig2dev/dev/genibmgl.c b/fig2dev/dev/genibmgl.c
+index a14b96f..e24b181 100644
+--- a/fig2dev/dev/genibmgl.c
++++ b/fig2dev/dev/genibmgl.c
+@@ -50,7 +50,7 @@
+ #include "fig2dev.h"
+ #include "object.h"
+
+-static set_style();
++static void set_style();
+
+ #define FONTS 35
+ #define COLORS 8
+@@ -458,7 +458,7 @@ F_compound *objects;
+ fprintf(tfp, "VS%.2f;\n", pen_speed);
+ }
+
+-static arc_tangent(x1, y1, x2, y2, direction, x, y)
++static void arc_tangent(x1, y1, x2, y2, direction, x, y)
+ double x1, y1, x2, y2, *x, *y;
+ int direction;
+ {
+@@ -474,7 +474,7 @@ int direction;
+
+ /* draw arrow heading from (x1, y1) to (x2, y2) */
+
+-static draw_arrow_head(x1, y1, x2, y2, arrowht, arrowwid)
++static void draw_arrow_head(x1, y1, x2, y2, arrowht, arrowwid)
+ double x1, y1, x2, y2, arrowht, arrowwid;
+ {
+ double x, y, xb, yb, dx, dy, l, sina, cosa;
+@@ -512,7 +512,7 @@ double x1, y1, x2, y2, arrowht, arrowwid;
+ /*
+ * set_style - issue line style commands as appropriate
+ */
+-static set_style(style, length)
++static void set_style(style, length)
+ int style;
+ double length;
+ {
+@@ -567,7 +567,7 @@ double length;
+ * set_width - issue line width commands as appropriate
+ * NOTE: HPGL/2 command used
+ */
+-static set_width(w)
++static int set_width(w)
+ int w;
+ {
+ static int current_width=-1;
+@@ -585,7 +585,7 @@ static set_width(w)
+ /*
+ * set_color - issue line color commands as appropriate
+ */
+-static set_color(color)
++static void set_color(color)
+ int color;
+ {
+ static int number = 0; /* 1 <= number <= 8 */
+@@ -604,7 +604,7 @@ static set_color(color)
+ }
+ }
+
+-static fill_polygon(pattern, color)
++static void fill_polygon(pattern, color)
+ int pattern;
+ int color;
+ {
+@@ -876,7 +876,7 @@ void genibmgl_line(l)
+
+ #define THRESHOLD .05 /* inch */
+
+-static bezier_spline(a0, b0, a1, b1, a2, b2, a3, b3)
++static void bezier_spline(a0, b0, a1, b1, a2, b2, a3, b3)
+ double a0, b0, a1, b1, a2, b2, a3, b3;
+ {
+ double x0, y0, x3, y3;
+@@ -932,7 +932,7 @@ F_spline *s;
+ s->for_arrow->ht/ppi, s->for_arrow->wid/ppi);
+ }
+
+-static quadratic_spline(a1, b1, a2, b2, a3, b3, a4, b4)
++static void quadratic_spline(a1, b1, a2, b2, a3, b3, a4, b4)
+ double a1, b1, a2, b2, a3, b3, a4, b4;
+ {
+ double x1, y1, x4, y4;
+diff --git a/fig2dev/dev/genpstex.c b/fig2dev/dev/genpstex.c
+index 7ab1fb5..8768d4e 100644
+--- a/fig2dev/dev/genpstex.c
++++ b/fig2dev/dev/genpstex.c
+@@ -42,6 +42,7 @@
+ #include "genpdf.h"
+ #include "object.h"
+ #include "texfonts.h"
++#include "setfigfont.h"
+
+ extern double rad2deg;
+
+@@ -105,7 +106,7 @@ static void genpstex_p_finalize_objects(int depth);
+
+ /*************************************************************************
+ *************************************************************************/
+-static
++static int
+ translate2(xp, yp)
+ int *xp, *yp;
+ {
+@@ -113,7 +114,7 @@ translate2(xp, yp)
+ *yp = (double)(TOP - *yp -1);
+ }
+
+-static
++static int
+ translate1_d(xp, yp)
+ double *xp, *yp;
+ {
+@@ -121,7 +122,7 @@ translate1_d(xp, yp)
+ *yp = *yp + 1.0;
+ }
+
+-static
++static int
+ translate2_d(xp, yp)
+ double *xp, *yp;
+ {
+diff --git a/fig2dev/dev/genshape.c b/fig2dev/dev/genshape.c
+index f59448d..b320605 100644
+--- a/fig2dev/dev/genshape.c
++++ b/fig2dev/dev/genshape.c
+@@ -97,7 +97,7 @@ struct shapegroup {
+ typedef struct shapegroup shapegroup;
+
+ static shapegroup *shapegroups;
+-static num_shapegroups=0;
++static int num_shapegroups=0;
+
+
+ static void alloc_arrays() {
+@@ -615,7 +615,7 @@ static intersect_point *intersect_points=NULL;
+ static int MAX_INTERSECTPOINTS=0;
+ #define INTERSECTPOINT_INC 100
+
+-static realloc_intersects(int minimum) {
++static void realloc_intersects(int minimum) {
+ while (minimum>=MAX_INTERSECTPOINTS) {
+ MAX_INTERSECTPOINTS+=INTERSECTPOINT_INC;
+ intersect_points=realloc(intersect_points, sizeof(intersect_points[0])*MAX_INTERSECTPOINTS);
+diff --git a/fig2dev/dev/readpcx.c b/fig2dev/dev/readpcx.c
+index 5b2d3d0..47270da 100644
+--- a/fig2dev/dev/readpcx.c
++++ b/fig2dev/dev/readpcx.c
+@@ -72,7 +72,7 @@ void dispbyte(unsigned char *ptr,int *xp,int *yp,int c,int w,int h,
+
+ void pcx_decode();
+
+-_read_pcx(pcxfile,pic)
++int _read_pcx(pcxfile,pic)
+ FILE *pcxfile;
+ F_pic *pic;
+ {
+diff --git a/fig2dev/fig2dev.c b/fig2dev/fig2dev.c
+index 93df432..a0b829e 100644
+--- a/fig2dev/fig2dev.c
++++ b/fig2dev/fig2dev.c
+@@ -373,7 +373,7 @@ grid_usage()
+ fprintf(stderr," Ignoring grid.\n");
+ }
+
+-main(argc, argv)
++void main(argc, argv)
+ int argc;
+ char *argv[];
+ {
+diff --git a/fig2dev/fig2dev.h b/fig2dev/fig2dev.h
+index 512cddf..346793f 100644
+--- a/fig2dev/fig2dev.h
++++ b/fig2dev/fig2dev.h
+@@ -160,6 +160,10 @@ extern Boolean psencode_header_done; /* if we have already emitted PSencode head
+ extern Boolean transp_header_done; /* if we have already emitted transparent image header */
+ extern Boolean grayonly; /* convert colors to grayscale (-N option) */
+
++static void arc_tangent(double x1, double y1, double x2, double y2, int direction, double *x, double *y);
++extern void arc_tangent_int(double x1, double y1, double x2, double y2, int direction, int *x, int *y);
++extern int depth_filter(int);
++
+ struct paperdef
+ {
+ char *name; /* name for paper size */
+diff --git a/fig2dev/latex_line.c b/fig2dev/latex_line.c
+index cede1d2..cef37d0 100644
+--- a/fig2dev/latex_line.c
++++ b/fig2dev/latex_line.c
+@@ -173,7 +173,7 @@ get_slope(dx, dy, sxp, syp, arrow)
+ if (dy < 0) *syp = -*syp;
+ }
+
+-latex_endpoint(x1, y1, x2, y2, xout, yout, arrow, magnet)
++void latex_endpoint(x1, y1, x2, y2, xout, yout, arrow, magnet)
+ int x1, y1, x2, y2;
+ int *xout, *yout;
+ int arrow, magnet;
+diff --git a/transfig/sys.c b/transfig/sys.c
+index 8d78394..f2fc227 100644
+--- a/transfig/sys.c
++++ b/transfig/sys.c
+@@ -14,6 +14,12 @@
+ *
+ */
+
++#define _POSIX_SOURCE
++#include <fcntl.h>
++#include <sys/stat.h>
++#include <sys/types.h>
++#include <unistd.h>
++#undef _POSIX_SOURCE
+ #include <stdio.h>
+ #include <stdlib.h>
+ #include <string.h>
+@@ -41,7 +47,7 @@ char *sysls()
+ return sysbuf;
+ }
+
+-sysmv(file)
++void sysmv(file)
+ char *file;
+ {
+ sprintf(sysbuf, "%s~", file);
+diff --git a/transfig/transfig.c b/transfig/transfig.c
+index 798d05a..0688e84 100644
+--- a/transfig/transfig.c
++++ b/transfig/transfig.c
+@@ -26,6 +26,7 @@
+
+ #include <stdio.h>
+ #include <stdlib.h>
++#include <string.h>
+ #include "patchlevel.h"
+ #include "transfig.h"
+
+@@ -87,7 +88,7 @@ char *iname[] = {
+ "ps",
+ "eps"};
+
+-main(argc, argv)
++int main(argc, argv)
+ int argc;
+ char *argv[];
+ {
+diff --git a/transfig/transfig.h b/transfig/transfig.h
+index 6773e29..0bf0d50 100644
+--- a/transfig/transfig.h
++++ b/transfig/transfig.h
+@@ -56,3 +56,6 @@ extern char *txfile, *mkfile;
+ extern char *optarg;
+ extern int optind;
+
++extern void sysmv();
++extern void makefile();
++extern void texfile();
diff --git a/media-gfx/transfig/metadata.xml b/media-gfx/transfig/metadata.xml
index 9206b593ffbc..78af0f20536c 100644
--- a/media-gfx/transfig/metadata.xml
+++ b/media-gfx/transfig/metadata.xml
@@ -1,7 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
- <!--maintainer-needed-->
+ <maintainer type="person" proxied="yes">
+ <email>mario.haustein@hrz.tu-chemnitz.de</email>
+ <name>Mario Haustein</name>
+ </maintainer>
+ <maintainer type="project" proxied="proxy">
+ <email>proxy-maint@gentoo.org</email>
+ <name>Proxy Maintainers</name>
+ </maintainer>
<upstream>
<remote-id type="sourceforge">mcj</remote-id>
</upstream>
diff --git a/media-gfx/transfig/transfig-3.2.5e-r1.ebuild b/media-gfx/transfig/transfig-3.2.5e-r2.ebuild
index 423c8f8238f7..ebb7a376390f 100644
--- a/media-gfx/transfig/transfig-3.2.5e-r1.ebuild
+++ b/media-gfx/transfig/transfig-3.2.5e-r2.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2023 Gentoo Authors
+# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
@@ -20,7 +20,7 @@ KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~loong ppc ppc64 ~riscv ~s390 sparc
RDEPEND="
media-libs/libpng
- virtual/jpeg
+ media-libs/libjpeg-turbo:=
x11-apps/rgb
x11-libs/libXpm
!media-gfx/fig2dev
@@ -40,6 +40,7 @@ PATCHES=(
"${WORKDIR}/${P}-gentoo-patchset/${PN}-3.2.5e-fprintf_format_warnings.patch"
"${FILESDIR}/${PN}-3.2.5e-gcc10-fno-common.patch"
"${FILESDIR}/${PN}-3.2.5e-clang.patch"
+ "${FILESDIR}/${PN}-3.2.5e-clang-17.patch"
)
DOCS=( README CHANGES LATEX.AND.XFIG NOTES )