actions.py 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  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.cxxflags.add("-std=c++17")
  11. pisitools.dosed("configure", "localstatedir/run/cups", "localstatedir/cups")
  12. shelltools.system("./autogen.sh")
  13. autotools.configure("--sbindir=/usr/bin \
  14. --localstatedir=/var \
  15. --enable-dbus \
  16. --with-rcdir=no \
  17. --disable-static \
  18. --enable-driverless \
  19. --enable-auto-setup-driverless-only \
  20. --with-gs-path=/usr/bin/gs \
  21. --with-pdftops-path=/usr/bin/gs \
  22. --docdir=/usr/share/doc/cups-filters-%s \
  23. --with-browseremoteprotocols=DNSSD,CUPS " % get.srcVERSION())
  24. #--with-test-font-path=/usr/share/fonts/TTF/DejaVuSans.ttf")
  25. #pisitools.dosed("libtool", " -shared ", " -Wl,-O1,--as-needed -shared ")
  26. def build():
  27. autotools.make("check")
  28. #def check():
  29. #autotools.make("check")
  30. def install():
  31. autotools.rawInstall("DESTDIR=%s" % get.installDIR())
  32. #pisitools.dodoc("AUTHORS", "ChangeLog", "COPYING", "README")