actions.py 1.1 KB

123456789101112131415161718192021222324252627282930
  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. # suppress compiler warnings
  12. pisitools.cflags.add("-Wno-unused-result -Wno-stringop-overflow")
  13. shelltools.system("MAKEINFO=/usr/bin/makeinfo WX_CONFIG=/usr/bin/wx-config ./configure --prefix=/usr \
  14. --libexecdir=/usr/bin \
  15. --with-gihdir=/usr/share/gnuplot \
  16. --with-readline=gnu \
  17. --with-bitmap-terminals \
  18. --with-wx-single-threaded \
  19. --with-caca \
  20. --with-texdir=/usr/share/texmf/tex/latex/gnuplot")
  21. def build():
  22. autotools.make("pkglibexecdir=/usr/bin")
  23. def install():
  24. autotools.rawInstall("pkglibexecdir=/usr/bin DESTDIR=%s" % get.installDIR())
  25. pisitools.dodoc("Copyright", "README*")