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,
)
|