actions.py 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. #!/usr/bin/env python3
  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 inary.actionsapi import autotools
  7. from inary.actionsapi import inarytools
  8. from inary.actionsapi import shelltools
  9. from inary.actionsapi import get
  10. def setup():
  11. inarytools.dosed("config/override.m4", "2.64", "2.69")
  12. shelltools.system('sed -i "/ac_cpp=/s/\$CPPFLAGS/\$CPPFLAGS -O2/" libiberty/configure')
  13. autotools.configure(" \
  14. --with-system-readline \
  15. --with-separate-debug-dir=/usr/lib/debug \
  16. --with-gdb-datadir=/usr/share/gdb \
  17. --with-pythondir=/usr/lib/%s/site-packages \
  18. --disable-nls \
  19. --disable-rpath \
  20. --with-python \
  21. --with-expat" % get.curPYTHON())
  22. def build():
  23. autotools.make()
  24. def install():
  25. autotools.rawInstall('-C gdb DESTDIR="%s"' % get.installDIR())
  26. autotools.rawInstall('-C gdb/data-directory DESTDIR="%s"' % get.installDIR())
  27. # these are not necessary
  28. #for info in ["bfd","configure","standards"]:
  29. #inarytools.remove("/usr/share/info/%s.info" % info)
  30. # for hea in ["diagnostics","bfd_stdint","ansidecl","symcat","dis-asm", "bfd", "bfdlink", "plugin-api"]:
  31. # inarytools.remove("/usr/include/%s.h" % hea)
  32. inarytools.dodoc("README*", "MAINTAINERS", "COPYING*", "ChangeLog*")