actions.py 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. #!/usr/bin/python
  2. # -*- coding: utf-8 -*-
  3. #
  4. # Licensed under the GNU General Public License, version 3.
  5. # See the file https://www.gnu.org/licenses/gpl-3.0.txt
  6. from pisi.actionsapi import shelltools, autotools, pisitools, get
  7. i = ''.join([
  8. ' --enable-nls',
  9. ' --enable-posix',
  10. ' --enable-regex',
  11. ' --with-threads',
  12. ' --with-modules',
  13. ' --disable-rpath',
  14. ' --disable-static',
  15. ' --enable-networking',
  16. ' --program-suffix=3.0',
  17. ' --disable-error-on-warning '
  18. ])
  19. def setup():
  20. autotools.configure(i)
  21. # fix unused direct dependency analysis
  22. pisitools.dosed("libtool", " -shared ", " -Wl,-O1,--as-needed -shared ")
  23. def build():
  24. autotools.make()
  25. def check():
  26. autotools.make("check")
  27. #pass
  28. def install():
  29. autotools.install()
  30. # remove scm file
  31. pisitools.remove("/usr/lib/libguile-3.0.so.*.scm")
  32. # rename some info files to avoid conflicts
  33. pisitools.remove("/usr/share/info/r5rs.info")
  34. for t in shelltools.ls("%s/usr/share/info" % get.installDIR()):
  35. pisitools.rename("/usr/share/info/%s" % t, t.replace("guile", "guile3"))
  36. pisitools.dodoc("AUTHORS", "NEWS", "THANKS")