parent
567c4e1d6d
commit
533d6ff082
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -1 +1,2 @@
|
||||
DIST lzma-19.00.7z 1082692 BLAKE2B 88aca3f3225d589c9b1b0fbf4c196db8e6e8df362f926736a45e1f80d302c132b25537203b0a903da9de5f3b0398b10901f126cf6905fcbdf0a57ee894e74b6d SHA512 60532483249d86960d5c481dc88ebeafabb7e435afb6188bc26f38177b8534ef3da83317d6920d99103d4f10a8dcdb624489ea5ddad8e0c8732bab1bb4ebd7eb
|
||||
DIST lzma-9.20.tar.bz2 534077 BLAKE2B c1be526d6fb9f68da10b654940a92420b6c708c7aefe213394cf1c7650b3d65c4f54d3ca0663e52be13aa9f996ff9cc87262fac8b76dd0654e839cefc073c374 SHA512 1c495530834107430a675fb48c006093edc301ec7a2c2f273efd62ff260f3056503bb2c3ddef63e82f5ff04b1347381055cf6cacd59eee9d451c4d841c13cd35
|
||||
|
@ -0,0 +1,41 @@
|
||||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
inherit toolchain-funcs
|
||||
|
||||
MY_P="${PN}${PV//.}"
|
||||
DESCRIPTION="LZMA Stream Compressor from the SDK"
|
||||
HOMEPAGE="https://www.7-zip.org/sdk.html"
|
||||
SRC_URI="mirror://sourceforge/sevenzip/${MY_P}.7z -> ${P}.7z"
|
||||
|
||||
LICENSE="public-domain"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos"
|
||||
IUSE="doc"
|
||||
|
||||
BDEPEND="app-arch/p7zip"
|
||||
|
||||
S=${WORKDIR}
|
||||
|
||||
src_compile() {
|
||||
cd CPP/7zip/Bundles/LzmaCon || die
|
||||
emake -f makefile.gcc \
|
||||
CXX="$(tc-getCXX) ${CXXFLAGS} ${CPPFLAGS}" \
|
||||
CXX_C="$(tc-getCC) ${CFLAGS} ${CPPFLAGS}"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
newbin CPP/7zip/Bundles/LzmaCon/lzma lzmacon
|
||||
dodoc DOC/lzma.txt DOC/lzma-history.txt
|
||||
use doc && dodoc DOC/7zC.txt \
|
||||
DOC/7zFormat.txt \
|
||||
DOC/Methods.txt \
|
||||
DOC/lzma-sdk.txt \
|
||||
DOC/lzma-specification.txt
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
einfo "The lzma binary is now 'lzmacon' to avoid xz-utils conflicts #218459"
|
||||
}
|
@ -1,8 +1,15 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<!-- maintainer-needed -->
|
||||
<upstream>
|
||||
<remote-id type="sourceforge">sevenzip</remote-id>
|
||||
</upstream>
|
||||
<maintainer type="person">
|
||||
<email>hfern@fernhout.info</email>
|
||||
<name>Hans Fernhout</name>
|
||||
</maintainer>
|
||||
<maintainer type="project">
|
||||
<email>proxy-maint@gentoo.org</email>
|
||||
<name>Proxy Maintainers</name>
|
||||
</maintainer>
|
||||
<upstream>
|
||||
<remote-id type="sourceforge">sevenzip</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
||||
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -0,0 +1,37 @@
|
||||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
# There's already a "hexedit" package in the tree, so name this one differently
|
||||
|
||||
EAPI=7
|
||||
inherit autotools toolchain-funcs
|
||||
|
||||
MY_P=${P/curses-}
|
||||
DESCRIPTION="full screen curses hex editor (with insert/delete support)"
|
||||
HOMEPAGE="http://www.rogoyski.com/adam/programs/hexedit/"
|
||||
SRC_URI="http://www.rogoyski.com/adam/programs/hexedit/${MY_P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-2+"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
|
||||
RDEPEND="
|
||||
sys-libs/ncurses:=
|
||||
"
|
||||
DEPEND="
|
||||
${RDEPEND}
|
||||
"
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/${P}-fno-common.patch
|
||||
"${FILESDIR}"/${P}-ncurses-pkg-config.patch
|
||||
)
|
||||
S=${WORKDIR}/${MY_P}
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
econf --program-prefix=curses-
|
||||
}
|
@ -0,0 +1,53 @@
|
||||
--- a/src/hexedit.h
|
||||
+++ b/src/hexedit.h
|
||||
@@ -340,7 +340,7 @@
|
||||
|
||||
|
||||
/* Global structure, keep most global variables here. */
|
||||
-struct
|
||||
+struct Globals_t
|
||||
{
|
||||
WINDOW *wmain, *wstatus, *whelp; /* three windows used throughout. */
|
||||
unsigned long filesize; /* size of the file buffer. */
|
||||
@@ -362,7 +362,9 @@
|
||||
/* buf end. */
|
||||
int beeping; /* Allow beeping or not. */
|
||||
int help_msg_count; /* Number of messages in help menu. */
|
||||
-} Globals;
|
||||
+};
|
||||
+
|
||||
+extern struct Globals_t Globals;
|
||||
|
||||
|
||||
struct foundit
|
||||
@@ -397,7 +399,9 @@
|
||||
int s;
|
||||
struct Change *base;
|
||||
struct Change *top;
|
||||
-} UndoStack;
|
||||
+};
|
||||
+
|
||||
+extern struct ChangeLog UndoStack;
|
||||
|
||||
|
||||
struct FileNames
|
||||
--- a/src/main.c
|
||||
+++ b/src/main.c
|
||||
@@ -16,6 +16,7 @@
|
||||
#include "hexedit.h"
|
||||
#include <assert.h>
|
||||
|
||||
+struct Globals_t Globals;
|
||||
|
||||
int
|
||||
main (int argc, char **argv)
|
||||
--- a/src/undo.c
|
||||
+++ b/src/undo.c
|
||||
@@ -15,6 +15,7 @@
|
||||
#include <assert.h>
|
||||
#include "hexedit.h"
|
||||
|
||||
+struct ChangeLog UndoStack;
|
||||
|
||||
void
|
||||
pushUndo (int type, unsigned long offset,
|
Binary file not shown.
@ -1 +1,2 @@
|
||||
DIST eselect-awk-0.2.tar.gz 1541 BLAKE2B 4ad07b02869672bef3c905a7417706344ccc11a9a46fcfe85cefa95881a4e727c11481bcefe17f96a77f1adc64d5ad3b1f2dfcc259bfcb8365d03ad68d88d365 SHA512 ef00ac8e8b962c17dc8094d64e5cbf44654a747cc648a5cf38346c3a90e0d685726693094ac265398b40d9d325600073ea2c4905b813f1e40fbfc7627930a5de
|
||||
DIST eselect-awk-0.3.tar.gz 1543 BLAKE2B 9ff340002d76a3bc3569501d7b92a8d216eac65e9c009be2a7b43802512050fdae962b53e66bbd0e5df6d295968aa4e3d56c8442adce5eac5d7c8b1f30b1e924 SHA512 d90ed1c8edddd996e2b62b4a927d2c5ead5790aff275e3a79f4a1361358c4debef0c50ec2c8d6da5a210755a5d51cad4b2c5d6ee90553227f0f24b251b52e383
|
||||
|
@ -0,0 +1,18 @@
|
||||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI="7"
|
||||
|
||||
DESCRIPTION="Manages the {,/usr}/bin/awk symlink"
|
||||
HOMEPAGE="https://wiki.gentoo.org/wiki/No_homepage"
|
||||
SRC_URI="https://dev.gentoo.org/~junghans/distfiles/${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86 ~amd64-linux ~x86-macos"
|
||||
IUSE=""
|
||||
|
||||
src_install() {
|
||||
insinto /usr/share/eselect/modules
|
||||
doins awk.eselect
|
||||
}
|
@ -1,12 +1,8 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<email>junghans@gentoo.org</email>
|
||||
<name>Christoph Junghans</name>
|
||||
</maintainer>
|
||||
<maintainer type="project">
|
||||
<email>base-system@gentoo.org</email>
|
||||
<name>Gentoo Base System</name>
|
||||
</maintainer>
|
||||
</pkgmetadata>
|
||||
</pkgmetadata>
|
||||
|
@ -0,0 +1,21 @@
|
||||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
DESCRIPTION="Manages the /bin/sh (POSIX shell) symlink"
|
||||
HOMEPAGE="https://wiki.gentoo.org/wiki/No_homepage"
|
||||
SRC_URI=""
|
||||
S=${WORKDIR}
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
|
||||
IUSE=""
|
||||
|
||||
RDEPEND="app-eselect/eselect-lib-bin-symlink"
|
||||
|
||||
src_install() {
|
||||
insinto /usr/share/eselect/modules
|
||||
newins "${FILESDIR}"/sh.eselect-${PV} sh.eselect
|
||||
}
|
@ -0,0 +1,13 @@
|
||||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
DESCRIPTION="Manage /bin/sh (POSIX shell) implementations"
|
||||
MAINTAINER="mgorny@gentoo.org"
|
||||
VERSION="0.4.1"
|
||||
|
||||
SYMLINK_PATH=/bin/sh
|
||||
SYMLINK_TARGETS=( bash dash mksh )
|
||||
SYMLINK_DESCRIPTION='POSIX shell'
|
||||
SYMLINK_CRUCIAL=1
|
||||
|
||||
inherit bin-symlink
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -1 +1,2 @@
|
||||
DIST gemato-14.3.tar.gz 71325 BLAKE2B d42a5182c12bcc0281df47ddb6b933bb332b9b842b2a5c874c3fa4030ab5a8a16759ee289609d428a3fc1338078cd73d234060354513be88c184d5a6bbec545d SHA512 99904b1a38b8a05ff7bf7c265aa463a56ea3aa6c77dd844dc2d154faae5460e3535f4e9799e8863fda256ee6cd374e051ed98193c9b1fc52dc30c9c2655010cd
|
||||
DIST gemato-14.4.tar.gz 72630 BLAKE2B c8956b979d7c8629e245ba339e8ee707cd51ffe545a85c712c31b97ee2aaabef7a4964cac46c9cd8c4954c33529623293a94a26ae40b578a6b640aab15d47835 SHA512 0b514e4ff7773eefd2d9adc063a4fbc6a1e7d9ea3dfa783b1d5a8e6ec1e482533a8c70cd5e200a8b9671161d77e14254ad14aee6659e3c96eb9be3bbedcf11af
|
||||
|
@ -0,0 +1,33 @@
|
||||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
DISTUTILS_USE_SETUPTOOLS=rdepend
|
||||
PYTHON_COMPAT=( python{3_6,3_7,3_8} pypy3 )
|
||||
PYTHON_REQ_USE='threads(+)'
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="Stand-alone Manifest generation & verification tool"
|
||||
HOMEPAGE="https://github.com/mgorny/gemato"
|
||||
SRC_URI="mirror://pypi/${PN::1}/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="BSD-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-cygwin ~amd64-linux ~x86-linux"
|
||||
IUSE="+gpg tools"
|
||||
|
||||
RDEPEND="
|
||||
gpg? ( app-crypt/gnupg )"
|
||||
|
||||
distutils_enable_tests setup.py
|
||||
|
||||
python_install_all() {
|
||||
distutils-r1_python_install_all
|
||||
|
||||
if use tools; then
|
||||
exeinto /usr/share/gemato
|
||||
doexe utils/*.{bash,py}
|
||||
fi
|
||||
}
|
Binary file not shown.
Binary file not shown.
@ -0,0 +1,22 @@
|
||||
--- a/util.h
|
||||
+++ b/util.h
|
||||
@@ -35,7 +35,7 @@
|
||||
int digits(int n, int base);
|
||||
char *replace_backslashed(char *string);
|
||||
|
||||
-char *_strregtok_previous_end;
|
||||
+extern char *_strregtok_previous_end;
|
||||
char *strregtok(char *string, const regex_t *seperator);
|
||||
|
||||
#endif /* UTIL_H */
|
||||
--- a/util.c
|
||||
+++ b/util.c
|
||||
@@ -32,6 +32,8 @@
|
||||
#include "conf.h"
|
||||
#include "util.h"
|
||||
|
||||
+char *_strregtok_previous_end;
|
||||
+
|
||||
/* replace_backslashed
|
||||
*
|
||||
* Replaces, within the given string, certain backslashed characters with the
|
Binary file not shown.
@ -1,4 +1 @@
|
||||
DIST libgdiplus-2.10.9.tar.bz2 2074317 BLAKE2B ddbdc22d61734e9141f7d05b45867b1c0ac89903a74d23a3b05d247913aaac5350a603a5d7acb85338b2e9877b077c3c4b43839b33b2f6507b76035124cb43b4 SHA512 7f1944795c7ede5fd92a6d7e8d7d6cf2ef3c154e656b83e769b417f8f7195dd975084afe3c3cd1dda1ecb2c1167f76c0b5714cd16d549ff056add09763c6b26c
|
||||
DIST libgdiplus-4.2.tar.gz 687398 BLAKE2B e9b5912cb63de9692861b09ceeb5ad55fa6999960fddbbe55382f957591e68bede91550c2d49ed4bc78d118288ca6b35a2b2ab69f87f9fcc289b7fe2b1853b7a SHA512 102d1e07a106fa32640a20c4843bf82b3f628c5b7a3813d39c7712f2cd09d80dc5adb337a8d5bdbae065f876a0c433a5d8fcb7d761dff5ee08c48cac2cd2344e
|
||||
DIST libgdiplus-5.6.1.tar.gz 734255 BLAKE2B db54559b6bb6ea3f3f966de8692f08c4a042d0719b45263d3f546be1c7795a86d26943d699284acded8419a969238f58f2482090186df1b167d650343900729d SHA512 f1e477e4cbdd83f15bd8edc0feb975399c3eca042cafd1795a018f412b88ad5eb82d2cb0852d2009fdaa6f17d1c62c6b81340578f00eccc2e98ac9debe4a748e
|
||||
DIST libgdiplus-6.0.2.tar.gz 1377140 BLAKE2B 5c639a14371eadee0bfa2ad135284089c65212bde0909d21af8f80fd5bdf7283a8aa688ed88df374a0eac0696a377ba05419b12d9a93b37550c020d2b9961ee0 SHA512 b334846cf9471e6f81a3e0a2d6b68c9a39f52e6b22833432e34d3823ae12e3aa9d481806ea9a078463a77f56f3265633447d6709c5ade86ea117d3690f16472c
|
||||
|
@ -1,164 +0,0 @@
|
||||
$NetBSD: patch-aa,v 1.8 2011/01/21 10:21:51 wiz Exp $
|
||||
|
||||
Fix build with png-1.5.
|
||||
|
||||
--- src/pngcodec.c.orig 2010-11-03 16:52:54.000000000 +0000
|
||||
+++ src/pngcodec.c
|
||||
@@ -116,10 +116,15 @@ gdip_load_png_properties (png_structp pn
|
||||
bitmap_data->dpi_horz = png_get_x_pixels_per_inch(png_ptr, info_ptr);
|
||||
bitmap_data->dpi_vert = png_get_y_pixels_per_inch(png_ptr, info_ptr);
|
||||
#elif defined(PNG_pHYs_SUPPORTED)
|
||||
- if ((info_ptr->valid & PNG_INFO_pHYs) && (info_ptr->phys_unit_type == PNG_RESOLUTION_METER)) {
|
||||
- bitmap_data->image_flags |= ImageFlagsHasRealDPI;
|
||||
- bitmap_data->dpi_horz = info_ptr->x_pixels_per_unit * 0.0254;
|
||||
- bitmap_data->dpi_vert = info_ptr->y_pixels_per_unit * 0.0254;
|
||||
+ if (png_get_valid (png_ptr, info_ptr, PNG_INFO_pHYs)) {
|
||||
+ png_uint_32 res_x, res_y;
|
||||
+ int unit_type;
|
||||
+ png_get_pHYs (png_ptr, info_ptr, &res_x, &res_y, &unit_type);
|
||||
+ if (unit_type == PNG_RESOLUTION_METER) {
|
||||
+ bitmap_data->image_flags |= ImageFlagsHasRealDPI;
|
||||
+ bitmap_data->dpi_horz = res_x * 0.0254;
|
||||
+ bitmap_data->dpi_vert = res_y * 0.0254;
|
||||
+ }
|
||||
}
|
||||
#endif
|
||||
/* default to screen resolution (if nothing was provided or available) */
|
||||
@@ -130,7 +135,7 @@ gdip_load_png_properties (png_structp pn
|
||||
#if defined(PNG_iCCP_SUPPORTED)
|
||||
{
|
||||
png_charp name;
|
||||
- png_charp profile;
|
||||
+ png_bytep profile;
|
||||
png_uint_32 proflen;
|
||||
int compression_type;
|
||||
|
||||
@@ -292,6 +297,11 @@ gdip_load_png_image_from_file_or_stream
|
||||
ImageFlags colourspace_flag;
|
||||
int i;
|
||||
int j;
|
||||
+ png_colorp png_palette;
|
||||
+ int png_num_palette;
|
||||
+ png_bytep trans_alpha;
|
||||
+ int num_trans;
|
||||
+ png_color_16p trans_color;
|
||||
|
||||
width = png_get_image_width (png_ptr, info_ptr);
|
||||
height = png_get_image_height (png_ptr, info_ptr);
|
||||
@@ -309,6 +319,8 @@ gdip_load_png_image_from_file_or_stream
|
||||
}
|
||||
|
||||
/* Copy palette. */
|
||||
+ png_get_PLTE (png_ptr, info_ptr, &png_palette, &png_num_palette);
|
||||
+
|
||||
num_colours = 1 << bit_depth;
|
||||
|
||||
if (png_get_color_type (png_ptr, info_ptr) == PNG_COLOR_TYPE_GRAY) {
|
||||
@@ -321,8 +333,8 @@ gdip_load_png_image_from_file_or_stream
|
||||
colourspace_flag = ImageFlagsColorSpaceRGB;
|
||||
|
||||
palette_entries = num_colours;
|
||||
- if (palette_entries > info_ptr->num_palette) {
|
||||
- palette_entries = info_ptr->num_palette;
|
||||
+ if (palette_entries > png_num_palette) {
|
||||
+ palette_entries = png_num_palette;
|
||||
}
|
||||
|
||||
palette = GdipAlloc (sizeof(ColorPalette) + (num_colours - 1) * sizeof(ARGB));
|
||||
@@ -331,29 +343,30 @@ gdip_load_png_image_from_file_or_stream
|
||||
|
||||
for (i=0; i < palette_entries; i++) {
|
||||
set_pixel_bgra (&palette->Entries[i], 0,
|
||||
- info_ptr->palette[i].blue,
|
||||
- info_ptr->palette[i].green,
|
||||
- info_ptr->palette[i].red,
|
||||
+ png_palette[i].blue,
|
||||
+ png_palette[i].green,
|
||||
+ png_palette[i].red,
|
||||
0xFF); /* alpha */
|
||||
}
|
||||
}
|
||||
|
||||
+ png_get_tRNS (png_ptr, info_ptr, &trans_alpha, &num_trans, &trans_color);
|
||||
/* Make sure transparency is respected. */
|
||||
- if (info_ptr->num_trans > 0) {
|
||||
+ if (num_trans > 0) {
|
||||
palette->Flags |= PaletteFlagsHasAlpha;
|
||||
colourspace_flag |= ImageFlagsHasAlpha;
|
||||
|
||||
- if (info_ptr->num_trans > info_ptr->num_palette) {
|
||||
- info_ptr->num_trans = info_ptr->num_palette;
|
||||
+ if (num_trans > png_num_palette) {
|
||||
+ num_trans = png_num_palette;
|
||||
}
|
||||
|
||||
- for (i=0; i < info_ptr->num_trans; i++) {
|
||||
+ for (i=0; i < num_trans; i++) {
|
||||
set_pixel_bgra(&palette->Entries[i], 0,
|
||||
- info_ptr->palette[i].blue,
|
||||
- info_ptr->palette[i].green,
|
||||
- info_ptr->palette[i].red,
|
||||
+ png_palette[i].blue,
|
||||
+ png_palette[i].green,
|
||||
+ png_palette[i].red,
|
||||
#if PNG_LIBPNG_VER > 10399
|
||||
- info_ptr->trans_alpha [i]); /* alpha */
|
||||
+ trans_alpha [i]); /* alpha */
|
||||
#else
|
||||
info_ptr->trans[i]); /* alpha */
|
||||
#endif
|
||||
@@ -398,6 +411,8 @@ gdip_load_png_image_from_file_or_stream
|
||||
BYTE bit_depth;
|
||||
int stride;
|
||||
int interlace;
|
||||
+ png_colorp png_palette;
|
||||
+ int png_num_palette;
|
||||
png_bytep *row_pointers;
|
||||
BYTE *rawptr;
|
||||
int i, j;
|
||||
@@ -490,32 +505,33 @@ gdip_load_png_image_from_file_or_stream
|
||||
png_byte palette = 0;
|
||||
png_byte pix = *rowp++;
|
||||
|
||||
+ png_get_PLTE (png_ptr, info_ptr, &png_palette, &png_num_palette);
|
||||
palette = (pix >> 6) & 0x03;
|
||||
set_pixel_bgra (rawptr, 0,
|
||||
- info_ptr->palette[palette].blue,
|
||||
- info_ptr->palette[palette].green,
|
||||
- info_ptr->palette[palette].red,
|
||||
+ png_palette[palette].blue,
|
||||
+ png_palette[palette].green,
|
||||
+ png_palette[palette].red,
|
||||
0xFF); /* alpha */
|
||||
|
||||
palette = (pix >> 4) & 0x03;
|
||||
set_pixel_bgra (rawptr, 4,
|
||||
- info_ptr->palette[palette].blue,
|
||||
- info_ptr->palette[palette].green,
|
||||
- info_ptr->palette[palette].red,
|
||||
+ png_palette[palette].blue,
|
||||
+ png_palette[palette].green,
|
||||
+ png_palette[palette].red,
|
||||
0xFF); /* alpha */
|
||||
|
||||
palette = (pix >> 2) & 0x03;
|
||||
set_pixel_bgra (rawptr, 8,
|
||||
- info_ptr->palette[palette].blue,
|
||||
- info_ptr->palette[palette].green,
|
||||
- info_ptr->palette[palette].red,
|
||||
+ png_palette[palette].blue,
|
||||
+ png_palette[palette].green,
|
||||
+ png_palette[palette].red,
|
||||
0xFF); /* alpha */
|
||||
|
||||
palette = pix & 0x03;
|
||||
set_pixel_bgra (rawptr, 12,
|
||||
- info_ptr->palette[palette].blue,
|
||||
- info_ptr->palette[palette].green,
|
||||
- info_ptr->palette[palette].red,
|
||||
+ png_palette[palette].blue,
|
||||
+ png_palette[palette].green,
|
||||
+ png_palette[palette].red,
|
||||
0xFF); /* alpha */
|
||||
rawptr += 16;
|
||||
}
|
@ -1,12 +0,0 @@
|
||||
--- libgdiplus-2.10.9/src/gdiplus-private.h
|
||||
+++ libgdiplus-2.10.9/src/gdiplus-private.h
|
||||
@@ -30,7 +30,8 @@
|
||||
#include <stdio.h>
|
||||
#include <math.h>
|
||||
#include <glib.h>
|
||||
-#include <freetype/tttables.h>
|
||||
+#include <ft2build.h>
|
||||
+#include FT_TRUETYPE_TABLES_H
|
||||
#include <pthread.h>
|
||||
#include <unistd.h>
|
||||
|
@ -1,296 +0,0 @@
|
||||
diff -uNr libgdiplus-2.10.9/src/gifcodec.c libgdiplus-2.10.9-funtoo/src/gifcodec.c
|
||||
--- libgdiplus-2.10.9/src/gifcodec.c 2011-12-02 18:23:12.000000000 +0100
|
||||
+++ libgdiplus-2.10.9-funtoo/src/gifcodec.c 2013-10-08 18:06:44.643554570 +0200
|
||||
@@ -39,6 +39,293 @@
|
||||
|
||||
#include "gifcodec.h"
|
||||
|
||||
+#define COLOR_ARRAY_SIZE 32768
|
||||
+#define BITS_PER_PRIM_COLOR 5
|
||||
+#define MAX_PRIM_COLOR 0x1f
|
||||
+
|
||||
+static int SortRGBAxis;
|
||||
+
|
||||
+typedef struct QuantizedColorType {
|
||||
+ GifByteType RGB[3];
|
||||
+ GifByteType NewColorIndex;
|
||||
+ long Count;
|
||||
+ struct QuantizedColorType *Pnext;
|
||||
+} QuantizedColorType;
|
||||
+
|
||||
+typedef struct NewColorMapType {
|
||||
+ GifByteType RGBMin[3], RGBWidth[3];
|
||||
+ unsigned int NumEntries; /* # of QuantizedColorType in linked list below */
|
||||
+ unsigned long Count; /* Total number of pixels in all the entries */
|
||||
+ QuantizedColorType *QuantizedColors;
|
||||
+} NewColorMapType;
|
||||
+
|
||||
+
|
||||
+/****************************************************************************
|
||||
+ * Routine called by qsort to compare two entries.
|
||||
+ ****************************************************************************/
|
||||
+static int
|
||||
+SortCmpRtn(const void *Entry1,
|
||||
+ const void *Entry2) {
|
||||
+
|
||||
+ return (*((QuantizedColorType **) Entry1))->RGB[SortRGBAxis] -
|
||||
+ (*((QuantizedColorType **) Entry2))->RGB[SortRGBAxis];
|
||||
+}
|
||||
+
|
||||
+/******************************************************************************
|
||||
+ * Routine to subdivide the RGB space recursively using median cut in each
|
||||
+ * axes alternatingly until ColorMapSize different cubes exists.
|
||||
+ * The biggest cube in one dimension is subdivide unless it has only one entry.
|
||||
+ * Returns GIF_ERROR if failed, otherwise GIF_OK.
|
||||
+ ******************************************************************************/
|
||||
+static int
|
||||
+SubdivColorMap(NewColorMapType * NewColorSubdiv,
|
||||
+ unsigned int ColorMapSize,
|
||||
+ unsigned int *NewColorMapSize) {
|
||||
+
|
||||
+ int MaxSize;
|
||||
+ unsigned int i, j, Index = 0, NumEntries, MinColor, MaxColor;
|
||||
+ long Sum, Count;
|
||||
+ QuantizedColorType *QuantizedColor, **SortArray;
|
||||
+
|
||||
+ while (ColorMapSize > *NewColorMapSize) {
|
||||
+ /* Find candidate for subdivision: */
|
||||
+ MaxSize = -1;
|
||||
+ for (i = 0; i < *NewColorMapSize; i++) {
|
||||
+ for (j = 0; j < 3; j++) {
|
||||
+ if ((((int)NewColorSubdiv[i].RGBWidth[j]) > MaxSize) &&
|
||||
+ (NewColorSubdiv[i].NumEntries > 1)) {
|
||||
+ MaxSize = NewColorSubdiv[i].RGBWidth[j];
|
||||
+ Index = i;
|
||||
+ SortRGBAxis = j;
|
||||
+ }
|
||||
+ }
|
||||
+ }
|
||||
+
|
||||
+ if (MaxSize == -1)
|
||||
+ return GIF_OK;
|
||||
+
|
||||
+ /* Split the entry Index into two along the axis SortRGBAxis: */
|
||||
+
|
||||
+ /* Sort all elements in that entry along the given axis and split at
|
||||
+ * the median. */
|
||||
+ SortArray = (QuantizedColorType **)malloc(
|
||||
+ sizeof(QuantizedColorType *) *
|
||||
+ NewColorSubdiv[Index].NumEntries);
|
||||
+ if (SortArray == NULL)
|
||||
+ return GIF_ERROR;
|
||||
+ for (j = 0, QuantizedColor = NewColorSubdiv[Index].QuantizedColors;
|
||||
+ j < NewColorSubdiv[Index].NumEntries && QuantizedColor != NULL;
|
||||
+ j++, QuantizedColor = QuantizedColor->Pnext)
|
||||
+ SortArray[j] = QuantizedColor;
|
||||
+
|
||||
+ qsort(SortArray, NewColorSubdiv[Index].NumEntries,
|
||||
+ sizeof(QuantizedColorType *), SortCmpRtn);
|
||||
+
|
||||
+ /* Relink the sorted list into one: */
|
||||
+ for (j = 0; j < NewColorSubdiv[Index].NumEntries - 1; j++)
|
||||
+ SortArray[j]->Pnext = SortArray[j + 1];
|
||||
+ SortArray[NewColorSubdiv[Index].NumEntries - 1]->Pnext = NULL;
|
||||
+ NewColorSubdiv[Index].QuantizedColors = QuantizedColor = SortArray[0];
|
||||
+ free((char *)SortArray);
|
||||
+
|
||||
+ /* Now simply add the Counts until we have half of the Count: */
|
||||
+ Sum = NewColorSubdiv[Index].Count / 2 - QuantizedColor->Count;
|
||||
+ NumEntries = 1;
|
||||
+ Count = QuantizedColor->Count;
|
||||
+ while (QuantizedColor->Pnext != NULL &&
|
||||
+ (Sum -= QuantizedColor->Pnext->Count) >= 0 &&
|
||||
+ QuantizedColor->Pnext->Pnext != NULL) {
|
||||
+ QuantizedColor = QuantizedColor->Pnext;
|
||||
+ NumEntries++;
|
||||
+ Count += QuantizedColor->Count;
|
||||
+ }
|
||||
+ /* Save the values of the last color of the first half, and first
|
||||
+ * of the second half so we can update the Bounding Boxes later.
|
||||
+ * Also as the colors are quantized and the BBoxes are full 0..255,
|
||||
+ * they need to be rescaled.
|
||||
+ */
|
||||
+ MaxColor = QuantizedColor->RGB[SortRGBAxis]; /* Max. of first half */
|
||||
+ /* coverity[var_deref_op] */
|
||||
+ MinColor = QuantizedColor->Pnext->RGB[SortRGBAxis]; /* of second */
|
||||
+ MaxColor <<= (8 - BITS_PER_PRIM_COLOR);
|
||||
+ MinColor <<= (8 - BITS_PER_PRIM_COLOR);
|
||||
+
|
||||
+ /* Partition right here: */
|
||||
+ NewColorSubdiv[*NewColorMapSize].QuantizedColors =
|
||||
+ QuantizedColor->Pnext;
|
||||
+ QuantizedColor->Pnext = NULL;
|
||||
+ NewColorSubdiv[*NewColorMapSize].Count = Count;
|
||||
+ NewColorSubdiv[Index].Count -= Count;
|
||||
+ NewColorSubdiv[*NewColorMapSize].NumEntries =
|
||||
+ NewColorSubdiv[Index].NumEntries - NumEntries;
|
||||
+ NewColorSubdiv[Index].NumEntries = NumEntries;
|
||||
+ for (j = 0; j < 3; j++) {
|
||||
+ NewColorSubdiv[*NewColorMapSize].RGBMin[j] =
|
||||
+ NewColorSubdiv[Index].RGBMin[j];
|
||||
+ NewColorSubdiv[*NewColorMapSize].RGBWidth[j] =
|
||||
+ NewColorSubdiv[Index].RGBWidth[j];
|
||||
+ }
|
||||
+ NewColorSubdiv[*NewColorMapSize].RGBWidth[SortRGBAxis] =
|
||||
+ NewColorSubdiv[*NewColorMapSize].RGBMin[SortRGBAxis] +
|
||||
+ NewColorSubdiv[*NewColorMapSize].RGBWidth[SortRGBAxis] - MinColor;
|
||||
+ NewColorSubdiv[*NewColorMapSize].RGBMin[SortRGBAxis] = MinColor;
|
||||
+
|
||||
+ NewColorSubdiv[Index].RGBWidth[SortRGBAxis] =
|
||||
+ MaxColor - NewColorSubdiv[Index].RGBMin[SortRGBAxis];
|
||||
+
|
||||
+ (*NewColorMapSize)++;
|
||||
+ }
|
||||
+
|
||||
+ return GIF_OK;
|
||||
+}
|
||||
+
|
||||
+/******************************************************************************
|
||||
+ * Quantize high resolution image into lower one. Input image consists of a
|
||||
+ * 2D array for each of the RGB colors with size Width by Height. There is no
|
||||
+ * Color map for the input. Output is a quantized image with 2D array of
|
||||
+ * indexes into the output color map.
|
||||
+ * Note input image can be 24 bits at the most (8 for red/green/blue) and
|
||||
+ * the output has 256 colors at the most (256 entries in the color map.).
|
||||
+ * ColorMapSize specifies size of color map up to 256 and will be updated to
|
||||
+ * real size before returning.
|
||||
+ * Also non of the parameter are allocated by this routine.
|
||||
+ * This function returns GIF_OK if succesfull, GIF_ERROR otherwise.
|
||||
+ ******************************************************************************/
|
||||
+static int
|
||||
+QuantizeBuffer(unsigned int Width,
|
||||
+ unsigned int Height,
|
||||
+ int *ColorMapSize,
|
||||
+ GifByteType * RedInput,
|
||||
+ GifByteType * GreenInput,
|
||||
+ GifByteType * BlueInput,
|
||||
+ GifByteType * OutputBuffer,
|
||||
+ GifColorType * OutputColorMap) {
|
||||
+
|
||||
+ unsigned int Index, NumOfEntries;
|
||||
+ int i, j, MaxRGBError[3];
|
||||
+ unsigned int NewColorMapSize;
|
||||
+ long Red, Green, Blue;
|
||||
+ NewColorMapType NewColorSubdiv[256];
|
||||
+ QuantizedColorType *ColorArrayEntries, *QuantizedColor;
|
||||
+
|
||||
+ ColorArrayEntries = (QuantizedColorType *)malloc(
|
||||
+ sizeof(QuantizedColorType) * COLOR_ARRAY_SIZE);
|
||||
+ if (ColorArrayEntries == NULL) {
|
||||
+ return GIF_ERROR;
|
||||
+ }
|
||||
+
|
||||
+ for (i = 0; i < COLOR_ARRAY_SIZE; i++) {
|
||||
+ ColorArrayEntries[i].RGB[0] = i >> (2 * BITS_PER_PRIM_COLOR);
|
||||
+ ColorArrayEntries[i].RGB[1] = (i >> BITS_PER_PRIM_COLOR) &
|
||||
+ MAX_PRIM_COLOR;
|
||||
+ ColorArrayEntries[i].RGB[2] = i & MAX_PRIM_COLOR;
|
||||
+ ColorArrayEntries[i].Count = 0;
|
||||
+ }
|
||||
+
|
||||
+ /* Sample the colors and their distribution: */
|
||||
+ for (i = 0; i < (int)(Width * Height); i++) {
|
||||
+ Index = ((RedInput[i] >> (8 - BITS_PER_PRIM_COLOR)) <<
|
||||
+ (2 * BITS_PER_PRIM_COLOR)) +
|
||||
+ ((GreenInput[i] >> (8 - BITS_PER_PRIM_COLOR)) <<
|
||||
+ BITS_PER_PRIM_COLOR) +
|
||||
+ (BlueInput[i] >> (8 - BITS_PER_PRIM_COLOR));
|
||||
+ ColorArrayEntries[Index].Count++;
|
||||
+ }
|
||||
+
|
||||
+ /* Put all the colors in the first entry of the color map, and call the
|
||||
+ * recursive subdivision process. */
|
||||
+ for (i = 0; i < 256; i++) {
|
||||
+ NewColorSubdiv[i].QuantizedColors = NULL;
|
||||
+ NewColorSubdiv[i].Count = NewColorSubdiv[i].NumEntries = 0;
|
||||
+ for (j = 0; j < 3; j++) {
|
||||
+ NewColorSubdiv[i].RGBMin[j] = 0;
|
||||
+ NewColorSubdiv[i].RGBWidth[j] = 255;
|
||||
+ }
|
||||
+ }
|
||||
+
|
||||
+ /* Find the non empty entries in the color table and chain them: */
|
||||
+ for (i = 0; i < COLOR_ARRAY_SIZE; i++)
|
||||
+ if (ColorArrayEntries[i].Count > 0)
|
||||
+ break;
|
||||
+ QuantizedColor = NewColorSubdiv[0].QuantizedColors = &ColorArrayEntries[i];
|
||||
+ NumOfEntries = 1;
|
||||
+ while (++i < COLOR_ARRAY_SIZE)
|
||||
+ if (ColorArrayEntries[i].Count > 0) {
|
||||
+ QuantizedColor->Pnext = &ColorArrayEntries[i];
|
||||
+ QuantizedColor = &ColorArrayEntries[i];
|
||||
+ NumOfEntries++;
|
||||
+ }
|
||||
+ QuantizedColor->Pnext = NULL;
|
||||
+
|
||||
+ NewColorSubdiv[0].NumEntries = NumOfEntries; /* Different sampled colors */
|
||||
+ NewColorSubdiv[0].Count = ((long)Width) * Height; /* Pixels */
|
||||
+ NewColorMapSize = 1;
|
||||
+ if (SubdivColorMap(NewColorSubdiv, *ColorMapSize, &NewColorMapSize) !=
|
||||
+ GIF_OK) {
|
||||
+ free((char *)ColorArrayEntries);
|
||||
+ return GIF_ERROR;
|
||||
+ }
|
||||
+ if (NewColorMapSize < *ColorMapSize) {
|
||||
+ /* And clear rest of color map: */
|
||||
+ for (i = NewColorMapSize; i < *ColorMapSize; i++)
|
||||
+ OutputColorMap[i].Red = OutputColorMap[i].Green =
|
||||
+ OutputColorMap[i].Blue = 0;
|
||||
+ }
|
||||
+
|
||||
+ /* Average the colors in each entry to be the color to be used in the
|
||||
+ * output color map, and plug it into the output color map itself. */
|
||||
+ for (i = 0; i < NewColorMapSize; i++) {
|
||||
+ if ((j = NewColorSubdiv[i].NumEntries) > 0) {
|
||||
+ QuantizedColor = NewColorSubdiv[i].QuantizedColors;
|
||||
+ Red = Green = Blue = 0;
|
||||
+ while (QuantizedColor) {
|
||||
+ QuantizedColor->NewColorIndex = i;
|
||||
+ Red += QuantizedColor->RGB[0];
|
||||
+ Green += QuantizedColor->RGB[1];
|
||||
+ Blue += QuantizedColor->RGB[2];
|
||||
+ QuantizedColor = QuantizedColor->Pnext;
|
||||
+ }
|
||||
+ OutputColorMap[i].Red = (Red << (8 - BITS_PER_PRIM_COLOR)) / j;
|
||||
+ OutputColorMap[i].Green = (Green << (8 - BITS_PER_PRIM_COLOR)) / j;
|
||||
+ OutputColorMap[i].Blue = (Blue << (8 - BITS_PER_PRIM_COLOR)) / j;
|
||||
+ } else
|
||||
+ fprintf(stderr,
|
||||
+ "\n%s: Null entry in quantized color map - that's weird.\n",
|
||||
+ "libgdiplus");
|
||||
+ }
|
||||
+
|
||||
+ /* Finally scan the input buffer again and put the mapped index in the
|
||||
+ * output buffer. */
|
||||
+ MaxRGBError[0] = MaxRGBError[1] = MaxRGBError[2] = 0;
|
||||
+ for (i = 0; i < (int)(Width * Height); i++) {
|
||||
+ Index = ((RedInput[i] >> (8 - BITS_PER_PRIM_COLOR)) <<
|
||||
+ (2 * BITS_PER_PRIM_COLOR)) +
|
||||
+ ((GreenInput[i] >> (8 - BITS_PER_PRIM_COLOR)) <<
|
||||
+ BITS_PER_PRIM_COLOR) +
|
||||
+ (BlueInput[i] >> (8 - BITS_PER_PRIM_COLOR));
|
||||
+ Index = ColorArrayEntries[Index].NewColorIndex;
|
||||
+ OutputBuffer[i] = Index;
|
||||
+ if (MaxRGBError[0] < ABS(OutputColorMap[Index].Red - RedInput[i]))
|
||||
+ MaxRGBError[0] = ABS(OutputColorMap[Index].Red - RedInput[i]);
|
||||
+ if (MaxRGBError[1] < ABS(OutputColorMap[Index].Green - GreenInput[i]))
|
||||
+ MaxRGBError[1] = ABS(OutputColorMap[Index].Green - GreenInput[i]);
|
||||
+ if (MaxRGBError[2] < ABS(OutputColorMap[Index].Blue - BlueInput[i]))
|
||||
+ MaxRGBError[2] = ABS(OutputColorMap[Index].Blue - BlueInput[i]);
|
||||
+ }
|
||||
+
|
||||
+#ifdef DEBUG
|
||||
+ fprintf(stderr,
|
||||
+ "Quantization L(0) errors: Red = %d, Green = %d, Blue = %d.\n",
|
||||
+ MaxRGBError[0], MaxRGBError[1], MaxRGBError[2]);
|
||||
+#endif /* DEBUG */
|
||||
+
|
||||
+ free((char *)ColorArrayEntries);
|
||||
+
|
||||
+ *ColorMapSize = NewColorMapSize;
|
||||
+
|
||||
+ return GIF_OK;
|
||||
+}
|
||||
+
|
||||
/* giflib declares this incorrectly as EgifOpen */
|
||||
extern GifFileType *EGifOpen(void *userData, OutputFunc writeFunc);
|
@ -1,16 +0,0 @@
|
||||
tests/Makefile.in | 2 +-
|
||||
1 files changed, 1 insertions(+), 1 deletions(-)
|
||||
|
||||
diff --git a/tests/Makefile.in b/tests/Makefile.in
|
||||
index 97f5f4e..c02ca25 100644
|
||||
--- a/tests/Makefile.in
|
||||
+++ b/tests/Makefile.in
|
||||
@@ -228,7 +228,7 @@ DEPS = \
|
||||
$(top_builddir)/src/libgdiplus.la
|
||||
|
||||
LDADDS = \
|
||||
- $(top_builddir)/src/libgdiplus.la
|
||||
+ $(top_builddir)/src/libgdiplus.la -lX11 -lglib-2.0
|
||||
|
||||
testgdi_DEPENDENCIES = $(TEST_DEPS)
|
||||
testgdi_LDADD = $(LDADDS)
|
@ -1,12 +0,0 @@
|
||||
diff -Nupr libgdiplus-5.6.1~/configure libgdiplus-5.6.1/configure
|
||||
--- libgdiplus-5.6.1~/configure 2019-06-07 21:26:37.207823285 +0200
|
||||
+++ libgdiplus-5.6.1/configure 2019-06-07 21:27:44.045156234 +0200
|
||||
@@ -14133,7 +14133,7 @@ fi
|
||||
|
||||
|
||||
# Add xrender here so that we don't fail to find glib if we won't have xrender.pc
|
||||
-if test "x$no_x" != "xyes" && "x$x11_available" = "xyes"; then
|
||||
+if test "x$no_x" != "xyes" && test "x$x11_available" = "xyes"; then
|
||||
GDIPLUS_LIBS="$GDIPLUS_LIBS `$PKG_CONFIG --libs xrender `"
|
||||
GDIPLUS_CFLAGS="$GDIPLUS_CFLAGS `$PKG_CONFIG --cflags xrender `"
|
||||
fi
|
@ -1,69 +0,0 @@
|
||||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI="5"
|
||||
|
||||
inherit base eutils mono flag-o-matic ltprune
|
||||
|
||||
DESCRIPTION="Library for using System.Drawing with mono"
|
||||
HOMEPAGE="http://www.mono-project.com"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 ~arm ppc ppc64 x86 ~amd64-linux ~x86-linux ~x86-solaris"
|
||||
SRC_URI="http://download.mono-project.com/sources/${PN}/${P}.tar.bz2"
|
||||
|
||||
IUSE="cairo"
|
||||
|
||||
RDEPEND=">=dev-libs/glib-2.16:2
|
||||
>=media-libs/freetype-2.3.7
|
||||
>=media-libs/fontconfig-2.6
|
||||
>=media-libs/libpng-1.4:0
|
||||
x11-libs/libXrender
|
||||
x11-libs/libX11
|
||||
x11-libs/libXt
|
||||
>=x11-libs/cairo-1.8.4[X]
|
||||
media-libs/libexif
|
||||
>=media-libs/giflib-4.1.3
|
||||
virtual/jpeg:0
|
||||
media-libs/tiff:0
|
||||
!cairo? ( >=x11-libs/pango-1.20 )"
|
||||
DEPEND="${RDEPEND}"
|
||||
|
||||
RESTRICT="test"
|
||||
|
||||
PATCHES=("${FILESDIR}/${P}-gold.patch"
|
||||
"${FILESDIR}/${PN}-2.10.1-libpng15.patch"
|
||||
"${FILESDIR}/${PN}-2.10.9-freetype251.patch")
|
||||
|
||||
src_prepare() {
|
||||
base_src_prepare
|
||||
sed -i -e 's:ungif:gif:g' configure || die
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
append-flags -fno-strict-aliasing
|
||||
econf \
|
||||
--disable-static \
|
||||
--with-cairo=system \
|
||||
$(use !cairo && printf %s --with-pango)
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
emake "$@"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake -j1 DESTDIR="${D}" "$@" install #nowarn
|
||||
mono_multilib_comply
|
||||
local commondoc=( AUTHORS ChangeLog README TODO )
|
||||
for docfile in "${commondoc[@]}"
|
||||
do
|
||||
[[ -e "${docfile}" ]] && dodoc "${docfile}"
|
||||
done
|
||||
if [[ "${DOCS[@]}" ]]
|
||||
then
|
||||
dodoc "${DOCS[@]}"
|
||||
fi
|
||||
prune_libtool_files
|
||||
}
|
@ -1,70 +0,0 @@
|
||||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI="5"
|
||||
|
||||
inherit base eutils mono flag-o-matic ltprune
|
||||
|
||||
DESCRIPTION="Library for using System.Drawing with mono"
|
||||
HOMEPAGE="http://www.mono-project.com"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux ~x86-solaris"
|
||||
SRC_URI="http://download.mono-project.com/sources/${PN}/${P}.tar.bz2"
|
||||
|
||||
IUSE="cairo"
|
||||
|
||||
RDEPEND=">=dev-libs/glib-2.16:2
|
||||
>=media-libs/freetype-2.3.7
|
||||
>=media-libs/fontconfig-2.6
|
||||
>=media-libs/libpng-1.4:0
|
||||
x11-libs/libXrender
|
||||
x11-libs/libX11
|
||||
x11-libs/libXt
|
||||
>=x11-libs/cairo-1.8.4[X]
|
||||
media-libs/libexif
|
||||
>=media-libs/giflib-4.2.3
|
||||
virtual/jpeg:0
|
||||
media-libs/tiff:0
|
||||
!cairo? ( >=x11-libs/pango-1.20 )"
|
||||
DEPEND="${RDEPEND}"
|
||||
|
||||
RESTRICT="test"
|
||||
|
||||
PATCHES=("${FILESDIR}/${P}-gold.patch"
|
||||
"${FILESDIR}/${PN}-2.10.1-libpng15.patch"
|
||||
"${FILESDIR}/${PN}-2.10.9-giflib-quantizebuffer.patch"
|
||||
"${FILESDIR}/${PN}-2.10.9-freetype251.patch")
|
||||
|
||||
src_prepare() {
|
||||
base_src_prepare
|
||||
sed -i -e 's:ungif:gif:g' configure || die
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
append-flags -fno-strict-aliasing
|
||||
econf \
|
||||
--disable-static \
|
||||
--with-cairo=system \
|
||||
$(use !cairo && printf %s --with-pango)
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
emake "$@"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake -j1 DESTDIR="${D}" "$@" install #nowarn
|
||||
mono_multilib_comply
|
||||
local commondoc=( AUTHORS ChangeLog README TODO )
|
||||
for docfile in "${commondoc[@]}"
|
||||
do
|
||||
[[ -e "${docfile}" ]] && dodoc "${docfile}"
|
||||
done
|
||||
if [[ "${DOCS[@]}" ]]
|
||||
then
|
||||
dodoc "${DOCS[@]}"
|
||||
fi
|
||||
prune_libtool_files
|
||||
}
|
@ -1,68 +0,0 @@
|
||||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
inherit eutils dotnet flag-o-matic ltprune
|
||||
|
||||
DESCRIPTION="Library for using System.Drawing with mono"
|
||||
HOMEPAGE="http://www.mono-project.com"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux ~x86-solaris"
|
||||
SRC_URI="http://download.mono-project.com/sources/${PN}/${P}.tar.bz2"
|
||||
|
||||
IUSE="cairo"
|
||||
|
||||
RDEPEND=">=dev-libs/glib-2.16:2
|
||||
>=media-libs/freetype-2.3.7
|
||||
>=media-libs/fontconfig-2.6
|
||||
>=media-libs/libpng-1.4:0
|
||||
x11-libs/libXrender
|
||||
x11-libs/libX11
|
||||
x11-libs/libXt
|
||||
>=x11-libs/cairo-1.8.4[X]
|
||||
media-libs/libexif
|
||||
>=media-libs/giflib-4.2.3
|
||||
virtual/jpeg:0
|
||||
media-libs/tiff:0
|
||||
!cairo? ( >=x11-libs/pango-1.20 )"
|
||||
DEPEND="${RDEPEND}"
|
||||
|
||||
RESTRICT="test"
|
||||
|
||||
PATCHES=("${FILESDIR}/${P}-gold.patch"
|
||||
"${FILESDIR}/${PN}-2.10.1-libpng15.patch"
|
||||
"${FILESDIR}/${PN}-2.10.9-giflib-quantizebuffer.patch")
|
||||
|
||||
src_prepare() {
|
||||
base_src_prepare
|
||||
sed -i -e 's:ungif:gif:g' configure || die
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
append-flags -fno-strict-aliasing
|
||||
econf \
|
||||
--disable-static \
|
||||
--with-cairo=system \
|
||||
$(use !cairo && printf %s --with-pango)
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
emake "$@"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake -j1 DESTDIR="${D}" "$@" install #nowarn
|
||||
dotnet_multilib_comply
|
||||
local commondoc=( AUTHORS ChangeLog README TODO )
|
||||
for docfile in "${commondoc[@]}"
|
||||
do
|
||||
[[ -e "${docfile}" ]] && dodoc "${docfile}"
|
||||
done
|
||||
if [[ "${DOCS[@]}" ]]
|
||||
then
|
||||
dodoc "${DOCS[@]}"
|
||||
fi
|
||||
prune_libtool_files
|
||||
}
|
@ -1,49 +0,0 @@
|
||||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
inherit eutils dotnet ltprune
|
||||
|
||||
DESCRIPTION="Library for using System.Drawing with mono"
|
||||
HOMEPAGE="http://www.mono-project.com"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 ~ppc ~ppc64 x86 ~amd64-linux ~x86-linux ~x86-solaris"
|
||||
SRC_URI="http://download.mono-project.com/sources/${PN}/${P}.tar.gz"
|
||||
|
||||
IUSE="cairo"
|
||||
|
||||
RDEPEND=">=dev-libs/glib-2.2.3:2
|
||||
>=media-libs/freetype-2.3.7:2
|
||||
>=media-libs/fontconfig-2.6
|
||||
>=media-libs/libpng-1.4:0=
|
||||
x11-libs/libXrender
|
||||
x11-libs/libX11
|
||||
x11-libs/libXt
|
||||
>=x11-libs/cairo-1.8.4[X]
|
||||
media-libs/libexif
|
||||
>=media-libs/giflib-5.1.2:=
|
||||
virtual/jpeg:0
|
||||
media-libs/tiff:0
|
||||
!cairo? ( >=x11-libs/pango-1.20 )"
|
||||
DEPEND="${RDEPEND}"
|
||||
|
||||
src_configure() {
|
||||
econf \
|
||||
--disable-static \
|
||||
$(usex cairo "" "--with-pango")
|
||||
}
|
||||
|
||||
src_install() {
|
||||
default
|
||||
|
||||
dotnet_multilib_comply
|
||||
local commondoc=( AUTHORS ChangeLog README TODO )
|
||||
for docfile in "${commondoc[@]}"; do
|
||||
[[ -e "${docfile}" ]] && dodoc "${docfile}"
|
||||
done
|
||||
[[ "${DOCS[@]}" ]] && dodoc "${DOCS[@]}"
|
||||
prune_libtool_files
|
||||
}
|
@ -1,49 +0,0 @@
|
||||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
inherit eutils ltprune
|
||||
|
||||
DESCRIPTION="Library for using System.Drawing with mono"
|
||||
HOMEPAGE="http://www.mono-project.com"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 arm arm64 ppc ppc64 x86 ~amd64-linux ~x86-linux ~x86-solaris"
|
||||
SRC_URI="http://download.mono-project.com/sources/${PN}/${P}.tar.gz"
|
||||
|
||||
IUSE="cairo"
|
||||
|
||||
RDEPEND=">=dev-libs/glib-2.2.3:2
|
||||
>=media-libs/freetype-2.3.7
|
||||
>=media-libs/fontconfig-2.6
|
||||
>=media-libs/libpng-1.4:0
|
||||
x11-libs/libXrender
|
||||
x11-libs/libX11
|
||||
x11-libs/libXt
|
||||
>=x11-libs/cairo-1.8.4[X]
|
||||
media-libs/libexif
|
||||
>=media-libs/giflib-5.1.2
|
||||
virtual/jpeg:0
|
||||
media-libs/tiff:0
|
||||
!cairo? ( >=x11-libs/pango-1.20 )"
|
||||
DEPEND="${RDEPEND}"
|
||||
|
||||
src_configure() {
|
||||
econf \
|
||||
--disable-static \
|
||||
$(usex cairo "" "--with-pango")
|
||||
}
|
||||
|
||||
src_install() {
|
||||
default
|
||||
|
||||
dotnet_multilib_comply
|
||||
local commondoc=( AUTHORS ChangeLog README TODO )
|
||||
for docfile in "${commondoc[@]}"; do
|
||||
[[ -e "${docfile}" ]] && dodoc "${docfile}"
|
||||
done
|
||||
[[ "${DOCS[@]}" ]] && dodoc "${DOCS[@]}"
|
||||
prune_libtool_files
|
||||
}
|
@ -1,57 +0,0 @@
|
||||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
inherit eutils ltprune
|
||||
|
||||
DESCRIPTION="Library for using System.Drawing with mono"
|
||||
HOMEPAGE="http://www.mono-project.com"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux ~x86-solaris"
|
||||
SRC_URI="http://download.mono-project.com/sources/${PN}/${P}.tar.gz"
|
||||
|
||||
IUSE="cairo"
|
||||
|
||||
#skip tests due https://bugs.gentoo.org/687784
|
||||
RESTRICT="test"
|
||||
|
||||
RDEPEND=">=dev-libs/glib-2.2.3:2
|
||||
>=media-libs/freetype-2.3.7
|
||||
>=media-libs/fontconfig-2.6
|
||||
>=media-libs/libpng-1.4:0
|
||||
x11-libs/libXrender
|
||||
x11-libs/libX11
|
||||
x11-libs/libXt
|
||||
>=x11-libs/cairo-1.8.4[X]
|
||||
media-libs/libexif
|
||||
>=media-libs/giflib-5.1.2
|
||||
<media-libs/giflib-5.1.9
|
||||
virtual/jpeg:0
|
||||
media-libs/tiff:0
|
||||
!cairo? ( >=x11-libs/pango-1.20 )"
|
||||
DEPEND="${RDEPEND}"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}/${P}-cofigure.patch"
|
||||
)
|
||||
|
||||
src_configure() {
|
||||
econf \
|
||||
--disable-static \
|
||||
$(usex cairo "" "--with-pango")
|
||||
}
|
||||
|
||||
src_install() {
|
||||
default
|
||||
|
||||
dotnet_multilib_comply
|
||||
local commondoc=( AUTHORS ChangeLog README TODO )
|
||||
for docfile in "${commondoc[@]}"; do
|
||||
[[ -e "${docfile}" ]] && dodoc "${docfile}"
|
||||
done
|
||||
[[ "${DOCS[@]}" ]] && dodoc "${DOCS[@]}"
|
||||
prune_libtool_files
|
||||
}
|
Binary file not shown.
Binary file not shown.
@ -0,0 +1,72 @@
|
||||
From e7611d3ef0b9ab2e00f485030234dea3a58c7aa4 Mon Sep 17 00:00:00 2001
|
||||
From: James Le Cuirot <chewi@gentoo.org>
|
||||
Date: Sat, 16 May 2020 20:07:02 +0100
|
||||
Subject: [PATCH] Fix debug build and rework Exceptions includes logic
|
||||
|
||||
Commit 3ddf92058392 broke the debug build. HAVE_EXECINFO_H is never
|
||||
defined by the build system so this header is never included, even
|
||||
when it is needed by the debug code.
|
||||
|
||||
The right way to fix this is only to include these headers when debug
|
||||
is actually enabled. This does mean that the debug build is still
|
||||
broken under musl but fixing that would require using libunwind
|
||||
instead.
|
||||
---
|
||||
cegui/src/Exceptions.cpp | 16 ++++------------
|
||||
1 file changed, 4 insertions(+), 12 deletions(-)
|
||||
|
||||
diff --git a/cegui/src/Exceptions.cpp b/cegui/src/Exceptions.cpp
|
||||
index 138081a..934989e 100644
|
||||
--- a/cegui/src/Exceptions.cpp
|
||||
+++ b/cegui/src/Exceptions.cpp
|
||||
@@ -33,12 +33,13 @@
|
||||
|
||||
#if defined( __WIN32__ ) || defined( _WIN32)
|
||||
# include <windows.h>
|
||||
+#elif defined(__ANDROID__)
|
||||
+# include <android/log.h>
|
||||
#endif
|
||||
|
||||
+#if defined(_DEBUG) || defined(DEBUG)
|
||||
#if defined(_MSC_VER)
|
||||
# include <dbghelp.h>
|
||||
-#elif defined(__ANDROID__)
|
||||
-# include <android/log.h>
|
||||
#elif (defined(__linux__) && !defined(__ANDROID__)) \
|
||||
|| defined(__APPLE__) || defined(__FreeBSD__) || defined(__NetBSD__) \
|
||||
|| defined(__HAIKU__)
|
||||
@@ -47,6 +48,7 @@
|
||||
# include <cxxabi.h>
|
||||
# include <cstdlib>
|
||||
#endif
|
||||
+#endif
|
||||
|
||||
// Start of CEGUI namespace section
|
||||
namespace CEGUI
|
||||
@@ -57,14 +59,6 @@ bool Exception::d_stdErrEnabled(true);
|
||||
//----------------------------------------------------------------------------//
|
||||
static void dumpBacktrace(size_t frames)
|
||||
{
|
||||
-
|
||||
-#if defined(__ANDROID__)
|
||||
-
|
||||
- // Not implemented yet.
|
||||
- CEGUI_UNUSED(frames);
|
||||
-
|
||||
-#else
|
||||
-
|
||||
#if defined(_DEBUG) || defined(DEBUG)
|
||||
#if defined(_MSC_VER)
|
||||
SymSetOptions(SYMOPT_DEFERRED_LOADS | SYMOPT_INCLUDE_32BIT_MODULES);
|
||||
@@ -187,8 +181,6 @@ static void dumpBacktrace(size_t frames)
|
||||
|
||||
CEGUI_UNUSED(frames);
|
||||
|
||||
-#endif
|
||||
-
|
||||
#endif
|
||||
}
|
||||
|
||||
--
|
||||
2.26.2
|
||||
|
@ -0,0 +1,21 @@
|
||||
From b53f162767bd18aa7dfebe322a7af65593c753f5 Mon Sep 17 00:00:00 2001
|
||||
From: ATAGOYAMA Tanuki <s172262@yahoo.co.jp>
|
||||
Date: Tue, 21 Nov 2017 20:51:36 +0900
|
||||
Subject: [PATCH] cegui/src/ScriptModules/Python/binding/CMakeLists.txt: fix
|
||||
cmake error
|
||||
|
||||
---
|
||||
cegui/src/ScriptModules/Python/bindings/CMakeLists.txt | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/cegui/src/ScriptModules/Python/bindings/CMakeLists.txt b/cegui/src/ScriptModules/Python/bindings/CMakeLists.txt
|
||||
index 758788c67..5cc9d5620 100644
|
||||
--- a/cegui/src/ScriptModules/Python/bindings/CMakeLists.txt
|
||||
+++ b/cegui/src/ScriptModules/Python/bindings/CMakeLists.txt
|
||||
@@ -1,5 +1,5 @@
|
||||
execute_process(
|
||||
- COMMAND ${PYTHON_EXECUTABLE} -c "import distutils.sysconfig; print distutils.sysconfig.get_python_lib(plat_specific=True, prefix=\"\")"
|
||||
+ COMMAND ${PYTHON_EXECUTABLE} -c "import distutils.sysconfig; print (distutils.sysconfig.get_python_lib(plat_specific=True, prefix=\"\"))"
|
||||
OUTPUT_VARIABLE CEGUI_PYTHON_INSTALL_DIR
|
||||
OUTPUT_STRIP_TRAILING_WHITESPACE
|
||||
)
|
Binary file not shown.
Binary file not shown.
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue