actions.py 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. #!/usr/bin/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 shelltools
  7. from pisi.actionsapi import autotools
  8. from pisi.actionsapi import pisitools
  9. from pisi.actionsapi import get
  10. def setup():
  11. shelltools.export("OPTIMIZER", "%s" % get.CFLAGS())
  12. shelltools.export("DEBUG", "-DNDEBUG")
  13. autotools.configure("--enable-readline=yes \
  14. --enable-blkid=yes")
  15. def build():
  16. autotools.make()
  17. def install():
  18. autotools.rawInstall("DIST_ROOT=%s" % get.installDIR())
  19. autotools.rawInstall("DIST_ROOT=%s" % get.installDIR(), "install-dev")
  20. # Needed for building the QA testsuite
  21. #autotools.rawInstall("DIST_ROOT=%s" % get.installDIR(), "install-qa")
  22. # Nuke static libraries
  23. #pisitools.remove("/lib/libhandle.a")
  24. #pisitools.remove("/lib/libhandle.la")
  25. #pisitools.remove("/usr/lib/*.a")
  26. # Fix the symlink
  27. #pisitools.remove("/usr/lib/libhandle.so")
  28. #pisitools.dosym("/lib/libhandle.so.1", "/usr/lib/libhandle.so")
  29. # Set +x bit for the library
  30. shelltools.chmod("%s/lib/libhandle.so.*.*.*" % get.installDIR(), 0755)