actions.py 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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. --without-gdbm \
  19. --with-sqlite3 \
  20. --with-pgsql \
  21. --with-odbc=/usr/bin/odbc_config \
  22. --with-mysql \
  23. --without-freetds \
  24. --with-berkeley-db \
  25. --without-sqlite2")
  26. #pisitools.dosed("libtool", " -shared ", " -Wl,-O1,--as-needed -shared ")
  27. def build():
  28. autotools.make()
  29. def check():
  30. autotools.make("-j1 test")
  31. def install():
  32. autotools.rawInstall("DESTDIR=%s" % get.installDIR())
  33. pisitools.dosed("%s/usr/bin/apu-1-config" % get.installDIR(), get.workDIR(), "")
  34. pisitools.dodoc("CHANGES", "NOTICE")