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