actions.py 885 B

12345678910111213141516171819202122232425262728
  1. # -*- coding: utf-8 -*-
  2. #
  3. # Licensed under the GNU General Public License, version 3.
  4. # See the file http://www.gnu.org/licenses/gpl.txt
  5. from inary.actionsapi import get
  6. from inary.actionsapi import autotools
  7. from inary.actionsapi import inarytools
  8. from inary.actionsapi import shelltools
  9. def setup():
  10. autotools.autoreconf("-vif")
  11. autotools.configure("--disable-static")
  12. inarytools.dosed("libtool", "^(hardcode_libdir_flag_spec=).*", '\\1""')
  13. inarytools.dosed("libtool", "^(runpath_var=)LD_RUN_PATH", "\\1DIE_RPATH_DIE")
  14. inarytools.dosed("libtool"," -shared ", " -Wl,--as-needed -shared ")
  15. def build():
  16. autotools.make()
  17. def install():
  18. autotools.rawInstall("DESTDIR=%s" % get.installDIR())
  19. if get.buildTYPE() == "emul32": return
  20. inarytools.dodoc("AUTHORS", "COPYING", "NEWS")
  21. inarytools.remove("/usr/include/X11/extensions/XKBgeom.h")