Skip to content

Commit

Permalink
[bc] Update & modernize Plan style.
Browse files Browse the repository at this point in the history
Signed-off-by: Fletcher Nichol <fnichol@nichol.ca>
  • Loading branch information
fnichol committed Jun 7, 2018
1 parent 454e1b4 commit 99723a0
Showing 1 changed file with 13 additions and 7 deletions.
20 changes: 13 additions & 7 deletions bc/plan.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,13 @@ pkg_name=bc
pkg_origin=core
pkg_version=1.07.1
pkg_maintainer="The Habitat Maintainers <humans@habitat.sh>"
pkg_description="\
bc is an arbitrary precision numeric processing language. Syntax is similar \
to C, but differs in many substantial areas. It supports interactive \
execution of statements. bc is a utility included in the POSIX P1003.2/D11 \
draft standard.\
"
pkg_upstream_url="https://www.gnu.org/software/bc/"
pkg_description="bc is an arbitrary precision numeric processing language"
pkg_license=("GPL-3.0")
pkg_source="https://ftp.gnu.org/gnu/${pkg_name}/${pkg_name}-${pkg_version}.tar.gz"
pkg_shasum="62adfca89b0a1c0164c2cdca59ca210c1d44c3ffc46daf9931cf4942664cb02a"
Expand All @@ -17,7 +22,6 @@ pkg_build_deps=(
core/bison
core/coreutils
core/diffutils
core/ed
core/gcc
core/make
core/patch
Expand All @@ -26,12 +30,12 @@ pkg_build_deps=(
pkg_bin_dirs=(bin)

do_prepare() {
# Both fixes here thanks to:
# http://www.linuxfromscratch.org/lfs/view/development/chapter06/bc.html
# Both fixes here thanks to:
# http://www.linuxfromscratch.org/lfs/view/development/chapter06/bc.html

sed -i -e '/flex/s/as_fn_error/: ;; # &/' configure

cat > bc/fix-libmath_h << "EOF"
cat > bc/fix-libmath_h << "EOF"
#!/bin/bash
sed -e '1 s/^/{"/' \
-e 's/$/",/' \
Expand Down Expand Up @@ -64,6 +68,8 @@ do_check() {
# significantly altered. Thank you!
# ----------------------------------------------------------------------------
if [[ "$STUDIO_TYPE" = "stage1" ]]; then
pkg_deps=(core/glibc core/readline)
pkg_build_deps=(core/gcc core/coreutils)
pkg_build_deps=(
core/gcc
core/coreutils
)
fi

0 comments on commit 99723a0

Please sign in to comment.