actions.py 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  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 perlmodules
  10. from pisi.actionsapi import get
  11. def setup():
  12. #shelltools.export("CFLAGS","%s -fstack-protector-all" % get.CFLAGS())
  13. #shelltools.export("CXXFLAGS", "%s -fstack-protector-all" % get.CXXFLAGS())
  14. #shelltools.export("LDFLAGS", "%s -pie" % get.LDFLAGS())
  15. autotools.autoreconf("-fiv")
  16. autotools.configure("--prefix=/usr \
  17. --enable-dbus \
  18. --enable-cyrus-sasl \
  19. --enable-gnutls=yes \
  20. --enable-nss=yes \
  21. --enable-nm \
  22. --enable-cap \
  23. --disable-mono \
  24. --disable-schemas-install \
  25. --disable-meanwhile \
  26. --disable-vv \
  27. --enable-nm \
  28. --enable-tcl \
  29. --enable-tk \
  30. --with-python=/usr/bin/python2.7 \
  31. --x-includes=/usr/include/X11 \
  32. --with-gnutls-includes=/usr/include/gnutls \
  33. --with-gnutls-libs=/usr/lib \
  34. --with-system-ssl-certs=/etc/ssl/certs")
  35. #pisitools.dosed("libtool", " -shared ", " -Wl,-O1,--as-needed -shared ")
  36. def build():
  37. autotools.make()
  38. def install():
  39. autotools.rawInstall("DESTDIR=%s" % get.installDIR())
  40. pisitools.dosym("../icons/hicolor/48x48/apps/pidgin.png", "/usr/share/pixmaps/pidgin.png")
  41. pisitools.dodoc("AUTHORS", "COPYING", "HACKING", "NEWS", "README", "ChangeLog")
  42. perlmodules.removePodfiles()