diff options
| author | Tojek Anselm | 2010-07-17 10:43:07 -0700 | 
|---|---|---|
| committer | Adam Vandenberg | 2010-07-17 21:17:35 -0700 | 
| commit | 1705f53d4f32a86ca76e11fec97b113eab6baf52 (patch) | |
| tree | 38b6e4550cf092542429bb9f76a8142d9a94dcb2 /Library/Formula/tintin.rb | |
| parent | 5082f98a415a7c0ca9d50d90da7dc24d6da40ebd (diff) | |
| download | homebrew-1705f53d4f32a86ca76e11fec97b113eab6baf52.tar.bz2 | |
Update and fix tintin.rb
Updates to upstream version 2.00.2. Now declares 'pcre' as a package
dependency. Patches Makefile.in such that brew's environment variables, namely
CPPFLAGS and CFLAGS, are passed to autotools.
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula/tintin.rb')
| -rw-r--r-- | Library/Formula/tintin.rb | 32 | 
1 files changed, 30 insertions, 2 deletions
diff --git a/Library/Formula/tintin.rb b/Library/Formula/tintin.rb index ab63f6bbb..81880fbb3 100644 --- a/Library/Formula/tintin.rb +++ b/Library/Formula/tintin.rb @@ -1,9 +1,18 @@  require 'formula'  class Tintin <Formula -  url 'http://downloads.sourceforge.net/project/tintin/TinTin%2B%2B%20Source%20Code/2.00.1/tintin-2.00.1.tar.gz' +  url 'http://downloads.sourceforge.net/project/tintin/TinTin%2B%2B%20Source%20Code/2.00.2/tintin-2.00.2.tar.gz'    homepage 'http://tintin.sf.net' -  md5 '5bc8d0f4df124f7fe01a5904084ae01b' +  md5 '930506c30163c2753fc2094c0b43a809' + +  # From version 1.91.1, pcre is required to compile TinTin++ +  #   http://tintin.sourceforge.net/board/viewtopic.php?t=786 +  depends_on 'pcre' + +  def patches +    # This puts brew's environ (CPPFLAGS and CFLAGS) in generated Makefile +    DATA +  end    def install      Dir.chdir "src" @@ -11,3 +20,22 @@ class Tintin <Formula      system "make install"    end  end + +__END__ +diff --git a/src/Makefile.in b/src/Makefile.in +index 067b5ff..d55bc74 100644 +--- a/src/Makefile.in ++++ b/src/Makefile.in +@@ -31,11 +31,11 @@ docdir = @prefix@/doc +  + #this is the standard CFLAGS options, this is what most people should use +  +-CFLAGS += $(DEFINES) @BIG5@ ++CFLAGS += $(DEFINES) @CFLAGS@ @BIG5@ +  + LDFLAGS = @LDFLAGS@ +  +-INCS = @MYINCLUDE@ ++INCS = @CPPFLAGS@ @MYINCLUDE@ +  + LIBS = @MYLIB@ @LIBS@  | 
