actions.py 837 B

1234567891011121314151617181920212223242526
  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 libtools
  10. from pisi.actionsapi import get
  11. def build():
  12. shelltools.export("CXXFLAGS", "%s -fPIC" % get.CXXFLAGS())
  13. shelltools.export("CFLAGS", "%s -DLTM_DESC -DUSE_LTM -fPIC" % get.CFLAGS())
  14. shelltools.system('export EXTRALIBS="-ltommath"')
  15. autotools.make("-f makefile.shared IGNORE_SPEED=1 library test")
  16. # def check():
  17. # autotools.make("test")
  18. def install():
  19. autotools.rawInstall("-f makefile.shared DESTDIR=%s PREFIX=/usr INSTALL_GROUP='root'" % get.installDIR())
  20. pisitools.dodoc("LICENSE", "README.md")