[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
09/09: gnu: Add gnu-c-manual.
From: |
Ludovic Courtès |
Subject: |
09/09: gnu: Add gnu-c-manual. |
Date: |
Sun, 19 Jul 2015 20:28:26 +0000 |
civodul pushed a commit to branch master
in repository guix.
commit 50c7a1e297bff0935674b4f30e854a8889becfdd
Author: Ludovic Courtès <address@hidden>
Date: Sun Jul 19 22:27:37 2015 +0200
gnu: Add gnu-c-manual.
* gnu/packages/gcc.scm (gnu-c-manual): New variable.
---
gnu/packages/gcc.scm | 52 +++++++++++++++++++++++++++++++++++++++++++++++++-
1 files changed, 51 insertions(+), 1 deletions(-)
diff --git a/gnu/packages/gcc.scm b/gnu/packages/gcc.scm
index d2fe122..e41fd43 100644
--- a/gnu/packages/gcc.scm
+++ b/gnu/packages/gcc.scm
@@ -21,7 +21,7 @@
(define-module (gnu packages gcc)
#:use-module ((guix licenses)
- #:select (gpl3+ gpl2+ lgpl2.1+ lgpl2.0+))
+ #:select (gpl3+ gpl2+ lgpl2.1+ lgpl2.0+ fdl1.3+))
#:use-module (gnu packages)
#:use-module (gnu packages bootstrap)
#:use-module (gnu packages compression)
@@ -680,3 +680,53 @@ CLooG is designed to avoid control overhead and to produce
a very
effective code.")
(license gpl2+)))
+(define-public gnu-c-manual
+ (package
+ (name "gnu-c-manual")
+ (version "0.2.4")
+ (source (origin
+ (method url-fetch)
+ (uri (string-append "mirror://gnu/gnu-c-manual/gnu-c-manual-"
+ version ".tar.gz"))
+ (sha256
+ (base32
+ "0cf4503shr7hxkbrjfi9dky6q2lqk95bgbgbjmvj2s2x312kakd9"))))
+ (build-system gnu-build-system)
+ (native-inputs `(("texinfo" ,texinfo)))
+ (arguments
+ '(#:phases (modify-phases %standard-phases
+ (delete 'configure)
+ (delete 'check)
+ (replace 'build
+ (lambda _
+ (zero? (system* "make"
+ "gnu-c-manual.info"
+ "gnu-c-manual.html"))))
+ (replace 'install
+ (lambda* (#:key outputs #:allow-other-keys)
+ (let* ((out (assoc-ref outputs "out"))
+ (info (string-append out "/share/info"))
+ (html (string-append
+ out "/share/doc/gnu-c-manual")))
+ (mkdir-p info)
+ (mkdir-p html)
+
+ (for-each (lambda (file)
+ (copy-file file
+ (string-append info "/"
+ file)))
+ (find-files "." "\\.info(-[0-9])?$"))
+ (for-each (lambda (file)
+ (copy-file file
+ (string-append html "/"
+ file)))
+ (find-files "." "\\.html$"))
+ #t))))))
+ (synopsis "Reference manual for the C programming language")
+ (description
+ "This is a reference manual for the C programming language, as
+implemented by the GNU C Compiler (gcc). As a reference, it is not intended
+to be a tutorial of the language. Rather, it outlines all of the constructs
+of the language. Library functions are not included.")
+ (home-page "http://www.gnu.org/software/gnu-c-manual")
+ (license fdl1.3+)))
- branch master updated (5ede5f2 -> 50c7a1e), Ludovic Courtès, 2015/07/19
- 02/09: build: Adjust 'gen-AUTHORS' for 'distcheck' and when run from a tarball., Ludovic Courtès, 2015/07/19
- 01/09: AUTHORS: Remove the hand-made list of people., Ludovic Courtès, 2015/07/19
- 05/09: build: Do not distribute the daemon's 'schema.sql.hh' file., Ludovic Courtès, 2015/07/19
- 03/09: build: Add 'generate-authors.scm' to the distribution., Ludovic Courtès, 2015/07/19
- 07/09: build: Ensure man pages are not rebuilt by users., Ludovic Courtès, 2015/07/19
- 06/09: build: Fix instantiation of 'guix-daemon.service' when builddir != srcdir., Ludovic Courtès, 2015/07/19
- 04/09: build: Build coreutils-size-map.eps for the sake of the PS and DVI outputs., Ludovic Courtès, 2015/07/19
- 08/09: nls: Add package files for translation., Ludovic Courtès, 2015/07/19
- 09/09: gnu: Add gnu-c-manual.,
Ludovic Courtès <=