Making cdecl compile with readline.

svn path=/nixpkgs/trunk/; revision=14941
This commit is contained in:
Lluís Batlle i Rossell 2009-04-08 10:09:14 +00:00
parent 5ebbf90878
commit 8ddd79ca2e
3 changed files with 5 additions and 5 deletions

View file

@ -7,10 +7,10 @@ index 9e85686..b8e6e02 100644
# add -DUSE_READLINE To compile in support for the GNU readline library.
-CFLAGS= -s -O2 -DUSE_READLINE
+
+CFLAGS=-DUSE_READLINE
CC= gcc
-LIBS= -lreadline -ltermcap
+
+LIBS= -lreadline -lncursesw
ALLFILES= makefile cdgram.y cdlex.l cdecl.c cdecl.1 testset testset++
-BINDIR= /usr/bin
-MANDIR= /usr/man/man1

View file

@ -1,4 +1,4 @@
{stdenv, fetchurl, yacc, flex, readline}:
{stdenv, fetchurl, yacc, flex, readline, ncurses}:
stdenv.mkDerivation {
name = "cdecl-2.5";
@ -11,7 +11,7 @@ stdenv.mkDerivation {
preBuild = "
makeFlags=\"PREFIX=$out\"
";
buildInputs = [yacc flex readline];
buildInputs = [yacc flex readline ncurses];
meta = {
description = "Translator English -- C/C++ declarations";

View file

@ -480,7 +480,7 @@ let
};
cdecl = import ../development/tools/cdecl {
inherit fetchurl stdenv yacc flex readline;
inherit fetchurl stdenv yacc flex readline ncurses;
};
cdrdao = import ../tools/cd-dvd/cdrdao {