actions.py 1.2 KB

123456789101112131415161718192021222324252627282930313233343536
  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 get
  9. docdir = "/%s/%s" % (get.docDIR(), get.srcNAME())
  10. def setup():
  11. autotools.configure("--with-www=curl \
  12. --disable-gtk-doc \
  13. --with-yajl=no \
  14. --with-html-dir=%s/html\
  15. --with-icu-config=/usr/bin/icu-config \
  16. --disable-static" % docdir)
  17. # for fix unused dependency
  18. pisitools.dosed("libtool", " -shared ", " -Wl,-O1,--as-needed -shared ")
  19. def build():
  20. autotools.make()
  21. def install():
  22. autotools.rawInstall("DESTDIR=%s" % get.installDIR())
  23. pisitools.dosym("raptor2/raptor.h", "/usr/include/raptor.h")
  24. pisitools.dosym("raptor2/raptor2.h", "/usr/include/raptor2.h")
  25. pisitools.insinto("%s/html" % docdir, "%s/%s/html/raptor2/*" % (get.installDIR(), docdir))
  26. pisitools.removeDir("%s/html/raptor2" % docdir)
  27. pisitools.dohtml("*.html")
  28. pisitools.dodoc("AUTHORS", "ChangeLog", "NEWS", "README")