diff options
| author | Tom Saeger | 2012-02-04 15:28:49 -0600 |
|---|---|---|
| committer | Adam Vandenberg | 2012-03-15 20:46:30 -0700 |
| commit | fceb27b5c4dc74539c398b41080e5bcbc515f863 (patch) | |
| tree | e1dc231fd10153d078827f888449d39d867babac /Library | |
| parent | be6ebb1ab754f3376d69f3ff7509f98833010818 (diff) | |
| download | homebrew-fceb27b5c4dc74539c398b41080e5bcbc515f863.tar.bz2 | |
squirrel 3.0.2
Also added pkg-config libsquirrel.pc
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/squirrel.rb | 25 |
1 files changed, 23 insertions, 2 deletions
diff --git a/Library/Formula/squirrel.rb b/Library/Formula/squirrel.rb index 06f42d42e..91027f649 100644 --- a/Library/Formula/squirrel.rb +++ b/Library/Formula/squirrel.rb @@ -1,9 +1,10 @@ require 'formula' class Squirrel < Formula - url 'http://downloads.sourceforge.net/project/squirrel/squirrel2/squirrel%202.2.4%20stable/squirrel_2.2.4_stable.tar.gz' homepage 'http://www.squirrel-lang.org' - md5 'e411dfd1bcc5220aa80de53e4a5f094d' + url 'http://squirrel.googlecode.com/files/squirrel_3_0_2_stable.tar.gz' + version '3.0.2' + md5 '1355ee4220b0448119b6887719bae37f' def install system "make" @@ -11,5 +12,25 @@ class Squirrel < Formula prefix.install %w[bin include lib] doc.install Dir['doc/*.pdf'] doc.install %w[etc samples] + # See: https://github.com/mxcl/homebrew/pull/9977 + (lib+'pkgconfig/libsquirrel.pc').write pkg_file + end + + def pkg_file; <<-EOS.undent + prefix=#{prefix} + exec_prefix=${prefix} + libdir=/${exec_prefix}/lib + includedir=/${prefix}/include + bindir=/${prefix}/bin + ldflags= -L/${prefix}/lib + + Name: libsquirrel + Description: squirrel library + Version: 3.0.2 + + Requires: + Libs: -L${libdir} -lsquirrel -lsqstdlib + Cflags: -I${includedir} + EOS end end |
