actions.py 869 B

123456789101112131415161718192021222324252627282930
  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 get
  7. from pisi.actionsapi import pisitools
  8. from pisi.actionsapi import autotools
  9. def setup():
  10. # do not link with installed old library
  11. pisitools.dosed("cython/Makefile.*", "(plist_la_LDFLAGS\s=.*)(\s-L\$\(libdir\))(.*)", r"\1\3")
  12. autotools.autoreconf("-fiv")
  13. autotools.configure("\
  14. --disable-static \
  15. --disable-silent-rules \
  16. ")
  17. pisitools.dosed("libtool", " -shared ", " -Wl,-O1,--as-needed -shared ")
  18. def build():
  19. autotools.make("-j1")
  20. def install():
  21. autotools.rawInstall("DESTDIR=%s" % get.installDIR())
  22. pisitools.dodoc("AUTHORS", "COPYING", "COPYING.LESSER", "README*")