sqliteodbc 0.9992 (new formula)

Closes Homebrew/homebrew#45002.

Signed-off-by: Dominyk Tiller <dominyktiller@gmail.com>
This commit is contained in:
Peter van Dijk 2015-10-15 19:48:02 +02:00 committed by Dominyk Tiller
parent 22b02e3dc7
commit f1c146ab3f

22
Formula/sqliteodbc.rb Normal file
View file

@ -0,0 +1,22 @@
class Sqliteodbc < Formula
desc "SQLite ODBC driver"
homepage "http://www.ch-werner.de/sqliteodbc/"
url "http://www.ch-werner.de/sqliteodbc/sqliteodbc-0.9992.tar.gz"
sha256 "f5c6119cfb688fc3d2fbc500c6cfa796538b767c511be5ab90fb6805fcd289c3"
depends_on "sqlite"
depends_on "unixodbc"
def install
lib.mkdir
system "./configure", "--prefix=#{prefix}"
system "make"
system "make", "install"
lib.install_symlink "#{lib}/libsqlite3odbc.dylib" => "libsqlite3odbc.so"
end
test do
output = shell_output("#{Formula["unixodbc"].opt_bin}/dltest #{lib}/libsqlite3odbc.so")
assert_equal "SUCCESS: Loaded #{lib}/libsqlite3odbc.so\n", output
end
end