actions.py 1019 B

12345678910111213141516171819202122232425262728293031323334
  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 autotools
  7. from pisi.actionsapi import pisitools
  8. from pisi.actionsapi import shelltools
  9. from pisi.actionsapi import get
  10. WorkDir = "pygtk-%s" % (get.srcVERSION())
  11. def setup():
  12. shelltools.unlink("py-compile" )
  13. shelltools.sym("/bin/true", "%s/py-compile" % get.curDIR())
  14. autotools.configure("--prefix=/usr \
  15. --enable-thread \
  16. --enable-numpy")
  17. shelltools.touch("%s/style.css" % get.curDIR())
  18. pisitools.dosed("docs/Makefile", "CSS_FILES = .*", "CSS_FILES = %s/style.css" % get.curDIR())
  19. pisitools.dosed("libtool", " -shared ", " -Wl,-O1,--as-needed -shared ")
  20. def build():
  21. autotools.make()
  22. def install():
  23. autotools.rawInstall("DESTDIR=%s" % get.installDIR())
  24. pisitools.dodoc("AUTHORS", "ChangeLog", "MAPPING", "NEWS", "README", "THREADS", "TODO")