actions.py 1.0 KB

123456789101112131415161718192021222324252627282930313233
  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 shelltools
  7. from pisi.actionsapi import autotools
  8. from pisi.actionsapi import pisitools
  9. from pisi.actionsapi import get
  10. WorkDir = "pygobject-%s" % get.srcVERSION()
  11. def setup():
  12. # suppress compiler warnings
  13. pisitools.cflags.add("-Wno-deprecated-declarations -Wno-unused-variable \
  14. -Wno-unused-but-set-variable -Wno-discarded-qualifiers \
  15. -Wno-misleading-indentation")
  16. # autoreconf is for under linking problem
  17. autotools.autoreconf("-fi")
  18. autotools.configure("--enable-introspection=no")
  19. # fix unused dependency analysis
  20. pisitools.dosed("libtool"," -shared ", " -Wl,--as-needed -shared ")
  21. def build():
  22. autotools.make()
  23. def install():
  24. autotools.install()
  25. #shelltools.chmod("%s/usr/share/pygobject/xsl/fixxref.py" % get.installDIR(), 0755)
  26. pisitools.dodoc("COPYING", "README")