1 |
commit: 005d860137c26db588503516ffa584f79b2dee78 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Dec 24 00:19:23 2020 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Dec 24 00:19:31 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=005d8601 |
7 |
|
8 |
dev-python/blosc: Bump to 1.10.0 |
9 |
|
10 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 |
|
12 |
dev-python/blosc/Manifest | 1 + |
13 |
dev-python/blosc/blosc-1.10.0.ebuild | 46 ++++++++++++++++++++++ |
14 |
dev-python/blosc/files/blosc-1.10.0-unbundle.patch | 38 ++++++++++++++++++ |
15 |
3 files changed, 85 insertions(+) |
16 |
|
17 |
diff --git a/dev-python/blosc/Manifest b/dev-python/blosc/Manifest |
18 |
index e8bdd9e7727..4bb979ce2e5 100644 |
19 |
--- a/dev-python/blosc/Manifest |
20 |
+++ b/dev-python/blosc/Manifest |
21 |
@@ -1 +1,2 @@ |
22 |
+DIST blosc-1.10.0.tar.gz 845312 BLAKE2B 15f367f1420f56e64ec01e74d7320adc194db11d15bd26a2b78c59c88a6127f1d2b5fc7bd53e02a6d0cad785c87cf79bb909dec62982b5ee8620c92ccdd80249 SHA512 f071d131966acd74cf71f8688ae9830091ee12a92399e8736f2b2cc2243bc022f9fd194c60493e912aef87a54202813a67a8f9bddd90c1c44631205d58c3f3e3 |
23 |
DIST blosc-1.9.2.tar.gz 816897 BLAKE2B 7d1a2d925500c8ddb93975dd785c03b91dec2716a438915d5dfdb739c650de8a47ed80eb25fc55357e69b586c446c5af61212e0a4fba8158839a66849309f478 SHA512 a8f53afb7fb1bb742e2daa03015b636d4dbb1fd073be079022364ec67035c9e6ee372ab07f7ce06579b85d9fcaedd2a11f30b9cf5b2bd1d1ea62cf32a8aa3c1f |
24 |
|
25 |
diff --git a/dev-python/blosc/blosc-1.10.0.ebuild b/dev-python/blosc/blosc-1.10.0.ebuild |
26 |
new file mode 100644 |
27 |
index 00000000000..1423adda4bd |
28 |
--- /dev/null |
29 |
+++ b/dev-python/blosc/blosc-1.10.0.ebuild |
30 |
@@ -0,0 +1,46 @@ |
31 |
+# Copyright 1999-2020 Gentoo Authors |
32 |
+# Distributed under the terms of the GNU General Public License v2 |
33 |
+ |
34 |
+EAPI=7 |
35 |
+ |
36 |
+PYTHON_COMPAT=( python3_{6..9} ) |
37 |
+ |
38 |
+inherit distutils-r1 |
39 |
+ |
40 |
+DESCRIPTION="High performance compressor optimized for binary data" |
41 |
+HOMEPAGE="http://python-blosc.blosc.org" |
42 |
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" |
43 |
+ |
44 |
+SLOT="0" |
45 |
+LICENSE="MIT" |
46 |
+KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux" |
47 |
+IUSE="test" |
48 |
+RESTRICT="!test? ( test )" |
49 |
+ |
50 |
+RDEPEND=">=dev-libs/c-blosc-1.19.0:=" |
51 |
+DEPEND="${RDEPEND}" |
52 |
+BDEPEND=" |
53 |
+ dev-python/scikit-build[${PYTHON_USEDEP}] |
54 |
+ test? ( |
55 |
+ dev-python/numpy[${PYTHON_USEDEP}] |
56 |
+ ) |
57 |
+" |
58 |
+ |
59 |
+DOCS=( ANNOUNCE.rst README.rst RELEASE_NOTES.rst ) |
60 |
+PATCHES=( |
61 |
+ "${FILESDIR}"/blosc-1.10.0-unbundle.patch |
62 |
+) |
63 |
+ |
64 |
+python_prepare_all() { |
65 |
+ export BLOSC_DIR="${EPREFIX}/usr" |
66 |
+ distutils-r1_python_prepare_all |
67 |
+} |
68 |
+ |
69 |
+python_test() { |
70 |
+ "${EPYTHON}" -m blosc.test -v || die |
71 |
+} |
72 |
+ |
73 |
+python_install() { |
74 |
+ distutils-r1_python_install |
75 |
+ python_optimize |
76 |
+} |
77 |
|
78 |
diff --git a/dev-python/blosc/files/blosc-1.10.0-unbundle.patch b/dev-python/blosc/files/blosc-1.10.0-unbundle.patch |
79 |
new file mode 100644 |
80 |
index 00000000000..0ea6740f9c0 |
81 |
--- /dev/null |
82 |
+++ b/dev-python/blosc/files/blosc-1.10.0-unbundle.patch |
83 |
@@ -0,0 +1,38 @@ |
84 |
+From b2935461d889eac99fa1bdfb04a96f1c3a23c4c3 Mon Sep 17 00:00:00 2001 |
85 |
+From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= <mgorny@g.o> |
86 |
+Date: Thu, 24 Dec 2020 01:06:23 +0100 |
87 |
+Subject: [PATCH] build against system blosc |
88 |
+ |
89 |
+--- |
90 |
+ blosc/CMakeLists.txt | 14 ++------------ |
91 |
+ 1 file changed, 2 insertions(+), 12 deletions(-) |
92 |
+ |
93 |
+diff --git a/blosc/CMakeLists.txt b/blosc/CMakeLists.txt |
94 |
+index 7f06f28..fcf7db0 100644 |
95 |
+--- a/blosc/CMakeLists.txt |
96 |
++++ b/blosc/CMakeLists.txt |
97 |
+@@ -1,19 +1,9 @@ |
98 |
+ # Todo: c-blosc provides a CMake package configuration file that we can build |
99 |
+ # against if blosc is available on the system, etc. |
100 |
+-# find_package(blosc) |
101 |
+-# if(NOT blosc_FOUND) |
102 |
+-set(BUILD_STATIC ON CACHE BOOL "Build a static version of the blosc library.") |
103 |
+-set(BUILD_SHARED ON CACHE BOOL "Build a shared library version of the blosc library.") |
104 |
+-set(BUILD_TESTS OFF CACHE BOOL "Build test programs form the blosc compression library") |
105 |
+-set(BUILD_BENCHMARKS OFF CACHE BOOL "Build benchmark programs form the blosc compression library") |
106 |
+-set(BLOSC_IS_SUBPROJECT OFF CACHE BOOL "Blosc is subproject") |
107 |
+-set(CMAKE_POSITION_INDEPENDENT_CODE ON) |
108 |
+-add_subdirectory(c-blosc) |
109 |
+-include_directories("${CMAKE_CURRENT_SOURCE_DIR}/c-blosc/blosc") |
110 |
+- |
111 |
++find_package(blosc) |
112 |
+ |
113 |
+ add_library(blosc_extension MODULE blosc_extension.c) |
114 |
+-target_link_libraries(blosc_extension blosc_static) |
115 |
++target_link_libraries(blosc_extension blosc) |
116 |
+ python_extension_module(blosc_extension) |
117 |
+ |
118 |
+ add_custom_command( |
119 |
+-- |
120 |
+2.29.2 |
121 |
+ |