summaryrefslogtreecommitdiff
path: root/x11-misc/xaos
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /x11-misc/xaos
reinit the tree, so we can have metadata
Diffstat (limited to 'x11-misc/xaos')
-rw-r--r--x11-misc/xaos/Manifest13
-rw-r--r--x11-misc/xaos/files/xaos-3.4-include.patch7
-rw-r--r--x11-misc/xaos/files/xaos-3.4-png.patch11
-rw-r--r--x11-misc/xaos/files/xaos-3.5-build-fix-i686.patch20
-rw-r--r--x11-misc/xaos/files/xaos-3.5-gettext.patch88
-rw-r--r--x11-misc/xaos/files/xaos-3.5-libpng15.patch131
-rw-r--r--x11-misc/xaos/files/xaos-3.6-locale-dir.patch11
-rw-r--r--x11-misc/xaos/files/xaos-3.6-no-auto-strip.patch20
-rw-r--r--x11-misc/xaos/metadata.xml19
-rw-r--r--x11-misc/xaos/xaos-3.6.ebuild99
10 files changed, 419 insertions, 0 deletions
diff --git a/x11-misc/xaos/Manifest b/x11-misc/xaos/Manifest
new file mode 100644
index 000000000000..cbee4ebe89c9
--- /dev/null
+++ b/x11-misc/xaos/Manifest
@@ -0,0 +1,13 @@
+AUX xaos-3.4-include.patch 216 SHA256 5af6025bab16b6da5619d83aa7ef58688625bcb2ed5b1e1d22832c534675c078 SHA512 d3ce4cc8a792ca22e63043d89a427cf46be2dd7e3427aefd364dacb7e721782ed8aefa7eee338fb658d5a2f13704eafbcd03e18ae589186d1c1718ff808337c3 WHIRLPOOL 23061985dcbbd32927c9a142a6ab25a8e644c6b371ecc3bcc54cae9416983ab07933a0d91ffb616ab82cfb7277b25ee5a476c60a48b21676f802faee4db3b6af
+AUX xaos-3.4-png.patch 328 SHA256 4e20fe771648e8fdbfacc3525dfa3341f05b93deacea790c23bb27a7a8d4c3f2 SHA512 90ab707e2a6ad6fec1467afe7ed0f6cb44e5ac965eece94642966010b871fb7b7ef71745485869c7a94c4ddd73b176284a3b6a66866e9539f1dfe9b1934ef26b WHIRLPOOL c590951fddd88d330b9a4a80ba915647e171c77a04c2cda984037b751c6c21e7fec9172787707479ed34d8fd863f1adc70ed4984e35332a558048654ded3885b
+AUX xaos-3.5-build-fix-i686.patch 708 SHA256 f17252481e9f59d8a599321a7a48d0a336702112c5f1c4cb173e592b87448475 SHA512 f1732cc5116f92893fc9e560e293e86df10901655dd12a2e6e81a90b13c216a613c5be60bce7adfc99ee21f5a6208c4f30a6730d1d5d3963e5efcba6d728c481 WHIRLPOOL 2f653a4539e66a4350021623e39ee65da671f0012b6a52140851a9e97640eadaa572b1f03b106f267c73347cd372847605bf24c255613c1b80002dfb008bbde6
+AUX xaos-3.5-gettext.patch 3853 SHA256 6c34508de76b95710a442bdbf8e784bd2593c3e4c14e94dcc73fc249cf2421bd SHA512 bd62bfe5c686a8baaf93aeaee96ad916c299168c19e061c9d50696fb6b34054fef9c34b980df57c373fcdba65ac93ce92cb17520443dccd048b0d59b3c319091 WHIRLPOOL abfce9d4ecf10d52bdfd54d7aceef55f620dce600ef98b6cc4c1d06fb437a07c64ee47c144f549f08163c6950ae2d4da4ae84610ab9e2fd2dc4f36cba93ca5a1
+AUX xaos-3.5-libpng15.patch 4260 SHA256 177ac125fe109a8326df3326df5b50f3a416fa8b9e9703202aefaf7e50bcbe8e SHA512 38881e3fa2f03832db271988dcb0a6a1249bb8e99e1c1ed986686207e17bea56a99ee12b9d794c307fb6bb30c375252fe872957f427610d6df86c9414e1518e7 WHIRLPOOL 2ef71a6537a8e645156c5eb922fb4fe44e64e21ef1d8ede283a01e7ff269e430963a40ae9ac3fcccf73e75cc75a8c1c73ed569415b267b1516c8d5c95c565342
+AUX xaos-3.6-locale-dir.patch 346 SHA256 8439106f0600fd671a18f0e9bd44f3b5cb612b63b2269af6d92884d048c88998 SHA512 c62b6c2b77bdb11bbd970f8f3d6ddc6844a86059918c7a54207a0e57bcd31e2f3feeb3c86f8ce58a3c9ee36939dbbe89ec5359d7fa0d5015dc6ad6cd8de24d6f WHIRLPOOL 13a0d9862c87852a26bd24041138caf1645bdd636e6e8b506854efcdbe00f56c77473a55eb5bf897b8f16792decc1c584d33c431a67ea185e547e3c6f6cf98ce
+AUX xaos-3.6-no-auto-strip.patch 1025 SHA256 d56dced8e2faaf7102fa6ec3a485c71bda4b5110cc68a5163a18b38dd58c4b6b SHA512 6a89bb992e2e503576f18a069c6f67b42a92a3f88b958f4b8b54d6ffc309ff30914cbf36b73400449306cd2ce1f646e9745820206c0be5ca39d26bbc4e469c8c WHIRLPOOL 5caf5e298d8162188d4377eaad65afd9b29e4643685112411a1b00afb4e27fd89efaec7e1ee2cf7e2283f763088412353c2a690f4d37e310807e8dd7fcd9a3cd
+DIST xaos-3.6.tar.gz 2040707 SHA256 989f3e38f7793810cbb1496d5291d44836a7d7c058422b9ee1cffb163a0b8d95 SHA512 5f61df978b7842b84a52cfb28f7daf1a5ab11d9d7adadbd0dd5bfb60240fcb2fc59b2a3d34faff7896c0c44c32daaf3941071d70db3d58b06b1aef1bcd1022c1 WHIRLPOOL c860b2b16150ffd285a0617ba5f1fcd87d6840df47152258cb54c2ea78171574c96427a8ac2ad05cbe7c80c9dde36b290fe3d2681679bd0135df430873dd2d14
+DIST xaos.png.tar 10240 SHA256 23806369fa304bf58439f39d9c672fe7f2b4293b3b1bfcccffd0c7994faeaa6a SHA512 43d51a07ac8014162b0ff4e9bbefdeeca759d3613816a95149b6fd2397b7c661adcfb33bb45b8de4dedfa41d8799ef7df3eacb426712679e867098eaf144a262 WHIRLPOOL 3c13eaf9c287c035cb6fcdd4150daac9e97bedbc258064b53e68095656cac1faf959c691e847e7a263a3c43938e820bb7da6e1589ced9ed33aa2821252b22298
+EBUILD xaos-3.6.ebuild 2211 SHA256 b91eb1bd9a620f8ca3e0b1df513fc8bf2f07bf347c5d8f9792714a5918b9c8e0 SHA512 9bf9e5ccb2e07ab5f1e2bcbe78b5efbb745db8f01fa16491450650acc4c499bc1294ba95e66e042545390184d858ec72d6d3a0f8add560f03806166aed54eb6d WHIRLPOOL 24e5080d0fd649b16ead5197338cf1cc9c38786d6bc21069689993b69f7c01af6d7f3d2c3e1f0fe3dca9f804a2bfbbc5d6624b60e6f9c8aae049b020018bb276
+MISC ChangeLog 2739 SHA256 bfa7638e6b3716f810fa29ba360ce7630c58b8ad62bfaaf02af528bbcd8229a9 SHA512 d8fc21c835d3677d0e1c29cd20a059846c8855aa5e369f97e4ec2d6d71882f2aa5351e03a541c4a2c84636afb6414885b7a36f98f484a661e70c36518f5b6b9a WHIRLPOOL 4bc75846127c5819a1921b275368954b6048cbd06c3b92a4722c5196fe9ec456716cbee5a85fd0b13f77ba1edc26a185654d23deeea763dc89f1dfcbd6aa8cf9
+MISC ChangeLog-2015 6451 SHA256 733f6fdbe0445f31212eef1e7b6c3b472f167ff4c704b5789168e74ef96eb8dc SHA512 d25350354c4a585cd6703dd56af5e47e2a2ad6b0b8d29acc62de6910463a46ba38c01c6eadad778117e7cb1a039cefb1aa29492d178bc691c23611af511773a4 WHIRLPOOL 0209dab795c62cd48606b07d14ad824247d084ce7e48992d6786480f7b38ce75e39ecc7a2fec232c962c08969a90dc99ef73d29e669f80e2ddec8b3f8f8c81d3
+MISC metadata.xml 766 SHA256 508021f22eaa66f171eb66241acff34f7e7119eed746d2223986059b1accb6a8 SHA512 8e3ff6323fadbb15a6144c80bbbe33056072758dabb6e96e8b331f3327ea7e99b2a2c9b87b3532e70a1bd331b9d0e59be8b22c2fcad262eacf317c5b33647519 WHIRLPOOL b11141261b3ef3ecc0dffd64ba5a4e582cbc7b01b9f34f43d25771f30740cbde220d55b151cd0aca07e5903b883c1939d7e13d85a6c0aa2444cd3357780b2fa7
diff --git a/x11-misc/xaos/files/xaos-3.4-include.patch b/x11-misc/xaos/files/xaos-3.4-include.patch
new file mode 100644
index 000000000000..65f7b8c5630c
--- /dev/null
+++ b/x11-misc/xaos/files/xaos-3.4-include.patch
@@ -0,0 +1,7 @@
+--- src/util/thread.c.orig 2009-03-28 10:50:49.817619387 +0000
++++ src/util/thread.c 2009-03-28 10:59:40.048185946 +0000
+@@ -1,3 +1,4 @@
++#include <stdlib.h>
+ #ifndef _plan9_
+ #include <signal.h>
+ #include <stdio.h>
diff --git a/x11-misc/xaos/files/xaos-3.4-png.patch b/x11-misc/xaos/files/xaos-3.4-png.patch
new file mode 100644
index 000000000000..454f8acaa994
--- /dev/null
+++ b/x11-misc/xaos/files/xaos-3.4-png.patch
@@ -0,0 +1,11 @@
+--- configure.in.orig 2009-03-28 09:50:18.764999182 +0000
++++ configure.in 2009-03-28 09:49:18.685947638 +0000
+@@ -98,7 +98,7 @@
+ AC_ARG_WITH(png,
+ [ --with-png=yes/no enables/disables PNG saving support],[
+ if test x$withval = xyes; then
+- png=test
++ png=yes
+ fi
+ if test x$withval = xno; then
+ png=no
diff --git a/x11-misc/xaos/files/xaos-3.5-build-fix-i686.patch b/x11-misc/xaos/files/xaos-3.5-build-fix-i686.patch
new file mode 100644
index 000000000000..4736dd389b5a
--- /dev/null
+++ b/x11-misc/xaos/files/xaos-3.5-build-fix-i686.patch
@@ -0,0 +1,20 @@
+--- xaos-3.5/src/engine/zoomd.c.orig 2009-07-18 00:50:31.000000000 +0100
++++ xaos-3.5/src/engine/zoomd.c 2012-05-20 19:04:55.891065437 +0100
+@@ -280,6 +280,7 @@ dosymetry2(void /*@unused@ */ *data, str
+ #endif
+ #undef bpp1
+
++REGISTERS(0)
+ static INLINE void fillline(int line)
+ {
+ register unsigned char *RESTRICT vbuff = cimage.currlines[line];
+--- xaos-3.5/src/engine/zoom.c.fix-build 2009-07-18 00:50:31.000000000 +0100
++++ xaos-3.5/src/engine/zoom.c 2012-05-20 19:11:53.625083113 +0100
+@@ -933,6 +933,7 @@ static /*INLINE */ void preparemoveoldpo
+ }
+
+ #ifndef USE_i386ASM
++REGISTERS(0)
+ static /*INLINE */ void
+ moveoldpoints(void /*@unused@ */ *data1,
+ struct taskinfo /*@unused@ */ *task,
diff --git a/x11-misc/xaos/files/xaos-3.5-gettext.patch b/x11-misc/xaos/files/xaos-3.5-gettext.patch
new file mode 100644
index 000000000000..b83b24346cd8
--- /dev/null
+++ b/x11-misc/xaos/files/xaos-3.5-gettext.patch
@@ -0,0 +1,88 @@
+diff -ur xaos-3.5.orig/src/i18n/cs.po xaos-3.5/src/i18n/cs.po
+--- xaos-3.5.orig/src/i18n/cs.po 2014-06-08 15:19:23.313803520 +0200
++++ xaos-3.5/src/i18n/cs.po 2014-06-08 15:20:35.071009379 +0200
+@@ -10,6 +10,7 @@
+ "PO-Revision-Date: 2002-08-17 21:44+0200\n"
+ "Last-Translator: MadSoft <madsoft@centrum.cz>\n"
+ "Language-Team: Czech\n"
++"Language: cs\n"
+ "MIME-Version: 1.0\n"
+ "Content-Type: text/plain; charset=ISO-8859-2\n"
+ "Content-Transfer-Encoding: 8-bit\n"
+diff -ur xaos-3.5.orig/src/i18n/de.po xaos-3.5/src/i18n/de.po
+--- xaos-3.5.orig/src/i18n/de.po 2014-06-08 15:19:23.314803662 +0200
++++ xaos-3.5/src/i18n/de.po 2014-06-08 15:20:59.684508120 +0200
+@@ -11,6 +11,7 @@
+ "PO-Revision-Date: 2008-04-27 21:48+0200\n"
+ "Last-Translator: \n"
+ "Language-Team: <de@li.org>\n"
++"Language: de\n"
+ "MIME-Version: 1.0\n"
+ "Content-Type: text/plain; charset=ISO-8859-1\n"
+ "Content-Transfer-Encoding: 8bit\n"
+diff -ur xaos-3.5.orig/src/i18n/es.po xaos-3.5/src/i18n/es.po
+--- xaos-3.5.orig/src/i18n/es.po 2014-06-08 15:19:23.314803662 +0200
++++ xaos-3.5/src/i18n/es.po 2014-06-08 15:21:10.917104552 +0200
+@@ -10,6 +10,7 @@
+ "PO-Revision-Date: 2002-10-04 15:22+0200\n"
+ "Last-Translator: César Pérez <oroz@users.sourceforge.net>\n"
+ "Language-Team: Spanish <es@li.org>\n"
++"Language: es\n"
+ "MIME-Version: 1.0\n"
+ "Content-Type: text/plain; charset=ISO-8859-1\n"
+ "Content-Transfer-Encoding: 8-bit\n"
+diff -ur xaos-3.5.orig/src/i18n/fr.po xaos-3.5/src/i18n/fr.po
+--- xaos-3.5.orig/src/i18n/fr.po 2014-06-08 15:19:23.315803804 +0200
++++ xaos-3.5/src/i18n/fr.po 2014-06-08 15:21:24.653056586 +0200
+@@ -10,6 +10,7 @@
+ "PO-Revision-Date: 2006-02-05 17:35+0200\n"
+ "Last-Translator: Philippe Wautelet <traduc _at_ fractalzone _dot_ be>\n"
+ "Language-Team: French\n"
++"Language: fr\n"
+ "MIME-Version: 1.0\n"
+ "Content-Type: text/plain; charset=ISO-8859-1\n"
+ "Content-Transfer-Encoding: 8-bit\n"
+diff -ur xaos-3.5.orig/src/i18n/hu.po xaos-3.5/src/i18n/hu.po
+--- xaos-3.5.orig/src/i18n/hu.po 2014-06-08 15:19:23.315803804 +0200
++++ xaos-3.5/src/i18n/hu.po 2014-06-08 15:21:49.950651185 +0200
+@@ -10,6 +10,7 @@
+ "PO-Revision-Date: 2002-08-17 21:44+0200\n"
+ "Last-Translator: Zoltan Kovacs <kovzol@math.u-szeged.hu>\n"
+ "Language-Team: Hungarian\n"
++"Language: hu\n"
+ "MIME-Version: 1.0\n"
+ "Content-Type: text/plain; charset=ISO-8859-2\n"
+ "Content-Transfer-Encoding: 8-bit\n"
+diff -ur xaos-3.5.orig/src/i18n/it.po xaos-3.5/src/i18n/it.po
+--- xaos-3.5.orig/src/i18n/it.po 2014-06-08 15:19:23.316803947 +0200
++++ xaos-3.5/src/i18n/it.po 2014-06-08 15:22:00.324125022 +0200
+@@ -11,6 +11,7 @@
+ "PO-Revision-Date: 2008-04-08 10:10+0000\n"
+ "Last-Translator: Sergio Zanchetta <Unknown>\n"
+ "Language-Team: Italian <it@li.org>\n"
++"Language: it\n"
+ "MIME-Version: 1.0\n"
+ "Content-Type: text/plain; charset=ISO-8859-1\n"
+ "Content-Transfer-Encoding: 8bit\n"
+diff -ur xaos-3.5.orig/src/i18n/pt.po xaos-3.5/src/i18n/pt.po
+--- xaos-3.5.orig/src/i18n/pt.po 2014-06-08 15:19:23.316803947 +0200
++++ xaos-3.5/src/i18n/pt.po 2014-06-08 15:22:12.961920461 +0200
+@@ -9,6 +9,7 @@
+ "PO-Revision-Date: 2009-06-01 14:07-0300\n"
+ "Last-Translator: Lucio de Araujo <lucio.matema@gmail.com>\n"
+ "Language-Team: Portuguese <zeliagarcia@seed.pr.gov.br>\n"
++"Language: pt\n"
+ "MIME-Version: 1.0\n"
+ "Content-Type: text/plain; charset=ISO-8859-1\n"
+ "Content-Transfer-Encoding: 8bit\n"
+diff -ur xaos-3.5.orig/src/i18n/ro.po xaos-3.5/src/i18n/ro.po
+--- xaos-3.5.orig/src/i18n/ro.po 2014-06-08 15:19:23.317804089 +0200
++++ xaos-3.5/src/i18n/ro.po 2014-06-08 15:22:21.969200049 +0200
+@@ -10,6 +10,7 @@
+ "PO-Revision-Date: 2008-04-28 11:21+0100\n"
+ "Last-Translator: Zoltan Kovacs <kovzol@matek.hu>\n"
+ "Language-Team: The XaoS Development Team <xaos-devel@lists.sf.net>\n"
++"Language: ro\n"
+ "MIME-Version: 1.0\n"
+ "Content-Type: text/plain; charset=utf-8\n"
+ "Content-Transfer-Encoding: 8bit\n"
diff --git a/x11-misc/xaos/files/xaos-3.5-libpng15.patch b/x11-misc/xaos/files/xaos-3.5-libpng15.patch
new file mode 100644
index 000000000000..beece8339e31
--- /dev/null
+++ b/x11-misc/xaos/files/xaos-3.5-libpng15.patch
@@ -0,0 +1,131 @@
+http://code.google.com/p/gnuxaos/issues/detail?id=55
+
+--- src/util/png.c
++++ src/util/png.c
+@@ -3,6 +3,7 @@
+ #include <aconfig.h>
+ #ifdef USE_PNG
+ #include <png.h>
++#include <zlib.h>
+ #endif
+ #include <stdlib.h>
+ #include <stdio.h>
+@@ -31,6 +32,9 @@
+ png_structp png_ptr;
+ png_infop info_ptr;
+ png_color palette[256];
++ png_color_8 sig_bit;
++ int color_type;
++ int bit_depth;
+ volatile unsigned short a = 255;
+ volatile unsigned char *b = (volatile unsigned char *) &a;
+ #ifdef _undefined_
+@@ -59,7 +63,7 @@
+ png_destroy_write_struct(&png_ptr, (png_infopp) NULL);
+ return "No memory to create png info structure";
+ }
+- if (setjmp(png_ptr->jmpbuf)) {
++ if (setjmp(png_jmpbuf(png_ptr))) {
+ png_destroy_write_struct(&png_ptr, &info_ptr);
+ fclose(file);
+ return strerror(errno);
+@@ -78,57 +82,70 @@
+ png_set_compression_window_bits(png_ptr, 15);
+ png_set_compression_method(png_ptr, 8);
+
+- info_ptr->width = image->width;
+- info_ptr->height = image->height;
+- /*info_ptr->gamma=1.0; */
+- info_ptr->gamma = 0.5;
+- info_ptr->valid |= PNG_INFO_gAMA | PNG_INFO_pHYs;
+- info_ptr->x_pixels_per_unit = (png_uint_32) (100 / image->pixelwidth);
+- info_ptr->y_pixels_per_unit = (png_uint_32) (100 / image->pixelheight);
++ switch (image->palette->type)
++ {
++ case C256:
++ color_type = PNG_COLOR_TYPE_PALETTE;
++ bit_depth = image->bytesperpixel * 8;
++ break;
++ case SMALLITER:
++ case LARGEITER:
++ case GRAYSCALE:
++ color_type = PNG_COLOR_TYPE_GRAY;
++ bit_depth = image->bytesperpixel * 8;
++ break;
++ case TRUECOLOR:
++ case TRUECOLOR24:
++ case TRUECOLOR16:
++ color_type = PNG_COLOR_TYPE_RGB;
++ bit_depth = 8;
++ break;
++ }
+
++ png_set_IHDR (png_ptr, info_ptr, image->width, image->height, bit_depth,
++ color_type, PNG_INTERLACE_NONE, PNG_COMPRESSION_TYPE_BASE,
++ PNG_FILTER_TYPE_BASE);
+
+ switch (image->palette->type) {
+ case C256:
+ {
+ int i;
+- info_ptr->color_type = PNG_COLOR_TYPE_PALETTE;
+- info_ptr->bit_depth = image->bytesperpixel * 8;
+- info_ptr->palette = palette;
+- info_ptr->valid |= PNG_INFO_PLTE;
++ png_color png_palette[257];
++ int png_num_palette;
+ for (i = 0; i < image->palette->end; i++)
+- info_ptr->palette[i].red = image->palette->rgb[i][0],
+- info_ptr->palette[i].green = image->palette->rgb[i][1],
+- info_ptr->palette[i].blue = image->palette->rgb[i][2],
+- info_ptr->num_palette = image->palette->end;
++ png_palette[i].red = image->palette->rgb[i][0],
++ png_palette[i].green = image->palette->rgb[i][1],
++ png_palette[i].blue = image->palette->rgb[i][2],
++ png_num_palette = image->palette->end;
++ png_set_PLTE(png_ptr, info_ptr, png_palette, png_num_palette);
+ }
+ break;
+- case SMALLITER:
+- case LARGEITER:
+- case GRAYSCALE:
+- info_ptr->color_type = PNG_COLOR_TYPE_GRAY;
+- info_ptr->bit_depth = image->bytesperpixel * 8;
+- break;
+ case TRUECOLOR:
+ case TRUECOLOR24:
+ case TRUECOLOR16:
+- info_ptr->color_type = PNG_COLOR_TYPE_RGB;
+- info_ptr->bit_depth = 8;
+- info_ptr->sig_bit.red = 8 - image->palette->info.truec.rprec;
+- info_ptr->sig_bit.green = 8 - image->palette->info.truec.gprec;
+- info_ptr->sig_bit.blue = 8 - image->palette->info.truec.bprec;
++ sig_bit.red = 8 - image->palette->info.truec.rprec;
++ sig_bit.green = 8 - image->palette->info.truec.gprec;
++ sig_bit.blue = 8 - image->palette->info.truec.bprec;
++ png_set_sBIT(png_ptr, info_ptr, &sig_bit);
+ break;
+ }
+- info_ptr->interlace_type = 0;
++
++ png_write_info (png_ptr, info_ptr);
++
+ #ifdef _undefined_
+ png_set_text(png_ptr, info_ptr, comments,
+ sizeof(comments) / sizeof(png_text));
+ #endif
+
+- png_write_info(png_ptr, info_ptr);
++ png_set_gAMA(png_ptr, info_ptr, 0.5 /* 1.0 */);
++ png_set_pHYs(png_ptr, info_ptr, (png_uint_32) (100 / image->pixelwidth),
++ (png_uint_32) (100 / image->pixelheight),
++ PNG_RESOLUTION_UNKNOWN);
++
+ /*png_set_filler(png_ptr,0,PNG_FILLER_AFTER); */
+ png_set_packing(png_ptr);
+ if (image->palette->type & (TRUECOLOR | TRUECOLOR24 | TRUECOLOR16))
+- png_set_shift(png_ptr, &(info_ptr->sig_bit));
++ png_set_shift (png_ptr, &sig_bit);
+ if (*b == 255)
+ png_set_swap(png_ptr);
+ png_set_bgr(png_ptr);
diff --git a/x11-misc/xaos/files/xaos-3.6-locale-dir.patch b/x11-misc/xaos/files/xaos-3.6-locale-dir.patch
new file mode 100644
index 000000000000..740f32d18985
--- /dev/null
+++ b/x11-misc/xaos/files/xaos-3.6-locale-dir.patch
@@ -0,0 +1,11 @@
+--- configure.in.orig 2014-06-09 10:54:18.459186718 -0700
++++ configure.in 2014-06-09 10:56:47.472204763 -0700
+@@ -141,7 +141,7 @@
+ dnl Checks for programs.
+
+ DRIVERDIRS=""
+-LOCALEDIR="/usr/share/locale"
++LOCALEDIR="$prefix/share/locale"
+ DRIVERLIBS="lib/libui.a lib/libui-hlp.a lib/libengine.a lib/libutil.a lib/libfilter.a"
+ AC_PROG_INSTALL
+
diff --git a/x11-misc/xaos/files/xaos-3.6-no-auto-strip.patch b/x11-misc/xaos/files/xaos-3.6-no-auto-strip.patch
new file mode 100644
index 000000000000..ab6e6b56a9b8
--- /dev/null
+++ b/x11-misc/xaos/files/xaos-3.6-no-auto-strip.patch
@@ -0,0 +1,20 @@
+--- Makefile.in.orig 2014-06-09 10:42:00.574129368 -0700
++++ Makefile.in 2014-06-09 10:43:04.035568767 -0700
+@@ -36,7 +36,7 @@
+ @INSTALL@ -d $(DESTDIR)$(datadir)/XaoS/help
+ @INSTALL@ -d $(DESTDIR)$(bindir)
+ @INSTALL@ -d $(DESTDIR)$(mandir)/man6
+- @INSTALL@ -s bin/xaos $(DESTDIR)$(bindir)
++ @INSTALL@ bin/xaos $(DESTDIR)$(bindir)
+ @INSTALL@ -m 444 tutorial/*.x[ah]f $(DESTDIR)$(datadir)/XaoS/tutorial
+
+ @INSTALL@ -m 444 examples/README $(DESTDIR)$(datadir)/XaoS/examples
+@@ -49,7 +49,7 @@
+
+ @INSTALL@ -m 444 catalogs/*.cat catalogs/README $(DESTDIR)$(datadir)/XaoS/catalogs
+ @INSTALL@ -m 444 help/xaos.hlp $(DESTDIR)$(datadir)/XaoS/help
+- @INSTALL@ -m 444 AUTHORS NEWS COPYING TODO INSTALL ChangeLog ChangeLog.old $(DESTDIR)$(datadir)/XaoS/doc
++ @INSTALL@ -m 444 AUTHORS NEWS TODO ChangeLog ChangeLog.old $(DESTDIR)$(datadir)/XaoS/doc
+ @INSTALL@ -m 444 doc/xaos.6 $(DESTDIR)$(mandir)/man6
+ test -z "$(infodir)" || @INSTALL@ -d "$(DESTDIR)$(infodir)"
+ @INSTALL@ -m 444 doc/xaos.info $(DESTDIR)$(infodir)/xaos.info
diff --git a/x11-misc/xaos/metadata.xml b/x11-misc/xaos/metadata.xml
new file mode 100644
index 000000000000..820421b0993a
--- /dev/null
+++ b/x11-misc/xaos/metadata.xml
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>sci@gentoo.org</email>
+ <name>Gentoo Science Project</name>
+ </maintainer>
+ <longdescription lang="en">
+ XaoS is a fast, portable real-time interactive fractal zoomer. It
+ displays the Mandelbrot set (among other escape time fractals) and
+ allows you zoom smoothly into the fractal. Various coloring modes are
+ provided for both the points inside and outside the selected set. XaoS
+ supports switching between Julia and Mandelbrot fractal types and
+ on-the-fly plane switching.
+</longdescription>
+ <upstream>
+ <remote-id type="sourceforge">xaos</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/x11-misc/xaos/xaos-3.6.ebuild b/x11-misc/xaos/xaos-3.6.ebuild
new file mode 100644
index 000000000000..f6eee716fe67
--- /dev/null
+++ b/x11-misc/xaos/xaos-3.6.ebuild
@@ -0,0 +1,99 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+AUTOTOOLS_AUTORECONF=1
+AUTOTOOLS_IN_SOURCE_BUILD=1
+
+inherit autotools-utils eutils
+
+DESCRIPTION="Very fast real-time fractal zoomer"
+HOMEPAGE="http://matek.hu/xaos/doku.php"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz
+ https://dev.gentoo.org/~jlec/distfiles/${PN}.png.tar"
+
+SLOT="0"
+LICENSE="GPL-2"
+KEYWORDS="amd64 ppc sparc x86 ~amd64-linux ~x86-linux"
+IUSE="aalib doc -gtk nls png svga threads X"
+
+RDEPEND="
+ sci-libs/gsl:0=
+ sys-libs/zlib:0=
+ aalib? ( media-libs/aalib:0= )
+ gtk? ( x11-libs/gtk+:2= )
+ nls? ( sys-devel/gettext )
+ png? ( media-libs/libpng:0= )
+ X? ( x11-libs/libX11:0=
+ x11-libs/libXext:0=
+ x11-libs/libXxf86vm:0= )"
+
+DEPEND="${RDEPEND}
+ virtual/pkgconfig
+ doc? ( virtual/texi2dvi )
+ X? (
+ x11-proto/xf86vidmodeproto
+ x11-proto/xextproto
+ x11-proto/xproto )"
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-3.4-png.patch
+ "${FILESDIR}"/${PN}-3.4-include.patch
+ "${FILESDIR}"/${PN}-3.5-build-fix-i686.patch
+ "${FILESDIR}"/${PN}-3.6-locale-dir.patch
+ "${FILESDIR}"/${PN}-3.6-no-auto-strip.patch
+)
+
+src_prepare() {
+ autotools-utils_src_prepare
+ if use nls; then
+ if [[ "${LINGUAS+set}" == "set" ]]; then
+ strip-linguas -i src/i18n
+ sed -i -e '/^ALL_LINGUAS=/d' configure || die
+ export ALL_LINGUAS="${LINGUAS}"
+ fi
+ else
+ sed -i -e '/^ALL_LINGUAS=/d' configure || die
+ fi
+}
+
+src_configure() {
+ local myeconfargs=(
+ --with-sffe=yes
+ --with-gsl=yes
+ $(use_enable nls)
+ $(use_with png)
+ $(use_with aalib aa-driver)
+ $(use_with gtk gtk-driver)
+ $(use_with threads pthread)
+ $(use_with X x11-driver)
+ $(use_with X x)
+ )
+ autotools-utils_src_configure
+}
+
+src_compile() {
+ autotools-utils_src_compile
+ if use doc; then
+ cd "${BUILD_DIR}"/doc
+ emake xaos.dvi
+ dvipdf xaos.dvi || die
+ cd "${BUILD_DIR}"/help
+ emake html
+ fi
+}
+
+src_install() {
+ autotools-utils_src_install
+ if use doc; then
+ insinto /usr/share/doc/${PF}
+ doins doc/xaos.pdf
+ dohtml -r help/*
+ fi
+ local driver="x11"
+ use gtk && driver="\"GTK+ Driver\""
+ make_desktop_entry "xaos -driver ${driver}" "XaoS Fractal Zoomer" \
+ xaos "Application;Education;Math;Graphics;"
+ doicon "${WORKDIR}"/${PN}.png
+}