diff options
author | V3n3RiX <venerix@koprulu.sector> | 2022-12-16 09:35:57 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2022-12-16 09:35:57 +0000 |
commit | b982051e7c8e12c3810a0d21d30d687b406b3ae5 (patch) | |
tree | 1f40c63a302b92f633c075f289851ab62633babe /media-gfx/quat | |
parent | b62381b18b4bf2e919cbfbae11ebcad391e38e77 (diff) |
gentoo auto-resync : 16:12:2022 - 09:35:57
Diffstat (limited to 'media-gfx/quat')
-rw-r--r-- | media-gfx/quat/Manifest | 2 | ||||
-rw-r--r-- | media-gfx/quat/files/quat-1.20-fix-build-for-clang16.patch | 84 | ||||
-rw-r--r-- | media-gfx/quat/quat-1.20-r3.ebuild | 43 |
3 files changed, 129 insertions, 0 deletions
diff --git a/media-gfx/quat/Manifest b/media-gfx/quat/Manifest index d620c979717f..19622145ed87 100644 --- a/media-gfx/quat/Manifest +++ b/media-gfx/quat/Manifest @@ -1,3 +1,5 @@ +AUX quat-1.20-fix-build-for-clang16.patch 2955 BLAKE2B f12610d484006de26bc42475af99269911e186bdc490b4c4d1e48d0ae152b97be162aa2ba178b10cef0ae1bb9e4199aaa79ab512ce8bad41a6bb414151d125f1 SHA512 53b2eb52f1c062da4b4f594ea0a62ca11c5b37bba3f7ac5028906412c03a2bdee831e9dbd42cf63798f5f5ff8a8aadac5a808c6596e5d6dff53358a6ca0cf206 DIST quat-1.20.tar.gz 474448 BLAKE2B 52a06460be261c622f0c30f8991762e91688da53ba2a9854cc5c94a6de7fa9c7d8028fc3f36608bf11f56c7bee8ca192a37c91ac993b3866ad7b630da3bee5ad SHA512 eb77d628ea0e329e8bda11124bfa57e4005f06ad4d54d8bdc31eaab09fc0cf7ebf1873e7dd47624781e8ee75c7644bfc75819ce5aeb5c150644f8b7a7c81e85b EBUILD quat-1.20-r2.ebuild 785 BLAKE2B da0d6ab813115a0279ae46dcd0fb1e7d1edde4fdd3ea01c83d5abcd836ee0d4e73f60ecaa0a82f5b4a36d0ffadc0c405548c681499fc0c1fb44b562ad33b4d2e SHA512 32568d76deca41238afbdf13049582467e6b09dc31535c65dcaf49bb4a427c67560ae9c7573f40436c29e69e7f78fd8e5fdad75e2eb7c2b9b582fffe4630d44c +EBUILD quat-1.20-r3.ebuild 975 BLAKE2B e41822f9a10b19fc0c309a4af31aac707f087e8e4498885231ce1d5a76a7e8aaba311a398b77e937293e8bf2c8a059ad65ef12874d20a5c87eaa83c00e1b9ff0 SHA512 4a1d10d93eca72ce9da7816c2d647b9ec4348d4a352e4316767594404ac54a5df585f6e62f57db2015433bfa8d7cbacc222ca004e4c5865877ab4abdee04b57e MISC metadata.xml 167 BLAKE2B 868e3b584722eaacf68273db062bb773d8c7e5d7ab2b81ca7e8397643bf7cc106c3a1033594401c99c54f667bb45d6b73f9048fc335580bbd44b4589ad26a832 SHA512 30caadd1496c3b9969136038239a1d8e01f236726b4022c2d7e19ca7575f25f735e556835e581afbf44fbd3e4104c40f2b5ef5fa70118d75c881fdf871962d0a diff --git a/media-gfx/quat/files/quat-1.20-fix-build-for-clang16.patch b/media-gfx/quat/files/quat-1.20-fix-build-for-clang16.patch new file mode 100644 index 000000000000..b9e0006b1932 --- /dev/null +++ b/media-gfx/quat/files/quat-1.20-fix-build-for-clang16.patch @@ -0,0 +1,84 @@ +Clang16 will not support implicit integers, implicit function declarations and +implicit integer to pointer conversions by default. +This patch overhauls the source code to comply with modern C standards. + +Bug: https://bugs.gentoo.org/871213 +This patch was sent upstream via mail. + +Pascal Jäger <pascal.jaeger@leimstift.de> (2022-12-15) + +--- a/kernel/colors.c ++++ b/kernel/colors.c +@@ -117,11 +117,7 @@ int CalcWeightsum(struct realpal_struct *realpal) + return(0); + } + +-int CreateDispPal(disppal, realpal, maxcol, phongmax, rdepth, gdepth, bdepth) +- struct disppal_struct *disppal; +- struct realpal_struct *realpal; +- int maxcol, rdepth, gdepth, bdepth; +- double phongmax; ++int CreateDispPal (struct disppal_struct *disppal, struct realpal_struct *realpal, int maxcol, double phongmax, int rdepth, int gdepth, int bdepth) + { + int i, j, requiredcols, maxdepth, maxbright, oswcols; + int disppos; + +--- a/kernel/files.c ++++ b/kernel/files.c +@@ -374,22 +374,7 @@ int ParseFile(const char *nam, const char *_altpath, struct keyword_struct kword + return(0); + } + +-int PNGInitialization(name, mode, png, png_info, png_internal, xstart, ystart, calctime, f, +- v, pal, realpal, colorscheme, cutbuf, zflag) +-const char *name; +-int mode; +-FILE **png; +-struct png_info_struct *png_info; +-struct png_internal_struct *png_internal; +-int xstart, ystart; +-long calctime; +-struct frac_struct *f; +-struct view_struct *v; +-struct disppal_struct *pal; +-struct realpal_struct *realpal; +-char *colorscheme; +-double *cutbuf; +-int zflag; ++int PNGInitialization (const char *name, int mode, FILE **png, struct png_info_struct *png_info, struct png_internal_struct *png_internal, int xstart, int ystart, long calctime, struct frac_struct *f, struct view_struct *v, struct disppal_struct *pal, struct realpal_struct *realpal, char *colorscheme, double *cutbuf, int zflag) + /* rewrites file "name" */ + { + int i, j, pos, cutpos; +--- a/kernel/quat.c ++++ b/kernel/quat.c +@@ -794,7 +794,7 @@ int CalculateFractal(char *Error, char *pngfile, FILE **png,/* struct png_info_s + return(-1); + } + +- my_time = (long)time((time_t)NULL); ++ my_time = (long)time((time_t*)NULL); + if (frac.formula==0) + { + cr.iterate = iterate_0; cr.iternorm = iternorm_0; +--- a/kernel/textver.c ++++ b/kernel/textver.c +@@ -143,7 +143,7 @@ int TEXTVER_putline(long x1, long x2, long xres, int y, unsigned char *Buf, int + return(0); + } + +-int TEXTVER_check_event() ++int TEXTVER_check_event (void) + { + #ifdef __unix__ + if (keypressed()) +--- a/kernel/quat.c ++++ b/kernel/quat.c +@@ -949,7 +949,7 @@ int CalculateFractal(char *Error, char *pngfile, FILE **png,/* struct png_info_s + { + i = view.xres*3; if (IsStereo(&view)) i *= 2; + memset(line, 0, (size_t)i+1); +- calc_time += (long)time((time_t)NULL) - my_time; ++ calc_time += (long)time((time_t*)NULL) - my_time; + if (png != NULL) + { + PNGEnd(png_internal, line, 0, j); diff --git a/media-gfx/quat/quat-1.20-r3.ebuild b/media-gfx/quat/quat-1.20-r3.ebuild new file mode 100644 index 000000000000..f959b5ad2329 --- /dev/null +++ b/media-gfx/quat/quat-1.20-r3.ebuild @@ -0,0 +1,43 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit flag-o-matic + +DESCRIPTION="A 3D quaternionic fractal generator" +HOMEPAGE="http://www.physcip.uni-stuttgart.de/phy11733/quat_e.html" +SRC_URI="http://www.physcip.uni-stuttgart.de/phy11733/download/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~x86" +IUSE="X debug" + +DEPEND=" + >=sys-libs/zlib-1.1.4 + X? ( + =x11-libs/fltk-1* + x11-libs/libX11 + x11-libs/libXext + x11-libs/libXft + ) +" +RDEPEND="${DEPEND}" + +PATCHES=( "${FILESDIR}/${P}-fix-build-for-clang16.patch" ) + +src_configure() { + # throws tons of warnings otherwise + append-cxxflags -Wno-deprecated-declarations -Wno-writable-strings + export FLUID="/usr/bin/fluid" # needed because configure tries an invalid option + econf \ + $(use_enable X gui) \ + $(use_enable debug) \ + $(use_enable debug prof) +} + +src_install() { + emake DESTDIR="${D}" install + dodoc AUTHORS ChangeLog NEWS README +} |