gnu: woff2: Update package definition.
* gnu/packages/fontutils.scm (woff2): Update package definition. [outputs]: New output "bin". [arguments]<#:configure-flags>[-DCMAKE_INSTALL_BINDIR]: New flag. [-DCMAKE_INSTALL_INCLUDEDIR]: New flag. [-DCMAKE_INSTALL_LIBDIR]: New flag. [-DBUILD_SHARED_LIBS]: Remove flag. <#:phases>['patch-installation]: New phase. [synopsis]: Modify. [description]: Modify. [home-page]: Modify. [license]: Change to expat. Signed-off-by: Danny Milosavljevic <dannym@scratchpost.org>
This commit is contained in:
parent
aa4557a223
commit
acc8a0c10b
1 changed files with 40 additions and 22 deletions
|
@ -263,32 +263,50 @@ work with most software requiring Type 1 fonts.")
|
||||||
(package
|
(package
|
||||||
(name "woff2")
|
(name "woff2")
|
||||||
(version "1.0.2")
|
(version "1.0.2")
|
||||||
(source (origin
|
(source
|
||||||
(method git-fetch)
|
(origin
|
||||||
(uri (git-reference
|
(method git-fetch)
|
||||||
(url "https://github.com/google/woff2")
|
(uri
|
||||||
(commit (string-append "v" version))))
|
(git-reference
|
||||||
(file-name (string-append name "-" version ".git"))
|
(url "https://github.com/google/woff2.git")
|
||||||
(sha256
|
(commit (string-append "v" version))))
|
||||||
(base32
|
(file-name
|
||||||
"13l4g536h0pr84ww4wxs2za439s0xp1va55g6l478rfbb1spp44y"))))
|
(git-file-name name version))
|
||||||
|
(sha256
|
||||||
|
(base32 "13l4g536h0pr84ww4wxs2za439s0xp1va55g6l478rfbb1spp44y"))))
|
||||||
(build-system cmake-build-system)
|
(build-system cmake-build-system)
|
||||||
|
(outputs '("out" "bin"))
|
||||||
|
(arguments
|
||||||
|
`(#:tests? #f ; No target
|
||||||
|
#:configure-flags
|
||||||
|
(list
|
||||||
|
(string-append "-DCMAKE_INSTALL_BINDIR="
|
||||||
|
(assoc-ref %outputs "bin")
|
||||||
|
"/bin")
|
||||||
|
(string-append "-DCMAKE_INSTALL_INCLUDEDIR="
|
||||||
|
(assoc-ref %outputs "out")
|
||||||
|
"/include")
|
||||||
|
(string-append "-DCMAKE_INSTALL_LIBDIR="
|
||||||
|
(assoc-ref %outputs "out")
|
||||||
|
"/lib"))
|
||||||
|
#:phases
|
||||||
|
(modify-phases %standard-phases
|
||||||
|
;; To install both binaries and libraries.
|
||||||
|
(add-after 'unpack 'patch-installation
|
||||||
|
(lambda _
|
||||||
|
(substitute* "CMakeLists.txt"
|
||||||
|
(("NOT BUILD_SHARED_LIBS")
|
||||||
|
"BUILD_SHARED_LIBS"))
|
||||||
|
#t)))))
|
||||||
(native-inputs
|
(native-inputs
|
||||||
`(("pkg-config" ,pkg-config)))
|
`(("pkg-config" ,pkg-config)))
|
||||||
(inputs
|
(inputs
|
||||||
`(("google-brotli" ,google-brotli)))
|
`(("brotli" ,google-brotli)))
|
||||||
(arguments
|
(synopsis "Libraries and tools for WOFF2 font format")
|
||||||
;; package has no tests
|
(description "WOFF2 provides libraires and tools to handle the Web Open
|
||||||
`(#:tests? #f
|
Font Format (WOFF).")
|
||||||
;; we can’t have both, shared libraries and binaries, so turn off the
|
(home-page "https://w3c.github.io/woff/woff2/")
|
||||||
;; former
|
(license license:expat)))
|
||||||
#:configure-flags (list "-DBUILD_SHARED_LIBS=OFF")))
|
|
||||||
(synopsis "Compress TrueType fonts to WOFF2")
|
|
||||||
(description
|
|
||||||
"This package provides utilities for compressing/decompressing TrueType
|
|
||||||
fonts to/from the WOFF2 format.")
|
|
||||||
(license license:asl2.0)
|
|
||||||
(home-page "https://github.com/google/woff2")))
|
|
||||||
|
|
||||||
(define-public fontconfig
|
(define-public fontconfig
|
||||||
(package
|
(package
|
||||||
|
|
Reference in a new issue