actions.py 877 B

12345678910111213141516171819202122232425262728293031323334353637
  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 shelltools
  9. from pisi.actionsapi import get
  10. #import os
  11. j = ''.join([
  12. ' --with-lzo2',
  13. ' --disable-static '
  14. ])
  15. def setup():
  16. # shelltools.system("patch -p1 -R < 1723.patch")
  17. autotools.autoreconf("-fi")
  18. autotools.configure(j)
  19. #pisitools.dosed("libtool", " -shared ", " -Wl,-O1,--as-needed -shared ")
  20. def build():
  21. autotools.make()
  22. #def check():
  23. #autotools.make("check")
  24. def install():
  25. autotools.rawInstall("DESTDIR=%s" % get.installDIR())
  26. pisitools.dosed("%s/usr/lib/pkgconfig/libarchive.pc" % get.installDIR(), "iconv", "")
  27. pisitools.dodoc("COPYING","NEWS")