actions.py 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  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 autotools
  7. from pisi.actionsapi import pisitools
  8. from pisi.actionsapi import shelltools
  9. from pisi.actionsapi import get
  10. WorkDir = "db-%s/build_unix" % get.srcVERSION()
  11. def setup():
  12. pisitools.ldflags.add("-Wl,--default-symver -lpthread")
  13. shelltools.system("../dist/configure \
  14. --prefix=/usr \
  15. --mandir=/usr/share/man \
  16. --infodir=/usr/share/info \
  17. --datadir=/usr/share \
  18. --sysconfdir=/etc \
  19. --localstatedir=/var/lib \
  20. --libdir=/usr/lib \
  21. --enable-compat185 \
  22. --with-uniquename \
  23. --enable-cxx \
  24. --enable-dbm \
  25. --disable-tcl \
  26. --disable-java \
  27. --disable-static \
  28. --disable-test")
  29. def build():
  30. autotools.make()
  31. def install():
  32. autotools.install('libdir="%s/usr/lib"' % get.installDIR())
  33. # Move docs
  34. pisitools.domove("/usr/docs/", "/usr/share/doc/%s/html/" % get.srcNAME())