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, 28 Jun 2018 13:21:26
Message-Id: 1530192074.60f1c02200723874db36d52c695bfece21aeaa28.candrews@gentoo
1 commit: 60f1c02200723874db36d52c695bfece21aeaa28
2 Author: Craig Andrews <candrews <AT> gentoo <DOT> org>
3 AuthorDate: Thu Jun 28 13:19:45 2018 +0000
4 Commit: Craig Andrews <candrews <AT> gentoo <DOT> org>
5 CommitDate: Thu Jun 28 13:21:14 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=60f1c022
7
8 app-arch/brotli: 1.0.5 version bump
9
10 Package-Manager: Portage-2.3.40, Repoman-2.3.9
11
12 app-arch/brotli/Manifest | 1 +
13 app-arch/brotli/brotli-1.0.5.ebuild | 66 +++++++++++++++++++++++++++++++++++++
14 2 files changed, 67 insertions(+)
15
16 diff --git a/app-arch/brotli/Manifest b/app-arch/brotli/Manifest
17 index 3cf8283860c..0666725dbaa 100644
18 --- a/app-arch/brotli/Manifest
19 +++ b/app-arch/brotli/Manifest
20 @@ -1,3 +1,4 @@
21 DIST brotli-1.0.2.tar.gz 23736359 BLAKE2B c5467dc52f97942d790b835d5e2c06d2046c3df249446b775d58e56feeb5d5fdd3e1e8e42c5eff92df2bc2b47afabd36389e14afead5fd376e18c8517d1e67f7 SHA512 b3ec98159e63b4169dea3e958d60d89247dc1c0f78aab27bfffb2ece659fa024df990d410aa15c12b2082d42e3785e32ec248dce2b116c7f34e98bb6337f9fc9
22 DIST brotli-1.0.3.tar.gz 23815300 BLAKE2B 9569267782a8159d290e0f1b524a985144d1ae68a45a732443aca973dd0407c50249ce62389848d97cbc33eba3062ba471064570418c36158b97935ae4b7fb73 SHA512 93adcf437d730ac403e444285ac8aefbb2c8a6b5e1b064e8ee33684c067287a8159e0ee73d2217c167881e87da73fa494792d963a15508fd42b2ac4a5b52823c
23 DIST brotli-1.0.4.tar.gz 23819000 BLAKE2B 5c0a7ed2cb7e15722c2f08dbaaaa5e74f10a03b95961d77db285fac437a489158cf8f7d43a55fac75eb5423951286accf0285e3e3471e34e35868a69dbf42f16 SHA512 7d41ad37ca0755ba9e08e7355fb031e24a53a5f6d44ff827adee6d9712765af02142cb463ef558f92449ce3b73e559cffb52315a329ab702f4c46927f993b616
24 +DIST brotli-1.0.5.tar.gz 23825684 BLAKE2B b179f75f3e452bdd3fabbd74d9172bc0a00f797e7facf7a9061e5e81c52148297ea7dd8ab9954c3f596f59e2a96cb22ef057c4c02b1bba4ecf10db7b70e0711d SHA512 703cad94c7f250133d2cfe222f3183612c7649b184bba218907b805f423568046d42695f33acf7da95daf684be118c9d631cfa5706e5a195b611c716db4c839a
25
26 diff --git a/app-arch/brotli/brotli-1.0.5.ebuild b/app-arch/brotli/brotli-1.0.5.ebuild
27 new file mode 100644
28 index 00000000000..e06daa440b9
29 --- /dev/null
30 +++ b/app-arch/brotli/brotli-1.0.5.ebuild
31 @@ -0,0 +1,66 @@
32 +# Copyright 1999-2018 Gentoo Foundation
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=6
36 +
37 +PYTHON_COMPAT=( python2_7 python3_{4,5,6} pypy )
38 +DISTUTILS_OPTIONAL="1"
39 +
40 +inherit cmake-utils distutils-r1 eapi7-ver
41 +
42 +DESCRIPTION="Generic-purpose lossless compression algorithm"
43 +HOMEPAGE="https://github.com/google/brotli"
44 +
45 +SLOT="0/$(ver_cut 1)"
46 +
47 +RDEPEND="python? ( ${PYTHON_DEPS} )"
48 +DEPEND="${RDEPEND}"
49 +
50 +IUSE="python test"
51 +REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
52 +
53 +LICENSE="MIT python? ( Apache-2.0 )"
54 +
55 +DOCS=( README.md CONTRIBUTING.md )
56 +
57 +if [[ ${PV} == "9999" ]] ; then
58 + SRC_URI=""
59 + EGIT_REPO_URI="https://github.com/google/${PN}.git"
60 + inherit git-r3
61 +else
62 + KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~amd64-fbsd ~amd64-linux ~x86-linux"
63 + SRC_URI="https://github.com/google/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
64 +fi
65 +
66 +src_prepare() {
67 + cmake-utils_src_prepare
68 + use python && distutils-r1_src_prepare
69 +}
70 +
71 +src_configure() {
72 + local mycmakeargs=(
73 + -DBUILD_SHARED_LIBS=ON
74 + -DBUILD_TESTING="$(usex test)"
75 + )
76 + cmake-utils_src_configure
77 + use python && distutils-r1_src_configure
78 +}
79 +
80 +src_compile() {
81 + cmake-utils_src_compile
82 + use python && distutils-r1_src_compile
83 +}
84 +
85 +python_test(){
86 + esetup.py test || die
87 +}
88 +
89 +src_test() {
90 + cmake-utils_src_test
91 + use python && distutils-r1_src_test
92 +}
93 +
94 +src_install() {
95 + cmake-utils_src_install
96 + use python && distutils-r1_src_install
97 +}