actions.py 801 B

12345678910111213141516171819202122232425262728
  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/copyleft/gpl.txt.
  6. from pisi.actionsapi import get
  7. from pisi.actionsapi import pisitools
  8. from pisi.actionsapi import shelltools
  9. from pisi.actionsapi import pythonmodules
  10. #WorkDir = "lxml-%s" % get.srcVERSION()
  11. def setup():
  12. # Setting LC_CTYPE to workaround encoding issue
  13. shelltools.export("LC_CTYPE", "en_US.UTF-8")
  14. def build():
  15. # fix unused dependency analysis
  16. shelltools.export("LDSHARED", "x86_64-pc-linux-gnu-gcc -Wl,-O1,--as-needed -shared -lpthread")
  17. pythonmodules.compile()
  18. def install():
  19. pythonmodules.install()
  20. pisitools.insinto("%s/%s" % (get.docDIR(), get.srcNAME()),"doc/*")
  21. pisitools.dodoc("CHANGE*", "LICENSE*")