actions.py 1.4 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 get
  9. def setup():
  10. autotools.configure("--prefix=/usr \
  11. --mandir=/usr/share/man \
  12. --enable-optimization \
  13. --enable-javascript-api \
  14. --enable-threadsafe \
  15. --enable-exceptions \
  16. --enable-man \
  17. --with-mesa \
  18. --disable-debug \
  19. --enable-shared \
  20. --enable-html \
  21. --disable-maintainer-mode \
  22. --disable-dependency-tracking \
  23. --enable-system-expat")
  24. pisitools.dosed("libtool", " -shared ", " -Wl,-O1,--as-needed -shared ")
  25. def build():
  26. autotools.make()
  27. def install():
  28. autotools.rawInstall("DESTDIR=%s" % get.installDIR())
  29. pisitools.dodoc("AUTHORS", "NEWS", "README*", "RELNOTES", "THANKS")
  30. # remove conflict man file with openssl
  31. pisitools.remove("/usr/share/man/man3/threads.3")
  32. # remove conflict man file with libftdi-devel
  33. pisitools.remove("/usr/share/man/man3/deprecated.3")