diff options
| author | Samuel John | 2013-04-01 10:26:48 +0200 |
|---|---|---|
| committer | Samuel John | 2013-04-01 10:26:48 +0200 |
| commit | 6238a2b72b63b755b9b4a4b16fe4f3dd8a785138 (patch) | |
| tree | fead4be222f7ddf82ce62ecbb4346c565673c844 /Library/Formula | |
| parent | 3fa395b218cba4c4a22e6ecb6693ed09a523b6a1 (diff) | |
| download | homebrew-6238a2b72b63b755b9b4a4b16fe4f3dd8a785138.tar.bz2 | |
fann and wxmaxima: are now in homebrew/science
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/fann.rb | 56 | ||||
| -rw-r--r-- | Library/Formula/wxmaxima.rb | 35 |
2 files changed, 0 insertions, 91 deletions
diff --git a/Library/Formula/fann.rb b/Library/Formula/fann.rb deleted file mode 100644 index 7190fb4a5..000000000 --- a/Library/Formula/fann.rb +++ /dev/null @@ -1,56 +0,0 @@ -require 'formula' - -class Fann < Formula - homepage 'http://leenissen.dk/fann/wp/' - url 'http://downloads.sourceforge.net/project/fann/fann/2.2.0/FANN-2.2.0-Source.tar.gz' - sha1 'ff8341e4104bdbc0f3ab7ad39aef33285f8512d4' - - depends_on 'cmake' => :build - option :universal - - def install - ENV.universal_binary if build.universal? - system "cmake", ".", *std_cmake_args - system "make install" - end - - test do - (testpath/'xor.data').write <<-EOS.undent - 4 2 1 - -1 -1 - -1 - -1 1 - 1 - 1 -1 - 1 - 1 1 - -1 - EOS - - (testpath/'test.c').write <<-EOS.undent - #include "fann.h" - int main() - { - const unsigned int num_input = 2; - const unsigned int num_output = 1; - const unsigned int num_layers = 3; - const unsigned int num_neurons_hidden = 3; - const float desired_error = (const float) 0.001; - const unsigned int max_epochs = 500000; - const unsigned int epochs_between_reports = 1000; - struct fann *ann = fann_create_standard(num_layers, num_input, - num_neurons_hidden, num_output); - fann_set_activation_function_hidden(ann, FANN_SIGMOID_SYMMETRIC); - fann_set_activation_function_output(ann, FANN_SIGMOID_SYMMETRIC); - fann_train_on_file(ann, "xor.data", max_epochs, - epochs_between_reports, desired_error); - fann_save(ann, "xor_float.net"); - fann_destroy(ann); - return 0; - } - EOS - system ENV.cc, "-o", "test", "test.c", "-lfann" - system "./test" - system "cat xor_float.net" - end -end diff --git a/Library/Formula/wxmaxima.rb b/Library/Formula/wxmaxima.rb deleted file mode 100644 index 45c92d0c4..000000000 --- a/Library/Formula/wxmaxima.rb +++ /dev/null @@ -1,35 +0,0 @@ -require 'formula' - -class Wxmaxima < Formula - homepage 'http://andrejv.github.com/wxmaxima' - url 'https://sourceforge.net/projects/wxmaxima/files/wxMaxima/12.09.0/wxMaxima-12.09.0.tar.gz' - sha1 '9b56f674392eabb75183b228757df8834b45b2a6' - - depends_on 'wxmac' - - def install - system "./configure", "--disable-dependency-tracking", - "--prefix=#{prefix}" - system 'make' - cd 'locales' do - system 'make', 'allmo' - end - system 'make', 'wxMaxima.app' - prefix.install 'wxMaxima.app' - system "make install" - end - - def caveats - <<-EOS.undent - The program you want to run is wxmaxima.app, and it gets installed into: - #{prefix} - - To symlink it into Applications, you can type: - ln -s #{prefix}/wxmaxima.app /Applications - - When you start wxmaxima the first time, you have to open Preferences, - and tell it where maxima is located. - - EOS - end -end |
