gnu: Add sbcl-mcclim-fontconfig.

* gnu/packages/lisp-xyz.scm (sbcl-mcclim-fontconfig): New variable.
This commit is contained in:
Guillaume Le Vaillant 2020-07-17 11:44:27 +02:00
parent 46fa001dea
commit db09401805
No known key found for this signature in database
GPG key ID: 6BE8208ADF21FE3F

View file

@ -12922,3 +12922,34 @@ (define-public sbcl-mcclim-clx-truetype
(("mcclim-fonts/clx-truetype")
"mcclim-fonts-clx-truetype"))
#t)))))))
(define-public sbcl-mcclim-fontconfig
(package
(inherit sbcl-clim-lisp)
(name "sbcl-mcclim-fontconfig")
(native-inputs
`(("pkg-config" ,pkg-config)))
(inputs
`(("alexandria" ,sbcl-alexandria)
("cffi" ,sbcl-cffi)
("cffi-grovel" ,sbcl-cffi-grovel)
("fontconfig" ,fontconfig)))
(arguments
'(#:asd-file "Extensions/fontconfig/mcclim-fontconfig.asd"
#:phases
(modify-phases %standard-phases
(add-after 'unpack 'fix-paths
(lambda* (#:key inputs #:allow-other-keys)
(substitute* "Extensions/fontconfig/src/functions.lisp"
(("libfontconfig\\.so")
(string-append (assoc-ref inputs "fontconfig")
"/lib/libfontconfig.so")))
#t))
(add-after 'unpack 'fix-build
(lambda _
;; The cffi-grovel system does not get loaded automatically,
;; so we load it explicitly.
(substitute* "Extensions/fontconfig/mcclim-fontconfig.asd"
(("\\(asdf:defsystem #:mcclim-fontconfig" all)
(string-append "(asdf:load-system :cffi-grovel)\n" all)))
#t)))))))