aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/libs/yaml/.yandex_meta/__init__.py
blob: 64fd5b63d592281c0aa84524bb47c33651bd400a (plain) (blame)
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
import os
import shutil

from devtools.yamaker.project import GNUMakeNixProject


def libyaml_post_install(self):
    shutil.move(
        os.path.join(self.dstdir, "include/config.h"),
        os.path.join(self.dstdir, "src/config.h"),
    )


libyaml = GNUMakeNixProject(
    owners=[
        "borman",
        "g:cpp-contrib",
    ],
    arcdir="contrib/libs/yaml",
    nixattr="libyaml",
    addincl_global={".": {"./include"}},
    copy_sources=[
        "License",
    ],
    makeflags=["-C", "src"],
    post_install=libyaml_post_install,
)