datamash: migrate from homebrew/science
Closes #17001. Signed-off-by: FX Coudert <fxcoudert@gmail.com>master
parent
1142bd1464
commit
26ab12cf52
|
@ -0,0 +1,26 @@
|
|||
class Datamash < Formula
|
||||
desc "Tool to perform numerical, textual & statistical operations"
|
||||
homepage "https://www.gnu.org/software/datamash"
|
||||
url "https://ftpmirror.gnu.org/datamash/datamash-1.1.1.tar.gz"
|
||||
mirror "https://ftp.gnu.org/gnu/datamash/datamash-1.1.1.tar.gz"
|
||||
sha256 "420819b3d7372ee3ce704add847cff7d08c4f8176c1d48735d4a632410bb801b"
|
||||
|
||||
head do
|
||||
url "git://git.savannah.gnu.org/datamash.git"
|
||||
depends_on "autoconf" => :build
|
||||
depends_on "automake" => :build
|
||||
depends_on "gettext" => :build
|
||||
end
|
||||
|
||||
def install
|
||||
system "./bootstrap" if build.head?
|
||||
system "./configure", "--disable-dependency-tracking",
|
||||
"--disable-silent-rules",
|
||||
"--prefix=#{prefix}"
|
||||
system "make", "install"
|
||||
end
|
||||
|
||||
test do
|
||||
assert_equal "55", shell_output("seq 10 | #{bin}/datamash sum 1").chomp
|
||||
end
|
||||
end
|
|
@ -12,7 +12,6 @@
|
|||
"crystax-ndk": "caskroom/cask",
|
||||
"corelocationcli": "caskroom/cask",
|
||||
"dart": "dart-lang/dart",
|
||||
"datamash": "homebrew/science",
|
||||
"dgtal": "homebrew/science",
|
||||
"dotwrp": "homebrew/science",
|
||||
"drush": "homebrew/php",
|
||||
|
|
Loading…
Reference in New Issue