aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorAli Asad Lotia2010-04-01 23:13:22 -0400
committerAdam Vandenberg2010-04-04 11:49:41 -0700
commita88a1deb32e36133d60577add9837d40d83f22ad (patch)
tree811e1265d8aca5db3a0d0c130b2187850303a9e3 /Library
parente60964061070714b81fe3c468478a7d433b77e6e (diff)
downloadhomebrew-a88a1deb32e36133d60577add9837d40d83f22ad.tar.bz2
Formula for the Falcon programming language.
The initial commit of the Falcon programming language. This formula installs version 0.9.6.4 and also installs the documentation for the core language and for the standard libraries (feathers). Signed-off-by: Adam Vandenberg <flangy@gmail.com> * Minor reformats
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/falcon.rb45
1 files changed, 45 insertions, 0 deletions
diff --git a/Library/Formula/falcon.rb b/Library/Formula/falcon.rb
new file mode 100644
index 000000000..221e7bcf0
--- /dev/null
+++ b/Library/Formula/falcon.rb
@@ -0,0 +1,45 @@
+# This formula currently uses the bundled libedit since there are known
+# problems with readline.
+
+require 'formula'
+
+class FalconHtmldocs <Formula
+ url 'http://falconpl.org/project_dl/_official_rel/Falcon-docs-core.0.9.6.4.tar.gz'
+ md5 '94c5b17af5b9e06e4d97d497c292aad0'
+end
+
+class FalconFeathersHtmldocs <Formula
+ url 'http://falconpl.org/project_dl/_official_rel/Falcon-feathers-docs.0.9.6.4.tar.gz'
+ md5 '42ffa8650cf5a86e426837c38977ea5a'
+end
+
+class Falcon <Formula
+ url 'http://falconpl.org/project_dl/_official_rel/Falcon-0.9.6.4.tar.gz'
+ homepage 'http://www.falconpl.org/'
+ md5 '35475a49f8dcc9ccf1c89f54de156951'
+
+ depends_on 'cmake'
+ depends_on 'pcre'
+
+ def install
+ cmake_opts = "-DCMAKE_INSTALL_NAME_DIR=#{prefix}/lib"
+ ENV.append "EXTRA_CMAKE", cmake_opts
+ system "./build.sh", "-p", "#{prefix}", "-int", "-el"
+ system "./build.sh", "-i"
+ # install the htmldocs for the core and standard modules (feathers)
+ FalconHtmldocs.new.brew {
+ (doc+'core-doc').install Dir['*']
+ }
+ FalconFeathersHtmldocs.new.brew {
+ (doc+'feathers-doc').install Dir['*']
+ }
+ end
+
+ def caveats; <<-EOS.undent
+ HTML docs for the core and standard libraries (feathers) are
+ installed in #{doc}/core-doc and
+ #{doc}/feathers-doc respectively.
+
+ EOS
+ end
+end