diff options
| author | Anthony Ramine | 2012-04-09 19:33:47 +0200 |
|---|---|---|
| committer | Jack Nagel | 2012-04-11 01:01:37 -0500 |
| commit | 80ad46264ea128098789bcd20b9cb2f52412a9b0 (patch) | |
| tree | 862a1f991a4f2c33cc989051aa0a581e4795051a /Library/Formula | |
| parent | 4ad165ce78ccab22d4424d844010c1b204e48090 (diff) | |
| download | homebrew-80ad46264ea128098789bcd20b9cb2f52412a9b0.tar.bz2 | |
wrangler: respect $CC during compilation
Closes #11524.
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/wrangler.rb | 64 |
1 files changed, 64 insertions, 0 deletions
diff --git a/Library/Formula/wrangler.rb b/Library/Formula/wrangler.rb index eaf81b105..df1e9fa6b 100644 --- a/Library/Formula/wrangler.rb +++ b/Library/Formula/wrangler.rb @@ -7,6 +7,12 @@ class Wrangler < Formula depends_on 'erlang' + def patches + # Respect $CC during compilation. Merged upstream: + # https://github.com/RefactoringTools/wrangler/pull/41 + DATA + end + def install ENV.deparallelize system "./configure", "--prefix=#{prefix}" @@ -14,3 +20,61 @@ class Wrangler < Formula system "make install" end end + +__END__ +diff --git i/c_src/gsuffixtree/Makefile.in w/c_src/gsuffixtree/Makefile.in +index 3f4e6fa..751ed55 100755 +--- i/c_src/gsuffixtree/Makefile.in ++++ w/c_src/gsuffixtree/Makefile.in +@@ -1,5 +1,6 @@ + + ++CC = @CC@ + ERL_CFLAGS = @ERL_CFLAGS@ + ERL_LIB = @ERL_LIB@ + CFLAGS = @CFLAGS@ +@@ -10,13 +11,13 @@ ERL_LDFLAGS= ${LDFLAGS} ${ERL_LIB} + + + gsuffixtree: main.o gsuffix_tree.o +- gcc ${ERL_LDFLAGS} main.o gsuffix_tree.o -lerl_interface -lei -lpthread -o gsuffixtree ++ $(CC) ${ERL_LDFLAGS} main.o gsuffix_tree.o -lerl_interface -lei -lpthread -o gsuffixtree + + gsuffix_tree.o: gsuffix_tree.c gsuffix_tree.h +- gcc ${CFLAGS} ${ERL_CFLAGS} -o gsuffix_tree.o -c gsuffix_tree.c ++ $(CC) ${CFLAGS} ${ERL_CFLAGS} -o gsuffix_tree.o -c gsuffix_tree.c + + main.o: gsuffix_tree.h +- gcc ${CFLAGS} ${ERL_CFLAGS} -o main.o -c main.c ++ $(CC) ${CFLAGS} ${ERL_CFLAGS} -o main.o -c main.c + + clean: + -rm -f *.o +diff --git i/c_src/suffixtree/Makefile.in w/c_src/suffixtree/Makefile.in +index 8ed7c1d..3f40de4 100755 +--- i/c_src/suffixtree/Makefile.in ++++ w/c_src/suffixtree/Makefile.in +@@ -1,5 +1,6 @@ + + ++CC = @CC@ + ERL_CFLAGS = @ERL_CFLAGS@ + ERL_LIB = @ERL_LIB@ + CFLAGS = @CFLAGS@ +@@ -10,13 +11,13 @@ ERL_LDFLAGS= ${LDFLAGS} ${ERL_LIB} + + + suffixtree: main.o suffix_tree.o +- gcc ${ERL_LDFLAGS} main.o suffix_tree.o -lerl_interface -lei -lpthread -o suffixtree ++ $(CC) ${ERL_LDFLAGS} main.o suffix_tree.o -lerl_interface -lei -lpthread -o suffixtree + + suffix_tree.o: suffix_tree.c suffix_tree.h +- gcc ${CFLAGS} ${ERL_CFLAGS} -o suffix_tree.o -c suffix_tree.c ++ $(CC) ${CFLAGS} ${ERL_CFLAGS} -o suffix_tree.o -c suffix_tree.c + + main.o: suffix_tree.h +- gcc ${CFLAGS} ${ERL_CFLAGS} -o main.o -c main.c ++ $(CC) ${CFLAGS} ${ERL_CFLAGS} -o main.o -c main.c + + clean: + -rm -f *.o |
