From: Eric Bavier <ericbavier@gmail.com>
To: 宋文武 <iyzsong@gmail.com>
Cc: guix-devel@gnu.org
Subject: Re: [PATCH] gnu: Add Glulxe.
Date: Tue, 18 Nov 2014 10:45:42 -0600 [thread overview]
Message-ID: <874mtwv4nd.fsf@gmail.com> (raw)
In-Reply-To: <1416326481-2572-1-git-send-email-iyzsong@gmail.com>
宋文武 writes:
> * gnu/packages/games.scm (glkterm, glulxe): New variables.
> ---
> gnu/packages/games.scm | 79 ++++++++++++++++++++++++++++++++++++++++++++++++++
> 1 file changed, 79 insertions(+)
>
> diff --git a/gnu/packages/games.scm b/gnu/packages/games.scm
> index c9bb678..5859cbc 100644
> --- a/gnu/packages/games.scm
> +++ b/gnu/packages/games.scm
> @@ -733,3 +733,82 @@ single player. Mods and texture packs allow players to personalize the game
> in different ways.")
> (home-page "http://minetest.net")
> (license license:lgpl2.1+)))
> +
> +(define glkterm
> + (package
> + (name "glkterm")
> + (version "1.0.4")
> + (source
> + (origin
> + (method url-fetch)
> + (uri (string-append "http://www.ifarchive.org/if-archive/programming/"
> + "glk/implementations/glkterm-104.tar.gz"))
> + (sha256
> + (base32
> + "0zlj9nlnkdlvgbiliczinirqygiq8ikg5hzh5vgcmnpg9pvnwga7"))))
> + (build-system gnu-build-system)
> + (propagated-inputs `(("ncurses" ,ncurses)))
Could you add a comment saying why ncurses needs to be propagated?
> + (arguments
> + '(#:tests? #f ; no check target
> + #:phases
> + (alist-replace
> + 'install
> + (lambda* (#:key outputs #:allow-other-keys)
> + (let ((out (assoc-ref outputs "out")))
> + (mkdir out)
> + (mkdir (string-append out "/include"))
> + (copy-file "glk.h" (string-append out "/include/glk.h"))
> + (copy-file "glkstart.h" (string-append out "/include/glkstart.h"))
> + (copy-file "gi_blorb.h" (string-append out "/include/gi_blorb.h"))
> + (copy-file "gi_dispa.h" (string-append out "/include/gi_dispa.h"))
> + (copy-file "Make.glkterm" (string-append out "/include/Make.glkterm"))
> + (mkdir (string-append out "/lib"))
> + (copy-file "libglkterm.a" (string-append out "/lib/libglkterm.a"))))
This is a bit terse, IMHO. Perhaps something like:
(let* ((out (assoc-ref outputs "out"))
(inc (string-append out "/include")))
(begin
(mkdir-p inc)
(for-each
(lambda (f) (copy-file f (string-append inc "/" f)))
'("glk.h" "glkstart.h" "gi_blorb.h" "gi_dispa.h" "Make.glkterm"))
(mkdir-p lib)
(copy-file "libglkterm.a" (string-append out "/lib/libglkterm.a"))))
> + (alist-delete 'configure %standard-phases))))
> + (home-page "http://www.eblong.com/zarf/glk/")
> + (synopsis "Curses.h Implementation of the Glk API")
"Curses implementation of the Glk API"?
Thanks!
--
Eric Bavier
Please avoid sending me Word or PowerPoint attachments.
See http://www.gnu.org/philosophy/no-word-attachments.html
next prev parent reply other threads:[~2014-11-18 16:44 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-11-18 16:01 [PATCH] gnu: Add Glulxe 宋文武
2014-11-18 16:45 ` Eric Bavier [this message]
2014-11-19 11:57 ` 宋文武
2014-11-19 15:49 ` Eric Bavier
2014-12-03 5:10 ` Mark H Weaver
2014-12-03 11:27 ` 宋文武
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=874mtwv4nd.fsf@gmail.com \
--to=ericbavier@gmail.com \
--cc=guix-devel@gnu.org \
--cc=iyzsong@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.