From: Efraim Flashner <efraim@flashner.co.il>
To: Marius Bakke <mbakke@fastmail.com>
Cc: guix-devel@gnu.org
Subject: Re: [PATCH 1/2] gnu: Add stfl.
Date: Thu, 10 Nov 2016 19:22:47 +0200 [thread overview]
Message-ID: <20161110172247.GI2348@macbook42.flashner.co.il> (raw)
In-Reply-To: <87y40r9x69.fsf@kirby.i-did-not-set--mail-host-address--so-tickle-me>
[-- Attachment #1: Type: text/plain, Size: 2543 bytes --]
On Thu, Nov 10, 2016 at 03:22:54PM +0000, Marius Bakke wrote:
> Efraim Flashner <efraim@flashner.co.il> writes:
>
> > * gnu/packages/ncurses.scm (stfl): New variable.
> > ---
> > gnu/packages/ncurses.scm | 50 +++++++++++++++++++++++++++++++++++++++++++++++-
> > 1 file changed, 49 insertions(+), 1 deletion(-)
> >
> > + ;; there is no configure script so we get to do it manually
> > + (replace 'configure
> > + (lambda* (#:key outputs #:allow-other-keys)
> > + (substitute* "Makefile"
> > + (("\\$\\(prefix\\)") (assoc-ref outputs "out")))
> > + (setenv "DESTDIR" "")
> > + #t))
>
> Would it work to simply (setenv "prefix" out), instead of substituting?
> Not sure which approach I prefer however, so feel free to disregard this.
>
It turns out it does work. Its also much shorter.
Even better, I figured out how to turn them into make-flags
#:make-flags (list (string-append "prefix=" (assoc-ref %outputs "out"))
"DESTDIR=\"\"")
> > + ;; in our ncurses, the headers are in /include
> > + (add-before 'build 'patch-ncursesw
> > + (lambda _
> > + (substitute* '("stfl_internals.h")
> > + (("ncursesw/") ""))
> > + #t))
> > + (add-after 'install 'install-missing-symlink
> > + (lambda* (#:key outputs #:allow-other-keys)
> > + (let* ((out (assoc-ref outputs "out"))
> > + (lib (string-append out "/lib")))
> > + ;; newsbeuter looks for libstfl.so.0
>
> Perhaps just say "some programs" instead of newsbeuter, since they are
> mostly unrelated.
>
> > + (symlink "libstfl.so"
> > + (string-append lib "/libstfl.so.0"))))))))
> > + (inputs
> > + `(("ncurses" ,ncurses)
> > + ("swig" ,swig)))
>
> Swig should probably be a native-input. Other than that LGTM!
>
I thought the output referred to swig, but it seems not.
> > + (home-page "http://www.clifford.at/stfl/")
> > + (synopsis "Structured terminal forms library")
> > + (description "Stfl is a library which implements a curses-based widget
> > +set for text terminals.")
> > + (license lgpl3+)))
> > --
> > 2.10.2
--
Efraim Flashner <efraim@flashner.co.il> אפרים פלשנר
GPG key = A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351
Confidentiality cannot be guaranteed on emails sent or received unencrypted
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 801 bytes --]
next prev parent reply other threads:[~2016-11-10 17:22 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-11-10 8:27 [PATCH 0/2] Add newsbeuter Efraim Flashner
2016-11-10 8:27 ` [PATCH 1/2] gnu: Add stfl Efraim Flashner
2016-11-10 15:22 ` Marius Bakke
2016-11-10 17:22 ` Efraim Flashner [this message]
2016-11-11 10:18 ` Tobias Geerinckx-Rice
2016-11-11 12:15 ` Efraim Flashner
2016-11-10 8:27 ` [PATCH 2/2] gnu: Add newsbeuter Efraim Flashner
2016-11-10 15:39 ` Marius Bakke
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
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20161110172247.GI2348@macbook42.flashner.co.il \
--to=efraim@flashner.co.il \
--cc=guix-devel@gnu.org \
--cc=mbakke@fastmail.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 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).