actions.py 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. # -*- coding: utf-8 -*-
  2. #
  3. # Licensed under the GNU General Public License, version 3.
  4. # See the file http://www.gnu.org/licenses/gpl.txt
  5. from pisi.actionsapi import get
  6. from pisi.actionsapi import autotools
  7. from pisi.actionsapi import pisitools
  8. from pisi.actionsapi import shelltools
  9. def setup():
  10. pisitools.dosed("configure", "localstatedir/run/cups", "localstatedir/cups")
  11. #shelltools.system("./autogen.sh")
  12. autotools.configure("--sbindir=/usr/bin \
  13. --localstatedir=/var \
  14. --enable-dbus \
  15. --with-rcdir=no \
  16. --disable-static \
  17. --with-gs-path=/usr/bin/gs \
  18. --with-pdftops-path=/usr/bin/gs \
  19. --docdir=/usr/share/doc/cups-filters-1.0.76 \
  20. --with-browseremoteprotocols=DNSSD,CUPS ")
  21. #--with-test-font-path=/usr/share/fonts/TTF/DejaVuSans.ttf")
  22. #pisitools.dosed("libtool", " -shared ", " -Wl,-O1,--as-needed -shared ")
  23. def build():
  24. autotools.make("check")
  25. #def check():
  26. #autotools.make("check")
  27. def install():
  28. autotools.rawInstall("DESTDIR=%s" % get.installDIR())
  29. #pisitools.dodoc("AUTHORS", "ChangeLog", "COPYING", "README")