From mboxrd@z Thu Jan 1 00:00:00 1970 From: ng0 Subject: help with setenv of perl-curses Date: Wed, 15 Jun 2016 01:23:16 +0000 Message-ID: <20160615012316.GA21204@khazad-dum> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="oyUTqETQ0mS9luUI" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:45981) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bCzYJ-0001ev-EC for guix-devel@gnu.org; Tue, 14 Jun 2016 21:23:32 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bCzYF-0003pQ-8U for guix-devel@gnu.org; Tue, 14 Jun 2016 21:23:30 -0400 Received: from 93-95-228-168.1984.is ([93.95.228.168]:45870 helo=beleriand.n0.is) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bCzYE-0003p8-QL for guix-devel@gnu.org; Tue, 14 Jun 2016 21:23:27 -0400 Received: by beleriand.n0.is (OpenSMTPD) with ESMTPSA id 45a76797 TLS version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO for ; Wed, 15 Jun 2016 01:23:21 +0000 (UTC) Content-Disposition: inline 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: guix-devel@gnu.org --oyUTqETQ0mS9luUI Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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. (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 input= s "ncurses") "/lib/ncurses.so" "-l= ncurses")) (setenv "CURSES_CFLAGS" (string-append "-I" (assoc-ref input= s "ncurses") "/include"))))))) (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)))) ;;export CURSES_LDFLAGS=3D"-L/usr/lib/ncurses -lncurses" ;;export CURSES_CFLAGS=3D"-I/usr/include/ncurses" -- =E2=99=A5=E2=92=B6 ng0 For non-prism friendly talk find me on psyced.org / loupsycedyglgamf.onion --oyUTqETQ0mS9luUI Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- iF4EARYKAAYFAldgrgQACgkQhhoAchyzrCA0zAEAxCf34StFi8DxoLIjrFOXpa4L QrIUeA9xXDub/1wudkoA/2P5mvhH3C/aoIBWljLTBRO97PFkw8In5jUwIfoizm0I =9zAx -----END PGP SIGNATURE----- --oyUTqETQ0mS9luUI--