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 6D74B158003 for ; Sat, 16 Oct 2021 13:59:09 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id BBF27E0828; Sat, 16 Oct 2021 13:59:08 +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-CHACHA20-POLY1305 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 8EF78E0829 for ; Sat, 16 Oct 2021 13:59:08 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-CHACHA20-POLY1305 (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id B625E3430F0 for ; Sat, 16 Oct 2021 13:59:07 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 12928168 for ; Sat, 16 Oct 2021 13:59:05 +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: <1634392720.c671b43a3b97bfaf4bd06df7406f815a3c33695b.soap@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: media-gfx/sfftobmp/files/, media-gfx/sfftobmp/ X-VCS-Repository: repo/gentoo X-VCS-Files: media-gfx/sfftobmp/files/sfftobmp-3.1.1-gcc44-and-boost-1_37.patch media-gfx/sfftobmp/files/sfftobmp-3.1.2-Wformat.patch media-gfx/sfftobmp/files/sfftobmp-3.1.2-boost_fs3.patch media-gfx/sfftobmp/sfftobmp-3.1.2-r1.ebuild X-VCS-Directories: media-gfx/sfftobmp/files/ media-gfx/sfftobmp/ X-VCS-Committer: soap X-VCS-Committer-Name: David Seifert X-VCS-Revision: c671b43a3b97bfaf4bd06df7406f815a3c33695b X-VCS-Branch: master Date: Sat, 16 Oct 2021 13:59:05 +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: 9501c017-3fe9-46e8-a7b7-f95a4808fef0 X-Archives-Hash: 5f2cdf3a6a9ad67d23e7ee1b93315a3a commit: c671b43a3b97bfaf4bd06df7406f815a3c33695b Author: David Seifert gentoo org> AuthorDate: Sat Oct 16 13:58:40 2021 +0000 Commit: David Seifert gentoo org> CommitDate: Sat Oct 16 13:58:40 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c671b43a media-gfx/sfftobmp: port to EAPI 8 Signed-off-by: David Seifert gentoo.org> .../sfftobmp-3.1.1-gcc44-and-boost-1_37.patch | 17 ++++-------- .../sfftobmp/files/sfftobmp-3.1.2-Wformat.patch | 11 ++++++++ .../sfftobmp/files/sfftobmp-3.1.2-boost_fs3.patch | 4 +-- media-gfx/sfftobmp/sfftobmp-3.1.2-r1.ebuild | 32 ++++++++++++++-------- 4 files changed, 39 insertions(+), 25 deletions(-) diff --git a/media-gfx/sfftobmp/files/sfftobmp-3.1.1-gcc44-and-boost-1_37.patch b/media-gfx/sfftobmp/files/sfftobmp-3.1.1-gcc44-and-boost-1_37.patch index 3ba832afaed..226b717431d 100644 --- a/media-gfx/sfftobmp/files/sfftobmp-3.1.1-gcc44-and-boost-1_37.patch +++ b/media-gfx/sfftobmp/files/sfftobmp-3.1.1-gcc44-and-boost-1_37.patch @@ -1,8 +1,5 @@ -Only in sfftobmp3_1_1: Makefile.am.orig -Only in sfftobmp3_1_1: Makefile.am.rej -diff -ur sfftobmp3_1_1.orig/src/cmdline.cpp sfftobmp3_1_1/src/cmdline.cpp ---- sfftobmp3_1_1.orig/src/cmdline.cpp 2007-10-07 22:01:21.000000000 +0300 -+++ sfftobmp3_1_1/src/cmdline.cpp 2009-05-09 00:33:06.000000000 +0300 +--- a/src/cmdline.cpp ++++ b/src/cmdline.cpp @@ -35,6 +35,7 @@ ---RCS-Info--------------------------------------------------*/ @@ -11,9 +8,8 @@ diff -ur sfftobmp3_1_1.orig/src/cmdline.cpp sfftobmp3_1_1/src/cmdline.cpp #include #include #include -diff -ur sfftobmp3_1_1.orig/src/common.cpp sfftobmp3_1_1/src/common.cpp ---- sfftobmp3_1_1.orig/src/common.cpp 2007-10-07 22:01:20.000000000 +0300 -+++ sfftobmp3_1_1/src/common.cpp 2009-05-09 00:28:37.000000000 +0300 +--- a/src/common.cpp ++++ b/src/common.cpp @@ -49,6 +49,7 @@ #include #endif @@ -22,9 +18,8 @@ diff -ur sfftobmp3_1_1.orig/src/common.cpp sfftobmp3_1_1/src/common.cpp #include #include -diff -ur sfftobmp3_1_1.orig/src/Makefile.am sfftobmp3_1_1/src/Makefile.am ---- sfftobmp3_1_1.orig/src/Makefile.am 2006-10-24 23:14:19.000000000 +0300 -+++ sfftobmp3_1_1/src/Makefile.am 2009-05-09 00:27:42.000000000 +0300 +--- a/src/Makefile.am ++++ b/src/Makefile.am @@ -3,4 +3,4 @@ INCLUDES = -I$(top_builddir) -I$(top_srcdir) bin_PROGRAMS = sfftobmp diff --git a/media-gfx/sfftobmp/files/sfftobmp-3.1.2-Wformat.patch b/media-gfx/sfftobmp/files/sfftobmp-3.1.2-Wformat.patch new file mode 100644 index 00000000000..a7ab1c18575 --- /dev/null +++ b/media-gfx/sfftobmp/files/sfftobmp-3.1.2-Wformat.patch @@ -0,0 +1,11 @@ +--- a/src/output.cpp ++++ b/src/output.cpp +@@ -163,7 +163,7 @@ + m_pFile->Write(acBuf, strlen(acBuf)); + sprintf(acBuf, "%s", "# generated with SffToBmp\n"); + m_pFile->Write(acBuf, strlen(acBuf)); +- sprintf(acBuf, "%ld %ld\n", aWidth, aHeight); ++ sprintf(acBuf, "%u %u\n", aWidth, aHeight); + m_pFile->Write(acBuf, strlen(acBuf)); + } + diff --git a/media-gfx/sfftobmp/files/sfftobmp-3.1.2-boost_fs3.patch b/media-gfx/sfftobmp/files/sfftobmp-3.1.2-boost_fs3.patch index f39d157e197..7ae13855def 100644 --- a/media-gfx/sfftobmp/files/sfftobmp-3.1.2-boost_fs3.patch +++ b/media-gfx/sfftobmp/files/sfftobmp-3.1.2-boost_fs3.patch @@ -1,7 +1,7 @@ http://bugs.gentoo.org/425364 ---- src/cmdline.cpp -+++ src/cmdline.cpp +--- a/src/cmdline.cpp ++++ b/src/cmdline.cpp @@ -264,14 +264,14 @@ } do { diff --git a/media-gfx/sfftobmp/sfftobmp-3.1.2-r1.ebuild b/media-gfx/sfftobmp/sfftobmp-3.1.2-r1.ebuild index 4f2ebeb017f..1bc93102d37 100644 --- a/media-gfx/sfftobmp/sfftobmp-3.1.2-r1.ebuild +++ b/media-gfx/sfftobmp/sfftobmp-3.1.2-r1.ebuild @@ -1,37 +1,45 @@ # Copyright 1999-2021 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 -EAPI=5 -inherit autotools epatch flag-o-matic +EAPI=8 + +inherit autotools flag-o-matic MY_P=${PN}${PV//./_} DESCRIPTION="sff to bmp converter" HOMEPAGE="http://sfftools.sourceforge.net/" SRC_URI="mirror://sourceforge/sfftools/${MY_P}_src.zip" +S="${WORKDIR}/${MY_P}" LICENSE="HPND MIT" SLOT="0" KEYWORDS="amd64 ~hppa ppc x86" -IUSE="" -RDEPEND=">=dev-libs/boost-1.49 +RDEPEND=" + dev-libs/boost:= media-libs/tiff:0 virtual/jpeg:0" -DEPEND="${RDEPEND} - app-arch/unzip" +DEPEND="${RDEPEND}" +BDEPEND="app-arch/unzip" -S=${WORKDIR}/${MY_P} +PATCHES=( + "${FILESDIR}"/${PN}-3.1.1-gcc44-and-boost-1_37.patch + "${FILESDIR}"/${PN}-3.1.2-boost_fs3.patch + "${FILESDIR}"/${PN}-3.1.2-Wformat.patch +) src_prepare() { - epatch \ - "${FILESDIR}"/${PN}-3.1.1-gcc44-and-boost-1_37.patch \ - "${FILESDIR}"/${PN}-3.1.2-boost_fs3.patch - append-cppflags -DBOOST_FILESYSTEM_VERSION=3 + default eautoreconf } +src_configure() { + append-cppflags -DBOOST_FILESYSTEM_VERSION=3 + default +} + src_install() { - emake DESTDIR="${D}" install + default dodoc doc/{changes,credits,readme} }