[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
256/295: gnu: woff2: Update package definition.
From: |
guix-commits |
Subject: |
256/295: gnu: woff2: Update package definition. |
Date: |
Mon, 27 Jul 2020 06:26:30 -0400 (EDT) |
dannym pushed a commit to branch wip-desktop
in repository guix.
commit 6c0b832ff665704ebba742be640b835eede46348
Author: Raghav Gururajan <raghavgururajan@disroot.org>
AuthorDate: Mon Jul 13 03:16:47 2020 -0400
gnu: woff2: Update package definition.
* gnu/packages/fontutils.scm (woff2): Update package definition.
[source]: Modify.
[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>
---
gnu/packages/fontutils.scm | 62 ++++++++++++++++++++++++++++++----------------
1 file changed, 40 insertions(+), 22 deletions(-)
diff --git a/gnu/packages/fontutils.scm b/gnu/packages/fontutils.scm
index 3336a84..7553c35 100644
--- a/gnu/packages/fontutils.scm
+++ b/gnu/packages/fontutils.scm
@@ -263,32 +263,50 @@ work with most software requiring Type 1 fonts.")
(package
(name "woff2")
(version "1.0.2")
- (source (origin
- (method git-fetch)
- (uri (git-reference
- (url "https://github.com/google/woff2.git")
- (commit (string-append "v" version))))
- (file-name (string-append name "-" version ".git"))
- (sha256
- (base32
- "13l4g536h0pr84ww4wxs2za439s0xp1va55g6l478rfbb1spp44y"))))
+ (source
+ (origin
+ (method git-fetch)
+ (uri
+ (git-reference
+ (url "https://github.com/google/woff2.git")
+ (commit (string-append "v" version))))
+ (file-name
+ (git-file-name name version))
+ (sha256
+ (base32 "13l4g536h0pr84ww4wxs2za439s0xp1va55g6l478rfbb1spp44y"))))
(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
`(("pkg-config" ,pkg-config)))
(inputs
- `(("google-brotli" ,google-brotli)))
- (arguments
- ;; package has no tests
- `(#:tests? #f
- ;; we can’t have both, shared libraries and binaries, so turn off the
- ;; former
- #: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")))
+ `(("brotli" ,google-brotli)))
+ (synopsis "Libraries and tools for WOFF2 font format")
+ (description "WOFF2 provides libraires and tools to handle the Web Open
+Font Format (WOFF).")
+ (home-page "https://w3c.github.io/woff/woff2/")
+ (license license:expat)))
(define-public fontconfig
(package
- 229/295: gnu: Add rust-peg@0.5.7., (continued)
- 229/295: gnu: Add rust-peg@0.5.7., guix-commits, 2020/07/27
- 231/295: gnu: Add rust-itertools@0.9.0., guix-commits, 2020/07/27
- 236/295: git: Add rust-rgb@0.8.20., guix-commits, 2020/07/27
- 244/295: gnu: libsecret: Update package definition., guix-commits, 2020/07/27
- 241/295: gnu: Add rust-xml5ever@0.16.1., guix-commits, 2020/07/27
- 245/295: gnu: libsoup: Update package definition., guix-commits, 2020/07/27
- 246/295: gnu: Add openjpeg-data., guix-commits, 2020/07/27
- 248/295: gnu: gtk+: Add missing input., guix-commits, 2020/07/27
- 255/295: gnu: wpebackend-fdo: Update package definition., guix-commits, 2020/07/27
- 87/295: gnu: Add rust-scrypt-0.3., guix-commits, 2020/07/27
- 256/295: gnu: woff2: Update package definition.,
guix-commits <=
- 254/295: gnu: libwpe: Update package definition., guix-commits, 2020/07/27
- 267/295: gnu: hplip: Update source hash., guix-commits, 2020/07/27
- 273/295: gnu: glibmm: Update package definition., guix-commits, 2020/07/27
- 292/295: gnu: Add mrg., guix-commits, 2020/07/27
- 294/295: gnu: geocode-glib: Update package definition., guix-commits, 2020/07/27
- 226/295: gnu: Add rust-peg-runtime@0.6.2., guix-commits, 2020/07/27
- 258/295: gnu: Add libcamera., guix-commits, 2020/07/27
- 263/295: gnu: yelp-tools: Update package definition., guix-commits, 2020/07/27
- 281/295: gnu: gtksourceviewmm: Update package definition., guix-commits, 2020/07/27
- 127/295: gnu: Add nuspell., guix-commits, 2020/07/27