actions.py 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  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 get
  8. from pisi.actionsapi import pisitools
  9. from pisi.actionsapi import shelltools
  10. shelltools.export("CFLAGS", "%s -Wa,--noexecstack" % get.CFLAGS())
  11. shelltools.export("LDFLAGS", "%s -Wl,-z,noexecstack" % get.LDFLAGS())
  12. def setup():
  13. shelltools.export("LC_ALL", "en_US.UTF-8")
  14. shelltools.export("FORCE_UNSAFE_CONFIGURE", "1")
  15. autotools.rawConfigure("--prefix=/usr \
  16. --fsstnd=PisiLinux \
  17. --hyperspec=http://www.lispworks.com/documentation/HyperSpec/ \
  18. --with-module=bindings/glibc \
  19. --with-module=clx/new-clx \
  20. --with-module=dbus \
  21. --with-module=fastcgi \
  22. --with-module=gdbm \
  23. --with-module=gtk2 \
  24. --with-module=postgresql \
  25. --with-module=rawsock \
  26. --with-module=readline \
  27. --with-module=regexp \
  28. --with-module=syscalls \
  29. --with-module=zlib \
  30. --with-module=pcre \
  31. --with-ffcall \
  32. --with-dynamic-ffi")
  33. def build():
  34. autotools.make("-C src -j1")
  35. def install():
  36. shelltools.cd("src")
  37. autotools.make("-j1 DESTDIR=%s prefix=/usr install-bin" % (get.installDIR()))
  38. shelltools.chmod("%s/usr/bin/clisp-link" % get.installDIR(), 0755)
  39. shelltools.cd("..")
  40. pisitools.dohtml("doc/impnotes.css","doc/impnotes.html","doc/_clisp.html","doc/clisp.png")
  41. pisitools.dodoc("doc/Symbol-Table.text","doc/CLOS-guide.txt","doc/LISP-tutorial.txt")
  42. pisitools.doman("doc/_clisp.1")
  43. pisitools.rename("/usr/share/man/man1/_clisp.1", "clisp.1")