* bug#27171: [PATCH] gnu: font-go: Use 'font-build-system'.
@ 2017-05-31 17:31 Alex Griffin
2017-05-31 18:33 ` Danny Milosavljevic
0 siblings, 1 reply; 3+ messages in thread
From: Alex Griffin @ 2017-05-31 17:31 UTC (permalink / raw)
To: 27171
[-- Attachment #1: Type: text/plain, Size: 75 bytes --]
This patch switches font-go to the new font-build-system.
--
Alex Griffin
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-gnu-font-go-Use-font-build-system.patch --]
[-- Type: text/x-patch; name="0001-gnu-font-go-Use-font-build-system.patch", Size: 3458 bytes --]
From 357f03af069ab679320fde660281ffac07942cc0 Mon Sep 17 00:00:00 2001
From: Alex Griffin <a@ajgrf.com>
Date: Wed, 31 May 2017 12:08:08 -0500
Subject: [PATCH 1/3] gnu: font-go: Use 'font-build-system'.
* gnu/packages/fonts.scm (font-go): Switch to font-build-system.
Re-indent.
---
gnu/packages/fonts.scm | 53 ++++++++++++++++++++++----------------------------
1 file changed, 23 insertions(+), 30 deletions(-)
diff --git a/gnu/packages/fonts.scm b/gnu/packages/fonts.scm
index 746981806..76677453d 100644
--- a/gnu/packages/fonts.scm
+++ b/gnu/packages/fonts.scm
@@ -1246,39 +1246,32 @@ programming. Iosevka is completely generated from its source code.")
(let ((commit "f03a046406d4d7fbfd4ed29f554da8f6114049fc")
(revision "1"))
(package
- (name "font-go")
- (version (string-append "20170330-" revision "." (string-take commit 7)))
- (source (origin
- (file-name (string-append "go-image-" version "-checkout"))
- (method git-fetch)
- (uri (git-reference
- (url "https://go.googlesource.com/image")
- (commit commit)))
- (sha256
- (base32
- "1aq6mnjayks55gd9ahavk6jfydlq5lm4xm0xk4pd5sqa74p5p74d"))))
- (build-system trivial-build-system)
- (arguments
- `(#:modules ((guix build utils))
- #:builder (begin
- (use-modules (guix build utils))
- (let ((font-dir (string-append %output
- "/share/fonts/truetype"))
- (source (assoc-ref %build-inputs "source")))
- (mkdir-p font-dir)
- (with-directory-excursion
- (string-append source "/font/gofont/ttfs")
- (for-each (lambda (ttf)
- (install-file ttf font-dir))
- (find-files "." "\\.ttf$")))))))
- (home-page "https://blog.golang.org/go-fonts")
- (synopsis "The Go font family")
- (description
- "The Go font family is a set of WGL4 TrueType fonts from the Bigelow &
+ (name "font-go")
+ (version (string-append "20170330-" revision "." (string-take commit 7)))
+ (source (origin
+ (file-name (string-append "go-image-" version "-checkout"))
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://go.googlesource.com/image")
+ (commit commit)))
+ (sha256
+ (base32
+ "1aq6mnjayks55gd9ahavk6jfydlq5lm4xm0xk4pd5sqa74p5p74d"))))
+ (build-system font-build-system)
+ (arguments
+ `(#:phases
+ (modify-phases %standard-phases
+ (add-before 'install 'chdir
+ (lambda _
+ (chdir "font/gofont/ttfs"))))))
+ (home-page "https://blog.golang.org/go-fonts")
+ (synopsis "The Go font family")
+ (description
+ "The Go font family is a set of WGL4 TrueType fonts from the Bigelow &
Holmes type foundry, released under the same license as the Go programming
language. It includes a set of proportional, sans-serif fonts, and a set of
monospace, slab-serif fonts.")
- (license (package-license go-1.4)))))
+ (license (package-license go-1.4)))))
(define-public font-google-material-design-icons
(package
--
2.13.0
^ permalink raw reply related [flat|nested] 3+ messages in thread
* bug#27171: [PATCH] gnu: font-go: Use 'font-build-system'.
2017-05-31 17:31 bug#27171: [PATCH] gnu: font-go: Use 'font-build-system' Alex Griffin
@ 2017-05-31 18:33 ` Danny Milosavljevic
2017-05-31 19:54 ` Alex Griffin
0 siblings, 1 reply; 3+ messages in thread
From: Danny Milosavljevic @ 2017-05-31 18:33 UTC (permalink / raw)
To: Alex Griffin; +Cc: 27171
On Wed, 31 May 2017 12:31:12 -0500
Alex Griffin <a@ajgrf.com> wrote:
> This patch switches font-go to the new font-build-system.
+ (modify-phases %standard-phases
+ (add-before 'install 'chdir
+ (lambda _
+ (chdir "font/gofont/ttfs"))))))
Please end the phase with #t.
^ permalink raw reply [flat|nested] 3+ messages in thread
* bug#27171: [PATCH] gnu: font-go: Use 'font-build-system'.
2017-05-31 18:33 ` Danny Milosavljevic
@ 2017-05-31 19:54 ` Alex Griffin
0 siblings, 0 replies; 3+ messages in thread
From: Alex Griffin @ 2017-05-31 19:54 UTC (permalink / raw)
To: Danny Milosavljevic; +Cc: 27171
[-- Attachment #1: Type: text/plain, Size: 145 bytes --]
On Wed, May 31, 2017, at 01:33 PM, Danny Milosavljevic wrote:
> Please end the phase with #t.
The corrected patch is attached.
--
Alex Griffin
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-gnu-font-go-Use-font-build-system.patch --]
[-- Type: text/x-patch; name="0001-gnu-font-go-Use-font-build-system.patch", Size: 3477 bytes --]
From f95190a92f7df11eb6284ceb0b8626344663730e Mon Sep 17 00:00:00 2001
From: Alex Griffin <a@ajgrf.com>
Date: Wed, 31 May 2017 12:08:08 -0500
Subject: [PATCH 1/3] gnu: font-go: Use 'font-build-system'.
* gnu/packages/fonts.scm (font-go): Switch to font-build-system.
Re-indent.
---
gnu/packages/fonts.scm | 54 ++++++++++++++++++++++----------------------------
1 file changed, 24 insertions(+), 30 deletions(-)
diff --git a/gnu/packages/fonts.scm b/gnu/packages/fonts.scm
index 285717cde..78e5b03f6 100644
--- a/gnu/packages/fonts.scm
+++ b/gnu/packages/fonts.scm
@@ -1247,39 +1247,33 @@ programming. Iosevka is completely generated from its source code.")
(let ((commit "f03a046406d4d7fbfd4ed29f554da8f6114049fc")
(revision "1"))
(package
- (name "font-go")
- (version (string-append "20170330-" revision "." (string-take commit 7)))
- (source (origin
- (file-name (string-append "go-image-" version "-checkout"))
- (method git-fetch)
- (uri (git-reference
- (url "https://go.googlesource.com/image")
- (commit commit)))
- (sha256
- (base32
- "1aq6mnjayks55gd9ahavk6jfydlq5lm4xm0xk4pd5sqa74p5p74d"))))
- (build-system trivial-build-system)
- (arguments
- `(#:modules ((guix build utils))
- #:builder (begin
- (use-modules (guix build utils))
- (let ((font-dir (string-append %output
- "/share/fonts/truetype"))
- (source (assoc-ref %build-inputs "source")))
- (mkdir-p font-dir)
- (with-directory-excursion
- (string-append source "/font/gofont/ttfs")
- (for-each (lambda (ttf)
- (install-file ttf font-dir))
- (find-files "." "\\.ttf$")))))))
- (home-page "https://blog.golang.org/go-fonts")
- (synopsis "The Go font family")
- (description
- "The Go font family is a set of WGL4 TrueType fonts from the Bigelow &
+ (name "font-go")
+ (version (string-append "20170330-" revision "." (string-take commit 7)))
+ (source (origin
+ (file-name (string-append "go-image-" version "-checkout"))
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://go.googlesource.com/image")
+ (commit commit)))
+ (sha256
+ (base32
+ "1aq6mnjayks55gd9ahavk6jfydlq5lm4xm0xk4pd5sqa74p5p74d"))))
+ (build-system font-build-system)
+ (arguments
+ `(#:phases
+ (modify-phases %standard-phases
+ (add-before 'install 'chdir
+ (lambda _
+ (chdir "font/gofont/ttfs")
+ #t)))))
+ (home-page "https://blog.golang.org/go-fonts")
+ (synopsis "The Go font family")
+ (description
+ "The Go font family is a set of WGL4 TrueType fonts from the Bigelow &
Holmes type foundry, released under the same license as the Go programming
language. It includes a set of proportional, sans-serif fonts, and a set of
monospace, slab-serif fonts.")
- (license (package-license go-1.4)))))
+ (license (package-license go-1.4)))))
(define-public font-google-material-design-icons
(package
--
2.13.0
^ permalink raw reply related [flat|nested] 3+ messages in thread
end of thread, other threads:[~2017-05-31 19:55 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-05-31 17:31 bug#27171: [PATCH] gnu: font-go: Use 'font-build-system' Alex Griffin
2017-05-31 18:33 ` Danny Milosavljevic
2017-05-31 19:54 ` Alex Griffin
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).