actions.py 1.3 KB

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