actions.py 939 B

12345678910111213141516171819202122232425262728293031323334
  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 pythonmodules
  7. from pisi.actionsapi import shelltools
  8. from pisi.actionsapi import pisitools
  9. from pisi.actionsapi import autotools
  10. from pisi.actionsapi import get
  11. WorkDir="yara-%s" % get.srcVERSION()
  12. def setup():
  13. autotools.autoreconf("-vfi")
  14. autotools.configure("--with-crypto --enable-magic")
  15. def build():
  16. autotools.make()
  17. shelltools.cd("yara-python")
  18. pythonmodules.compile(pyVer="2.7")
  19. pythonmodules.compile(pyVer="3")
  20. def install():
  21. autotools.rawInstall("DESTDIR=%s" % get.installDIR())
  22. pisitools.dodoc("AUTHORS", "CONTRIBUTORS", "README*", "COPYING")
  23. pisitools.insinto("/usr/share/doc/yara/", "docs/")
  24. shelltools.cd("yara-python")
  25. pythonmodules.install(pyVer="2.7")
  26. pythonmodules.install(pyVer="3")