actions.py 1.1 KB

123456789101112131415161718192021222324252627282930313233
  1. # -*- coding: utf-8 -*-
  2. #
  3. # Licensed under the GNU General Public License, version 3.
  4. # See the file http://www.gnu.org/licenses/gpl.txt
  5. from pisi.actionsapi import autotools
  6. from pisi.actionsapi import pisitools
  7. from pisi.actionsapi import get
  8. def setup():
  9. autotools.configure("--prefix=/usr \
  10. --sysconfdir=/etc")
  11. def build():
  12. autotools.make()
  13. def install():
  14. autotools.rawInstall("DESTDIR=%s install-sh" % get.installDIR())
  15. # Move data files and create symlinks for asciidoc to work
  16. for d in ("dblatex", "docbook-xsl", "images", "javascripts", "stylesheets"):
  17. pisitools.domove("/etc/asciidoc/%s" % d, "/usr/share/asciidoc")
  18. pisitools.dosym("/usr/share/asciidoc/%s" % d, "/etc/asciidoc/%s" % d)
  19. # Python module
  20. pisitools.insinto("/usr/lib/%s/site-packages" % get.curPYTHON(), "asciidocapi.py")
  21. # Vim syntax and filetype plugins
  22. pisitools.insinto("/usr/share/vim/vimfiles/syntax/" , "vim/syntax/asciidoc.vim")
  23. pisitools.dodoc("BUGS", "CHANGELOG", "COPYING", "README")
  24. pisitools.dodoc("docbook-xsl/asciidoc-docbook-xsl.txt", "filters/code/code-filter-readme.txt")