actions.py 754 B

1234567891011121314151617181920212223242526272829
  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 get
  7. from pisi.actionsapi import autotools
  8. from pisi.actionsapi import pisitools
  9. i = "-Wno-deprecated-declarations \
  10. -Wno-incompatible-pointer-types \
  11. -Wno-implicit-function-declaration"
  12. def setup():
  13. # suppress compiler warnings
  14. pisitools.cflags.add(i)
  15. autotools.configure()
  16. # fix unused direct dependency analysis
  17. pisitools.dosed("libtool"," -shared ", " -Wl,--as-needed -shared ")
  18. def build():
  19. autotools.make()
  20. def install():
  21. autotools.rawInstall("DESTDIR=%s" % get.installDIR())
  22. pisitools.dodoc("COPYING", "README")