actions.py 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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 libtools
  9. from pisi.actionsapi import get
  10. def setup():
  11. #autotools.autoreconf("-vfi")
  12. #libtools.libtoolize("--force --install")
  13. autotools.configure("--disable-doc \
  14. --disable-static \
  15. --disable-ruby \
  16. --disable-csharp \
  17. --disable-java \
  18. --disable-cxx \
  19. --disable-gl \
  20. --enable-shared \
  21. --enable-ncurses \
  22. --enable-slang \
  23. --enable-imlib2 \
  24. --enable-x11 \
  25. --with-x \
  26. --x-libraries=/usr/lib")
  27. pisitools.dosed("libtool", " -shared ", " -Wl,-O1,--as-needed -shared ")
  28. def build():
  29. autotools.make()
  30. def install():
  31. autotools.rawInstall("DESTDIR=%s" % get.installDIR())
  32. # we remove la files but symlinks stay there, so we remove by hand
  33. pisitools.remove("/usr/lib/*.la")
  34. #pisitools.removeDir("/usr/share/java")
  35. pisitools.dodoc("AUTHORS", "COPYING*", "ChangeLog", "NEWS","NOTES", "README", "THANKS")