actions.py 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. #!/usr/bin/env python
  2. # -*- coding: utf-8 -*-
  3. #
  4. # Licensed under the GNU General Public License, version 3.
  5. # See the file http://www.gnu.org/licenses/gpl.txt
  6. from pisi.actionsapi import autotools
  7. from pisi.actionsapi import pisitools
  8. from pisi.actionsapi import shelltools
  9. from pisi.actionsapi import get
  10. shelltools.export("python2", "/usr/bin/python2.7")
  11. def setup():
  12. # shelltools.system("sed 's/g_memdup/&2/' -i \
  13. # src/lib/plugin_apis/vdo.{c,api} \
  14. # src/plugins/vdo.c")
  15. # shelltools.system("sh ./autogen.sh")
  16. shelltools.system("sed -i 's|python2-config|python2.7-config|g' configure")
  17. autotools.configure("--without-gtk-doc \
  18. --without-nvdimm \
  19. --without-dm")
  20. pisitools.dosed("libtool", " -shared ", " -Wl,-O1,--as-needed -shared ")
  21. def build():
  22. autotools.make()
  23. def install():
  24. autotools.rawInstall("DESTDIR=%s" % get.installDIR())
  25. #pisitools.domove("/gi/overrides/BlockDev.py", "/usr/lib/python2.7/site-packages/gi/overrides")
  26. #pisitools.removeDir("/gi")
  27. pisitools.dodoc("LICENSE")