actions.py 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839
  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. #NoStrip = "/"
  7. from pisi.actionsapi import shelltools
  8. from pisi.actionsapi import autotools
  9. from pisi.actionsapi import pisitools
  10. from pisi.actionsapi import qt6
  11. from pisi.actionsapi import get
  12. def setup():
  13. # shelltools.system("sed -i 's/python /python3 /' qtdeclarative.pro \
  14. # src/3rdparty/masm/masm.pri")
  15. #shelltools.system("sed -i 's/python /python3 /' qtdeclarative/src/3rdparty/masm/masm.pri")
  16. # shelltools.export("CFLAGS", "CXXFLAGS")
  17. qt6.configure("-DQT_FEATURE_system_freetype=ON")
  18. def build():
  19. qt6.make()
  20. #qt6.make("docs")
  21. def install():
  22. #pisitools.insinto("/usr/lib/qt6/qml", "qml/QtQml")
  23. #pisitools.insinto("/usr/lib/qt6/qml", "qml/Qt")
  24. #pisitools.insinto("/usr/lib/qt6/qml", "qml/QtQuick")
  25. #pisitools.insinto("/usr/lib/qt6/qml", "qml/QtQuick.2")
  26. #pisitools.insinto("/usr/lib/qt6/qml", "qml/QtTest")
  27. qt6.install()
  28. #I hope qtchooser will manage this issue
  29. for bin in shelltools.ls("%s/usr/lib/qt6/bin" % get.installDIR()):
  30. pisitools.dosym("/usr/lib/qt6/bin/%s" % bin, "/usr/bin/%s-qt6" % bin)
  31. pisitools.insinto("/usr/share/licenses/qt6-declarative/", "LICENSE*")