actions.py 945 B

123456789101112131415161718192021222324252627282930313233
  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 get
  6. from pisi.actionsapi import pisitools
  7. from pisi.actionsapi import autotools
  8. def setup():
  9. options_cfg = ''.join([
  10. '--prefix=/usr ',
  11. '--enable-cider ',
  12. '--enable-openmp ',
  13. '--enable-xspice ',
  14. '--with-ngshared ',
  15. '--enable-oldapps ',
  16. '--with-readline=yes ',
  17. '--mandir=/usr/share/man ',
  18. ])
  19. autotools.configure("%s" % options_cfg)
  20. # fix unused direct dependency analysis
  21. pisitools.dosed("libtool", " -shared ", " -Wl,-O1,--as-needed -shared ")
  22. def build():
  23. autotools.make()
  24. def install():
  25. autotools.rawInstall("DESTDIR=%s" % get.installDIR())
  26. pisitools.dodoc("COPYING", "README*")