actions.py 881 B

12345678910111213141516171819202122232425262728
  1. #!/usr/bin/python
  2. # -*- coding: utf-8 -*-
  3. # Licensed under the GNU General Public License, version 3.
  4. # See the file http://www.gnu.org/copyleft/gpl.txt
  5. from pisi.actionsapi import autotools
  6. from pisi.actionsapi import pisitools
  7. from pisi.actionsapi import shelltools
  8. from pisi.actionsapi import get
  9. def setup():
  10. autotools.autoreconf("-vfi")
  11. shelltools.system("""sed -i 's/libzmq_werror="yes"/libzmq_werror="no"/' configure""")
  12. shelltools.system("sed -i 's/openpgm-5.1/openpgm-5.2/' configure configure.ac")
  13. autotools.configure("--with-pgm --with-libsodium --disable-static")
  14. # fix unused dependency analysis
  15. pisitools.dosed("libtool", " -shared ", " -Wl,-O1,--as-needed -shared ")
  16. def build():
  17. autotools.make()
  18. def install():
  19. autotools.rawInstall("DESTDIR=%s" % get.installDIR())
  20. pisitools.insinto("/usr/include", "cppzmq-4.10.0/*.hpp")