actions.py 1.0 KB

12345678910111213141516171819202122232425262728293031
  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 get
  7. from pisi.actionsapi import autotools
  8. from pisi.actionsapi import pisitools
  9. def setup():
  10. # suppress compiler warnings
  11. pisitools.cflags.add("-Wno-format -Wno-misleading-indentation -Wno-unused-const-variable \
  12. -Wno-pointer-to-int-cast -Wno-unused-function -Wno-int-to-pointer-cast")
  13. autotools.configure("--disable-static \
  14. --disable-doc \
  15. --disable-dependency-tracking")
  16. def build():
  17. autotools.make()
  18. def install():
  19. autotools.rawInstall("DESTDIR=%s" % get.installDIR())
  20. pisitools.insinto("/usr/include", "src/log4c.h")
  21. # Move the example config file to docdir
  22. pisitools.domove("/etc/log4crc.sample", "/%s/log4c" % get.docDIR())
  23. pisitools.removeDir("/etc")
  24. pisitools.dodoc("README", "AUTHORS", "COPYING", "ChangeLog", "TODO", "NEWS")