New package: python3-Brotli-1.0.9
This commit is contained in:
parent
279af64ef9
commit
d4969a9700
3 changed files with 138 additions and 0 deletions
16
srcpkgs/python3-Brotli/patches/missing-test-cases.patch
Normal file
16
srcpkgs/python3-Brotli/patches/missing-test-cases.patch
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
diff --git a/python/tests/_test_utils.py b/python/tests/_test_utils.py
|
||||||
|
index 104e654..6cf12b0 100644
|
||||||
|
--- a/python/tests/_test_utils.py
|
||||||
|
+++ b/python/tests/_test_utils.py
|
||||||
|
@@ -36,10 +36,7 @@ TESTDATA_DIR = os.path.join(test_dir, 'testdata')
|
||||||
|
|
||||||
|
TESTDATA_FILES = [
|
||||||
|
'empty', # Empty file
|
||||||
|
- '10x10y', # Small text
|
||||||
|
- 'alice29.txt', # Large text
|
||||||
|
- 'random_org_10k.bin', # Small data
|
||||||
|
- 'mapsdatazrh', # Large data
|
||||||
|
+ 'ukkonooa', # Small text
|
||||||
|
]
|
||||||
|
|
||||||
|
TESTDATA_PATHS = [os.path.join(TESTDATA_DIR, f) for f in TESTDATA_FILES]
|
103
srcpkgs/python3-Brotli/patches/use-system-brotli.patch
Normal file
103
srcpkgs/python3-Brotli/patches/use-system-brotli.patch
Normal file
|
@ -0,0 +1,103 @@
|
||||||
|
diff --git a/setup.py b/setup.py
|
||||||
|
index 25626ec..fdf27a2 100644
|
||||||
|
--- a/setup.py
|
||||||
|
+++ b/setup.py
|
||||||
|
@@ -181,93 +181,18 @@ EXT_MODULES = [
|
||||||
|
'_brotli',
|
||||||
|
sources=[
|
||||||
|
'python/_brotli.cc',
|
||||||
|
- 'c/common/constants.c',
|
||||||
|
- 'c/common/context.c',
|
||||||
|
- 'c/common/dictionary.c',
|
||||||
|
- 'c/common/platform.c',
|
||||||
|
- 'c/common/transform.c',
|
||||||
|
- 'c/dec/bit_reader.c',
|
||||||
|
- 'c/dec/decode.c',
|
||||||
|
- 'c/dec/huffman.c',
|
||||||
|
- 'c/dec/state.c',
|
||||||
|
- 'c/enc/backward_references.c',
|
||||||
|
- 'c/enc/backward_references_hq.c',
|
||||||
|
- 'c/enc/bit_cost.c',
|
||||||
|
- 'c/enc/block_splitter.c',
|
||||||
|
- 'c/enc/brotli_bit_stream.c',
|
||||||
|
- 'c/enc/cluster.c',
|
||||||
|
- 'c/enc/command.c',
|
||||||
|
- 'c/enc/compress_fragment.c',
|
||||||
|
- 'c/enc/compress_fragment_two_pass.c',
|
||||||
|
- 'c/enc/dictionary_hash.c',
|
||||||
|
- 'c/enc/encode.c',
|
||||||
|
- 'c/enc/encoder_dict.c',
|
||||||
|
- 'c/enc/entropy_encode.c',
|
||||||
|
- 'c/enc/fast_log.c',
|
||||||
|
- 'c/enc/histogram.c',
|
||||||
|
- 'c/enc/literal_cost.c',
|
||||||
|
- 'c/enc/memory.c',
|
||||||
|
- 'c/enc/metablock.c',
|
||||||
|
- 'c/enc/static_dict.c',
|
||||||
|
- 'c/enc/utf8_util.c',
|
||||||
|
],
|
||||||
|
depends=[
|
||||||
|
- 'c/common/constants.h',
|
||||||
|
- 'c/common/context.h',
|
||||||
|
- 'c/common/dictionary.h',
|
||||||
|
- 'c/common/platform.h',
|
||||||
|
- 'c/common/transform.h',
|
||||||
|
'c/common/version.h',
|
||||||
|
- 'c/dec/bit_reader.h',
|
||||||
|
- 'c/dec/huffman.h',
|
||||||
|
- 'c/dec/prefix.h',
|
||||||
|
- 'c/dec/state.h',
|
||||||
|
- 'c/enc/backward_references.h',
|
||||||
|
- 'c/enc/backward_references_hq.h',
|
||||||
|
- 'c/enc/backward_references_inc.h',
|
||||||
|
- 'c/enc/bit_cost.h',
|
||||||
|
- 'c/enc/bit_cost_inc.h',
|
||||||
|
- 'c/enc/block_encoder_inc.h',
|
||||||
|
- 'c/enc/block_splitter.h',
|
||||||
|
- 'c/enc/block_splitter_inc.h',
|
||||||
|
- 'c/enc/brotli_bit_stream.h',
|
||||||
|
- 'c/enc/cluster.h',
|
||||||
|
- 'c/enc/cluster_inc.h',
|
||||||
|
- 'c/enc/command.h',
|
||||||
|
- 'c/enc/compress_fragment.h',
|
||||||
|
- 'c/enc/compress_fragment_two_pass.h',
|
||||||
|
- 'c/enc/dictionary_hash.h',
|
||||||
|
- 'c/enc/encoder_dict.h',
|
||||||
|
- 'c/enc/entropy_encode.h',
|
||||||
|
- 'c/enc/entropy_encode_static.h',
|
||||||
|
- 'c/enc/fast_log.h',
|
||||||
|
- 'c/enc/find_match_length.h',
|
||||||
|
- 'c/enc/hash.h',
|
||||||
|
- 'c/enc/hash_composite_inc.h',
|
||||||
|
- 'c/enc/hash_forgetful_chain_inc.h',
|
||||||
|
- 'c/enc/hash_longest_match64_inc.h',
|
||||||
|
- 'c/enc/hash_longest_match_inc.h',
|
||||||
|
- 'c/enc/hash_longest_match_quickly_inc.h',
|
||||||
|
- 'c/enc/hash_rolling_inc.h',
|
||||||
|
- 'c/enc/hash_to_binary_tree_inc.h',
|
||||||
|
- 'c/enc/histogram.h',
|
||||||
|
- 'c/enc/histogram_inc.h',
|
||||||
|
- 'c/enc/literal_cost.h',
|
||||||
|
- 'c/enc/memory.h',
|
||||||
|
- 'c/enc/metablock.h',
|
||||||
|
- 'c/enc/metablock_inc.h',
|
||||||
|
- 'c/enc/params.h',
|
||||||
|
- 'c/enc/prefix.h',
|
||||||
|
- 'c/enc/quality.h',
|
||||||
|
- 'c/enc/ringbuffer.h',
|
||||||
|
- 'c/enc/static_dict.h',
|
||||||
|
- 'c/enc/static_dict_lut.h',
|
||||||
|
- 'c/enc/utf8_util.h',
|
||||||
|
- 'c/enc/write_bits.h',
|
||||||
|
],
|
||||||
|
include_dirs=[
|
||||||
|
'c/include',
|
||||||
|
],
|
||||||
|
+ libraries=[
|
||||||
|
+ 'brotlicommon',
|
||||||
|
+ 'brotlidec',
|
||||||
|
+ 'brotlienc',
|
||||||
|
+ ],
|
||||||
|
language='c++'),
|
||||||
|
]
|
||||||
|
|
19
srcpkgs/python3-Brotli/template
Normal file
19
srcpkgs/python3-Brotli/template
Normal file
|
@ -0,0 +1,19 @@
|
||||||
|
# Template file for 'python3-Brotli'
|
||||||
|
pkgname=python3-Brotli
|
||||||
|
version=1.0.9
|
||||||
|
revision=1
|
||||||
|
wrksrc="brotli-${version}"
|
||||||
|
build_style=python3-module
|
||||||
|
hostmakedepends="python3-setuptools"
|
||||||
|
makedepends="python3-devel brotli-devel"
|
||||||
|
depends="python3"
|
||||||
|
short_desc="Python bindings for the Brotli compression library"
|
||||||
|
maintainer="Joel Beckmeyer <joel@beckmeyer.us>"
|
||||||
|
license="MIT"
|
||||||
|
homepage="https://github.com/google/brotli"
|
||||||
|
distfiles="https://github.com/google/brotli/archive/v${version}.tar.gz"
|
||||||
|
checksum=f9e8d81d0405ba66d181529af42a3354f838c939095ff99930da6aa9cdf6fe46
|
||||||
|
|
||||||
|
post_install() {
|
||||||
|
vlicense LICENSE
|
||||||
|
}
|
Loading…
Add table
Reference in a new issue