actions.py 1.3 KB

123456789101112131415161718192021222324252627282930313233343536
  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 autotools
  7. from pisi.actionsapi import pisitools
  8. from pisi.actionsapi import get
  9. def setup():
  10. autotools.autoreconf("-fiv")
  11. autotools.configure(" --enable-locking \
  12. --libexecdir=/usr/lib/mate-screensaver \
  13. --with-xf86gamma-ext \
  14. --with-kbd-layout-indicator \
  15. --with-systemd=no \
  16. --prefix=/usr \
  17. --sysconfdir=/etc \
  18. --with-xscreensaverdir=/usr/share/xscreensaver/config \
  19. --with-xscreensaverhackdir=/usr/lib/misc/xscreensaver")
  20. # for fix unused dependency
  21. pisitools.dosed("libtool"," -shared ", " -Wl,--as-needed -shared ")
  22. # patched pisi logo
  23. pisitools.dosed("savers/gnomelogo-floaters.desktop.in.in", "Floating GNOME", "Floating PISI")
  24. pisitools.dosed("po/tr.po", "Yüzen GNOME", "Yüzen PISI")
  25. def build():
  26. autotools.make()
  27. def install():
  28. autotools.rawInstall("DESTDIR=%s" % get.installDIR())
  29. pisitools.dodoc("README", "NEWS", "ChangeLog", "AUTHORS", "COPYING")