Gentoo Archives: gentoo-commits

From: Craig Andrews <candrews@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-arch/brotli/
Date: Thu, 27 Aug 2020 16:50:02
Message-Id: 1598546985.c0c1d322aae1744982fc5fa2ae6c8cc545db97f1.candrews@gentoo
1 commit: c0c1d322aae1744982fc5fa2ae6c8cc545db97f1
2 Author: Craig Andrews <candrews <AT> gentoo <DOT> org>
3 AuthorDate: Thu Aug 27 16:49:45 2020 +0000
4 Commit: Craig Andrews <candrews <AT> gentoo <DOT> org>
5 CommitDate: Thu Aug 27 16:49:45 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c0c1d322
7
8 app-arch/brotli: 1.0.9 version bump
9
10 Package-Manager: Portage-3.0.4, Repoman-3.0.1
11 Signed-off-by: Craig Andrews <candrews <AT> gentoo.org>
12
13 app-arch/brotli/Manifest | 1 +
14 app-arch/brotli/brotli-1.0.9.ebuild | 79 +++++++++++++++++++++++++++++++++++++
15 2 files changed, 80 insertions(+)
16
17 diff --git a/app-arch/brotli/Manifest b/app-arch/brotli/Manifest
18 index 98f703dc332..5f839800926 100644
19 --- a/app-arch/brotli/Manifest
20 +++ b/app-arch/brotli/Manifest
21 @@ -1,2 +1,3 @@
22 DIST brotli-1.0.6.tar.gz 23827656 BLAKE2B 8d31eb1c4119de44702f2239fba9db72f1ae81801d06e51716432ff2f8aa78259c52cbd57b8fcd005c1bc14ada81b6e47a35c5d3864bb10bb02d113e30bd321b SHA512 b9847375471de3ae815ef4bb45a29653c343fad0a891a79d5132fcdee34c85caafd82289c8b413c3ef609049f2e8c4af9f9abd1736a2408ba44544c5fefc0010
23 DIST brotli-1.0.7.tar.gz 23827908 BLAKE2B b9fc554cd23c8387b648638b6f9bb2d29fa87035856d03cf284662f9281984f3bf8e40109e61155ece18673f4391bc0fff704f8ab800a2041d3ce1824478d2ae SHA512 a82362aa36d2f2094bca0b2808d9de0d57291fb3a4c29d7c0ca0a37e73087ec5ac4df299c8c363e61106fccf2fe7f58b5cf76eb97729e2696058ef43b1d3930a
24 +DIST brotli-1.0.9.tar.gz 486984 BLAKE2B 8b9939d5224396ef33b43e019250ba4bc8949903583615e8dc02c85340fc0a1e2d1632161e00b0ee7355d77f05529ac772f482e05d2089afd71a0bf71e803904 SHA512 b8e2df955e8796ac1f022eb4ebad29532cb7e3aa6a4b6aee91dbd2c7d637eee84d9a144d3e878895bb5e62800875c2c01c8f737a1261020c54feacf9f676b5f5
25
26 diff --git a/app-arch/brotli/brotli-1.0.9.ebuild b/app-arch/brotli/brotli-1.0.9.ebuild
27 new file mode 100644
28 index 00000000000..89d52f2c2ec
29 --- /dev/null
30 +++ b/app-arch/brotli/brotli-1.0.9.ebuild
31 @@ -0,0 +1,79 @@
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_{6,7,8,9} )
38 +DISTUTILS_OPTIONAL="1"
39 +DISTUTILS_IN_SOURCE_BUILD="1"
40 +
41 +inherit cmake-multilib distutils-r1
42 +
43 +DESCRIPTION="Generic-purpose lossless compression algorithm"
44 +HOMEPAGE="https://github.com/google/brotli"
45 +
46 +SLOT="0/$(ver_cut 1)"
47 +
48 +RDEPEND="python? ( ${PYTHON_DEPS} )"
49 +DEPEND="${RDEPEND}"
50 +
51 +IUSE="python test"
52 +REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
53 +
54 +LICENSE="MIT python? ( Apache-2.0 )"
55 +
56 +DOCS=( README.md CONTRIBUTING.md )
57 +
58 +if [[ ${PV} == "9999" ]] ; then
59 + SRC_URI=""
60 + EGIT_REPO_URI="https://github.com/google/${PN}.git"
61 + inherit git-r3
62 +else
63 + KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux ~x64-macos ~x86-macos ~x64-solaris"
64 + SRC_URI="https://github.com/google/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
65 +fi
66 +
67 +RESTRICT="!test? ( test )"
68 +
69 +src_prepare() {
70 + use python && distutils-r1_src_prepare
71 + cmake-utils_src_prepare
72 +}
73 +
74 +multilib_src_configure() {
75 + local mycmakeargs=(
76 + -DBUILD_TESTING="$(usex test)"
77 + )
78 + cmake-utils_src_configure
79 +}
80 +src_configure() {
81 + cmake-multilib_src_configure
82 + use python && distutils-r1_src_configure
83 +}
84 +
85 +multilib_src_compile() {
86 + cmake-utils_src_compile
87 +}
88 +src_compile() {
89 + cmake-multilib_src_compile
90 + use python && distutils-r1_src_compile
91 +}
92 +
93 +python_test() {
94 + esetup.py test || die
95 +}
96 +
97 +multilib_src_test() {
98 + cmake-utils_src_test
99 +}
100 +src_test() {
101 + cmake-multilib_src_test
102 + use python && distutils-r1_src_test
103 +}
104 +
105 +multilib_src_install() {
106 + cmake-utils_src_install
107 +}
108 +multilib_src_install_all() {
109 + use python && distutils-r1_src_install
110 +}