datamash: migrate from homebrew/science

Closes #17001.

Signed-off-by: FX Coudert <fxcoudert@gmail.com>
master
FX Coudert 2017-08-19 23:21:47 +02:00
parent 1142bd1464
commit 26ab12cf52
2 changed files with 26 additions and 1 deletions

26
Formula/datamash.rb Normal file
View File

@ -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

View File

@ -12,7 +12,6 @@
"crystax-ndk": "caskroom/cask", "crystax-ndk": "caskroom/cask",
"corelocationcli": "caskroom/cask", "corelocationcli": "caskroom/cask",
"dart": "dart-lang/dart", "dart": "dart-lang/dart",
"datamash": "homebrew/science",
"dgtal": "homebrew/science", "dgtal": "homebrew/science",
"dotwrp": "homebrew/science", "dotwrp": "homebrew/science",
"drush": "homebrew/php", "drush": "homebrew/php",