actions.py 1.0 KB

1234567891011121314151617181920212223242526272829303132333435
  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 shelltools
  7. from pisi.actionsapi import autotools
  8. from pisi.actionsapi import pisitools
  9. from pisi.actionsapi import get
  10. def setup():
  11. shelltools.export("CFLAGS", "%s -fPIC -fno-strict-aliasing -fPIE -DPIE " % get.CFLAGS())
  12. shelltools.export("LDFLAGS", "%s -pie -Wl,-z,now" % get.LDFLAGS())
  13. autotools.autoreconf("-fi")
  14. autotools.configure("--disable-static \
  15. --disable-dependency-tracking \
  16. --disable-rpath \
  17. --localstatedir=/var \
  18. --enable-slpv1 \
  19. --enable-slpv2-security")
  20. pisitools.dosed("libtool", " -shared ", " -Wl,-O1,--as-needed -shared ")
  21. def build():
  22. autotools.make()
  23. def install():
  24. autotools.install()
  25. pisitools.dohtml("doc/doc/html/*")
  26. pisitools.dodoc("AUTHORS", "FAQ", "ChangeLog", "NEWS", "README", "THANKS")