Permalink
Cannot retrieve contributors at this time
44 lines (39 sloc)
1.18 KB
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
homebrew-core/Formula/etl.rb
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Etl < Formula | |
desc "Extensible Template Library" | |
homepage "https://synfig.org" | |
url "https://downloads.sourceforge.net/project/synfig/development/1.5.1/ETL-1.5.1.tar.gz" | |
mirror "https://github.com/synfig/synfig/releases/download/v1.5.1/ETL-1.5.1.tar.gz" | |
sha256 "125c04f1892f285febc2f9cc06f932f7708e3c9f94c3a3004cd1803197197b4a" | |
license "GPL-2.0-or-later" | |
livecheck do | |
url :stable | |
regex(%r{url=.*?/ETL[._-]v?(\d+(?:\.\d+)+)\.t}i) | |
end | |
bottle do | |
sha256 cellar: :any_skip_relocation, all: "890b88cbc8b5bdc6b068132feff930406712b1d7a85670e45b5e18dd1d5c0430" | |
end | |
depends_on "pkg-config" => :build | |
depends_on "glibmm@2.66" | |
def install | |
system "./configure", "--disable-debug", | |
"--disable-dependency-tracking", | |
"--prefix=#{prefix}" | |
system "make", "install" | |
end | |
test do | |
(testpath/"test.cpp").write <<~EOS | |
#include <ETL/misc> | |
int main(int argc, char *argv[]) | |
{ | |
int rv = etl::ceil_to_int(5.5); | |
return 6 - rv; | |
} | |
EOS | |
flags = %W[ | |
-I#{include}/ETL | |
-lpthread | |
] | |
system ENV.cxx, "test.cpp", "-o", "test", *flags | |
system "./test" | |
end | |
end |