__init__.py 548 B

123456789101112131415161718192021222324252627
  1. import os
  2. import shutil
  3. from devtools.yamaker.project import GNUMakeNixProject
  4. def libyaml_post_install(self):
  5. shutil.move(
  6. os.path.join(self.dstdir, "include/config.h"),
  7. os.path.join(self.dstdir, "src/config.h"),
  8. )
  9. libyaml = GNUMakeNixProject(
  10. owners=[
  11. "borman",
  12. "g:cpp-contrib",
  13. ],
  14. arcdir="contrib/libs/yaml",
  15. nixattr="libyaml",
  16. addincl_global={".": {"./include"}},
  17. copy_sources=[
  18. "License",
  19. ],
  20. makeflags=["-C", "src"],
  21. post_install=libyaml_post_install,
  22. )