Subject: pkg/20773: new pkgsrc: math/bc
To: None <gnats-bugs@gnats.netbsd.org>
From: None <reed@reedmedia.net>
List: netbsd-bugs
Date: 03/17/2003 13:20:10
>Number: 20773
>Category: pkg
>Synopsis: pkgsrc needs dc(1) -- new pkgsrc: math/bc
>Confidential: yes
>Severity: serious
>Priority: medium
>Responsible: pkg-manager
>State: open
>Class: change-request
>Submitter-Id: net
>Arrival-Date: Mon Mar 17 13:21:00 PST 2003
>Closed-Date:
>Last-Modified:
>Originator:
>Release: NetBSD 1.6
>Organization:
http://bsd.reedmedia.net/
>Environment:
System: NetBSD rainier.reedmedia.net 1.6 NetBSD 1.6 (JCR-20020927) #3: Sat Sep 28 13:40:20 PDT 2002 reed@rainier.reedmedia.net:/usr/src/sys/arch/i386/compile/JCR-20020927 i386
Architecture: i386
Machine: i386
>Description:
Please consider adding this provided math/bc package.
It includes dc which is essential for using pkgsrc.
(This doesn't provide any bootstrap for it though.)
>How-To-Repeat:
>Fix:
See http://mail-index.netbsd.org/tech-pkg/2002/11/15/0008.html
for discussion about patches/patch-*
# This is a shell archive. Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file". Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
# math/bc
# math/bc/Makefile
# math/bc/PLIST
# math/bc/distinfo
# math/bc/patches
# math/bc/patches/patch-aa
# math/bc/patches/patch-ab
# math/bc/patches/patch-ac
# math/bc/patches/patch-ad
# math/bc/DESCR
#
echo c - math/bc
mkdir -p math/bc > /dev/null 2>&1
echo x - math/bc/Makefile
sed 's/^X//' >math/bc/Makefile << 'END-of-math/bc/Makefile'
X# $ NetBSD $
X
X# this provides dc(1) which is essential for pkgsrc installations
X
XDISTNAME= bc-1.06
XCATEGORIES= math
XMASTER_SITES= ${MASTER_SITE_GNU:=bc/}
X
XMAINTAINER= packages@netbsd.org
XHOMEPAGE= http://www.gnu.org/software/bc/bc.html
XCOMMENT= An arbitrary precision calculator language
X
XUSE_BUILDLINK2= YES
XGNU_CONFIGURE= YES
X
X.include "../../mk/bsd.prefs.mk"
X
X.if !exists(/usr/bin/flex)
XBUILD_DEPENDS+= flex-*:../../devel/flex
X.endif
X
X.include "../../devel/ncurses/buildlink2.mk"
X.include "../../devel/readline/buildlink2.mk"
X.include "../../mk/texinfo.mk"
X.include "../../mk/bsd.pkg.mk"
END-of-math/bc/Makefile
echo x - math/bc/PLIST
sed 's/^X//' >math/bc/PLIST << 'END-of-math/bc/PLIST'
X@comment $NetBSD$
Xbin/bc
Xbin/dc
X@unexec ${INSTALL_INFO} --delete --info-dir=%D/info %D/info/bc.info
Xinfo/bc.info
X@exec ${INSTALL_INFO} --info-dir=%D/info %D/info/bc.info
X@unexec ${INSTALL_INFO} --delete --info-dir=%D/info %D/info/dc.info
Xinfo/dc.info
X@exec ${INSTALL_INFO} --info-dir=%D/info %D/info/dc.info
Xman/man1/bc.1
Xman/man1/dc.1
END-of-math/bc/PLIST
echo x - math/bc/distinfo
sed 's/^X//' >math/bc/distinfo << 'END-of-math/bc/distinfo'
X$NetBSD$
X
XSHA1 (bc-1.06.tar.gz) = c8f258a7355b40a485007c40865480349c157292
XSize (bc-1.06.tar.gz) = 278926 bytes
XSHA1 (patch-aa) = a544c450bf40fe5aa864d65bc9b296e35e86a5f2
XSHA1 (patch-ab) = 27960c80f704e2a38406cbeda0164641af2545bf
XSHA1 (patch-ac) = b2e3dbb55e08e72a60a0f5631ad5296246fd81bd
XSHA1 (patch-ad) = 9920c42b97b055a5917baec606528e4f0ef1cd85
END-of-math/bc/distinfo
echo c - math/bc/patches
mkdir -p math/bc/patches > /dev/null 2>&1
echo x - math/bc/patches/patch-aa
sed 's/^X//' >math/bc/patches/patch-aa << 'END-of-math/bc/patches/patch-aa'
X+++ doc/bc.info Fri Nov 15 18:16:06 2002
X@@ -1,4 +1,9 @@
X-This is bc.info, produced by makeinfo version 4.0 from bc.texi.
X+This is bc.info, produced by makeinfo version 4.2 from bc.texi.
X+
X+INFO-DIR-SECTION Mathematics
X+START-INFO-DIR-ENTRY
X+* bc: (bc). An arbitrary precision calculator language.
X+END-INFO-DIR-ENTRY
X
X
X File: bc.info, Node: Top, Next: Introduction, Prev: (dir), Up: (dir)
X@@ -971,29 +976,29 @@
X
X
X Tag Table:
X+Node: Top203
X+Node: Introduction492
X+Node: Description653
X+Node: Command Line Options2107
X+Node: Basic Elements2671
X+Node: Numbers2842
X+Node: Variables3605
X+Node: Comments4714
X+Node: Expressions5455
X+Node: About Expressions and Special Variables5735
X+Node: Basic Expressions7471
X+Node: Relational Expressions10412
X+Node: Boolean Expressions11417
X+Node: Precedence11972
X+Node: Special Expressions13132
X+Node: Statements14514
X+Node: Pseudo Statements21139
X+Node: Functions21787
X+Node: Math Library Functions25841
X+Node: Examples26551
X+Node: Readline and Libedit Options28569
X+Node: GNU `bc' and Other Implementations29596
X+Node: Limits34838
X+Node: Environment Variables36091
X
X End Tag Table
END-of-math/bc/patches/patch-aa
echo x - math/bc/patches/patch-ab
sed 's/^X//' >math/bc/patches/patch-ab << 'END-of-math/bc/patches/patch-ab'
X+++ doc/dc.info Fri Nov 15 18:16:01 2002
X@@ -1,4 +1,9 @@
X-This is dc.info, produced by makeinfo version 4.0 from dc.texi.
X+This is dc.info, produced by makeinfo version 4.2 from dc.texi.
X+
X+INFO-DIR-SECTION Mathematics
X+START-INFO-DIR-ENTRY
X+* dc: (dc). A reverse-polish arbitrary precision calculator.
X+END-INFO-DIR-ENTRY
X
X START-INFO-DIR-ENTRY
X * dc: (dc). Arbritrary precision RPN "Desktop Calculator".
X@@ -425,17 +430,17 @@
X
X
X Tag Table:
X+Node: Top1227
X+Node: Introduction1806
X+Node: Invocation3023
X+Node: Printing Commands3867
X+Node: Arithmetic5045
X+Node: Stack Control7958
X+Node: Registers8371
X+Node: Parameters9297
X+Node: Strings10558
X+Node: Status Inquiry13528
X+Node: Miscellaneous14085
X+Node: Reporting bugs15052
X
X End Tag Table
END-of-math/bc/patches/patch-ab
echo x - math/bc/patches/patch-ac
sed 's/^X//' >math/bc/patches/patch-ac << 'END-of-math/bc/patches/patch-ac'
X+++ doc/bc.texi Fri Nov 15 18:15:02 2002
X@@ -4,6 +4,11 @@
X @settitle bc Command Manual
X @c %**end of header
X
X+@dircategory Mathematics
X+@direntry
X+* bc: (bc). An arbitrary precision calculator language.
X+@end direntry
X+
X @c This file has the new style title page commands.
X @c Run `makeinfo' rather than `texinfo-format-buffer'.
X
END-of-math/bc/patches/patch-ac
echo x - math/bc/patches/patch-ad
sed 's/^X//' >math/bc/patches/patch-ad << 'END-of-math/bc/patches/patch-ad'
X+++ doc/dc.texi Fri Nov 15 18:15:47 2002
X@@ -4,6 +4,11 @@
X @settitle dc, an arbitrary precision calculator
X @c %**end of header
X
X+@dircategory Mathematics
X+@direntry
X+* dc: (dc). A reverse-polish arbitrary precision calculator.
X+@end direntry
X+
X @c This file has the new style title page commands.
X @c Run `makeinfo' rather than `texinfo-format-buffer'.
X
END-of-math/bc/patches/patch-ad
echo x - math/bc/DESCR
sed 's/^X//' >math/bc/DESCR << 'END-of-math/bc/DESCR'
XBc is an arbitrary precision calculator language. Syntax is similar
Xto C, but differs in many substantial areas. It supports interactive
Xexecution of statements
X
XIt can also be used as a simple console-based calculator.
X
XThis GNU version of bc contains several extensions beyond traditional
Xbc implementations and the POSIX draft standard.
X
XThis package also includes dc, another arbitrary precision calculator.
XDc is a reverse-polish desk calculator which supports unlimited
Xprecision arithmetic. It also allows you to define and call macros.
X
END-of-math/bc/DESCR
exit
>Release-Note:
>Audit-Trail:
>Unformatted: