From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:60088) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eiaJx-000457-Hd for guix-patches@gnu.org; Mon, 05 Feb 2018 01:32:07 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eiaJu-0002Aa-Cj for guix-patches@gnu.org; Mon, 05 Feb 2018 01:32:05 -0500 Received: from debbugs.gnu.org ([208.118.235.43]:49724) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eiaJu-0002AQ-9X for guix-patches@gnu.org; Mon, 05 Feb 2018 01:32:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1eiaJu-0000eg-3N for guix-patches@gnu.org; Mon, 05 Feb 2018 01:32:02 -0500 Subject: [bug#30353] [PATCH] gnu: Add colormake. Resent-Message-ID: Received: from eggs.gnu.org ([2001:4830:134:3::10]:59857) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eiaIq-00033o-Jq for guix-patches@gnu.org; Mon, 05 Feb 2018 01:30:58 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eiaIn-0001me-2U for guix-patches@gnu.org; Mon, 05 Feb 2018 01:30:56 -0500 Received: from mail-lf0-x236.google.com ([2a00:1450:4010:c07::236]:34588) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eiaIm-0001m6-M2 for guix-patches@gnu.org; Mon, 05 Feb 2018 01:30:52 -0500 Received: by mail-lf0-x236.google.com with SMTP id k19so40166969lfj.1 for ; Sun, 04 Feb 2018 22:30:52 -0800 (PST) From: Oleg Pykhalov Date: Mon, 5 Feb 2018 09:30:21 +0300 Message-Id: <20180205063021.20989-1-go.wigust@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: 30353@debbugs.gnu.org * gnu/packages/colorize.scm: New file. * gnu/local.mk (GNU_SYSTEM_MODULES): Add this. --- gnu/local.mk | 1 + gnu/packages/colorize.scm | 83 +++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 84 insertions(+) create mode 100644 gnu/packages/colorize.scm diff --git a/gnu/local.mk b/gnu/local.mk index 6fdea16c8..b8c860bc2 100644 --- a/gnu/local.mk +++ b/gnu/local.mk @@ -102,6 +102,7 @@ GNU_SYSTEM_MODULES = \ %D%/packages/conkeror.scm \ %D%/packages/conky.scm \ %D%/packages/connman.scm \ + %D%/packages/colorize.scm \ %D%/packages/cook.scm \ %D%/packages/cpio.scm \ %D%/packages/cpp.scm \ diff --git a/gnu/packages/colorize.scm b/gnu/packages/colorize.scm new file mode 100644 index 000000000..75e47d9a8 --- /dev/null +++ b/gnu/packages/colorize.scm @@ -0,0 +1,83 @@ +;;; GNU Guix --- Functional package management for GNU +;;; Copyright © 2018 Oleg Pykhalov +;;; +;;; 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 colorize) + #:use-module (gnu packages base) + #:use-module (gnu packages bash) + #:use-module (gnu packages compression) + #:use-module (gnu packages perl) + #:use-module (gnu packages) + #:use-module (guix build-system trivial) + #:use-module (guix download) + #:use-module (guix licenses) + #:use-module (guix packages)) + +(define-public colormake + (package + (name "colormake") + (version "0.9.20140503") + (source + (origin + (method url-fetch) + (uri (string-append "https://github.com/pagekite/Colormake/archive/" + version ".tar.gz")) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "08ldss9zd8ls6bjahvxhffpsjcysifr720yf3jz9db2mlklzmyd3")))) + (build-system trivial-build-system) + (native-inputs + `(("bash" ,bash) + ("gzip" ,gzip) + ("perl" ,perl) + ("tar" ,tar))) + (arguments + `(#:modules ((guix build utils)) + #:builder + (begin + (use-modules (guix build utils)) + ;; bootstrap + (setenv "PATH" (string-append + (assoc-ref %build-inputs "tar") "/bin" ":" + (assoc-ref %build-inputs "gzip") "/bin")) + (invoke "tar" "xvf" (assoc-ref %build-inputs "source")) + (chdir (string-append (string-capitalize ,name) "-" ,version)) + (patch-shebang "colormake.pl" + (list (string-append (assoc-ref %build-inputs "perl") + "/bin"))) + (let* ((out (assoc-ref %outputs "out")) + (bin (string-append out "/bin")) + (doc (string-append out "/share/doc")) + (install-files (lambda (files directory) + (for-each (lambda (file) + (install-file file directory)) + files)))) + (substitute* "colormake" + (("colormake\\.pl") (string-append bin "/colormake.pl")) + (("/bin/bash") + (string-append (assoc-ref %build-inputs "bash") "/bin/sh"))) + (install-file "colormake.1" (string-append doc "/man/man1")) + (install-files '("AUTHORS" "BUGS" "ChangeLog" "README") doc) + (install-files '("colormake" "colormake-short" "clmake" + "clmake-short" "colormake.pl") + bin))))) + (home-page "http://bre.klaki.net/programs/colormake/") + (synopsis "Simple wrapper around make to make it's output more readable") + (description "This package provides a simple wrapper around make to make +it's output more readable.") + (license gpl2+))) -- 2.15.1