Skip to content

Commit

Permalink
ngs 0.2.10
Browse files Browse the repository at this point in the history
* ngs 0.2.10
* remove patch

Closes #68148.

Co-authored-by: chenrui <[email protected]>
Signed-off-by: Rylan Polster <[email protected]>
Signed-off-by: BrewTestBot <[email protected]>
  • Loading branch information
2 people authored and BrewTestBot committed Jan 2, 2021
1 parent 15f328e commit f2d3fdf
Showing 1 changed file with 2 additions and 43 deletions.
45 changes: 2 additions & 43 deletions Formula/ngs.rb
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
class Ngs < Formula
desc "Powerful programming language and shell designed specifically for Ops"
homepage "https://ngs-lang.org/"
url "https://github.com/ngs-lang/ngs/archive/v0.2.9.tar.gz"
sha256 "24ecf80a2fb99c2f3d24c125c22d38a73fb99ba4f9b99007c2b5a01c91906523"
url "https://github.com/ngs-lang/ngs/archive/v0.2.10.tar.gz"
sha256 "361a36614a56bd7cb2cb0f4aa16addfefde478f9d2cbc1838eee3969262868c2"
license "GPL-3.0"
head "https://github.com/ngs-lang/ngs.git"

Expand All @@ -25,10 +25,6 @@ class Ngs < Formula

uses_from_macos "libffi"

# patch PR, https://github.com/ngs-lang/ngs/pull/382
# remove in next release
patch :DATA

def install
mkdir "build" do
system "cmake", "..", *std_cmake_args
Expand All @@ -41,40 +37,3 @@ def install
assert_match "Hello World!", shell_output("#{bin}/ngs -e 'echo(\"Hello World!\")'")
end
end

__END__
diff --git a/build-scripts/bin2c.sh b/build-scripts/bin2c.sh
index 1020985..9ff327a 100755
--- a/build-scripts/bin2c.sh
+++ b/build-scripts/bin2c.sh
@@ -9,7 +9,7 @@ $file_name
eof
)
len=$(wc -c < "$file_name")
-data=$(od -A n -t u1 -v "$file_name" | sed 's/ \+/,/g;1s/,//')
+data=$(od -A n -t u1 -v "$file_name" | gsed 's/ \+/,/g;1s/,//')
printf '// Generated by %s from input file %s
unsigned char %s[] = {
%s
diff --git a/build-scripts/make-syntax-auto.sh b/build-scripts/make-syntax-auto.sh
index 8ed2db6..23bb3f2 100755
--- a/build-scripts/make-syntax-auto.sh
+++ b/build-scripts/make-syntax-auto.sh
@@ -2,6 +2,6 @@

set -eu

-sed -n '/^typedef/p; /^struct/,/^$/p; /define YY_MAX_LINES/p;'
+gsed -n '/^typedef/p; /^struct/,/^$/p; /define YY_MAX_LINES/p;'
echo 'int yyparse(yycontext *yyctx);'
echo 'yycontext * yyrelease(yycontext *yyctx);'
diff --git a/build.macos.env.sh b/build.macos.env.sh
index dad8848..5b60927 100644
--- a/build.macos.env.sh
+++ b/build.macos.env.sh
@@ -1,4 +1,4 @@
-export PATH="/usr/local/opt/gnu-sed/libexec/gnubin:$PATH"
+export PATH="/usr/local/opt/gnu-sed/libexec/bin:$PATH"
pcp=$(dirname $(brew list pkg-config | grep '/bin/pkg-config'))
export PATH="$pcp:$PATH"
export PKG_CONFIG_PATH=/usr/local/opt/libffi/lib/pkgconfig

0 comments on commit f2d3fdf

Please sign in to comment.