From 914756aa6c8893ce68f57dab575ed67f4d5ae560 Mon Sep 17 00:00:00 2001 From: Jan Nieuwenhuizen Date: Wed, 23 Mar 2016 22:18:46 +0100 Subject: [PATCH] gnu: Add gnu-maintain and gnu-standards. * gnu/packages/gnu-doc.scm: New file. --- gnu/packages/gnu-doc.scm | 100 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 100 insertions(+) create mode 100644 gnu/packages/gnu-doc.scm diff --git a/gnu/packages/gnu-doc.scm b/gnu/packages/gnu-doc.scm new file mode 100644 index 0000000..601409c --- /dev/null +++ b/gnu/packages/gnu-doc.scm @@ -0,0 +1,100 @@ +;;; GNU Guix --- Functional package management for GNU +;;; Copyright © 2016 Jan Nieuwenhuizen +;;; +;;; This file is part of GNU Guix. +;;; +;;; GNU Guix is free software; you can redistribute it and/or modify it +;;; under the terms of the GNU General Public License as published by +;;; the Free Software Foundation; either version 3 of the License, or (at +;;; your option) any later version. +;;; +;;; GNU Guix is distributed in the hope that it will be useful, but +;;; WITHOUT ANY WARRANTY; without even the implied warranty of +;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +;;; GNU General Public License for more details. +;;; +;;; You should have received a copy of the GNU General Public License +;;; along with GNU Guix. If not, see . + +(define-module (gnu packages gnu-doc) + #:use-module (gnu packages base) + #:use-module (gnu packages compression) + #:use-module (gnu packages texinfo) + + #:use-module (guix build-system trivial) + #:use-module (guix download) + #:use-module (guix licenses) + #:use-module (guix packages)) + +(define-public gnu-maintain + (package + (name "gnu-maintain") + (version "2015-05-07") + (source (origin + (method url-fetch) + (uri "http://www.gnu.org/prep/maintain/maintain.texi.tar.gz") + (sha256 + (base32 + "0zqi8xni8r9fxn8xcz2by4vpcgfy0ky5j46p91hysm63yzpamz3s")))) + (build-system trivial-build-system) + (native-inputs `(("gzip" ,gzip) + ("source" ,source) + ("tar" ,tar) + ("texinfo" ,texinfo))) + (arguments + `(#:modules ((guix build utils)) + #:builder (begin + (use-modules (guix build utils)) + (let ((gzip (assoc-ref %build-inputs "gzip")) + (source (assoc-ref %build-inputs "source")) + (tar (assoc-ref %build-inputs "tar")) + (texinfo (assoc-ref %build-inputs "texinfo")) + (info-dir (string-append %output "/share/info"))) + (setenv "PATH" (string-append gzip "/bin" + ":" tar "/bin" + ":" texinfo "/bin")) + (mkdir-p info-dir) + (system* "tar" "xf" source) + (system* "makeinfo" "--output" info-dir "maintain.texi") + (system* "gzip" (string-append info-dir "/maintain.info")))))) + (home-page "http://www.gnu.org/prep/maintain/") + (synopsis "Information for maintainers of GNU software") + (description "Guidelines and advice for someone who is the maintainer of a +GNU program on behalf of the GNU Project.") + (license fdl1.3+))) + +(define-public gnu-standards + (package + (name "gnu-standards") + (version "2015-04-23") + (source (origin + (method url-fetch) + (uri "http://www.gnu.org/prep/standards/standards.texi.tar.gz") + (sha256 + (base32 + "1rdyqk6d5bgrpmlnb8r65qif1h604jz1g7v3szh24cqga3mgi9py")))) + (build-system trivial-build-system) + (native-inputs `(("gzip" ,gzip) + ("source" ,source) + ("tar" ,tar) + ("texinfo" ,texinfo))) + (arguments + `(#:modules ((guix build utils)) + #:builder (begin + (use-modules (guix build utils)) + (let ((gzip (assoc-ref %build-inputs "gzip")) + (source (assoc-ref %build-inputs "source")) + (tar (assoc-ref %build-inputs "tar")) + (texinfo (assoc-ref %build-inputs "texinfo")) + (info-dir (string-append %output "/share/info"))) + (setenv "PATH" (string-append gzip "/bin" + ":" tar "/bin" + ":" texinfo "/bin")) + (mkdir-p info-dir) + (system* "tar" "xf" source) + (system* "makeinfo" "--output" info-dir "standards.texi") + (system* "gzip" (string-append info-dir "/standards.info")))))) + (home-page "http://www.gnu.org/prep/standards/") + (synopsis "GNU coding standards") + (description "The GNU Coding Standards were written by Richard Stallman and other GNU Project volunteers. Their purpose is to make the GNU system clean, consistent, and easy to install.") + (license fdl1.3+))) -- 2.6.3