actions.py 867 B

123456789101112131415161718192021222324252627282930313233
  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. def setup():
  11. pisitools.flags.add("-fPIC")
  12. shelltools.export("AUTOPOINT", "true")
  13. autotools.autoreconf("-vfi")
  14. # do not enable nls http://bugs.gentoo.org/121408
  15. autotools.configure("--disable-nls \
  16. --disable-dependency-tracking")
  17. pisitools.dosed("libtool", " -shared ", " -Wl,-O1,--as-needed -shared ")
  18. def build():
  19. autotools.make("-j1")
  20. def install():
  21. autotools.rawInstall("DESTDIR=%s" % get.installDIR())
  22. pisitools.dosym("flex", "/usr/bin/lex")
  23. pisitools.dodoc("NEWS", "README.md")