Gentoo Archives: gentoo-commits

From: David Seifert <soap@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-gfx/sfftobmp/files/, media-gfx/sfftobmp/
Date: Sat, 16 Oct 2021 13:59:09
Message-Id: 1634392720.c671b43a3b97bfaf4bd06df7406f815a3c33695b.soap@gentoo
1 commit: c671b43a3b97bfaf4bd06df7406f815a3c33695b
2 Author: David Seifert <soap <AT> gentoo <DOT> org>
3 AuthorDate: Sat Oct 16 13:58:40 2021 +0000
4 Commit: David Seifert <soap <AT> gentoo <DOT> org>
5 CommitDate: Sat Oct 16 13:58:40 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c671b43a
7
8 media-gfx/sfftobmp: port to EAPI 8
9
10 Signed-off-by: David Seifert <soap <AT> gentoo.org>
11
12 .../sfftobmp-3.1.1-gcc44-and-boost-1_37.patch | 17 ++++--------
13 .../sfftobmp/files/sfftobmp-3.1.2-Wformat.patch | 11 ++++++++
14 .../sfftobmp/files/sfftobmp-3.1.2-boost_fs3.patch | 4 +--
15 media-gfx/sfftobmp/sfftobmp-3.1.2-r1.ebuild | 32 ++++++++++++++--------
16 4 files changed, 39 insertions(+), 25 deletions(-)
17
18 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
19 index 3ba832afaed..226b717431d 100644
20 --- a/media-gfx/sfftobmp/files/sfftobmp-3.1.1-gcc44-and-boost-1_37.patch
21 +++ b/media-gfx/sfftobmp/files/sfftobmp-3.1.1-gcc44-and-boost-1_37.patch
22 @@ -1,8 +1,5 @@
23 -Only in sfftobmp3_1_1: Makefile.am.orig
24 -Only in sfftobmp3_1_1: Makefile.am.rej
25 -diff -ur sfftobmp3_1_1.orig/src/cmdline.cpp sfftobmp3_1_1/src/cmdline.cpp
26 ---- sfftobmp3_1_1.orig/src/cmdline.cpp 2007-10-07 22:01:21.000000000 +0300
27 -+++ sfftobmp3_1_1/src/cmdline.cpp 2009-05-09 00:33:06.000000000 +0300
28 +--- a/src/cmdline.cpp
29 ++++ b/src/cmdline.cpp
30 @@ -35,6 +35,7 @@
31
32 ---RCS-Info--------------------------------------------------*/
33 @@ -11,9 +8,8 @@ diff -ur sfftobmp3_1_1.orig/src/cmdline.cpp sfftobmp3_1_1/src/cmdline.cpp
34 #include <vector>
35 #include <cassert>
36 #include <iostream>
37 -diff -ur sfftobmp3_1_1.orig/src/common.cpp sfftobmp3_1_1/src/common.cpp
38 ---- sfftobmp3_1_1.orig/src/common.cpp 2007-10-07 22:01:20.000000000 +0300
39 -+++ sfftobmp3_1_1/src/common.cpp 2009-05-09 00:28:37.000000000 +0300
40 +--- a/src/common.cpp
41 ++++ b/src/common.cpp
42 @@ -49,6 +49,7 @@
43 #include <sys/utime.h>
44 #endif
45 @@ -22,9 +18,8 @@ diff -ur sfftobmp3_1_1.orig/src/common.cpp sfftobmp3_1_1/src/common.cpp
46 #include <cassert>
47 #include <iostream>
48
49 -diff -ur sfftobmp3_1_1.orig/src/Makefile.am sfftobmp3_1_1/src/Makefile.am
50 ---- sfftobmp3_1_1.orig/src/Makefile.am 2006-10-24 23:14:19.000000000 +0300
51 -+++ sfftobmp3_1_1/src/Makefile.am 2009-05-09 00:27:42.000000000 +0300
52 +--- a/src/Makefile.am
53 ++++ b/src/Makefile.am
54 @@ -3,4 +3,4 @@
55 INCLUDES = -I$(top_builddir) -I$(top_srcdir)
56 bin_PROGRAMS = sfftobmp
57
58 diff --git a/media-gfx/sfftobmp/files/sfftobmp-3.1.2-Wformat.patch b/media-gfx/sfftobmp/files/sfftobmp-3.1.2-Wformat.patch
59 new file mode 100644
60 index 00000000000..a7ab1c18575
61 --- /dev/null
62 +++ b/media-gfx/sfftobmp/files/sfftobmp-3.1.2-Wformat.patch
63 @@ -0,0 +1,11 @@
64 +--- a/src/output.cpp
65 ++++ b/src/output.cpp
66 +@@ -163,7 +163,7 @@
67 + m_pFile->Write(acBuf, strlen(acBuf));
68 + sprintf(acBuf, "%s", "# generated with SffToBmp\n");
69 + m_pFile->Write(acBuf, strlen(acBuf));
70 +- sprintf(acBuf, "%ld %ld\n", aWidth, aHeight);
71 ++ sprintf(acBuf, "%u %u\n", aWidth, aHeight);
72 + m_pFile->Write(acBuf, strlen(acBuf));
73 + }
74 +
75
76 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
77 index f39d157e197..7ae13855def 100644
78 --- a/media-gfx/sfftobmp/files/sfftobmp-3.1.2-boost_fs3.patch
79 +++ b/media-gfx/sfftobmp/files/sfftobmp-3.1.2-boost_fs3.patch
80 @@ -1,7 +1,7 @@
81 http://bugs.gentoo.org/425364
82
83 ---- src/cmdline.cpp
84 -+++ src/cmdline.cpp
85 +--- a/src/cmdline.cpp
86 ++++ b/src/cmdline.cpp
87 @@ -264,14 +264,14 @@
88 }
89 do {
90
91 diff --git a/media-gfx/sfftobmp/sfftobmp-3.1.2-r1.ebuild b/media-gfx/sfftobmp/sfftobmp-3.1.2-r1.ebuild
92 index 4f2ebeb017f..1bc93102d37 100644
93 --- a/media-gfx/sfftobmp/sfftobmp-3.1.2-r1.ebuild
94 +++ b/media-gfx/sfftobmp/sfftobmp-3.1.2-r1.ebuild
95 @@ -1,37 +1,45 @@
96 # Copyright 1999-2021 Gentoo Authors
97 # Distributed under the terms of the GNU General Public License v2
98
99 -EAPI=5
100 -inherit autotools epatch flag-o-matic
101 +EAPI=8
102 +
103 +inherit autotools flag-o-matic
104
105 MY_P=${PN}${PV//./_}
106
107 DESCRIPTION="sff to bmp converter"
108 HOMEPAGE="http://sfftools.sourceforge.net/"
109 SRC_URI="mirror://sourceforge/sfftools/${MY_P}_src.zip"
110 +S="${WORKDIR}/${MY_P}"
111
112 LICENSE="HPND MIT"
113 SLOT="0"
114 KEYWORDS="amd64 ~hppa ppc x86"
115 -IUSE=""
116
117 -RDEPEND=">=dev-libs/boost-1.49
118 +RDEPEND="
119 + dev-libs/boost:=
120 media-libs/tiff:0
121 virtual/jpeg:0"
122 -DEPEND="${RDEPEND}
123 - app-arch/unzip"
124 +DEPEND="${RDEPEND}"
125 +BDEPEND="app-arch/unzip"
126
127 -S=${WORKDIR}/${MY_P}
128 +PATCHES=(
129 + "${FILESDIR}"/${PN}-3.1.1-gcc44-and-boost-1_37.patch
130 + "${FILESDIR}"/${PN}-3.1.2-boost_fs3.patch
131 + "${FILESDIR}"/${PN}-3.1.2-Wformat.patch
132 +)
133
134 src_prepare() {
135 - epatch \
136 - "${FILESDIR}"/${PN}-3.1.1-gcc44-and-boost-1_37.patch \
137 - "${FILESDIR}"/${PN}-3.1.2-boost_fs3.patch
138 - append-cppflags -DBOOST_FILESYSTEM_VERSION=3
139 + default
140 eautoreconf
141 }
142
143 +src_configure() {
144 + append-cppflags -DBOOST_FILESYSTEM_VERSION=3
145 + default
146 +}
147 +
148 src_install() {
149 - emake DESTDIR="${D}" install
150 + default
151 dodoc doc/{changes,credits,readme}
152 }