From mboxrd@z Thu Jan 1 00:00:00 1970 From: Efraim Flashner Subject: Re: [PATCH][v2] gnu: Add perl-curses Date: Tue, 6 Sep 2016 20:36:00 +0300 Message-ID: <20160906173600.GD28032@macbook42.flashner.co.il> References: <20160615012316.GA21204@khazad-dum> <87d1m4sdbh.fsf@we.make.ritual.n0.is> <20160724052518.GA4905@debian-netbook> <8760regh14.fsf@we.make.ritual.n0.is> <871t1k51uj.fsf@we.make.ritual.n0.is> <87k2fcev8k.fsf@we.make.ritual.n0.is> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="X0cz4bGbQuRbxrVl" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:51782) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bhKID-0005J4-U9 for guix-devel@gnu.org; Tue, 06 Sep 2016 13:36:21 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bhKI6-0001ep-GO for guix-devel@gnu.org; Tue, 06 Sep 2016 13:36:16 -0400 Received: from flashner.co.il ([178.62.234.194]:39321) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bhKI6-0001cS-4N for guix-devel@gnu.org; Tue, 06 Sep 2016 13:36:10 -0400 Content-Disposition: inline In-Reply-To: <87k2fcev8k.fsf@we.make.ritual.n0.is> List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: ng0 Cc: guix-devel@gnu.org --X0cz4bGbQuRbxrVl Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Aug 19, 2016 at 01:36:27PM +0000, ng0 wrote: > Okay, when I build this without "FORMS" it succeeds. Works for me. >=20 > From a72020974650298e89b82abda8e07f722f7cf32c Mon Sep 17 00:00:00 2001 > From: ng0 > Date: Fri, 19 Aug 2016 13:13:42 +0000 > Subject: [PATCH 1/2] gnu: Add perl-curses. >=20 > * gnu/packages/perl.scm (perl-curses): New variable. > --- > gnu/packages/perl.scm | 52 +++++++++++++++++++++++++++++++++++++++++++++= ++++++ > 1 file changed, 52 insertions(+) >=20 > diff --git a/gnu/packages/perl.scm b/gnu/packages/perl.scm > index aef92f4..170eacd 100644 > --- a/gnu/packages/perl.scm > +++ b/gnu/packages/perl.scm > @@ -30,6 +30,7 @@ > (define-module (gnu packages perl) > #:use-module (guix licenses) > #:use-module (gnu packages) > + #:use-module (gnu packages ncurses) > #:use-module (guix packages) > #:use-module (guix download) > #:use-module (guix build-system gnu) > @@ -1138,6 +1139,57 @@ contained in Appendix A of FIPS Publication 181, \= "Standard for Automated > Password Generator\".") > (license (package-license perl)))) > =20 > +(define-public perl-curses > + (package > + (name "perl-curses") > + (version "1.36") > + (source (origin > + (method url-fetch) > + (uri (string-append "mirror://cpan/authors/id/G/GI/GIRAFFE= D/" > + "Curses-" version ".tar.gz")) > + (sha256 > + (base32 > + "0r6xd9wr0c25rr28zixhqipak575zqsfb7r7f2693i9il1dpj554"))= )) > + (build-system perl-build-system) > + (inputs > + `(("ncurses" ,ncurses))) > + (arguments > + `(#:make-maker-flags (list "PANELS" "MENUS") ; FORMS seems faulty. > + #:phases > + (modify-phases %standard-phases > + (add-before 'configure 'set-curses-ldflags > + (lambda* (#:key inputs #:allow-other-keys) you'd do well with a (let ... here for all of your (assoc-ref inputs "ncurs= es"). > + (setenv "CURSES_LIBTYPE" "ncurses") > + (setenv "CURSES_CFLAGS" > + (string-append "-I" (assoc-ref inputs "ncurses") > + "/include")) > + (setenv "CURSES_PANEL_CFLAGS" > + (string-append "-I" (assoc-ref inputs "ncurses") > + "/include")) > + (setenv "CURSES_MENU_CFLAGS" > + (string-append "-I" (assoc-ref inputs "ncurses") > + "/include")) > + (setenv "CURSES_FORM_CFLAGS" > + (string-append "-I" (assoc-ref inputs "ncurses") > + "/include")) > + (setenv "CURSES_LDFLAGS" > + (string-append "-L" (assoc-ref inputs "ncurses") > + "/lib -lncurses")) > + (setenv "CURSES_PANEL_LDFLAGS" > + (string-append "-L" (assoc-ref inputs "ncurses") > + "/lib -lpanel")) > + (setenv "CURSES_MENU_LDFLAGS" > + (string-append "-L" (assoc-ref inputs "ncurses") > + "/lib -lmenu")) > + (setenv "CURSES_FORM_LDFLAGS" > + (string-append "-L" (assoc-ref inputs "ncurses") > + "/lib -lform"))))))) > + (home-page "http://search.cpan.org/dist/Curses") > + (synopsis "Terminal screen handling and optimization") > + (description > + "@code{Curses} is the interface between Perl and the curses library= of your system.") > + (license (package-license perl)))) > + > (define-public perl-czplib > (package > (name "perl-czplib") > --=20 > 2.9.3 >=20 I think this would go better in ncurses.scm than in perl. Can you send an updated patch? Thanks. --=20 Efraim Flashner =D7=90=D7=A4=D7=A8=D7=99=D7=9D = =D7=A4=D7=9C=D7=A9=D7=A0=D7=A8 GPG key =3D A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351 Confidentiality cannot be guaranteed on emails sent or received unencrypted --X0cz4bGbQuRbxrVl Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCgAGBQJXzv6AAAoJEPTB05F+rO6T+PsQAJWGaY8MiD4k+b7+t/qjteBT HEy1Iqhe5RJd09wwpRRMWZ1vc4hit2yBTXiyI7WUDAUCMnNhTHoj5CIyuFPLmHn0 xuwukjzdtVyrC23Q2Jd8uFLqzPFdqadOuybhjfcdV4Yuxy7zmN8M6VrhQ29VIsQn dDAgTN8+uJL323AdaZEzxhMELi3jHewEIfZvA9vil4Mrrkl5HfZ42OrNbCMRuFei aDFpx72oUd2VFb7oLhZGhgwduGx445lyVtEBuvkw+WbKP3+2ykxAeRppyoqh4c28 dDuTVDy6276McxifkmTEvaqrdA/WYb7QHYZXbGf7lMcWO8PXk0qFDORhuzdE1WmR 7luaWadRsCApmJxqjrY6dmXxvT56+2XtU9cJXIFf2RBeroq95/ElEO+3NOLdu+58 jAvmwjDyNAznGODCDDKlXRwrprQgUjzV1XeG3jGSc/QefMEYcuu5dywD4A7YjF0V FIUnoTFMtgYhgi8OeVlv9ozgGtuKwPggGrHauYMuwh7ZXSHj7DczUs5n4UD2oGnq SyjMQ1y57kH0xgee6j+ULysG1e0oSkC0zKP2udfS9Y+HovPrZLYTbJIVqttUAoWE yvpH+h3XIgrOiLfBwb/o4EpWqM9wAh2ergroFgS1deJMP6akE2yfSgTrhLGLj1GF P9vXtfAQV7+GYs9ycnBO =X4Wr -----END PGP SIGNATURE----- --X0cz4bGbQuRbxrVl--