actions.py 1.1 KB

1234567891011121314151617181920212223242526272829303132333435
  1. #!/usr/bin/env python3
  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 inary.actionsapi import shelltools
  7. from inary.actionsapi import autotools
  8. from inary.actionsapi import inarytools
  9. from inary.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. inarytools.dosed("libtool", " -shared ", " -Wl,-O1,--as-needed -shared ")
  21. def build():
  22. autotools.make()
  23. def install():
  24. autotools.install()
  25. inarytools.dohtml("doc/doc/html/*")
  26. inarytools.dodoc("AUTHORS", "FAQ", "ChangeLog", "NEWS", "README", "THANKS")