actions.py 885 B

123456789101112131415161718192021222324252627282930313233
  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 get
  7. from pisi.actionsapi import autotools
  8. from pisi.actionsapi import pisitools
  9. from pisi.actionsapi import shelltools
  10. def setup():
  11. #write sed comands using pisitools.dosed
  12. shelltools.system('sed -i "/gets is a security hole/d" lib/stdio.in.h')
  13. # disable automagic libsigsegv dependency
  14. shelltools.export("AUTOPOINT", "true")
  15. shelltools.export("ac_cv_libsigsegv", "no")
  16. autotools.autoreconf("-vfi")
  17. autotools.configure("--enable-nls")
  18. def build():
  19. autotools.make('LDFLAGS="%s"' % get.LDFLAGS())
  20. #def check():
  21. # autotools.make("check")
  22. def install():
  23. autotools.rawInstall("DESTDIR=%s" % get.installDIR())
  24. pisitools.dodoc("ChangeLog", "NEWS", "README")