actions.py 793 B

1234567891011121314151617181920212223242526272829303132
  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. binFiles = ["nasm", "ndisasm"]
  10. rdoffFiles = ["ldrdf", "rdf2bin", "rdf2ihx", "rdfdump", "rdflib", "rdx"]
  11. def setup():
  12. autotools.configure()
  13. def build():
  14. autotools.make("all")
  15. autotools.make("rdf")
  16. def install():
  17. for i in rdoffFiles:
  18. binFiles.append("rdoff/%s" % i)
  19. for i in binFiles:
  20. pisitools.dobin(i)
  21. pisitools.dosym("rdf2bin", "/usr/bin/rdf2com")
  22. pisitools.doman("nasm.1", "ndisasm.1")
  23. pisitools.dodoc("AUTHORS", "CHANGES", "ChangeLog", "README", "TODO", "doc/nasmdoc.*")