Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-libs/jbig2enc/
Date: Sat, 27 Feb 2021 01:00:34
Message-Id: 1614387610.57a850cbaa6950f3c274f0b3ac8822ed1a080714.sam@gentoo
1 commit: 57a850cbaa6950f3c274f0b3ac8822ed1a080714
2 Author: Sam James <sam <AT> gentoo <DOT> org>
3 AuthorDate: Sat Feb 27 00:29:37 2021 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Sat Feb 27 01:00:10 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=57a850cb
7
8 media-libs/jbig2enc: port to EAPI 7
9
10 Package-Manager: Portage-3.0.15, Repoman-3.0.2
11 Signed-off-by: Sam James <sam <AT> gentoo.org>
12
13 media-libs/jbig2enc/jbig2enc-0.28-r1.ebuild | 25 +++++++++++++++++--------
14 1 file changed, 17 insertions(+), 8 deletions(-)
15
16 diff --git a/media-libs/jbig2enc/jbig2enc-0.28-r1.ebuild b/media-libs/jbig2enc/jbig2enc-0.28-r1.ebuild
17 index b1e25014daf..f6949b5e887 100644
18 --- a/media-libs/jbig2enc/jbig2enc-0.28-r1.ebuild
19 +++ b/media-libs/jbig2enc/jbig2enc-0.28-r1.ebuild
20 @@ -1,10 +1,9 @@
21 -# Copyright 1999-2014 Gentoo Foundation
22 +# Copyright 1999-2021 Gentoo Authors
23 # Distributed under the terms of the GNU General Public License v2
24
25 -EAPI="5"
26 +EAPI=7
27
28 -AUTOTOOLS_AUTORECONF=1
29 -inherit autotools-utils
30 +inherit autotools
31
32 DESCRIPTION="JBIG2 Encoder and libs"
33 HOMEPAGE="https://github.com/agl/jbig2enc"
34 @@ -13,19 +12,29 @@ SRC_URI="https://github.com/agl/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
35 LICENSE="Apache-2.0"
36 SLOT="0"
37 KEYWORDS="amd64 x86 ~ppc-macos"
38 -
39 -IUSE="gif jpeg png static-libs tiff webp"
40 +IUSE="gif jpeg png tiff webp"
41
42 RDEPEND="media-libs/leptonica[gif?,jpeg?,png?,tiff?,webp?]"
43 DEPEND="${RDEPEND}"
44
45 -PATCHES=( "${FILESDIR}/${P}-leptonica-1.70.patch" )
46 +PATCHES=(
47 + "${FILESDIR}/${P}-leptonica-1.70.patch"
48 +)
49
50 src_prepare() {
51 + default
52 +
53 # remove -Werror
54 sed -i -e '/AM_INIT_AUTOMAKE/s/-Werror//' configure.ac || die 'sed on configure.ac failed'
55 # prevent static linking and QA notice about insecure RUNPATHs
56 sed -i -e '/jbig2_LDFLAGS/d' src/Makefile.am || die 'sed on src/Makefile.am failed'
57
58 - autotools-utils_src_prepare
59 + eautoreconf
60 +}
61 +
62 +src_install() {
63 + default
64 +
65 + find "${ED}" -name '*.la' -delete || die
66 + find "${ED}" -name '*.a' -delete || die
67 }