Skip to content

Commit

Permalink
gqlplus 1.16
Browse files Browse the repository at this point in the history
- fix the version
- use "make install"
- add a test

Closes #3110.

Signed-off-by: ilovezfs <ilovezfs@icloud.com>
  • Loading branch information
ilovezfs committed Jul 19, 2016
1 parent eb11834 commit cacf39b
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions Formula/gqlplus.rb
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
class Gqlplus < Formula
desc "Drop-in replacement for sqlplus, an Oracle SQL client"
homepage "http://gqlplus.sourceforge.net/"
url "https://downloads.sourceforge.net/project/gqlplus/gqlplus/1.15/gqlplus-1.15.tar.gz"
sha256 "9a539cdcf952b4acd2ae2d940772366bf6c9ee0fb51846c02d3c7dc1df3056d5"
url "https://downloads.sourceforge.net/project/gqlplus/gqlplus/1.16/gqlplus-1.16.tar.gz"
sha256 "9e0071d6f8bc24b0b3623c69d9205f7d3a19c2cb32b5ac9cff133dc75814acdd"

bottle do
cellar :any
Expand All @@ -14,9 +14,19 @@ class Gqlplus < Formula
depends_on "readline"

def install
# Fix the version
# Reported 18 Jul 2016: https://sourceforge.net/p/gqlplus/bugs/43/
inreplace "gqlplus.c",
"#define VERSION \"1.15\"",
"#define VERSION \"1.16\""

system "./configure", "--disable-dependency-tracking",
"--prefix=#{prefix}"
system "make"
bin.install "gqlplus"
system "make", "install"
end

test do
assert_match version.to_s, shell_output("#{bin}/gqlplus -h")
end
end

0 comments on commit cacf39b

Please sign in to comment.