summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorP. J. McDermott <pj@pehjota.net>2014-05-07 12:54:18 (EDT)
committer P. J. McDermott <pj@pehjota.net>2014-05-07 12:54:18 (EDT)
commit6b8e4081f0e47ed7926598ce86601e3345041458 (patch)
tree4086db51ca3ab964565c86987b5f4386d6afa1c4
Initial commit.
-rw-r--r--.gitignore11
-rw-r--r--bc-common.pkg/control7
-rw-r--r--bc-common.pkg/docs5
-rw-r--r--bc-doc.pkg/control7
-rw-r--r--bc-doc.pkg/files2
-rw-r--r--bc.pkg/control6
-rw-r--r--bc.pkg/files1
-rwxr-xr-xbuild23
-rw-r--r--changelog5
-rw-r--r--control4
-rw-r--r--copyright146
-rw-r--r--dc.pkg/control10
-rw-r--r--dc.pkg/files1
-rw-r--r--dc.pkg/postinst5
-rw-r--r--dc.pkg/prerm5
-rw-r--r--format1
-rw-r--r--source.mk28
-rw-r--r--substvars4
18 files changed, 271 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..213a9bf
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,11 @@
+# Swap and backup files
+.*.sw*
+.sw*
+*~
+Session.vim
+
+# Source archives
+*-*.orig.tar.*
+
+# Work area
+tmp/
diff --git a/bc-common.pkg/control b/bc-common.pkg/control
new file mode 100644
index 0000000..28dbb41
--- /dev/null
+++ b/bc-common.pkg/control
@@ -0,0 +1,7 @@
+Architecture: all
+Platform: all
+Description: Arbitrary precision calculator language - common files
+ ${Common-Description}
+ .
+ This package provides documentation for the bc source package.
+
diff --git a/bc-common.pkg/docs b/bc-common.pkg/docs
new file mode 100644
index 0000000..a7e2214
--- /dev/null
+++ b/bc-common.pkg/docs
@@ -0,0 +1,5 @@
+src/AUTHORS
+src/ChangeLog
+src/FAQ
+src/NEWS
+src/README
diff --git a/bc-doc.pkg/control b/bc-doc.pkg/control
new file mode 100644
index 0000000..ccdafa9
--- /dev/null
+++ b/bc-doc.pkg/control
@@ -0,0 +1,7 @@
+Architecture: all
+Platform: all
+Depends: bc-common (= ${Binary-Version})
+Description: Arbitrary precision calculator language - documentation
+ ${Common-Description}
+ .
+ This package provides documentation for GNU bc.
diff --git a/bc-doc.pkg/files b/bc-doc.pkg/files
new file mode 100644
index 0000000..6da7b02
--- /dev/null
+++ b/bc-doc.pkg/files
@@ -0,0 +1,2 @@
+/usr/share/info
+/usr/share/man
diff --git a/bc.pkg/control b/bc.pkg/control
new file mode 100644
index 0000000..9941f87
--- /dev/null
+++ b/bc.pkg/control
@@ -0,0 +1,6 @@
+Architecture: any
+Platform: all
+Depends: bc-common (= ${Binary-Version}),
+ libreadline.6, libncurses.5, libtinfo.5
+Description: Arbitrary precision calculator language
+ ${Common-Description}
diff --git a/bc.pkg/files b/bc.pkg/files
new file mode 100644
index 0000000..b809694
--- /dev/null
+++ b/bc.pkg/files
@@ -0,0 +1 @@
+/usr/bin/bc
diff --git a/build b/build
new file mode 100755
index 0000000..21410e4
--- /dev/null
+++ b/build
@@ -0,0 +1,23 @@
+#!/usr/bin/make -f
+
+include ../source.mk
+
+nop:
+ @:
+
+configure:
+ oh-autoconfigure -- --with-readline
+ touch $@
+
+build: configure
+ oh-autobuild
+ touch $@
+
+install: build
+ oh-autoinstall
+ mv dest/usr/bin/dc dest/usr/bin/dc.gnu
+ # Remove GNU Info index.
+ rm -f dest/usr/share/info/dir
+ oh-fixperms
+ oh-strip
+ oh-installfiles
diff --git a/changelog b/changelog
new file mode 100644
index 0000000..98408e0
--- /dev/null
+++ b/changelog
@@ -0,0 +1,5 @@
+bc (1.06.95-1) trunk
+
+ * Initial release.
+
+ -- "P. J. McDermott" <pj@pehjota.net> Wed, 07 May 2014 11:31:44 -0400
diff --git a/control b/control
new file mode 100644
index 0000000..794fbac
--- /dev/null
+++ b/control
@@ -0,0 +1,4 @@
+Maintainer: "P. J. McDermott" <pj@pehjota.net>
+Build-Depends: opkhelper-3.0,
+ libreadline-dev,
+Homepage: https://www.gnu.org/software/bc/
diff --git a/copyright b/copyright
new file mode 100644
index 0000000..ae4adcd
--- /dev/null
+++ b/copyright
@@ -0,0 +1,146 @@
+Upstream Source
+===============
+
+In General
+----------
+
+Copyright (C) 1991, 1992, 1993, 1994, 1997, 1998, 2000, 2003, 2004,
+2005, 2006 Free Software Foundation, Inc.
+
+This program is free software; you can redistribute it and/or modify
+it under the terms of the GNU General Public License as published by
+the Free Software Foundation; either version 2, or (at your option)
+any later version.
+
+This program is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+GNU General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with this program; if not, you can either send email to this
+program's author (see below) or write to:
+
+ The Free Software Foundation, Inc.
+ 51 Franklin Street, Fifth Floor
+ Boston, MA 02110-1301 USA
+
+On this system, a copy of the GNU General Public License may be found at
+<file:///usr/share/common-licenses/GPL-2>.
+
+bc/bc.h, bc/bc.c
+----------------
+
+A Bison parser, made by GNU Bison 2.1.
+
+Skeleton parser for Yacc-like parsing with Bison,
+Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc.
+
+This program is free software; you can redistribute it and/or modify
+it under the terms of the GNU General Public License as published by
+the Free Software Foundation; either version 2, or (at your option)
+any later version.
+
+This program is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+GNU General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with this program; if not, write to the Free Software
+Foundation, Inc., 51 Franklin Street, Fifth Floor,
+Boston, MA 02110-1301, USA.
+
+As a special exception, when this file is copied by Bison into a
+Bison output file, you may use that output file without restriction.
+This special exception was added by the Free Software Foundation
+in version 1.24 of Bison.
+
+h/getopt.h, lib/getopt.c, lib/getopt1.c
+---------------------------------------
+
+Copyright (C) 1987, 1988, 1989, 1990, 1991, 1992, 1993, 1994, 1995,
+1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003 Free Software
+Foundation, Inc.
+
+This file is part of the GNU C Library.
+
+This program is free software; you can redistribute it and/or modify
+it under the terms of the GNU General Public License as published by
+the Free Software Foundation; either version 2, or (at your option)
+any later version.
+
+This program is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+GNU General Public License for more details.
+
+You should have received a copy of the GNU General Public License along
+with this program; if not, write to the Free Software Foundation,
+Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+
+On this system, a copy of the GNU General Public License may be found at
+<file:///usr/share/common-licenses/GPL-2>.
+
+doc/bc.texi, doc/bc.info, doc/dc.texi, doc/dc.info
+--------------------------------------------------
+
+Copyright (C) 1984, 1991, 1992, 1993, 1994, 1997, 1998, 2000, 2003, 2005,
+2006 Free Software Foundation, Inc.
+
+Permission is granted to make and distribute verbatim copies of
+this manual provided the copyright notice and this permission notice
+are preserved on all copies.
+
+Permission is granted to process this file through TeX and print the
+results, provided the printed document carries copying permission
+notice identical to this one except for the removal of this paragraph
+(this paragraph not being relevant to the printed manual).
+
+Permission is granted to copy and distribute modified versions of this
+manual under the conditions for verbatim copying, provided that the entire
+resulting derived work is distributed under the terms of a permission
+notice identical to this one.
+
+Permission is granted to copy and distribute translations of this manual
+into another language, under the above conditions for modified versions,
+except that this permission notice may be stated in a translation approved
+by the Foundation.
+
+doc/bc.1, doc/dc.1
+------------------
+
+This file is part of GNU bc.
+Copyright (C) 1991-1994, 1997, 1998, 2000, 2001, 2003, 2005, 2006
+Free Software Foundation, Inc.
+
+This program is free software; you can redistribute it and/or modify
+it under the terms of the GNU General Public License as published by
+the Free Software Foundation; either version 2 of the License , or
+(at your option) any later version.
+
+This program is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+GNU General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with this program; see the file COPYING. If not, write to:
+ The Free Software Foundation, Inc.
+ 51 Franklin Street, Fifth Floor
+ Boston, MA 02110-1301 USA
+
+On this system, a copy of the GNU General Public License may be found at
+<file:///usr/share/common-licenses/GPL-2>.
+
+
+Distribution Packaging
+======================
+
+Copyright (C) 2013-2014 Patrick "P. J." McDermott
+
+These files may be reproduced, distributed, modified, and otherwise dealt in
+under the terms of the Expat License.
+
+On this system, a copy of the Expat License may be found at
+<file:///usr/share/common-licenses/Expat>.
diff --git a/dc.pkg/control b/dc.pkg/control
new file mode 100644
index 0000000..3a34b7a
--- /dev/null
+++ b/dc.pkg/control
@@ -0,0 +1,10 @@
+Architecture: any
+Platform: all
+Depends: bc-common (= ${Binary-Version})
+Description: Arbitrary precision calculator
+ GNU dc is a reverse-polish desk calculator which supports unlimited precision
+ arithmetic. It also allows you to define and call macros.
+ .
+ A reverse-polish calculator stores numbers on a stack. Entering a number
+ pushes it on the stack. Arithmetic operations pop arguments off the stack and
+ push the results.
diff --git a/dc.pkg/files b/dc.pkg/files
new file mode 100644
index 0000000..020af8c
--- /dev/null
+++ b/dc.pkg/files
@@ -0,0 +1 @@
+/usr/bin/dc.gnu
diff --git a/dc.pkg/postinst b/dc.pkg/postinst
new file mode 100644
index 0000000..8ca83d2
--- /dev/null
+++ b/dc.pkg/postinst
@@ -0,0 +1,5 @@
+#!/bin/sh
+
+if [ "x${1}" = 'xconfigure' ]; then
+ update-alternatives --install /usr/bin/dc dc /usr/bin/dc.gnu 20
+fi
diff --git a/dc.pkg/prerm b/dc.pkg/prerm
new file mode 100644
index 0000000..688f2b8
--- /dev/null
+++ b/dc.pkg/prerm
@@ -0,0 +1,5 @@
+#!/bin/sh
+
+if [ "x${1}" = 'xremove' ]; then
+ update-alternatives --remove dc /usr/bin/dc.gnu
+fi
diff --git a/format b/format
new file mode 100644
index 0000000..cd5ac03
--- /dev/null
+++ b/format
@@ -0,0 +1 @@
+2.0
diff --git a/source.mk b/source.mk
new file mode 100644
index 0000000..6635ee2
--- /dev/null
+++ b/source.mk
@@ -0,0 +1,28 @@
+upstream_archive = $(OPK_SOURCE)-$(OPK_SOURCE_VERSION_UPSTREAM).tar.bz2
+upstream_url = http://alpha.gnu.org/gnu/$(OPK_SOURCE)/$(upstream_archive)
+source_archive = ../$(OPK_SOURCE)-$(OPK_SOURCE_VERSION_UPSTREAM).orig.tar.bz2
+#keys = D9B7BC63
+
+$(source_archive):
+ wget -c '$(upstream_url)'
+ @# gpg: keyring `../keyring.gpg' created
+ @# gpg: requesting key D9B7BC63 from hkp server keys.gnupg.net
+ @# gpg: key 117D49DA: public key "Ken Pizzini <ken@gnu.org>" imported
+ @# gpg: Total number processed: 1
+ @# gpg: imported: 1 (RSA: 1)
+ @# gpg: Signature made 2006-09-04T22:40:41 EDT using RSA key ID D9B7BC63
+ @# gpg: WARNING: signing subkey D9B7BC63 is not cross-certified
+ @# gpg: please see http://www.gnupg.org/faq/subkey-cross-certify.html for more information
+ @# gpg: Can't check signature: general error
+ @#set -e; if gpg --version >/dev/null 2>&1; then \
+ # wget -c '$(upstream_url).sig'; \
+ # [ -e ../keyring.gpg ] || \
+ # gpg --keyring ../keyring.gpg --no-default-keyring \
+ # --recv-keys $(keys) || true; \
+ # rm -f ../keyring.gpg~; \
+ # gpg --verify --keyring ../keyring.gpg \
+ # '$(upstream_archive).sig'; \
+ #fi
+ mv '$(upstream_archive)' '$(source_archive)'
+
+source: $(source_archive)
diff --git a/substvars b/substvars
new file mode 100644
index 0000000..7c335b6
--- /dev/null
+++ b/substvars
@@ -0,0 +1,4 @@
+Common-Description:
+ bc is a language that supports arbitrary precision numbers with interactive
+ execution of statements. There are some similarities in the syntax to the C
+ programming language.