From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ricardo Wurmus Subject: Re: help with setenv of perl-curses Date: Wed, 15 Jun 2016 11:19:21 +0200 Message-ID: References: <20160615012316.GA21204@khazad-dum> Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:55190) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bD6z0-0006Jm-4u for guix-devel@gnu.org; Wed, 15 Jun 2016 05:19:35 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bD6yw-0004Eu-VI for guix-devel@gnu.org; Wed, 15 Jun 2016 05:19:34 -0400 Received: from leda.bbbm.mdc-berlin.de ([141.80.25.31]:56468) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bD6yw-0004Cw-KK for guix-devel@gnu.org; Wed, 15 Jun 2016 05:19:30 -0400 In-Reply-To: <20160615012316.GA21204@khazad-dum> 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 ng0 writes: > This is what I have so far, after many tries. > There was a generation which had a let for the ncurses in the phase, > but I seem not to be able to get the CURSES_CFLAGS and CURSES_CFLAGS > to pass along right. What makes you think that? Do you get an error? > (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_LDFLAGS" > (string-append "-L" (assoc-ref i= nputs "ncurses") > "/lib/ncurses.so"= "-lncurses")) > (setenv "CURSES_CFLAGS" > (string-append "-I" (assoc-ref i= nputs "ncurses") > "/include"))))))) Looking at Makefile.PL you may need to set even more variables. Code in Makefile.PL tries to detect the type of curses library by looking at FHS paths. Try also setting CURSES_LIBTYPE to =E2=80=9Cncurses=E2=80=9D. > (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 libr= ary.") > (license (package-license perl)))) > > ;;export CURSES_LDFLAGS=3D"-L/usr/lib/ncurses -lncurses" > ;;export CURSES_CFLAGS=3D"-I/usr/include/ncurses" ~~ Ricardo