actions.py 1010 B

123456789101112131415161718192021222324252627282930
  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. shelltools.export("PYTHONDONTWRITEBYTECODE", "1")
  11. def build():
  12. shelltools.cd("tools/perf")
  13. autotools.make("JOBS=5 WERROR=0 perf HAVE_CPLUS_DEMANGLE=1")
  14. def install():
  15. shelltools.cd("tools/perf")
  16. # Build and install the new 'perf' tool
  17. #pisitools.insinto("/usr/bin", "tools/perf/perf", "perf.%s-%s" % (get.srcNAME(), get.srcVERSION()))
  18. autotools.install("JOBS=5 WERROR=0 perf HAVE_CPLUS_DEMANGLE=1")
  19. pisitools.domove("/usr/etc/bash_completion.d/perf", "/etc/bash_completion.d")
  20. pisitools.removeDir("/usr/etc")
  21. #pisitools.domove("/usr/lib64/libperf-gtk.so", "/usr/lib/")
  22. pisitools.domove("/usr/lib64/traceevent", "/usr/lib/")
  23. pisitools.removeDir("/usr/lib64")