From patchwork Sun Dec 15 00:10:30 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Leo Prikler X-Patchwork-Id: 16523 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id E354D178DD; Sun, 15 Dec 2019 00:11:09 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,T_DKIM_INVALID, URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTP id 7EC6F178D8 for ; Sun, 15 Dec 2019 00:11:09 +0000 (GMT) Received: from localhost ([::1]:34816 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1igHV6-00079G-T7 for patchwork@mira.cbaines.net; Sat, 14 Dec 2019 19:11:08 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:55161) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1igHV1-00079A-FQ for guix-patches@gnu.org; Sat, 14 Dec 2019 19:11:04 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1igHV0-0005O6-2E for guix-patches@gnu.org; Sat, 14 Dec 2019 19:11:03 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:58154) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1igHUz-0005Np-U6 for guix-patches@gnu.org; Sat, 14 Dec 2019 19:11:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1igHUz-0000D8-PQ for guix-patches@gnu.org; Sat, 14 Dec 2019 19:11:01 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#38480] [PATCH] gnu: Add lolcat Resent-From: Leo Prikler Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 15 Dec 2019 00:11:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 38480 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Ludovic =?utf-8?q?Court=C3=A8s?= Cc: 38480@debbugs.gnu.org, Brett Gilio Received: via spool by 38480-submit@debbugs.gnu.org id=B38480.1576368633768 (code B ref 38480); Sun, 15 Dec 2019 00:11:01 +0000 Received: (at 38480) by debbugs.gnu.org; 15 Dec 2019 00:10:33 +0000 Received: from localhost ([127.0.0.1]:35894 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1igHUX-0000CK-4i for submit@debbugs.gnu.org; Sat, 14 Dec 2019 19:10:33 -0500 Received: from mailrelay.tugraz.at ([129.27.2.202]:1269) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1igHUU-0000CB-O4 for 38480@debbugs.gnu.org; Sat, 14 Dec 2019 19:10:32 -0500 Received: from nijino.local (213-240-64-42.hdsl.highway.telekom.at [213.240.64.42]) by mailrelay.tugraz.at (Postfix) with ESMTPSA id 47b4YG1yZyz3wXv; Sun, 15 Dec 2019 01:10:25 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tugraz.at; s=mailrelay; t=1576368626; bh=6+1MefFrkF9sXjpbLZE50pJQEVqnO4/jTWNU7UXW4tg=; h=Subject:From:To:Cc:Date:In-Reply-To:References; b=Nfh142kHNAeXHWL7od8gM61Mjnn4KH89Wels4GUkoKOpgsp5k8Az+IVUj17cjajOq fE/uVMoYYtxzANhHfibEQIIUo1EOG1DkFPcHqtKXzQI9mER/QIzcrLWXXZWFBV2iKf Z20p1o8lQXhwZobVgJIFNp6Rjvw2MJUotCOByZvQ= Message-ID: From: Leo Prikler Date: Sun, 15 Dec 2019 01:10:30 +0100 In-Reply-To: <87k16ywkpp.fsf@gnu.org> References: <20191204014644.1491-1-leo.prikler@student.tugraz.at> <877e3ciylo.fsf@posteo.net> <87k16ywkpp.fsf@gnu.org> User-Agent: Evolution 3.32.4 MIME-Version: 1.0 X-TUG-Backscatter-control: bt4lQm5Tva3SBgCuw0EnZw X-Scanned-By: MIMEDefang 2.74 on 129.27.10.117 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches Hello! Am Sonntag, den 15.12.2019, 00:28 +0100 schrieb Ludovic Courtès: > Hello! > > Leo Prikler skribis: > > > From: Leo Prikler > > Date: Wed, 4 Dec 2019 02:46:44 +0100 > > Subject: [PATCH] gnu: Add lolcat > > > > * gnu/packages/games.scm (lolcat): New package. > > [...] > > > + (replace 'install > > + (lambda* (#:key outputs #:allow-other-keys) > > + (let ((dest (map (lambda (path) (string-append path > > "/bin")) > > + (list (assoc-ref outputs "out") > > + (assoc-ref outputs > > "censor"))))) > > + (for-each mkdir-p dest) > > + (install-file "lolcat" (car dest)) > > + (install-file "censor" (cadr dest)) > > + #t)))))) > > + (outputs (list "out" "censor")) > > Can’t we keep them both in the same output? Separate outputs are > normally only used when it helps save space, but I don’t think that’s > a > concern here. :-) Of course we can. I initially separated them, because it's really two very different programs put into one git repo, but of course the separation serves no real purpose. > > + (home-page "https://github.com/jaseg/lolcat") > > + (synopsis "Rainbow coloring effect for text console > > display") > > + (description "Lolcat concatenates files and streams like > > regular cat, > ^ > ^ > Maybe @command{cat} and @command{lolcat}. Not sure about @command{lolcat}, since it's at the start of the sentence, but okay. > Could you send an updated patch? > > Thanks, > Ludo’. Patch is attached. Regards, Leo From 42827748e50fe20fdf23ff1137067a7d6c80c87e Mon Sep 17 00:00:00 2001 From: Leo Prikler Date: Wed, 4 Dec 2019 02:46:44 +0100 Subject: [PATCH] gnu: Add lolcat * gnu/packages/games.scm (lolcat): New package. --- gnu/packages/games.scm | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) diff --git a/gnu/packages/games.scm b/gnu/packages/games.scm index ded27c1f63..1f08dd240a 100644 --- a/gnu/packages/games.scm +++ b/gnu/packages/games.scm @@ -502,6 +502,44 @@ cows can think too: all you have to do is run @command{cowthink}. If you're tired of cows, a variety of other ASCII-art messengers are available.") (license license:gpl3+))) +(define-public lolcat + (let ((commit "35dca3d0a381496d7195cd78f5b24aa7b62f2154") + (revision "0")) + (package + (name "lolcat") + (version (git-version "1.0" revision commit)) + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/jaseg/lolcat.git") + (commit commit))) + (sha256 + (base32 + "0jjbkqcc2ikjxd1xgdyv4rb0vsw218181h89f2ywg29ffs3ypd8g")) + (file-name (git-file-name name version)))) + (build-system gnu-build-system) + (arguments + `(#:tests? #f ;; no check target + #:make-flags (list "CC=gcc") + #:phases + (modify-phases %standard-phases + (delete 'bootstrap) + (delete 'configure) + (replace 'install + (lambda* (#:key outputs #:allow-other-keys) + (let ((dest (string-append path "/bin"))) + (mkdir-p dest) + (install-file "lolcat" dest) + #t)))))) + (outputs (list "out" "censor")) + (home-page "https://github.com/jaseg/lolcat") + (synopsis "Rainbow coloring effect for text console display") + (description "@command{lolcat} concatenates files and streams like +regular @command{cat}, but it also adds terminal escape codes between +characters and lines resulting in a rainbow effect.") + (license license:wtfpl2)))) + (define-public freedoom (package (name "freedoom") -- 2.24.0