actions.py 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  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 setup():
  11. shelltools.cd("%s" % get.workDIR())
  12. shelltools.copy("gpgme-*", "gpgme-qt6")
  13. shelltools.cd("gpgme-%s" % get.srcVERSION())
  14. autotools.configure("--disable-fd-passing \
  15. --disable-static \
  16. --disable-gpg-test \
  17. --disable-gpgsm-test \
  18. --enable-languages=cpp,qt,python")
  19. pisitools.dosed("libtool", " -shared ", " -Wl,-O1,--as-needed -shared ")
  20. # qt6
  21. shelltools.cd("../gpgme-qt6")
  22. autotools.configure("--disable-fd-passing \
  23. --disable-static \
  24. --disable-gpg-test \
  25. --disable-gpgsm-test \
  26. --enable-languages=cpp,qt6")
  27. pisitools.dosed("libtool", " -shared ", " -Wl,-O1,--as-needed -shared ")
  28. shelltools.cd("..")
  29. def build():
  30. autotools.make()
  31. shelltools.cd("../gpgme-qt6")
  32. autotools.make()
  33. #def check():
  34. #autotools.make("check")
  35. def install():
  36. autotools.rawInstall("DESTDIR=%s" % get.installDIR())
  37. pisitools.insinto("/usr/lib/cmake/Qgpgme", "lang/qt/src/QGpgmeConfig.cmake")
  38. pisitools.insinto("/usr/lib/cmake/Qgpgme", "lang/qt/src/QGpgmeConfigVersion.cmake")
  39. pisitools.dodoc("AUTHORS", "ChangeLog", "NEWS", "README", "THANKS", "TODO")
  40. shelltools.cd("../gpgme-qt6/lang/qt")
  41. autotools.rawInstall("DESTDIR=%s" % get.installDIR())