actions.py 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. #!/usr/bin/python
  2. # -*- coding: utf-8 -*-
  3. # Licensed under the GNU General Public License, version 3.
  4. # See the file http://www.gnu.org/copyleft/gpl.txt
  5. from pisi.actionsapi import autotools
  6. from pisi.actionsapi import get
  7. from pisi.actionsapi import pisitools
  8. from pisi.actionsapi import shelltools
  9. def setup():
  10. shelltools.copytree("../libindicator-%s" % (get.srcVERSION().replace("_", "~")), "../libindicator-%s-gtk3" % get.srcVERSION())
  11. pisitools.cflags.add("-Wno-error=deprecated-declarations")
  12. autotools.configure("--libexecdir=/usr/lib \
  13. --disable-static \
  14. --disable-introspection \
  15. --with-gtk=2")
  16. # for fix unused dependency
  17. pisitools.dosed("libtool"," -shared ", " -Wl,-O1,--as-needed -shared ")
  18. shelltools.cd("../libindicator-%s-gtk3" % get.srcVERSION())
  19. pisitools.cflags.add("-Wno-error=deprecated-declarations")
  20. autotools.configure("--libexecdir=/usr/lib \
  21. --disable-static \
  22. --with-gtk=3")
  23. # for fix unused dependency
  24. pisitools.dosed("libtool"," -shared ", " -Wl,-O1,--as-needed -shared ")
  25. def build():
  26. autotools.make()
  27. shelltools.cd("../libindicator-%s-gtk3" % get.srcVERSION())
  28. autotools.make()
  29. def install():
  30. autotools.rawInstall("DESTDIR=%s" % get.installDIR())
  31. shelltools.cd("../libindicator-%s-gtk3" % get.srcVERSION())
  32. autotools.rawInstall("DESTDIR=%s" % get.installDIR())
  33. pisitools.dodoc("AUTHORS", "NEWS", "ChangeLog", "COPYING", "README")