actions.py 807 B

12345678910111213141516171819202122232425262728
  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 autotools
  7. from pisi.actionsapi import pisitools
  8. def setup():
  9. autotools.autoreconf("-fi")
  10. autotools.configure("--prefix=/usr \
  11. --disable-static \
  12. --enable-hashes=strong,glibc \
  13. --enable-obsolete-api=no \
  14. --disable-failure-tokens")
  15. def build():
  16. autotools.make()
  17. def install():
  18. autotools.install()
  19. # Fix conflicts with glibc
  20. pisitools.rename("/usr/lib/libcrypt.so", "libxcrypt.so")
  21. pisitools.rename("/usr/include/crypt.h", "xcrypt.h")
  22. pisitools.dodoc("AUTHORS", "ChangeLog", "COPYING.LIB")