actions.py 961 B

1234567891011121314151617181920212223242526272829303132333435
  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/copyleft/gpl.txt.
  6. from pisi.actionsapi import autotools
  7. from pisi.actionsapi import pisitools
  8. from pisi.actionsapi import get
  9. def setup():
  10. pisitools.flags.add("-U_FORTIFY_SOURCE")
  11. autotools.autoreconf("-vfi")
  12. autotools.configure("--enable-shared \
  13. --disable-static")
  14. pisitools.dosed("libtool", " -shared ", " -Wl,-O1,--as-needed -shared ")
  15. def build():
  16. autotools.make()
  17. # https://savannah.nongnu.org/bugs/?22368
  18. # https://bugs.gentoo.org/273372
  19. #def check():
  20. #autotools.make("check")
  21. def install():
  22. autotools.rawInstall("DESTDIR=%s" % get.installDIR())
  23. # FIXME: Fedora removes it, Suse keeps it, breaks samba build, investigate further
  24. pisitools.remove("/usr/lib/libunwind*.a")
  25. pisitools.dodoc("AUTHORS", "ChangeLog", "README*", "NEWS", "TODO")