summaryrefslogtreecommitdiffstats
path: root/science
diff options
context:
space:
mode:
authorVlad Glagolev2020-03-14 17:49:59 +0000
committerVlad Glagolev2020-03-14 17:49:59 +0000
commit8d6317600f1079d4bb7154923a7513acac08d36a (patch)
tree26db5438dea3d37b9ff83f366b534b78405e4d9e /science
parent4f1542d14c386cb82e875588af00f6a1af9fd1d4 (diff)
bc: drop ed dependency
Diffstat (limited to 'science')
-rwxr-xr-xscience/bc/DEPENDS1
-rwxr-xr-xscience/bc/DETAILS4
-rw-r--r--science/bc/HISTORY6
-rwxr-xr-xscience/bc/PRE_BUILD4
-rw-r--r--science/bc/no-ed.patch17
5 files changed, 30 insertions, 2 deletions
diff --git a/science/bc/DEPENDS b/science/bc/DEPENDS
index a4d90e4e3b..0fa005e283 100755
--- a/science/bc/DEPENDS
+++ b/science/bc/DEPENDS
@@ -1,3 +1,2 @@
-depends ed &&
depends flex &&
depends "${INPUT_LIBRARY}" "--with-${INPUT_LIBRARY}"
diff --git a/science/bc/DETAILS b/science/bc/DETAILS
index a267c7f2c9..42bf15fbfb 100755
--- a/science/bc/DETAILS
+++ b/science/bc/DETAILS
@@ -1,7 +1,7 @@
SPELL=bc
VERSION=1.07.1
+ PATCHLEVEL=1
SOURCE=$SPELL-$VERSION.tar.gz
-SOURCE_DIRECTORY=$BUILD_DIRECTORY/$SPELL-$VERSION
SOURCE_URL[0]=$GNU_URL/$SPELL/$SOURCE
SOURCE_URL[1]=ftp://ftp.gnu.org/pub/gnu/$SPELL/$SOURCE
SOURCE2="${SOURCE}.sig"
@@ -9,6 +9,8 @@ SOURCE_DIRECTORY=$BUILD_DIRECTORY/$SPELL-$VERSION
SOURCE2_URL[1]="${SOURCE_URL[1]}.sig"
SOURCE_GPG="gnu.gpg:${SOURCE2}:UPSTREAM_KEY"
SOURCE2_IGNORE="signature"
+SOURCE_DIRECTORY="${BUILD_DIRECTORY}/${SPELL}-${VERSION}"
+ DOC_DIRS=""
WEB_SITE=http://www.gnu.org/software/bc/bc.html
LICENSE[0]=GPL
ENTERED=20010922
diff --git a/science/bc/HISTORY b/science/bc/HISTORY
index 6064bb0ffd..2d3aba6cef 100644
--- a/science/bc/HISTORY
+++ b/science/bc/HISTORY
@@ -1,3 +1,9 @@
+2020-03-14 Vlad Glagolev <stealth@sourcemage.org>
+ * DETAILS: PATCHLEVEL=1; don't gather docs in doc
+ * DEPENDS: removed ed
+ * PRE_BUILD: added, to apply patch
+ * no-ed.patch: added, to replace ed with sed
+
2017-04-10 Pavel Vinogradov <public@sourcemage.org>
* DETAILS: version 1.07.1, switched to gpg checking
* PRE_BUILD: removed, fixed by upstream
diff --git a/science/bc/PRE_BUILD b/science/bc/PRE_BUILD
new file mode 100755
index 0000000000..9a9dab6c24
--- /dev/null
+++ b/science/bc/PRE_BUILD
@@ -0,0 +1,4 @@
+default_pre_build &&
+cd "${SOURCE_DIRECTORY}" &&
+
+patch -p0 < "${SPELL_DIRECTORY}/no-ed.patch"
diff --git a/science/bc/no-ed.patch b/science/bc/no-ed.patch
new file mode 100644
index 0000000000..7a9fc7124d
--- /dev/null
+++ b/science/bc/no-ed.patch
@@ -0,0 +1,17 @@
+--- bc/fix-libmath_h.orig
++++ bc/fix-libmath_h
+@@ -1,9 +1,6 @@
+-ed libmath.h <<EOS-EOS
++sed -i libmath.h -e '
+ 1,1s/^/{"/
+-1,\$s/\$/",/
+-2,\$s/^/"/
+-\$,\$d
+-\$,\$s/,\$/,0}/
+-w
+-q
+-EOS-EOS
++1,$s/$/",/
++2,$s/^/"/
++$s/.*/0}/
++'