actions.py 1.2 KB

1234567891011121314151617181920212223242526272829303132333435
  1. #!/usr/bin/python
  2. # -*- coding: utf-8 -*-
  3. # Licensed under the GNU General Public License, version 3.
  4. # See the file http://www.gnu.org/copyleft/gpl.txt
  5. from pisi.actionsapi import autotools
  6. from pisi.actionsapi import pisitools
  7. from pisi.actionsapi import shelltools
  8. from pisi.actionsapi import mesontools
  9. from pisi.actionsapi import get
  10. def setup():
  11. # shelltools.system("sed -i 's|get_option('datadir') + '/pkgconfig|get_option('libdir') + '/pkgconfig|g' meson.build")
  12. mesontools.configure("-Dlegacy=true")
  13. def build():
  14. mesontools.build()
  15. def install():
  16. mesontools.install()
  17. pisitools.dodoc("README*", "COPYING*", "AUTHORS")
  18. pisitools.remove("/usr/include/X11/extensions/apple*")
  19. pisitools.remove("/usr/include/X11/extensions/windows*")
  20. pisitools.remove("/usr/share/doc/xorg-proto/COPYING-windowswmproto")
  21. pisitools.remove("/usr/share/doc/xorg-proto/COPYING-applewmproto")
  22. pisitools.remove("/usr/lib/pkgconfig/applewmproto.pc")
  23. pisitools.remove("/usr/lib/pkgconfig/windowswmproto.pc")
  24. #libX11
  25. pisitools.remove("/usr/include/X11/extensions/vldXvMC.h")
  26. pisitools.remove("/usr/include/X11/extensions/XKBgeom.h")