2009-10-15 08:07:12 +00:00
|
|
|
require 'formula'
|
2009-09-07 11:03:28 +00:00
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Wrangler < Formula
|
2010-04-07 05:58:35 +00:00
|
|
|
homepage 'http://www.cs.kent.ac.uk/projects/forse/'
|
2012-03-10 22:59:32 +00:00
|
|
|
url 'http://www.cs.kent.ac.uk/projects/forse/wrangler/wrangler-0.9/wrangler-0.9.3.1.tar.gz'
|
2012-09-03 18:33:56 +00:00
|
|
|
sha1 'a0afccf0ad08c070e275d48b4cbd179b4368bba4'
|
2009-09-07 11:03:28 +00:00
|
|
|
|
2009-09-21 18:00:13 +00:00
|
|
|
depends_on 'erlang'
|
|
|
|
|
2012-04-09 17:33:47 +00:00
|
|
|
def patches
|
|
|
|
# Respect $CC during compilation. Merged upstream:
|
|
|
|
# https://github.com/RefactoringTools/wrangler/pull/41
|
|
|
|
DATA
|
|
|
|
end
|
|
|
|
|
2009-09-07 11:03:28 +00:00
|
|
|
def install
|
2009-12-19 05:33:02 +00:00
|
|
|
ENV.deparallelize
|
2012-03-10 22:59:32 +00:00
|
|
|
system "./configure", "--prefix=#{prefix}"
|
2009-09-07 11:03:28 +00:00
|
|
|
system "make"
|
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|
2012-04-09 17:33:47 +00:00
|
|
|
|
|
|
|
__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
|