gnu: qt5ct: Fix build.
* gnu/packages/qt.scm (qt5ct)[build-system]: Change to qt-build-system. [arguments]: Adjust accordingly. [inputs]: Remove qtbase-5. Signed-off-by: 宋文武 <iyzsong@member.fsf.org>
This commit is contained in:
parent
ebdd352301
commit
3d727b8334
1 changed files with 12 additions and 27 deletions
|
@ -159,37 +159,22 @@
|
||||||
(string-append "mirror://sourceforge/qt5ct/qt5ct-" version ".tar.bz2"))
|
(string-append "mirror://sourceforge/qt5ct/qt5ct-" version ".tar.bz2"))
|
||||||
(sha256
|
(sha256
|
||||||
(base32 "14742vs32m98nbfb5mad0i8ciff5f45gfcb5v03p4hh2dvhhqgfn"))))
|
(base32 "14742vs32m98nbfb5mad0i8ciff5f45gfcb5v03p4hh2dvhhqgfn"))))
|
||||||
(build-system gnu-build-system)
|
(build-system qt-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
`(#:tests? #f ; No target
|
(list
|
||||||
#:imported-modules
|
#:tests? #f ; No target
|
||||||
(,@%qt-build-system-modules)
|
#:phases
|
||||||
#:modules
|
#~(modify-phases %standard-phases
|
||||||
((guix build gnu-build-system)
|
(add-after 'unpack 'patch
|
||||||
((guix build qt-build-system)
|
(lambda _
|
||||||
#:prefix qt:)
|
(substitute* '("src/qt5ct-qtplugin/CMakeLists.txt"
|
||||||
(guix build utils))
|
"src/qt5ct-style/CMakeLists.txt")
|
||||||
#:phases
|
(("\\$\\{PLUGINDIR\\}")
|
||||||
(modify-phases %standard-phases
|
(string-append #$output "/lib/qt5/plugins"))))))))
|
||||||
(add-after 'unpack 'patch
|
|
||||||
(lambda* (#:key inputs #:allow-other-keys)
|
|
||||||
(substitute* "qt5ct.pro"
|
|
||||||
(("\\$\\$\\[QT_INSTALL_BINS\\]/lrelease")
|
|
||||||
(search-input-file inputs "/bin/lrelease")))))
|
|
||||||
(replace 'configure
|
|
||||||
(lambda* (#:key outputs #:allow-other-keys)
|
|
||||||
(let* ((out (assoc-ref outputs "out")))
|
|
||||||
(invoke "qmake"
|
|
||||||
(string-append "PREFIX=" out)
|
|
||||||
(string-append "BINDIR=" out "/bin")
|
|
||||||
(string-append "DATADIR=" out "/share")
|
|
||||||
(string-append "PLUGINDIR=" out "/lib/qt5/plugins")))))
|
|
||||||
(add-after 'install 'qt-wrap
|
|
||||||
(assoc-ref qt:%standard-phases 'qt-wrap)))))
|
|
||||||
(native-inputs
|
(native-inputs
|
||||||
(list qttools-5))
|
(list qttools-5))
|
||||||
(inputs
|
(inputs
|
||||||
(list qtbase-5 qtsvg-5))
|
(list qtsvg-5))
|
||||||
(synopsis "Qt5 Configuration Tool")
|
(synopsis "Qt5 Configuration Tool")
|
||||||
(description "Qt5CT is a program that allows users to configure Qt5
|
(description "Qt5CT is a program that allows users to configure Qt5
|
||||||
settings (such as icons, themes, and fonts) in desktop environments or
|
settings (such as icons, themes, and fonts) in desktop environments or
|
||||||
|
|
Reference in a new issue