summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin Lecher <jlec@gentoo.org>2012-10-06 09:49:18 +0000
committerJustin Lecher <jlec@gentoo.org>2012-10-06 09:49:18 +0000
commit78ed121c58de6fd685b4cccfb62c13b3acffa2be (patch)
treece53c076e01855904751d4bfcc0ee81a067402a1
parentarm stable, bug #427544 (diff)
downloadgentoo-2-78ed121c58de6fd685b4cccfb62c13b3acffa2be.tar.gz
gentoo-2-78ed121c58de6fd685b4cccfb62c13b3acffa2be.tar.bz2
gentoo-2-78ed121c58de6fd685b4cccfb62c13b3acffa2be.zip
dev-tcltk/tkimg: Import fedora patch for zlib-1.2.7
(Portage version: 2.2.0_alpha128/cvs/Linux x86_64)
-rw-r--r--dev-tcltk/tkimg/ChangeLog8
-rw-r--r--dev-tcltk/tkimg/files/tkimg-1.4-zlib127-gzgetc_fix.patch44
-rw-r--r--dev-tcltk/tkimg/tkimg-1.4-r7.ebuild87
3 files changed, 138 insertions, 1 deletions
diff --git a/dev-tcltk/tkimg/ChangeLog b/dev-tcltk/tkimg/ChangeLog
index 94dcf8c09a96..8c194b3d10f4 100644
--- a/dev-tcltk/tkimg/ChangeLog
+++ b/dev-tcltk/tkimg/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for dev-tcltk/tkimg
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-tcltk/tkimg/ChangeLog,v 1.49 2012/07/07 14:05:46 jlec Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-tcltk/tkimg/ChangeLog,v 1.50 2012/10/06 09:49:18 jlec Exp $
+
+*tkimg-1.4-r7 (06 Oct 2012)
+
+ 06 Oct 2012; Justin Lecher <jlec@gentoo.org> +tkimg-1.4-r7.ebuild,
+ +files/tkimg-1.4-zlib127-gzgetc_fix.patch:
+ Import fedora patch for zlib-1.2.7
*tkimg-1.4-r6 (07 Jul 2012)
diff --git a/dev-tcltk/tkimg/files/tkimg-1.4-zlib127-gzgetc_fix.patch b/dev-tcltk/tkimg/files/tkimg-1.4-zlib127-gzgetc_fix.patch
new file mode 100644
index 000000000000..1b9ce158ca73
--- /dev/null
+++ b/dev-tcltk/tkimg/files/tkimg-1.4-zlib127-gzgetc_fix.patch
@@ -0,0 +1,44 @@
+diff -up tkimg1.4/zlib/zlibtcl.decls.gzgetc_fix tkimg1.4/zlib/zlibtcl.decls
+--- tkimg1.4/zlib/zlibtcl.decls.gzgetc_fix 2012-07-31 14:54:11.104302862 -0400
++++ tkimg1.4/zlib/zlibtcl.decls 2012-07-31 14:54:24.846303790 -0400
+@@ -138,7 +138,7 @@ declare 38 {
+ int gzputc(gzFile file, int c)
+ }
+ declare 39 {
+- int gzgetc(gzFile file)
++ int gzgetc_(gzFile file)
+ }
+ declare 40 {
+ int gzflush(gzFile file, int flush)
+diff -up tkimg1.4/zlib/zlibtclDecls.h.gzgetc_fix tkimg1.4/zlib/zlibtclDecls.h
+--- tkimg1.4/zlib/zlibtclDecls.h.gzgetc_fix 2012-07-31 14:55:12.754307116 -0400
++++ tkimg1.4/zlib/zlibtclDecls.h 2012-07-31 14:55:17.520307957 -0400
+@@ -120,7 +120,7 @@ ZEXTERN char * gzgets(gzFile file, char
+ /* 38 */
+ ZEXTERN int gzputc(gzFile file, int c);
+ /* 39 */
+-ZEXTERN int gzgetc(gzFile file);
++ZEXTERN int gzgetc_(gzFile file);
+ /* 40 */
+ ZEXTERN int gzflush(gzFile file, int flush);
+ /* 41 */
+@@ -179,7 +179,7 @@ typedef struct ZlibtclStubs {
+ int (*gzputsPtr) (gzFile file, const char *s); /* 36 */
+ char * (*gzgetsPtr) (gzFile file, char *buf, int len); /* 37 */
+ int (*gzputcPtr) (gzFile file, int c); /* 38 */
+- int (*gzgetcPtr) (gzFile file); /* 39 */
++ int (*gzgetc_Ptr) (gzFile file); /* 39 */
+ int (*gzflushPtr) (gzFile file, int flush); /* 40 */
+ z_off_t (*gzseekPtr) (gzFile file, z_off_t offset, int whence); /* 41 */
+ int (*gzrewindPtr) (gzFile file); /* 42 */
+@@ -273,8 +273,8 @@ ZEXTERN const ZlibtclStubs *zlibtclStubs
+ (zlibtclStubsPtr->gzgetsPtr) /* 37 */
+ #define gzputc \
+ (zlibtclStubsPtr->gzputcPtr) /* 38 */
+-#define gzgetc \
+- (zlibtclStubsPtr->gzgetcPtr) /* 39 */
++#define gzgetc_ \
++ (zlibtclStubsPtr->gzgetc_Ptr) /* 39 */
+ #define gzflush \
+ (zlibtclStubsPtr->gzflushPtr) /* 40 */
+ #define gzseek \
diff --git a/dev-tcltk/tkimg/tkimg-1.4-r7.ebuild b/dev-tcltk/tkimg/tkimg-1.4-r7.ebuild
new file mode 100644
index 000000000000..43f24b1d9841
--- /dev/null
+++ b/dev-tcltk/tkimg/tkimg-1.4-r7.ebuild
@@ -0,0 +1,87 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-tcltk/tkimg/tkimg-1.4-r7.ebuild,v 1.1 2012/10/06 09:49:18 jlec Exp $
+
+EAPI=4
+
+VIRTUALX_USE=test
+
+inherit eutils multilib prefix virtualx
+
+MYP="${PN}${PV}"
+
+DESCRIPTION="Adds a lot of image formats to Tcl/Tk"
+HOMEPAGE="http://tkimg.sourceforge.net/"
+SRC_URI="
+ http://dev.gentoo.org/~jlec/distfiles/${P}-gentoo+bundled-tiff.patch.xz
+ mirror://sourceforge/${PN}/${PV}/${MYP}.tar.bz2"
+
+IUSE="doc test"
+SLOT="0"
+LICENSE="BSD"
+KEYWORDS="~amd64 ~ppc ~x86 ~amd64-linux ~x86-linux"
+
+RDEPEND="
+ dev-lang/tk
+ >=dev-tcltk/tcllib-1.11
+ media-libs/tiff:0
+ media-libs/libpng:0
+ >=sys-libs/zlib-1.2.7
+ virtual/jpeg"
+DEPEND="${RDEPEND}
+ test? (
+ x11-apps/xhost
+ media-fonts/font-misc-misc
+ media-fonts/font-cursor-misc )"
+
+# Fails with jpeg-turbo silently, #386253
+RESTRICT="test"
+
+S="${WORKDIR}/${MYP}"
+
+src_prepare() {
+ epatch \
+ "${WORKDIR}"/${P}-gentoo+bundled-tiff.patch \
+ "${FILESDIR}"/${P}-jbig.patch \
+ "${FILESDIR}"/${P}-zlib-1.2.6.patch \
+ "${FILESDIR}"/${P}-libtiff.patch \
+ "${FILESDIR}"/${P}-libtiff4.patch \
+ "${FILESDIR}"/${P}-zlib127-gzgetc_fix.patch
+
+ find compat/{libjpeg,libpng,zlib,libtiff} -delete
+
+ sed \
+ -e 's:-O2 -fomit-frame-pointer::g' \
+ -e 's: -pipe::g' \
+ -i */configure || die
+
+ eprefixify */*.h
+}
+
+src_test() {
+ Xemake test || die "Xmake failed"
+}
+
+src_install() {
+ local l bl
+
+ emake \
+ DESTDIR="${D}" \
+ INSTALL_ROOT="${D}" \
+ install
+
+ # Make library links
+ for l in "${ED}"/usr/lib*/Img*/*tcl*.so; do
+ bl=$(basename $l)
+ dosym Img1.4/${bl} /usr/$(get_libdir)/${bl}
+ done
+
+ dodoc ChangeLog README Reorganization.Notes.txt changes ANNOUNCE
+
+ if use doc; then
+ insinto /usr/share/doc/${PF}
+ doins demo.tcl
+ insinto /usr/share/doc/${PF}/html
+ doins -r doc/*
+ fi
+}