* [PATCH 0/1] Adding new package: dvtm
@ 2015-08-18 4:55 Leo Famulari
2015-08-18 4:55 ` [PATCH 1/1] gnu: Add dvtm Leo Famulari
0 siblings, 1 reply; 4+ messages in thread
From: Leo Famulari @ 2015-08-18 4:55 UTC (permalink / raw)
To: guix-devel; +Cc: Leo Famulari
My first package!
Does anyone think the build arguments could be written more clearly? Perhaps
with modify-phases? I'm open to suggestions.
Leo Famulari (1):
gnu: Add dvtm.
gnu-system.am | 1 +
gnu/packages/dvtm.scm | 29 +++++++++++++++++++++++++++++
2 files changed, 30 insertions(+)
create mode 100644 gnu/packages/dvtm.scm
--
2.4.3
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH 1/1] gnu: Add dvtm.
2015-08-18 4:55 [PATCH 0/1] Adding new package: dvtm Leo Famulari
@ 2015-08-18 4:55 ` Leo Famulari
2015-08-21 22:35 ` Mark H Weaver
0 siblings, 1 reply; 4+ messages in thread
From: Leo Famulari @ 2015-08-18 4:55 UTC (permalink / raw)
To: guix-devel; +Cc: Leo Famulari
* gnu/packages/dvtm.scm: New file.
* gnu-system.am: Add it.
---
gnu-system.am | 1 +
gnu/packages/dvtm.scm | 29 +++++++++++++++++++++++++++++
2 files changed, 30 insertions(+)
create mode 100644 gnu/packages/dvtm.scm
diff --git a/gnu-system.am b/gnu-system.am
index 9f46f7b..96f6e66 100644
--- a/gnu-system.am
+++ b/gnu-system.am
@@ -87,6 +87,7 @@ GNU_SYSTEM_MODULES = \
gnu/packages/docbook.scm \
gnu/packages/doxygen.scm \
gnu/packages/dunst.scm \
+ gnu/packages/dvtm.scm \
gnu/packages/ebook.scm \
gnu/packages/ed.scm \
gnu/packages/elf.scm \
diff --git a/gnu/packages/dvtm.scm b/gnu/packages/dvtm.scm
new file mode 100644
index 0000000..83ee293
--- /dev/null
+++ b/gnu/packages/dvtm.scm
@@ -0,0 +1,29 @@
+(define-module (gnu packages dvtm)
+ #:use-module (guix packages)
+ #:use-module (guix download)
+ #:use-module (guix build-system gnu)
+ #:use-module (guix licenses)
+ #:use-module (gnu packages ncurses))
+
+(define-public dvtm
+ (package
+ (name "dvtm")
+ (version "0.14")
+ (source (origin
+ (method url-fetch)
+ (uri (string-append "http://www.brain-dump.org/projects/dvtm/dvtm-" version".tar.gz"))
+ (sha256
+ (base32 "0ykl8dz7ivjgdzhmhlgidnp2ffh5gxq9lbg276w7iid4z10v76wa"))))
+ (build-system gnu-build-system)
+ (arguments
+ `(#:make-flags (list (string-append "PREFIX=" (assoc-ref %outputs "out")))
+ #:phases (alist-replace 'configure (lambda _ (setenv "CC" (which "gcc"))) %standard-phases)
+ #:tests? #f))
+
+ (inputs `(("ncurses" ,ncurses)))
+ (synopsis "Tiling window management for the console")
+ (description "dvtm brings the concept of tiling window management,
+popularized by X11-window managers like dwm to the console. As a console window
+manager it tries to make it easy to work with multiple console based programs. ")
+ (home-page "http://www.brain-dump.org/projects/dvtm/")
+ (license (list isc x11))))
--
2.4.3
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH 1/1] gnu: Add dvtm.
2015-08-18 4:55 ` [PATCH 1/1] gnu: Add dvtm Leo Famulari
@ 2015-08-21 22:35 ` Mark H Weaver
2015-08-22 0:46 ` Leo Famulari
0 siblings, 1 reply; 4+ messages in thread
From: Mark H Weaver @ 2015-08-21 22:35 UTC (permalink / raw)
To: Leo Famulari; +Cc: guix-devel
Hi!
Leo Famulari <leo@famulari.name> writes:
> * gnu/packages/dvtm.scm: New file.
> * gnu-system.am: Add it.
Please include the Makefile variable being changed, like this:
* gnu-system.am (GNU_SYSTEM_MODULES): Add it.
> diff --git a/gnu/packages/dvtm.scm b/gnu/packages/dvtm.scm
> new file mode 100644
> index 0000000..83ee293
> --- /dev/null
> +++ b/gnu/packages/dvtm.scm
> @@ -0,0 +1,29 @@
> +(define-module (gnu packages dvtm)
This new file needs the same header as our other source files, but with
only your own copyright notice on top.
> + #:use-module (guix packages)
> + #:use-module (guix download)
> + #:use-module (guix build-system gnu)
> + #:use-module (guix licenses)
> + #:use-module (gnu packages ncurses))
> +
> +(define-public dvtm
> + (package
> + (name "dvtm")
> + (version "0.14")
> + (source (origin
> + (method url-fetch)
Please don't use any tabs in *.scm files.
> + (uri (string-append "http://www.brain-dump.org/projects/dvtm/dvtm-" version".tar.gz"))
Please keep all lines in *.scm files to 80 columns or less. Also, there
should be a space after "version".
> + (sha256
> + (base32 "0ykl8dz7ivjgdzhmhlgidnp2ffh5gxq9lbg276w7iid4z10v76wa"))))
> + (build-system gnu-build-system)
> + (arguments
> + `(#:make-flags (list (string-append "PREFIX=" (assoc-ref %outputs "out")))
"(arguments" should be lined up with "(build-system", and the "`" should
be below the 'a'.
> + #:phases (alist-replace 'configure (lambda _ (setenv "CC" (which "gcc"))) %standard-phases)
You should be able to remove this line and simply add "CC=gcc" to the
make flags.
> + #:tests? #f))
Please add a comment saying why tests are disabled. It could be as
simple as:
#:tests? #f)) ; no test suite
> +
> + (inputs `(("ncurses" ,ncurses)))
> + (synopsis "Tiling window management for the console")
> + (description "dvtm brings the concept of tiling window management,
> +popularized by X11-window managers like dwm to the console. As a console window
> +manager it tries to make it easy to work with multiple console based programs. ")
There should probably be a comma after "dwm" here. Please remove the
extraneous spaces at the end of the description, and wrap to fit in 80
columns.
> + (home-page "http://www.brain-dump.org/projects/dvtm/")
> + (license (list isc x11))))
When there is more than one license, we add a comment above the
'license' field explaining the license situation. We need to do this
because the meaning of our license lists is ambiguous: it might mean
dual-licensing, or it might mean that some of the code is under one
license and some is under another.
Also, it should be the 'expat' license, not the 'x11' license. They are
both often ambiguously called the "mit" license, and are very similar,
so it's a common mistake.
Can you send an updated patch?
Thanks,
Mark
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH 1/1] gnu: Add dvtm.
2015-08-21 22:35 ` Mark H Weaver
@ 2015-08-22 0:46 ` Leo Famulari
0 siblings, 0 replies; 4+ messages in thread
From: Leo Famulari @ 2015-08-22 0:46 UTC (permalink / raw)
To: Mark H Weaver; +Cc: guix-devel
Hello,
Thanks for your detailed critique of my first patch!
On Fri, Aug 21, 2015, at 18:35, Mark H Weaver wrote:
> Please include the Makefile variable being changed, like this:
>
> * gnu-system.am (GNU_SYSTEM_MODULES): Add it.
Done.
> This new file needs the same header as our other source files, but with
> only your own copyright notice on top.
Done.
> Please don't use any tabs in *.scm files.
All the tabs are gone.
I'm new to scheme so I tried to follow Riastradh's Lisp Style Rules, as
suggested in guix docs section 7.4.4 (Coding Style). Basically, I just
used C-M-q in vanilla emacs but I guess that that is not enough. I will
have to read more code and configure my editor more carefully...
> Please keep all lines in *.scm files to 80 columns or less. Also, there
> should be a space after "version".
Done.
> "(arguments" should be lined up with "(build-system", and the "`" should
> be below the 'a'.
Done.
> > + #:phases (alist-replace 'configure (lambda _ (setenv "CC" (which "gcc"))) %standard-phases)
>
> You should be able to remove this line and simply add "CC=gcc" to the
> make flags.
I'm glad you told me this. That line was copy-pasted. I've replaced the
part that skipped configure and check using modify-phases, which I find
much clearer.
> Please add a comment saying why tests are disabled. It could be as
> simple as:
>
> #:tests? #f)) ; no test suite
Done.
> > + (description "dvtm brings the concept of tiling window management,
> > +popularized by X11-window managers like dwm to the console. As a console window
> > +manager it tries to make it easy to work with multiple console based programs. ")
>
> There should probably be a comma after "dwm" here. Please remove the
> extraneous spaces at the end of the description, and wrap to fit in 80
> columns.
I copied this description verbatim from the project's home page. Think I
should file a bug upstream? ;)
I hadn't noticed the error but now it bugs me, so I've made the change.
Trailing whitespace removed.
> > + (home-page "http://www.brain-dump.org/projects/dvtm/")
> > + (license (list isc x11))))
>
> When there is more than one license, we add a comment above the
> 'license' field explaining the license situation. We need to do this
> because the meaning of our license lists is ambiguous: it might mean
> dual-licensing, or it might mean that some of the code is under one
> license and some is under another.
>
> Also, it should be the 'expat' license, not the 'x11' license. They are
> both often ambiguously called the "mit" license, and are very similar,
> so it's a common mistake.
Done.
> Can you send an updated patch?
It follows this email.
Thanks for your help. Please let know if there are problems with the new
revision.
Leo
On Fri, Aug 21, 2015, at 18:35, Mark H Weaver wrote:
> Hi!
>
> Leo Famulari <leo@famulari.name> writes:
> > * gnu/packages/dvtm.scm: New file.
> > * gnu-system.am: Add it.
>
> Please include the Makefile variable being changed, like this:
>
> * gnu-system.am (GNU_SYSTEM_MODULES): Add it.
>
> > diff --git a/gnu/packages/dvtm.scm b/gnu/packages/dvtm.scm
> > new file mode 100644
> > index 0000000..83ee293
> > --- /dev/null
> > +++ b/gnu/packages/dvtm.scm
> > @@ -0,0 +1,29 @@
> > +(define-module (gnu packages dvtm)
>
> This new file needs the same header as our other source files, but with
> only your own copyright notice on top.
>
> > + #:use-module (guix packages)
> > + #:use-module (guix download)
> > + #:use-module (guix build-system gnu)
> > + #:use-module (guix licenses)
> > + #:use-module (gnu packages ncurses))
> > +
> > +(define-public dvtm
> > + (package
> > + (name "dvtm")
> > + (version "0.14")
> > + (source (origin
> > + (method url-fetch)
>
> Please don't use any tabs in *.scm files.
>
> > + (uri (string-append "http://www.brain-dump.org/projects/dvtm/dvtm-" version".tar.gz"))
>
> Please keep all lines in *.scm files to 80 columns or less. Also, there
> should be a space after "version".
>
> > + (sha256
> > + (base32 "0ykl8dz7ivjgdzhmhlgidnp2ffh5gxq9lbg276w7iid4z10v76wa"))))
> > + (build-system gnu-build-system)
> > + (arguments
> > + `(#:make-flags (list (string-append "PREFIX=" (assoc-ref %outputs "out")))
>
> "(arguments" should be lined up with "(build-system", and the "`" should
> be below the 'a'.
>
> > + #:phases (alist-replace 'configure (lambda _ (setenv "CC" (which "gcc"))) %standard-phases)
>
> You should be able to remove this line and simply add "CC=gcc" to the
> make flags.
>
> > + #:tests? #f))
>
> Please add a comment saying why tests are disabled. It could be as
> simple as:
>
> #:tests? #f)) ; no test suite
>
> > +
> > + (inputs `(("ncurses" ,ncurses)))
> > + (synopsis "Tiling window management for the console")
> > + (description "dvtm brings the concept of tiling window management,
> > +popularized by X11-window managers like dwm to the console. As a console window
> > +manager it tries to make it easy to work with multiple console based programs. ")
>
> There should probably be a comma after "dwm" here. Please remove the
> extraneous spaces at the end of the description, and wrap to fit in 80
> columns.
>
> > + (home-page "http://www.brain-dump.org/projects/dvtm/")
> > + (license (list isc x11))))
>
> When there is more than one license, we add a comment above the
> 'license' field explaining the license situation. We need to do this
> because the meaning of our license lists is ambiguous: it might mean
> dual-licensing, or it might mean that some of the code is under one
> license and some is under another.
>
> Also, it should be the 'expat' license, not the 'x11' license. They are
> both often ambiguously called the "mit" license, and are very similar,
> so it's a common mistake.
>
> Can you send an updated patch?
>
> Thanks,
> Mark
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2015-08-22 0:46 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-08-18 4:55 [PATCH 0/1] Adding new package: dvtm Leo Famulari
2015-08-18 4:55 ` [PATCH 1/1] gnu: Add dvtm Leo Famulari
2015-08-21 22:35 ` Mark H Weaver
2015-08-22 0:46 ` Leo Famulari
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.