actions.py 951 B

12345678910111213141516171819202122232425262728293031323334
  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. # pisitools.cxxflags.add("-std=gnu++11")
  11. shelltools.system("./autogen.sh")
  12. autotools.autoreconf("-fi")
  13. autotools.configure("--prefix=/usr \
  14. --disable-werror \
  15. --without-docs \
  16. --enable-static=no \
  17. --with-mdds=2.1")
  18. pisitools.dosed("libtool", " -shared ", " -Wl,-O1,--as-needed -shared ")
  19. def build():
  20. autotools.make()
  21. #def check():
  22. #autotools.make("check")
  23. def install():
  24. autotools.rawInstall("DESTDIR=%s" % get.installDIR())
  25. pisitools.dodoc("AUTHORS", "COPYING", "NEWS", "README", "FEATURES")