diff options
author | Ruben Undheim <ruben.undheim@gmail.com> | 2016-07-05 18:02:38 +0200 |
---|---|---|
committer | Ruben Undheim <ruben.undheim@gmail.com> | 2016-07-05 18:02:38 +0200 |
commit | ef962f6008f25ab7cbd4ca21bcc72b97a1e2d76f (patch) | |
tree | 8149bee93d1a3f91d4503bfb3853adac4af0a85e /brew |
Imported Upstream version 0.0.34
Diffstat (limited to 'brew')
-rw-r--r-- | brew/README.md | 35 | ||||
-rw-r--r-- | brew/openEMS.rb | 26 |
2 files changed, 61 insertions, 0 deletions
diff --git a/brew/README.md b/brew/README.md new file mode 100644 index 0000000..2d85f66 --- /dev/null +++ b/brew/README.md @@ -0,0 +1,35 @@ +openEMS Homebrew +================ + +This is a [homebrew](http://brew.sh) formula to install [openEMS](http://openEMS.de) and all dependencies. + +How to install openEMS: +----------------------- + +You can install openEMS using this URL: +```bash + brew install --HEAD https://raw.github.com/thliebig/openEMS-Project/master/brew/openEMS.rb +``` + +Then create a folder and symbolic link in your home folder with these commands + +``` +mkdir ~/opt +ln -s /usr/local/Cellar/openEMS/HEAD ~/opt/openEMS +``` + +Install Octave if it isn't already installed + +``` +brew install octave +``` + +Start Octave from the command line and add the openEMS paths + +``` +addpath('~/opt/openEMS/share/openEMS/matlab'); +addpath('~/opt/openEMS/share/CSXCAD/matlab'); +savepath() +``` + +Verify your installation by completing the First Steps section of the Tutorials. http://openems.de/index.php/Tutorial:_First_Steps diff --git a/brew/openEMS.rb b/brew/openEMS.rb new file mode 100644 index 0000000..6ab3ebe --- /dev/null +++ b/brew/openEMS.rb @@ -0,0 +1,26 @@ +require "formula" + +class Openems < Formula + homepage "http://openems.de" + + head do + url "https://github.com/thliebig/openEMS-Project.git" + end + + depends_on "cmake" => :build + depends_on "flex" + depends_on "bison" + depends_on "qt" + depends_on "tinyxml" + depends_on "vtk" => ["with-qt", "c++11"] + depends_on "cgal" => "c++11" + depends_on "boost" => "c++11" + + def install + system "cmake", ".", *std_cmake_args + system "make" + # install is handled by ExternalProject_Add + end + +end + |