From mboxrd@z Thu Jan 1 00:00:00 1970 From: ng0 Subject: Re: help with setenv of perl-curses Date: Sat, 23 Jul 2016 13:18:10 +0000 Message-ID: <87d1m4sdbh.fsf@we.make.ritual.n0.is> References: <20160615012316.GA21204@khazad-dum> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:33873) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bQwou-0003Ze-2E for guix-devel@gnu.org; Sat, 23 Jul 2016 09:18:21 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bQwor-00041T-Mq for guix-devel@gnu.org; Sat, 23 Jul 2016 09:18:18 -0400 Received: from mithlond.libertad.in-berlin.de ([2001:67c:1400:2490::1]:54767 helo=beleriand.n0.is) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bQwor-000414-7y for guix-devel@gnu.org; Sat, 23 Jul 2016 09:18:17 -0400 In-Reply-To: (Ricardo Wurmus's message of "Wed, 15 Jun 2016 11:19:21 +0200") 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: Ricardo Wurmus Cc: guix-devel@gnu.org Possibly fixed with this patch. Things I have not addressed so far and require input on: How to do this "perl Makefile.PL PANELS MENUS FORMS" in the setup. Successfully built does not mean functional in all cases, so I will build the package I needed this for now and see if it changed. >From 32d65d360b07d8643fffd21e64767e0219cd9b4c Mon Sep 17 00:00:00 2001 From: ng0 Date: Sat, 23 Jul 2016 13:03:22 +0000 Subject: [PATCH] gnu: Add perl-curses. * gnu/packages/perl.scm (perl-curses): New variable. --- gnu/packages/perl.scm | 56 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 56 insertions(+) diff --git a/gnu/packages/perl.scm b/gnu/packages/perl.scm index f42abee..552cee1 100644 --- a/gnu/packages/perl.scm +++ b/gnu/packages/perl.scm @@ -29,6 +29,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) @@ -1097,6 +1098,61 @@ contained in Appendix A of FIPS Publication 181, \"Standard for Automated Password Generator\".") (license (package-license perl)))) +(define-public perl-curses + (package + (name "perl-curses") + (version "1.34") + (source + (origin + (method url-fetch) + (uri (string-append + "https://cpan.metacpan.org/authors/id/G/GI/GIRAFFED/Curses-" + version + ".tar.gz")) + (sha256 + (base32 + "0arj9llgwim4lilgxc1r3dyqw40210yhzfghbypnbqkbjkal93l0")))) + (build-system perl-build-system) + (inputs `(("ncurses" ,ncurses))) + (arguments + `(#:phases + (modify-phases %standard-phases + (add-before + 'configure 'set-curses-ldflags + (lambda* (#:key inputs #:allow-other-keys) + (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 "https://search.cpan.org/dist/Curses") + (synopsis + "Terminal screen handling and optimization") + (description + "Curses is the interface between Perl and your system's curses library.") + (license (package-license perl)))) + + (define-public perl-czplib (package (name "perl-czplib") -- 2.9.1 -- ♥Ⓐ ng0 – http://we.make.ritual.n0.is For non-prism friendly talk find me on http://www.psyced.org SecuShare – http://secushare.org