actions.py 939 B

1234567891011121314151617181920212223242526
  1. #!/usr/bin/python
  2. # -*- coding: utf-8 -*-
  3. #
  4. # Licensed under the GNU General Public License, version 2.
  5. # See the file http://www.gnu.org/copyleft/gpl.txt.
  6. from pisi.actionsapi import mesontools, pisitools
  7. def setup():
  8. mesontools.configure("--prefix=/usr \
  9. --sysconfdir=/etc \
  10. --libexecdir=/usr/lib/cinnamon-control-center \
  11. --localstatedir=/var \
  12. --buildtype=plain")
  13. #pisitools.dosed("libtool", "( -shared )", " -Wl,-O1,--as-needed\\1")
  14. #pisitools.dosed("libtool", '( if test "\$export_dynamic" = yes && test -n "\$export_dynamic_flag_spec"; then)', ' func_append compile_command " -Wl,-O1,--as-needed"\n func_append finalize_command " -Wl,-O1,--as-needed"\n\\1')
  15. def build():
  16. mesontools.build()
  17. def install():
  18. mesontools.install()
  19. pisitools.dodoc("AUTHORS", "ChangeLog", "README*", "NEWS")