Gentoo Archives: gentoo-commits

From: Patrick McLean <chutzpah@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-arch/pixz/
Date: Thu, 20 Aug 2020 01:49:54
Message-Id: 1597888181.2b594db8a968b0c512a33f0e1c155f21279bb1e1.chutzpah@gentoo
1 commit: 2b594db8a968b0c512a33f0e1c155f21279bb1e1
2 Author: Patrick McLean <patrick.mclean <AT> sony <DOT> com>
3 AuthorDate: Thu Aug 20 01:49:41 2020 +0000
4 Commit: Patrick McLean <chutzpah <AT> gentoo <DOT> org>
5 CommitDate: Thu Aug 20 01:49:41 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2b594db8
7
8 app-arch/pixz-1.0.7: Version bump
9
10 Closes: https://bugs.gentoo.org/707474
11 Copyright: Sony Interactive Entertainment Inc.
12 Package-Manager: Portage-3.0.4, Repoman-3.0.1
13 Signed-off-by: Patrick McLean <chutzpah <AT> gentoo.org>
14
15 app-arch/pixz/Manifest | 1 +
16 app-arch/pixz/pixz-1.0.7.ebuild | 51 +++++++++++++++++++++++++++++++++++++++++
17 2 files changed, 52 insertions(+)
18
19 diff --git a/app-arch/pixz/Manifest b/app-arch/pixz/Manifest
20 index 97b996b1d4e..d5f9c719c42 100644
21 --- a/app-arch/pixz/Manifest
22 +++ b/app-arch/pixz/Manifest
23 @@ -1 +1,2 @@
24 DIST pixz-1.0.6.tar.xz 119516 BLAKE2B 758a4985b946284587998ab2a653e51ded9838a7c77c7795c82c15c1693714468b07c2cbfd86a0c7ce7be34d9a5bd8fdc3285d503524ce299ba53179447e60ed SHA512 361a8d8b736c350e4e3fd19b5d36777129a087eb81439d05edc08f9378938583bef8fc70e440ffd22efb6dad1f6494c6c3e532d7dd1ab12c9350b6078aa993d7
25 +DIST pixz-1.0.7.tar.xz 120876 BLAKE2B 23563837169611d54dc4540715537b2e16c66bd9682097e4f37957e7422b487f221603b11aa30a39fd05c77dbeddc1697ac9ffe208d984c1da885a67f79a180f SHA512 7f343cb74958b9582b60a2e916243e72421fad1ebecc5867c9e046c881e8a318da9bb885edd71da8fe6953fd5d5c2f5119133cd0bbbf4d0f9b35f8aecd61120d
26
27 diff --git a/app-arch/pixz/pixz-1.0.7.ebuild b/app-arch/pixz/pixz-1.0.7.ebuild
28 new file mode 100644
29 index 00000000000..c6564c5abe3
30 --- /dev/null
31 +++ b/app-arch/pixz/pixz-1.0.7.ebuild
32 @@ -0,0 +1,51 @@
33 +# Copyright 1999-2020 Gentoo Authors
34 +# Distributed under the terms of the GNU General Public License v2
35 +
36 +EAPI=7
37 +
38 +inherit flag-o-matic
39 +
40 +if [[ ${PV} == "9999" ]] ; then
41 + EGIT_REPO_URI="https://github.com/vasi/${PN}.git"
42 + inherit git-r3 autotools
43 +else
44 + SRC_URI="https://github.com/vasi/pixz/releases/download/v${PV}/${P}.tar.xz"
45 + KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86"
46 +fi
47 +
48 +DESCRIPTION="Parallel Indexed XZ compressor"
49 +HOMEPAGE="https://github.com/vasi/pixz"
50 +
51 +LICENSE="BSD-2"
52 +SLOT="0"
53 +IUSE="static"
54 +
55 +LIB_DEPEND="
56 + >=app-arch/libarchive-2.8:=[static-libs(+)]
57 + >=app-arch/xz-utils-5[static-libs(+)]
58 +"
59 +RDEPEND="
60 + !static? ( ${LIB_DEPEND//\[static-libs(+)]} )
61 +"
62 +DEPEND="${RDEPEND}
63 + static? ( ${LIB_DEPEND} )
64 +"
65 +[[ ${PV} == "9999" ]] && BDEPEND+=" app-text/asciidoc"
66 +
67 +src_prepare() {
68 + default
69 + [[ ${PV} == "9999" ]] && eautoreconf
70 +}
71 +
72 +src_configure() {
73 + use static && append-ldflags -static
74 + append-flags -std=gnu99
75 + # Workaround silly logic that breaks cross-compiles.
76 + # https://github.com/vasi/pixz/issues/67
77 + export ac_cv_file_src_pixz_1=$([[ -f src/pixz.1 ]] && echo yes || echo no)
78 + econf
79 +}
80 +
81 +src_test() {
82 + emake check
83 +}