diff --git a/srcpkgs/bc/bc.rshlibs b/srcpkgs/bc/bc.rshlibs index 631aa1dda40..d835dcf1b54 100644 --- a/srcpkgs/bc/bc.rshlibs +++ b/srcpkgs/bc/bc.rshlibs @@ -1 +1,2 @@ libc.so.6 +libreadline.so.6 diff --git a/srcpkgs/bc/patches/bc-1.06-info-dir-entry_from_arch.patch b/srcpkgs/bc/patches/bc-1.06-info-dir-entry_from_arch.patch new file mode 100644 index 00000000000..c9bcc06f0fe --- /dev/null +++ b/srcpkgs/bc/patches/bc-1.06-info-dir-entry_from_arch.patch @@ -0,0 +1,11 @@ +--- doc/bc.info.info-dir-entry 2000-10-03 20:36:31.000000000 +0200 ++++ doc/bc.info 2003-01-06 14:07:40.000000000 +0100 +@@ -1,5 +1,8 @@ + This is bc.info, produced by makeinfo version 4.0 from bc.texi. + ++START-INFO-DIR-ENTRY ++* bc: (bc). Arbritrary precision calculator language. ++END-INFO-DIR-ENTRY +  + File: bc.info, Node: Top, Next: Introduction, Prev: (dir), Up: (dir) + diff --git a/srcpkgs/bc/patches/build-fix_from_arch.patch b/srcpkgs/bc/patches/build-fix_from_arch.patch new file mode 100644 index 00000000000..21df690947c --- /dev/null +++ b/srcpkgs/bc/patches/build-fix_from_arch.patch @@ -0,0 +1,13 @@ +diff -wbBur bc-1.06/bc/scan.l bc-1.06.my/bc/scan.l +--- bc/scan.l 2000-09-13 22:25:47 +0400 ++++ bc/scan.l 2006-12-25 12:39:34 +0300 +@@ -143,7 +143,9 @@ + + /* Definitions for readline access. */ + extern FILE *rl_instream; ++#if 0 + _PROTOTYPE(char *readline, (char *)); ++#endif + + /* rl_input puts upto MAX characters into BUF with the number put in + BUF placed in *RESULT. If the yy input file is the same as diff --git a/srcpkgs/bc/template b/srcpkgs/bc/template index f1679c5d063..6a1aac78a29 100644 --- a/srcpkgs/bc/template +++ b/srcpkgs/bc/template @@ -1,8 +1,10 @@ # Template file for 'bc' pkgname=bc version=1.06 +revision=1 distfiles="${GNU_SITE}/${pkgname}/${pkgname}-${version}.tar.gz" build_style=gnu-configure +configure_args="--with-readline" short_desc="An arbitrary precision numeric processing language." maintainer="davehome " homepage="http://www.gnu.org/software/${pkgname}/" @@ -21,3 +23,9 @@ long_desc=" language." Add_dependency build flex +Add_dependency build readline-devel + +do_build() +{ + make ${makejobs} LEX="flex -I" +}