diff options
author | 2012-11-03 04:41:49 +0000 | |
---|---|---|
committer | 2012-11-03 04:41:49 +0000 | |
commit | d04e269238ff177676d7adf858ea7e9a537da14e (patch) | |
tree | f0b64096232312dc1a6c263b16c29c0a9d5b2521 /media-libs/tiff | |
parent | fix Manifest (diff) | |
download | gentoo-2-d04e269238ff177676d7adf858ea7e9a537da14e.tar.gz gentoo-2-d04e269238ff177676d7adf858ea7e9a537da14e.tar.bz2 gentoo-2-d04e269238ff177676d7adf858ea7e9a537da14e.zip |
Fix output colors of tiff2pdf when JPEG compression is enabled wrt #145055 by Syed Amer Gilani
(Portage version: 2.2.0_alpha142/cvs/Linux x86_64, signed Manifest commit with key 4868F14D)
Diffstat (limited to 'media-libs/tiff')
-rw-r--r-- | media-libs/tiff/ChangeLog | 9 | ||||
-rw-r--r-- | media-libs/tiff/files/tiff-4.0.3-tiff2pdf-colors.patch | 15 | ||||
-rw-r--r-- | media-libs/tiff/tiff-4.0.3-r1.ebuild | 45 |
3 files changed, 68 insertions, 1 deletions
diff --git a/media-libs/tiff/ChangeLog b/media-libs/tiff/ChangeLog index 4e200fc2c3ee..df2e59fec99b 100644 --- a/media-libs/tiff/ChangeLog +++ b/media-libs/tiff/ChangeLog @@ -1,6 +1,13 @@ # ChangeLog for media-libs/tiff # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/media-libs/tiff/ChangeLog,v 1.217 2012/10/07 09:01:42 pacho Exp $ +# $Header: /var/cvsroot/gentoo-x86/media-libs/tiff/ChangeLog,v 1.218 2012/11/03 04:41:49 ssuominen Exp $ + +*tiff-4.0.3-r1 (03 Nov 2012) + + 03 Nov 2012; Samuli Suominen <ssuominen@gentoo.org> +tiff-4.0.3-r1.ebuild, + +files/tiff-4.0.3-tiff2pdf-colors.patch: + Fix output colors of `tiff2pdf` when JPEG compression is enabled wrt #145055 by + Syed Amer Gilani 07 Oct 2012; Pacho Ramos <pacho@gentoo.org> metadata.xml: Drop maintainer due retirement, #24135. diff --git a/media-libs/tiff/files/tiff-4.0.3-tiff2pdf-colors.patch b/media-libs/tiff/files/tiff-4.0.3-tiff2pdf-colors.patch new file mode 100644 index 000000000000..a503444b107c --- /dev/null +++ b/media-libs/tiff/files/tiff-4.0.3-tiff2pdf-colors.patch @@ -0,0 +1,15 @@ +http://bugs.gentoo.org/145055 + +http://build.opensuse.org/package/view_file?file=tiff-4.0.2-tiff2pdf-colors.patch&package=tiff&project=openSUSE%3AFactory + +--- tools/tiff2pdf.c ++++ tools/tiff2pdf.c +@@ -4991,7 +4991,7 @@ + + if(t2p->tiff_photometric != PHOTOMETRIC_YCBCR) { + written += t2pWriteFile(output, (tdata_t) "/DecodeParms ", 13); +- written += t2pWriteFile(output, (tdata_t) "<< /ColorTransform 0 >>\n", 24); ++ written += t2pWriteFile(output, (tdata_t) "<< /ColorTransform 1 >>\n", 24); + } + break; + #endif diff --git a/media-libs/tiff/tiff-4.0.3-r1.ebuild b/media-libs/tiff/tiff-4.0.3-r1.ebuild new file mode 100644 index 000000000000..2d4c844a17c3 --- /dev/null +++ b/media-libs/tiff/tiff-4.0.3-r1.ebuild @@ -0,0 +1,45 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/media-libs/tiff/tiff-4.0.3-r1.ebuild,v 1.1 2012/11/03 04:41:49 ssuominen Exp $ + +EAPI=4 +inherit eutils libtool + +DESCRIPTION="Tag Image File Format (TIFF) library" +HOMEPAGE="http://www.remotesensing.org/libtiff/" +SRC_URI="http://download.osgeo.org/libtiff/${P}.tar.gz + ftp://ftp.remotesensing.org/pub/libtiff/${P}.tar.gz" + +LICENSE="as-is" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~x64-freebsd ~x86-freebsd ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~x64-solaris ~x86-solaris" +IUSE="+cxx jbig jpeg lzma static-libs zlib" + +RDEPEND="jpeg? ( virtual/jpeg ) + jbig? ( media-libs/jbigkit ) + lzma? ( app-arch/xz-utils ) + zlib? ( sys-libs/zlib )" +DEPEND="${RDEPEND}" + +src_prepare() { + epatch "${FILESDIR}"/${PN}-4.0.3-tiff2pdf-colors.patch #145055 + elibtoolize +} + +src_configure() { + econf \ + $(use_enable static-libs static) \ + $(use_enable zlib) \ + $(use_enable jpeg) \ + $(use_enable jbig) \ + $(use_enable lzma) \ + $(use_enable cxx) \ + --without-x \ + --with-docdir="${EPREFIX}"/usr/share/doc/${PF} +} + +src_install() { + default + prune_libtool_files --all + rm -f "${ED}"/usr/share/doc/${PF}/{COPYRIGHT,README*,RELEASE-DATE,TODO,VERSION} +} |