Gentoo Archives: gentoo-commits

From: Thomas Deutschmann <whissi@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-libs/jbig2dec/
Date: Fri, 11 Sep 2020 19:40:55
Message-Id: 1599853134.512e175785797a160a73754d0e17c87be2cc6fa5.whissi@gentoo
1 commit: 512e175785797a160a73754d0e17c87be2cc6fa5
2 Author: Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
3 AuthorDate: Fri Sep 11 18:33:16 2020 +0000
4 Commit: Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
5 CommitDate: Fri Sep 11 19:38:54 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=512e1757
7
8 media-libs/jbig2dec: bump to v0.19
9
10 Package-Manager: Portage-3.0.6, Repoman-3.0.1
11 Signed-off-by: Thomas Deutschmann <whissi <AT> gentoo.org>
12
13 media-libs/jbig2dec/Manifest | 1 +
14 media-libs/jbig2dec/jbig2dec-0.19.ebuild | 68 ++++++++++++++++++++++++++++++++
15 2 files changed, 69 insertions(+)
16
17 diff --git a/media-libs/jbig2dec/Manifest b/media-libs/jbig2dec/Manifest
18 index 59d0a6a7225..3f593faa836 100644
19 --- a/media-libs/jbig2dec/Manifest
20 +++ b/media-libs/jbig2dec/Manifest
21 @@ -1,2 +1,3 @@
22 DIST jb2streams.zip 1285838 BLAKE2B 9a2b6047a7b970439693d6f5fdefb9488019a562e7f831288b27df09bb19dec2f84854cf7fea50b5b041d331e925145f37f2f89848058ecdc074e7d6c238033f SHA512 382890b36345b8aaebb3554e776a53f3276c6d835335ce41f3f41829ff62bba7ae646602544103ba8541a7a824dca92d682b682c254ab2918c7fe45b3e358b45
23 DIST jbig2dec-0.18.tar.gz 148563 BLAKE2B a864fd5b00abca3ae0f847c1d8fd537d92d68a3c042c851b6bebd51bb674f5bc4a36811f2b4fd7753db4d3641e544e03ec184cb90d43da0247d8affd7cf62c11 SHA512 5931530ee3b811f9009c95d08ad65701564ef8ebf6511145acb969cc7c99dab5028daaee580dd83358b6bdc477cffe347712b9c9768c9b1a63395e366046267d
24 +DIST jbig2dec-0.19.tar.gz 149134 BLAKE2B 576f3a516499b6291d25dfdefe5af62899665167526dca11435bc07e04a3feb707f82d3a8bdda774f5cfe0d792c3147e77aa94fa57feac25ba1c0a7805c5fc58 SHA512 d5a27951cc9c06c184f454e258e81b6e4d5aa2742a4da821522b9a42ecc78e7e1b78058dabc23821618e62d62d8832011f16b5ef2d66beac463da6b809fd02af
25
26 diff --git a/media-libs/jbig2dec/jbig2dec-0.19.ebuild b/media-libs/jbig2dec/jbig2dec-0.19.ebuild
27 new file mode 100644
28 index 00000000000..97c630ef522
29 --- /dev/null
30 +++ b/media-libs/jbig2dec/jbig2dec-0.19.ebuild
31 @@ -0,0 +1,68 @@
32 +# Copyright 1999-2020 Gentoo Authors
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=7
36 +
37 +PYTHON_COMPAT=( python3_{7,8,9} )
38 +
39 +inherit autotools python-any-r1
40 +
41 +DESCRIPTION="A decoder implementation of the JBIG2 image compression format"
42 +HOMEPAGE="https://jbig2dec.com/"
43 +SRC_URI="https://github.com/ArtifexSoftware/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz
44 + test? ( http://jbig2dec.sourceforge.net/ubc/jb2streams.zip )"
45 +
46 +LICENSE="AGPL-3"
47 +SLOT="0/$(ver_cut 1-2)" #698428
48 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
49 +IUSE="png static-libs test"
50 +RESTRICT="!test? ( test )"
51 +
52 +BDEPEND="
53 + test? (
54 + app-arch/unzip
55 + ${PYTHON_DEPS}
56 + )
57 +"
58 +
59 +RDEPEND="png? ( media-libs/libpng:0= )"
60 +DEPEND="${RDEPEND}"
61 +
62 +DOCS=( CHANGES README )
63 +
64 +pkg_setup() {
65 + use test && python-any-r1_pkg_setup
66 +}
67 +
68 +src_prepare() {
69 + default
70 +
71 + if use test; then
72 + mkdir "${WORKDIR}/ubc" || die
73 + mv -v "${WORKDIR}"/*.jb2 "${WORKDIR}/ubc/" || die
74 + mv -v "${WORKDIR}"/*.bmp "${WORKDIR}/ubc/" || die
75 + fi
76 +
77 + # We only need configure.ac and config_types.h.in
78 + sed -i \
79 + -e '/^# do we need automake?/,/^autoheader/d' \
80 + -e '/echo " $AUTOM.*/,$d' \
81 + autogen.sh \
82 + || die "failed to modify autogen.sh"
83 +
84 + ./autogen.sh || die
85 +
86 + eautoreconf
87 +}
88 +
89 +src_configure() {
90 + econf \
91 + $(use_enable static-libs static) \
92 + $(use_with png libpng)
93 +}
94 +
95 +src_install() {
96 + default
97 +
98 + find "${ED}" -name '*.la' -exec rm {} + || die
99 +}