actions.py 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  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 get
  7. from pisi.actionsapi import autotools
  8. from pisi.actionsapi import pisitools
  9. from pisi.actionsapi import shelltools
  10. # to avoid sandbox violations during make test
  11. shelltools.export("ODBCINI", get.workDIR())
  12. shelltools.export("ODBCSYSINI", get.workDIR())
  13. def setup():
  14. autotools.autoreconf("-vfi")
  15. autotools.configure("--with-apr=/usr \
  16. --includedir=/usr/include/apr-1 \
  17. --with-ldap \
  18. --with-sqlite3 \
  19. --with-pgsql \
  20. --with-odbc=/usr \
  21. --with-mysql \
  22. --with-berkeley-db \
  23. --with-berkeley-db=/usr \
  24. --with-openssl=/usr \
  25. --with-sqlite3=/usr \
  26. --with-nss=/usr \
  27. --with-odbc=/usr \
  28. --with-pgsql=/usr \
  29. --with-mysql=/usr \
  30. --with-oracle=/usr \
  31. --without-sqlite2")
  32. #pisitools.dosed("libtool", " -shared ", " -Wl,-O1,--as-needed -shared ")
  33. def build():
  34. autotools.make()
  35. def check():
  36. shelltools.system("make -j1 check")
  37. # autotools.make("-j1 test")
  38. def install():
  39. autotools.rawInstall("DESTDIR=%s" % get.installDIR())
  40. pisitools.dosed("%s/usr/bin/apu-1-config" % get.installDIR(), get.workDIR(), "")
  41. pisitools.dodoc("CHANGES", "NOTICE")