actions.py 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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 autotools, pisitools, shelltools, get
  7. def setup():
  8. #shelltools.export("PYTHON", "/usr/bin/python3")
  9. shelltools.copytree("../libappindicator-%s" % (get.srcVERSION().replace("_", "~")), "../libappindicator-%s-gtk3" % get.srcVERSION())
  10. pisitools.dosed("src/Makefile.am", "-Werror", "")
  11. autotools.autoreconf("-fiv")
  12. autotools.configure("--with-gtk=2 \
  13. --enable-introspection=no \
  14. --disable-static")
  15. pisitools.dosed("libtool", " -shared ", " -Wl,--as-needed -shared ")
  16. shelltools.cd("../libappindicator-%s-gtk3" % get.srcVERSION())
  17. pisitools.dosed("src/Makefile.am", "-Werror", "")
  18. autotools.autoreconf("-fiv")
  19. autotools.configure("--with-gtk=3 \
  20. --disable-static")
  21. pisitools.dosed("libtool", " -shared ", " -Wl,--as-needed -shared ")
  22. def build():
  23. autotools.make()
  24. shelltools.cd("../libappindicator-%s-gtk3" % get.srcVERSION())
  25. autotools.make()
  26. def install():
  27. autotools.rawInstall("DESTDIR=%s" % get.installDIR())
  28. shelltools.cd("../libappindicator-%s-gtk3" % get.srcVERSION())
  29. autotools.rawInstall("DESTDIR=%s" % get.installDIR())
  30. pisitools.dodoc("AUTHORS", "ChangeLog")