actions.py 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738
  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 shelltools
  7. from pisi.actionsapi import autotools
  8. from pisi.actionsapi import pisitools
  9. from pisi.actionsapi import get
  10. def setup():
  11. #shelltools.system("sed -i 's:cups_sbindir=\"\/usr\/sbin\":cups_sbindir=\"\/usr\/bin\":g' m4/stp_cups.m4")
  12. #shelltools.system("sed -i 's:cups_sbindir=\"\${cups_prefix}\/sbin\":cups_sbindir=\"\${cups_prefix}\/bin\":' m4/stp_cups.m4")
  13. #shelltools.system("sed -i 's:m4local:m4extra:' Makefile.am")
  14. autotools.autoreconf("-fiv")
  15. autotools.configure("--prefix=/usr \
  16. --sbindir=/usr/bin \
  17. --disable-rpath \
  18. --enable-samples \
  19. --enable-cups-ppds \
  20. --enable-cups-ppds-at-top-level \
  21. --disable-translated-cups-ppds \
  22. --disable-globalized-cups-ppds \
  23. --disable-static \
  24. --disable-static-genppd")
  25. pisitools.dosed("libtool", " -shared ", " -Wl,-O1,--as-needed -shared ")
  26. def build():
  27. autotools.make()
  28. def install():
  29. autotools.rawInstall("DESTDIR=%s install" % get.installDIR())