mirror of
https://github.com/mistydemeo/tigerbrew.git
synced 2026-12-02 05:29:47 -05:00
* Use new "url" features * Use keg_only DSL * Use "skip_clean :all" DSL * Whitespace and style cleanups * Make bash invocations less silly * Use new man2-man8 helpers * Remove "FileUtils." since it is included in Formula * Use real names for deps instead of aliases * ENV.x11 now updates path, so remove that from individual brews
23 lines
689 B
Ruby
23 lines
689 B
Ruby
require 'formula'
|
|
|
|
class Dwdiff <Formula
|
|
url 'http://os.ghalkes.nl/dist/dwdiff-1.8.1.tgz'
|
|
homepage 'http://os.ghalkes.nl/dwdiff.html'
|
|
md5 '37971be9e905aa3eeb4d494ad40a6318'
|
|
|
|
# TODO: possibly set command line arguments to compile without the below
|
|
# dependencies. Or set arguments to compile with and compile without by
|
|
# default.
|
|
depends_on 'gettext'
|
|
depends_on 'icu4c'
|
|
|
|
def install
|
|
gettext = Formula.factory('gettext')
|
|
icu4c = Formula.factory('icu4c')
|
|
ENV.append "CFLAGS", "-I#{gettext.include} -I#{icu4c.include}"
|
|
ENV.append "LDFLAGS", "-L#{gettext.lib} -L#{icu4c.lib}"
|
|
system "./configure", "--prefix=#{prefix}"
|
|
system "make install"
|
|
end
|
|
end
|