actions.py 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  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 build():
  11. shelltools.export("LDFLAGS", "%s -lgmodule-2.0" % get.LDFLAGS())
  12. autotools.make('CC=%s \
  13. INSTALLROOT=/usr \
  14. INCLUDEDIR=/usr/include/gkrellm2 \
  15. LOCALEDIR=/usr/share/locale \
  16. STRIP="" \
  17. LINK_FLAGS="%s -Wl,-E" \
  18. enable_nls=1 \
  19. without-ssl=yes \
  20. without-sensors=no \
  21. without-libsensors=yes' % (get.CC(), get.LDFLAGS()))
  22. # without ssl option enables gnutls
  23. def install():
  24. autotools.rawInstall("DESTDIR=%s \
  25. PREFIX=/usr" % get.installDIR())
  26. pisitools.insinto("/etc", "server/gkrellmd.conf")
  27. pisitools.doman("gkrellm.1")
  28. pisitools.doman("gkrellmd.1")
  29. pisitools.dodoc("CREDITS", "README", "Changelog", "COPYRIGHT")
  30. pisitools.dohtml("*")