actions.py 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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. docdir = "/%s/%s" % (get.docDIR(), get.srcNAME())
  11. shelltools.export("LC_ALL", "C")
  12. def setup():
  13. # autoreconf breaks linker, graaaaaaaaggggghhhhhhh
  14. autotools.autoreconf("-fi")
  15. autotools.configure("--without-emacs \
  16. --enable-nls \
  17. --disable-static \
  18. --enable-shared \
  19. --with-pic \
  20. --disable-rpath \
  21. --with-included-libcroco")
  22. def build():
  23. autotools.make("GMSGFMT=../src/msgfmt")
  24. def install():
  25. autotools.rawInstall("DESTDIR=%s docdir=/%s/html" % (get.installDIR(), docdir))
  26. pisitools.doexe("gettext-tools/misc/gettextize", "/usr/bin")
  27. # Remove C# & Java stuff
  28. pisitools.remove("%s/html/examples/build-aux/csharp*" % docdir)
  29. pisitools.remove("%s/html/examples/build-aux/java*" % docdir)
  30. pisitools.removeDir("%s/html/examples/*java*" % docdir)
  31. pisitools.removeDir("%s/html/*java*" % docdir)
  32. pisitools.dodoc("AUTHORS", "COPYING", "ChangeLog*", "HACKING", "NEWS", "README*", "THANKS")