-
Notifications
You must be signed in to change notification settings - Fork 3
/
dehtml.rb
31 lines (25 loc) · 1.11 KB
/
dehtml.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
require 'formula'
# Documentation: https://github.com/mxcl/homebrew/wiki/Formula-Cookbook
# PLEASE REMOVE ALL GENERATED COMMENTS BEFORE SUBMITTING YOUR PULL REQUEST!
class Dehtml < Formula
homepage 'http://www.moria.de/~michael/dehtml/'
url 'http://www.moria.de/~michael/dehtml/dehtml-1.8.tar.gz'
sha1 'c931493a4f50b65b0d129f51de025f07784669fb'
# depends_on 'cmake' => :build
depends_on :x11 # if your formula requires any X11/XQuartz components
def install
# ENV.j1 # if your formula's build system can't parallelize
system "./configure", "--disable-debug", "--disable-dependency-tracking",
"--prefix=#{prefix}"
# system "cmake", ".", *std_cmake_args
system "make", "install" # if this fails, try separate make/make install steps
end
test do
# `test do` will create, run in and delete a temporary directory.
#
# This test will fail and we won't accept that! It's enough to just replace
# "false" with the main program this formula installs, but it'd be nice if you
# were more thorough. Run the test with `brew test dehtml`.
system "false"
end
end