[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#39599] [PATCH 2/2] gnu: gcide: Use the copy-build-system.
From: |
Pierre Neidhardt |
Subject: |
[bug#39599] [PATCH 2/2] gnu: gcide: Use the copy-build-system. |
Date: |
Fri, 14 Feb 2020 13:53:57 +0100 |
* gnu/packages/dictionaries.scm (gcide2)[build-system]: Use the
copy-build-system.
---
gnu/packages/dictionaries.scm | 22 ++++------------------
1 file changed, 4 insertions(+), 18 deletions(-)
diff --git a/gnu/packages/dictionaries.scm b/gnu/packages/dictionaries.scm
index cd0a5db93c..d40c43f74e 100644
--- a/gnu/packages/dictionaries.scm
+++ b/gnu/packages/dictionaries.scm
@@ -31,6 +31,7 @@
#:use-module (guix build-system gnu)
#:use-module (guix build-system python)
#:use-module (guix build-system trivial)
+ #:use-module (guix build-system copy)
#:use-module (gnu packages)
#:use-module (gnu packages autotools)
#:use-module (gnu packages base)
@@ -109,25 +110,10 @@ acronyms distributed as an info document.")
(sha256
(base32
"1n3bp91sik66z3ca7mjqbr9nck3hg5ck0c8g84xc0qnfpx5vznh2"))))
- (build-system trivial-build-system)
+ (build-system copy-build-system)
(arguments
- '(#:builder (begin
- (use-modules (guix build utils))
- (let* ((src (assoc-ref %build-inputs "source"))
- (tar (assoc-ref %build-inputs "tar"))
- (xz (assoc-ref %build-inputs "xz"))
- (out (assoc-ref %outputs "out"))
- (datadir (string-append out "/share/gcide")))
- (set-path-environment-variable "PATH" '("bin")
- (list tar xz))
- (mkdir-p datadir)
- (invoke "tar" "-C" datadir
- "--strip-components=1"
- "-xvf" src)))
- #:modules ((guix build utils))))
- (native-inputs
- `(("tar" ,tar)
- ("xz" ,xz)))
+ '(#:install-plan
+ '(("." "share/gcide/" #:exclude ("COPYING")))))
(synopsis "GNU Collaborative International Dictionary of English")
(description
"GCIDE is a free dictionary based on a combination of sources. It can
--
2.25.0
- [bug#39599] [PATCH 0/2] New build system: copy-build-system, Pierre Neidhardt, 2020/02/14
- [bug#39599] [PATCH 1/2] build-system: Add copy-build-system., Pierre Neidhardt, 2020/02/14
- [bug#39599] [PATCH 1/4] build-system: Add copy-build-system., Pierre Neidhardt, 2020/02/17
- [bug#39599] [PATCH 3/4] gnu: Add clojure-wrapper., Pierre Neidhardt, 2020/02/17
- [bug#39599] [PATCH 4/4] gnu: net-base: Use copy build system., Pierre Neidhardt, 2020/02/17
- [bug#39599] [PATCH 2/4] gnu: gcide: Use the copy-build-system., Pierre Neidhardt, 2020/02/17
- [bug#39599] [PATCH 1/4] build-system: Add copy-build-system., Mathieu Othacehe, 2020/02/17
- [bug#39599] [PATCH 1/4] build-system: Add copy-build-system., Ricardo Wurmus, 2020/02/20
- [bug#39599] [PATCH 1/4] build-system: Add copy-build-system., Alex Griffin, 2020/02/19