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 autotools
  7. from pisi.actionsapi import pisitools
  8. from pisi.actionsapi import shelltools
  9. from pisi.actionsapi import get
  10. def setup():
  11. autotools.configure("--prefix=/usr \
  12. --enable-cxx \
  13. --enable-hl \
  14. --enable-threadsafe \
  15. --enable-fortran \
  16. --enable-build-mode=production \
  17. --enable-linux-lfs \
  18. --enable-unsupported \
  19. --disable-static \
  20. --disable-parallel \
  21. --disable-sharedlib-rpath \
  22. --disable-dependency-tracking \
  23. --docdir=/usr/share/doc/hdf5/ \
  24. --with-pthread=/usr/lib/ \
  25. --with-pic")
  26. pisitools.dosed("libtool", " -shared ", " -Wl,-O1,--as-needed -shared ")
  27. def build():
  28. autotools.make()
  29. def install():
  30. autotools.rawInstall("DESTDIR=%s" % get.installDIR())
  31. pisitools.dodoc("ACKNOWLEDGMENTS", "COPYING", "README*", "release_docs/HISTORY-*", "release_docs/RELEASE.txt")