actions.py 1.1 KB

1234567891011121314151617181920212223242526272829303132333435
  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 shelltools
  7. from pisi.actionsapi import pisitools
  8. from pisi.actionsapi import get
  9. def setup():
  10. shelltools.export("CFLAGS", "%s -DSQLITE_HAS_CODEC -DSQLITE_TEMP_STORE=2" % get.CFLAGS())
  11. shelltools.export("LDFLAGS", "%s -lcrypto" % get.LDFLAGS())
  12. autotools.configure("--prefix=/usr \
  13. --enable-tempstore=yes \
  14. --enable-readline \
  15. --enable-threadsafe \
  16. --disable-editline \
  17. --enable-cross-thread-connections \
  18. --enable-releasemode \
  19. --disable-static \
  20. --with-crypto-lib")
  21. #for unused
  22. pisitools.dosed("libtool", " -shared ", " -Wl,-O1,--as-needed -shared ")
  23. def build():
  24. autotools.make()
  25. def install():
  26. autotools.rawInstall("DESTDIR=%s" % get.installDIR())
  27. pisitools.dodoc("CHANGELOG*", "README*", "VERSION", "LICENSE")