mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2025-01-15 15:37:54 -05:00
gnu: nimf: Disable qt4 support.
* gnu/packages/language.scm (nimf) [arguments]: Add new phase 'disable-qt4 and modify phase 'patch-paths. [inputs]: Remove qt4. Signed-off-by: Leo Famulari <leo@famulari.name>
This commit is contained in:
parent
2e9fe98a4b
commit
76c32fcab4
1 changed files with 9 additions and 6 deletions
|
@ -103,7 +103,15 @@ (define-public nimf
|
||||||
"/share/gtk-doc/html"))
|
"/share/gtk-doc/html"))
|
||||||
#:phases
|
#:phases
|
||||||
(modify-phases %standard-phases
|
(modify-phases %standard-phases
|
||||||
(add-after 'unpack 'patch-flags
|
(add-after 'unpack 'disable-qt4
|
||||||
|
(lambda _
|
||||||
|
(substitute* '("configure.ac" "modules/clients/Makefile.am")
|
||||||
|
(("\\[QtGui\\]")
|
||||||
|
"[Qt5Gui]")
|
||||||
|
((" qt4")
|
||||||
|
""))
|
||||||
|
#t))
|
||||||
|
(add-after 'disable-qt4 'patch-flags
|
||||||
(lambda* (#:key inputs #:allow-other-keys)
|
(lambda* (#:key inputs #:allow-other-keys)
|
||||||
(substitute* "configure.ac"
|
(substitute* "configure.ac"
|
||||||
(("-Werror")
|
(("-Werror")
|
||||||
|
@ -137,10 +145,6 @@ (define-public nimf
|
||||||
(("\\$\\(GTK2_LIBDIR\\)")
|
(("\\$\\(GTK2_LIBDIR\\)")
|
||||||
(string-append (assoc-ref outputs "gtk")
|
(string-append (assoc-ref outputs "gtk")
|
||||||
"/lib")))
|
"/lib")))
|
||||||
(substitute* "modules/clients/qt4/Makefile.am"
|
|
||||||
(("\\$\\(QT4_LIB_DIR\\)")
|
|
||||||
(string-append (assoc-ref outputs "qt")
|
|
||||||
"/lib")))
|
|
||||||
(substitute* "modules/clients/qt5/Makefile.am"
|
(substitute* "modules/clients/qt5/Makefile.am"
|
||||||
(("\\$\\(QT5_IM_MODULE_DIR\\)")
|
(("\\$\\(QT5_IM_MODULE_DIR\\)")
|
||||||
(string-append (assoc-ref outputs "qt")
|
(string-append (assoc-ref outputs "qt")
|
||||||
|
@ -180,7 +184,6 @@ (define-public nimf
|
||||||
("hangul" ,libhangul)
|
("hangul" ,libhangul)
|
||||||
("m17n-db" ,m17n-db)
|
("m17n-db" ,m17n-db)
|
||||||
("m17n-lib" ,m17n-lib)
|
("m17n-lib" ,m17n-lib)
|
||||||
("qt-4" ,qt-4)
|
|
||||||
("qtbase" ,qtbase)
|
("qtbase" ,qtbase)
|
||||||
("rime" ,librime)
|
("rime" ,librime)
|
||||||
("rsvg" ,librsvg)
|
("rsvg" ,librsvg)
|
||||||
|
|
Loading…
Reference in a new issue