* [bug#37603] [PATCH] gnu: Add aha.
@ 2019-10-03 14:15 Wiktor Żelazny
2019-10-03 14:47 ` Tobias Geerinckx-Rice via Guix-patches via
0 siblings, 1 reply; 3+ messages in thread
From: Wiktor Żelazny @ 2019-10-03 14:15 UTC (permalink / raw)
To: 37603
From: Wiktor Żelazny <wzelazny@vurv.cz>
* gnu/packages/textutils.scm (aha): new variable.
---
Hi, This is the first time that I’m submitting something that uses the
git-fetch method. I tried to follow the manual. Unfortunately, it does
not explain the role of this "0.9" string. I noticed that other
contributors use various values. I left it at "0.9".
gnu/packages/textutils.scm | 30 ++++++++++++++++++++++++++++++
1 file changed, 30 insertions(+)
diff --git a/gnu/packages/textutils.scm b/gnu/packages/textutils.scm
index 79cf172179..1bf5a4fb1b 100644
--- a/gnu/packages/textutils.scm
+++ b/gnu/packages/textutils.scm
@@ -17,6 +17,7 @@
;;; Copyright © 2018 Pierre Neidhardt <mail@ambrevar.xyz>
;;; Copyright © 2018 Meiyo Peng <meiyo.peng@gmail.com>
;;; Copyright © 2019 Yoshinori Arai <kumagusu08@gmail.com>
+;;; Copyright © 2019 Wiktor Żelazny <wzelazny@vurv.cz>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -1011,3 +1012,32 @@ instance one can add new syntax elements to markdown, etc.
This package provides Python bindings.")
(license license:bsd-3)))
+
+(define-public aha
+ (let ((commit "2592da4330b4df6d482a631f4a35543b96f4744d")
+ (revision "1")) ;Guix package revision
+ (package
+ (name "aha")
+ (version (git-version "0.9" revision commit))
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "git://github.com/theZiz/aha.git")
+ (commit commit)))
+ (sha256
+ (base32
+ "0fq81ibxqg27b3860wmqd4zym2mymkr7sgvfhsyl0kb7ck367w4q"))
+ (file-name (git-file-name name version))))
+ (build-system gnu-build-system)
+ (arguments
+ '(#:phases (modify-phases %standard-phases (delete 'configure))
+ #:make-flags (list "CC=gcc"
+ (string-append "PREFIX="
+ (assoc-ref %outputs "out")))
+ #:tests? #f)) ; no check target
+ (home-page "https://github.com/theZiz/aha")
+ (synopsis "Ansi HTML Adapter")
+ (description "@code{aha} converts ANSI escape sequences of a Unix terminal
+to HTML code.")
+ (license (list license:lgpl2.0+ license:mpl1.1)))))
--
2.23.0
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [bug#37603] [PATCH] gnu: Add aha.
2019-10-03 14:15 [bug#37603] [PATCH] gnu: Add aha Wiktor Żelazny
@ 2019-10-03 14:47 ` Tobias Geerinckx-Rice via Guix-patches via
2019-10-04 13:18 ` Wiktor Żelazny
0 siblings, 1 reply; 3+ messages in thread
From: Tobias Geerinckx-Rice via Guix-patches via @ 2019-10-03 14:47 UTC (permalink / raw)
To: Wiktor Żelazny; +Cc: 37603
[-- Attachment #1: Type: text/plain, Size: 1496 bytes --]
Wiktor,
Thanks for the patch! This isn't a review, just an answer to your
question:
Wiktor Żelazny 写道:
> Hi, This is the first time that I’m submitting something that
> uses the
> git-fetch method. I tried to follow the manual. Unfortunately,
> it does
> not explain the role of this "0.9" string. I noticed that other
> contributors use various values. I left it at "0.9".
It's not a random value; it's the last ‘real’ release, think of it
as ‘release 0.9 + some more commits that were needed for some
reason’. If the project has never seen a release, ‘0.0.0’ is
used. You'll find that this is quite common, too.
At https://github.com/theZiz/aha/releases, we can see that the
last release before this commit was ‘0.5’, so that's what you
should use.
However: we prefer packaging releases, not arbitrary commits. Why
not package 0.5? If it's because it's old (it is) and missing
cool features, consider asking the author to cut a new release.
Whatever the case, please note the reason in a comment: ‘The last
release 0.5 is missing the vital foo feature and/or crashes on
Fridays’.
Since I'm here (still not a review! :-):
> + (revision "1")) ;Guix package revision
I know you probably copied this from elsewhere, but don't think
this comment adds anything.
> + (url "git://github.com/theZiz/aha.git")
Please use https:// instead of git://.
Kind regards,
T G-R
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* [bug#37603] [PATCH] gnu: Add aha.
2019-10-03 14:47 ` Tobias Geerinckx-Rice via Guix-patches via
@ 2019-10-04 13:18 ` Wiktor Żelazny
0 siblings, 0 replies; 3+ messages in thread
From: Wiktor Żelazny @ 2019-10-04 13:18 UTC (permalink / raw)
To: 37603
[-- Attachment #1: Type: text/plain, Size: 457 bytes --]
On Thu, Oct 03, 2019 at 04:47:07PM +0200, Tobias Geerinckx-Rice wrote:
> Wiktor Żelazny 写道:
>
> > I tried to follow the manual. Unfortunately, it does not explain the
> > role of this "0.9" string.
>
> It's not a random value; it's the last ‘real’ release,
Hi Tobias,
Thank you for this explanation and for the other remarks. I noted them
down for future reference. The amended patch is on the way.
Have a nice weekend,
WŻ
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 963 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2019-10-04 13:22 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-10-03 14:15 [bug#37603] [PATCH] gnu: Add aha Wiktor Żelazny
2019-10-03 14:47 ` Tobias Geerinckx-Rice via Guix-patches via
2019-10-04 13:18 ` Wiktor Żelazny
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).