1 |
commit: b742b9950f200ac5b13be7409f87256bd0eec6e8 |
2 |
Author: Craig Andrews <candrews <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Jan 2 20:06:39 2018 +0000 |
4 |
Commit: Craig Andrews <candrews <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Jan 2 20:07:07 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b742b995 |
7 |
|
8 |
app-arch/brotli: 1.0.02 version bump; add -9999 |
9 |
|
10 |
Package-Manager: Portage-2.3.19, Repoman-2.3.6 |
11 |
|
12 |
app-arch/brotli/Manifest | 1 + |
13 |
app-arch/brotli/brotli-1.0.2.ebuild | 67 +++++++++++++++++++++++ |
14 |
app-arch/brotli/brotli-9999.ebuild | 66 ++++++++++++++++++++++ |
15 |
app-arch/brotli/files/brotli-1.0.2-no-rpath.patch | 21 +++++++ |
16 |
4 files changed, 155 insertions(+) |
17 |
|
18 |
diff --git a/app-arch/brotli/Manifest b/app-arch/brotli/Manifest |
19 |
index 4a16121683b..d83d5e4e658 100644 |
20 |
--- a/app-arch/brotli/Manifest |
21 |
+++ b/app-arch/brotli/Manifest |
22 |
@@ -1 +1,2 @@ |
23 |
DIST brotli-0.6.0.tar.gz 19838761 BLAKE2B 0630e9afcb04ecfd7cc6ba8dcbbe10c5ff16d9a975e13f48bd9b519bcf006afdd672aed542768590e2c5481e808e4f49c520e8a0294ce15e72cb3810a576fdde SHA512 36caa277790efeb5bff0fdc090cdcf00fd9995c4e81a60ed31d36af2e13848ec1afe5d84e6926eebbee013525191e9404e112cb7fbede16097221c5bc3dfb5d5 |
24 |
+DIST brotli-1.0.2.tar.gz 23736359 BLAKE2B c5467dc52f97942d790b835d5e2c06d2046c3df249446b775d58e56feeb5d5fdd3e1e8e42c5eff92df2bc2b47afabd36389e14afead5fd376e18c8517d1e67f7 SHA512 b3ec98159e63b4169dea3e958d60d89247dc1c0f78aab27bfffb2ece659fa024df990d410aa15c12b2082d42e3785e32ec248dce2b116c7f34e98bb6337f9fc9 |
25 |
|
26 |
diff --git a/app-arch/brotli/brotli-1.0.2.ebuild b/app-arch/brotli/brotli-1.0.2.ebuild |
27 |
new file mode 100644 |
28 |
index 00000000000..b2991a9b89a |
29 |
--- /dev/null |
30 |
+++ b/app-arch/brotli/brotli-1.0.2.ebuild |
31 |
@@ -0,0 +1,67 @@ |
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 |
41 |
+ |
42 |
+DESCRIPTION="Generic-purpose lossless compression algorithm" |
43 |
+HOMEPAGE="https://github.com/google/brotli" |
44 |
+ |
45 |
+SLOT="0/${PV}" |
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 |
+ PATCHES=( "${FILESDIR}"/${P}-no-rpath.patch ) |
63 |
+ KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" |
64 |
+ SRC_URI="https://github.com/google/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
65 |
+fi |
66 |
+ |
67 |
+src_prepare() { |
68 |
+ cmake-utils_src_prepare |
69 |
+ use python && distutils-r1_src_prepare |
70 |
+} |
71 |
+ |
72 |
+src_configure() { |
73 |
+ local mycmakeargs=( |
74 |
+ -DBUILD_SHARED_LIBS=ON |
75 |
+ -DBUILD_TESTING="$(usex test)" |
76 |
+ ) |
77 |
+ cmake-utils_src_configure |
78 |
+ use python && distutils-r1_src_configure |
79 |
+} |
80 |
+ |
81 |
+src_compile() { |
82 |
+ cmake-utils_src_compile |
83 |
+ use python && distutils-r1_src_compile |
84 |
+} |
85 |
+ |
86 |
+python_test(){ |
87 |
+ esetup.py test || die |
88 |
+} |
89 |
+ |
90 |
+src_test() { |
91 |
+ cmake-utils_src_test |
92 |
+ use python && distutils-r1_src_test |
93 |
+} |
94 |
+ |
95 |
+src_install() { |
96 |
+ cmake-utils_src_install |
97 |
+ use python && distutils-r1_src_install |
98 |
+} |
99 |
|
100 |
diff --git a/app-arch/brotli/brotli-9999.ebuild b/app-arch/brotli/brotli-9999.ebuild |
101 |
new file mode 100644 |
102 |
index 00000000000..5b876796ed3 |
103 |
--- /dev/null |
104 |
+++ b/app-arch/brotli/brotli-9999.ebuild |
105 |
@@ -0,0 +1,66 @@ |
106 |
+# Copyright 1999-2018 Gentoo Foundation |
107 |
+# Distributed under the terms of the GNU General Public License v2 |
108 |
+ |
109 |
+EAPI=6 |
110 |
+ |
111 |
+PYTHON_COMPAT=( python2_7 python3_{4,5,6} pypy ) |
112 |
+DISTUTILS_OPTIONAL="1" |
113 |
+ |
114 |
+inherit cmake-utils distutils-r1 |
115 |
+ |
116 |
+DESCRIPTION="Generic-purpose lossless compression algorithm" |
117 |
+HOMEPAGE="https://github.com/google/brotli" |
118 |
+ |
119 |
+SLOT="0/${PV}" |
120 |
+ |
121 |
+RDEPEND="python? ( ${PYTHON_DEPS} )" |
122 |
+DEPEND="${RDEPEND}" |
123 |
+ |
124 |
+IUSE="python test" |
125 |
+REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" |
126 |
+ |
127 |
+LICENSE="MIT python? ( Apache-2.0 )" |
128 |
+ |
129 |
+DOCS=( README.md CONTRIBUTING.md ) |
130 |
+ |
131 |
+if [[ ${PV} == "9999" ]] ; then |
132 |
+ SRC_URI="" |
133 |
+ EGIT_REPO_URI="https://github.com/google/${PN}.git" |
134 |
+ inherit git-r3 |
135 |
+else |
136 |
+ KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" |
137 |
+ SRC_URI="https://github.com/google/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
138 |
+fi |
139 |
+ |
140 |
+src_prepare() { |
141 |
+ cmake-utils_src_prepare |
142 |
+ use python && distutils-r1_src_prepare |
143 |
+} |
144 |
+ |
145 |
+src_configure() { |
146 |
+ local mycmakeargs=( |
147 |
+ -DBUILD_SHARED_LIBS=ON |
148 |
+ -DBUILD_TESTING="$(usex test)" |
149 |
+ ) |
150 |
+ cmake-utils_src_configure |
151 |
+ use python && distutils-r1_src_configure |
152 |
+} |
153 |
+ |
154 |
+src_compile() { |
155 |
+ cmake-utils_src_compile |
156 |
+ use python && distutils-r1_src_compile |
157 |
+} |
158 |
+ |
159 |
+python_test(){ |
160 |
+ esetup.py test || die |
161 |
+} |
162 |
+ |
163 |
+src_test() { |
164 |
+ cmake-utils_src_test |
165 |
+ use python && distutils-r1_src_test |
166 |
+} |
167 |
+ |
168 |
+src_install() { |
169 |
+ cmake-utils_src_install |
170 |
+ use python && distutils-r1_src_install |
171 |
+} |
172 |
|
173 |
diff --git a/app-arch/brotli/files/brotli-1.0.2-no-rpath.patch b/app-arch/brotli/files/brotli-1.0.2-no-rpath.patch |
174 |
new file mode 100644 |
175 |
index 00000000000..779b5e66bd9 |
176 |
--- /dev/null |
177 |
+++ b/app-arch/brotli/files/brotli-1.0.2-no-rpath.patch |
178 |
@@ -0,0 +1,21 @@ |
179 |
+diff --git a/CMakeLists.txt b/CMakeLists.txt |
180 |
+index ac55f6b3..2dc7232c 100644 |
181 |
+--- a/CMakeLists.txt |
182 |
++++ b/CMakeLists.txt |
183 |
+@@ -24,16 +24,6 @@ mark_as_advanced(BROTLI_BUNDLED_MODE) |
184 |
+ |
185 |
+ include(GNUInstallDirs) |
186 |
+ |
187 |
+-# When building shared libraries it is important to set the correct rpath. |
188 |
+-# See https://cmake.org/Wiki/CMake_RPATH_handling#Always_full_RPATH |
189 |
+-set(CMAKE_SKIP_BUILD_RPATH FALSE) |
190 |
+-set(CMAKE_BUILD_WITH_INSTALL_RPATH FALSE) |
191 |
+-set(CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE) |
192 |
+-list(FIND CMAKE_PLATFORM_IMPLICIT_LINK_DIRECTORIES "${CMAKE_INSTALL_LIBDIR}" isSystemDir) |
193 |
+-if ("${isSystemDir}" STREQUAL "-1") |
194 |
+- set(CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_LIBDIR}") |
195 |
+-endif() |
196 |
+- |
197 |
+ # Parse version information from common/version.h. Normally we would |
198 |
+ # define these values here and write them out to configuration file(s) |
199 |
+ # (i.e., config.h), but in this case we parse them from |