siril: import from homebrew/science

Closes #23833.

Signed-off-by: FX Coudert <fxcoudert@gmail.com>
This commit is contained in:
Cyril Richard 2018-02-08 09:46:51 +01:00 committed by FX Coudert
parent 40e1b89725
commit 0dbcc8f2cd

43
Formula/siril.rb Normal file
View file

@ -0,0 +1,43 @@
class Siril < Formula
desc "Astronomical image processing tool"
homepage "https://free-astro.org/index.php/Siril"
url "https://free-astro.org/download/siril-0.9.8.tar.bz2"
sha256 "ecb5477937afc02cc89cb07f4a7b99d2d0ab4cc5e715ec536e9be5c92a187170"
head "https://free-astro.org/svn/siril/", :using => :svn
depends_on "autoconf" => :build
depends_on "automake" => :build
depends_on "intltool" => :build
depends_on "libtool" => :build
depends_on "pkg-config" => :build
depends_on "adwaita-icon-theme"
depends_on "cfitsio"
depends_on "ffms2"
depends_on "fftw"
depends_on "gcc" # for OpenMP
depends_on "gnuplot"
depends_on "gsl"
depends_on "gtk-mac-integration"
depends_on "libconfig"
depends_on "libraw"
depends_on "librsvg"
depends_on "libsvg"
depends_on "netpbm"
depends_on "opencv"
depends_on "openjpeg"
fails_with :clang # no OpenMP support
needs :cxx11
def install
ENV.cxx11
system "./autogen.sh", "--prefix=#{prefix}", "--enable-openmp"
system "make", "install"
end
test do
system "#{bin}/siril", "-v"
end
end