forked from Homebrew/homebrew-core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbookloupe.rb
38 lines (32 loc) · 1.27 KB
/
bookloupe.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
class Bookloupe < Formula
desc "List common formatting errors in a Project Gutenberg candidate file"
homepage "http://www.juiblex.co.uk/pgdp/bookloupe/"
url "http://www.juiblex.co.uk/pgdp/bookloupe/bookloupe-2.0.tar.gz"
sha256 "15b1f5a0fa01e7c0a0752c282f8a354d3dc9edbefc677e6e42044771d5abe3c9"
revision 1
bottle do
cellar :any
sha256 "f5e7f38cfa342d15025f798e9476a7091d3dbd60a15a6635d9fd784033dd531c" => :mojave
sha256 "8cade7bb36828e32d7be412d29404748198079745defd97ed2ec533ff91f5645" => :high_sierra
sha256 "564cdae8b088da04903efd886b33ed12e5673a64866679f67b37acdb68bf539c" => :sierra
end
depends_on "pkg-config" => :build
depends_on "glib"
def install
system "./configure", "--disable-debug",
"--disable-dependency-tracking",
"--disable-silent-rules",
"--prefix=#{prefix}"
system "make", "install"
end
test do
ENV["BOOKLOUPE"] = "#{bin}/bookloupe"
Dir["#{pkgshare}/*.tst"].each do |test_file|
# Skip test that fails on macOS
# http://project.juiblex.co.uk/bugzilla/show_bug.cgi?id=39
# (bugzilla page is not publicly accessible)
next if test_file.end_with?("/markup.tst")
system "#{bin}/loupe-test", test_file
end
end
end