actions.py 955 B

12345678910111213141516171819202122232425262728293031323334
  1. # -*- coding: utf-8 -*-
  2. #
  3. # Licensed under the GNU General Public License, version 3.
  4. # See the file http://www.gnu.org/licenses/gpl.txt
  5. from pisi.actionsapi import autotools
  6. from pisi.actionsapi import pisitools
  7. from pisi.actionsapi import get
  8. LIBDIR = "/usr/lib32" if get.buildTYPE() == "emul32" else "/usr/lib"
  9. bindir = "/usr/bin32" if get.buildTYPE() == "emul32" else "/usr/bin"
  10. def setup():
  11. autotools.configure("--enable-nls \
  12. --libdir=%s \
  13. --bindir=%s \
  14. --disable-rpath \
  15. --disable-languages"% (LIBDIR, bindir))
  16. def build():
  17. autotools.make()
  18. def check():
  19. autotools.make("check")
  20. def install():
  21. autotools.rawInstall("DESTDIR=%s" % get.installDIR())
  22. if get.buildTYPE() == "emul32":
  23. pisitools.removeDir("/usr/bin32")
  24. return
  25. pisitools.dodoc("AUTHORS", "COPYING*", "ChangeLog", "NEWS", "README", "THANKS")