actions.py 616 B

1234567891011121314151617181920212223
  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 mesontools
  7. from pisi.actionsapi import pisitools
  8. def setup():
  9. mesontools.configure("-Dpython=python2.7")
  10. def build():
  11. mesontools.build()
  12. def install():
  13. mesontools.install()
  14. pisitools.rename("/usr/lib/pkgconfig/pygobject-3.0.pc", "py2gobject-3.0.pc")
  15. pisitools.rename("/usr/include/pygobject-3.0/pygobject.h", "py2gobject.h")
  16. pisitools.dodoc("COP*", "NEWS", "README*")