Skip to content

Commit

Permalink
abook: head and test added
Browse files Browse the repository at this point in the history
Closes Homebrew/legacy-homebrew#37084.

Signed-off-by: Mike McQuaid <[email protected]>
  • Loading branch information
bfontaine authored and MikeMcQuaid committed Feb 23, 2015
1 parent 2875fab commit 4e233ef
Showing 1 changed file with 15 additions and 11 deletions.
26 changes: 15 additions & 11 deletions Formula/abook.rb
Original file line number Diff line number Diff line change
@@ -1,26 +1,30 @@
require 'formula'

class Abook < Formula
homepage 'http://abook.sourceforge.net/'
url 'https://downloads.sourceforge.net/project/abook/abook/0.5.6/abook-0.5.6.tar.gz'
sha1 '79f04f2264c8bd81bbc952b6560c86d69b21615d'
homepage "http://abook.sourceforge.net/"
url "https://downloads.sourceforge.net/project/abook/abook/0.5.6/abook-0.5.6.tar.gz"
sha1 "79f04f2264c8bd81bbc952b6560c86d69b21615d"
head "git://git.code.sf.net/p/abook/git"

devel do
url 'http://abook.sourceforge.net/devel/abook-0.6.0pre2.tar.gz'
sha1 '42a939fba43e51aa011fa185113c12ec4bc1e1ec'
version '0.6.0pre2'
url "http://abook.sourceforge.net/devel/abook-0.6.0pre2.tar.gz"
sha1 "42a939fba43e51aa011fa185113c12ec4bc1e1ec"
version "0.6.0pre2"

# Remove `inline` from function implementation for clang compatibility
patch :DATA
end

depends_on 'readline'
depends_on "readline"

def install
system "./configure", "--disable-debug", "--disable-dependency-tracking",
system "./configure", "--disable-debug",
"--disable-dependency-tracking",
"--prefix=#{prefix}",
"--mandir=#{man}"
system "make install"
system "make", "install"
end

test do
system "#{bin}/abook", "--formats"
end
end

Expand Down

0 comments on commit 4e233ef

Please sign in to comment.