From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 14CA213835A for ; Thu, 16 Jan 2020 14:57:59 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id C6746E08D1; Thu, 16 Jan 2020 14:57:57 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 9C4C7E08C9 for ; Thu, 16 Jan 2020 14:57:57 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 19D6B34E105 for ; Thu, 16 Jan 2020 14:57:56 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 097B49B for ; Thu, 16 Jan 2020 14:57:54 +0000 (UTC) From: "David Seifert" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "David Seifert" Message-ID: <1579186434.4335ff10cb362b8c9e42a8c42d8576582df07bba.soap@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: media-gfx/iscan/files/, media-gfx/iscan/ X-VCS-Repository: repo/gentoo X-VCS-Files: media-gfx/iscan/files/iscan-3.61.0-ijg-libjpeg.patch media-gfx/iscan/iscan-3.61.0.ebuild X-VCS-Directories: media-gfx/iscan/ media-gfx/iscan/files/ X-VCS-Committer: soap X-VCS-Committer-Name: David Seifert X-VCS-Revision: 4335ff10cb362b8c9e42a8c42d8576582df07bba X-VCS-Branch: master Date: Thu, 16 Jan 2020 14:57:54 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 9a94371e-3741-4d64-800d-cab42f7d3918 X-Archives-Hash: 5551170034d3685e4e7ca6d8e10b29ec commit: 4335ff10cb362b8c9e42a8c42d8576582df07bba Author: David Seifert gentoo org> AuthorDate: Thu Jan 16 14:53:54 2020 +0000 Commit: David Seifert gentoo org> CommitDate: Thu Jan 16 14:53:54 2020 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4335ff10 media-gfx/iscan: Add patch for IJG libjpeg Closes: https://bugs.gentoo.org/704062 Package-Manager: Portage-2.3.84, Repoman-2.3.20 Signed-off-by: David Seifert gentoo.org> .../iscan/files/iscan-3.61.0-ijg-libjpeg.patch | 45 ++++++++++++++++++++++ media-gfx/iscan/iscan-3.61.0.ebuild | 4 +- 2 files changed, 48 insertions(+), 1 deletion(-) diff --git a/media-gfx/iscan/files/iscan-3.61.0-ijg-libjpeg.patch b/media-gfx/iscan/files/iscan-3.61.0-ijg-libjpeg.patch new file mode 100644 index 00000000000..2625741d409 --- /dev/null +++ b/media-gfx/iscan/files/iscan-3.61.0-ijg-libjpeg.patch @@ -0,0 +1,45 @@ +--- a/filters/jpeg.cpp ++++ b/filters/jpeg.cpp +@@ -410,13 +410,13 @@ + cinfo_.image_height = ctx_.height (); + + jpeg_set_defaults (&cinfo_); +- jpeg_set_quality (&cinfo_, quality_, true); ++ jpeg_set_quality (&cinfo_, quality_, TRUE); + + cinfo_.density_unit = 1; // in dpi + cinfo_.X_density = ctx_.x_resolution (); + cinfo_.Y_density = ctx_.y_resolution (); + +- jpeg_start_compress (&cinfo_, true); ++ jpeg_start_compress (&cinfo_, TRUE); + + cache_ = new octet[ctx_.octets_per_line ()]; + cache_size_ = ctx_.octets_per_line (); +@@ -462,7 +462,7 @@ + dmgr_.next_output_byte = jbuf_ + (jbuf_size_ - n); + dmgr_.free_in_buffer = n; + +- return true; ++ return TRUE; + } + + void +@@ -535,7 +535,7 @@ + + //jpegデータの一部が分割されて送られてきても正常に動作するように変更 + +- return false; ++ return FALSE; + } + + void +@@ -580,7 +580,7 @@ + { + if (!header_done_) + { +- if (JPEG_SUSPENDED == jpeg_read_header (&cinfo_, true)) ++ if (JPEG_SUSPENDED == jpeg_read_header (&cinfo_, TRUE)) + { + log::trace ("jpeg_read_header suspended"); + if (!reclaim_space ()) diff --git a/media-gfx/iscan/iscan-3.61.0.ebuild b/media-gfx/iscan/iscan-3.61.0.ebuild index 3fe05c6da65..5ea99a53ae2 100644 --- a/media-gfx/iscan/iscan-3.61.0.ebuild +++ b/media-gfx/iscan/iscan-3.61.0.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2019 Gentoo Authors +# Copyright 1999-2020 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 @@ -32,6 +32,8 @@ RDEPEND=${DEPEND} S="${WORKDIR}/utsushi-0.$(ver_cut 2-3)" +PATCHES=( "${FILESDIR}"/${PN}-3.61.0-ijg-libjpeg.patch ) + src_configure() { econf \ $(use_with gui gtkmm) \