aboutsummaryrefslogtreecommitdiff
path: root/src/tesserae/extra/brotli.nim
blob: 73e6cebe97a2c0eaabfad3014aeb573fe29885f8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
import .. / lapis

tessera "brotli":
  source: "https://github.com/google/brotli/archive/v1.1.0/brotli-1.1.0.tar.gz"
  patches: @[""]
  dependencies: @[
    "cmake"
  ]
  build: @[
    "mkdir build",
    "cd build",
    """
    cmake -D CMAKE_INSTALL_PREFIX=/usr \
          -D CMAKE_BUILD_TYPE=Release  \
          ..
    """,
    "make",
    "make install",
    "cd ..",
    """
    sed "/c\/.*\.[ch]'/d;\
         /include_dirs=\[/\
         i libraries=['brotlicommon','brotlidec','brotlienc']," \
        -i setup.py
    """,
    "pip3 wheel -w dist --no-build-isolation --no-deps --no-cache-dir $PWD",
    "pip3 install --no-index --find-links dist --no-user Brotli"
  ]
  result: "brotli"
Directive (EU) 2019/790, Article 4(3); all rights regarding Text and Data Mining (TDM) are reserved.