summaryrefslogtreecommitdiff
path: root/homebrew/boostmpi
diff options
context:
space:
mode:
authorMCApollo <34170230+MCApollo@users.noreply.github.com>2019-04-20 20:49:46 -0500
committerMCApollo <34170230+MCApollo@users.noreply.github.com>2019-04-23 20:18:47 -0500
commit12335518ab39608d58370c85ff9f5384ad2aa5f7 (patch)
tree352d81f2a2de3f1252af732080ec0fde38c13b4d /homebrew/boostmpi
parenta2b26ad12d4fa12f0273645caf4be6d0b8b71e7c (diff)
Ported in the homebrew-marauder for a hacky update/import system.
TODO: Maybe add a license & fix up messy code.
Diffstat (limited to 'homebrew/boostmpi')
-rw-r--r--homebrew/boostmpi/.beer39
-rw-r--r--homebrew/boostmpi/.make.sh-auto9
-rw-r--r--homebrew/boostmpi/_metadata/description1
-rw-r--r--homebrew/boostmpi/_metadata/homepage1
-rw-r--r--homebrew/boostmpi/_metadata/name1
-rw-r--r--homebrew/boostmpi/_metadata/version1
-rwxr-xr-xhomebrew/boostmpi/download.sh1
7 files changed, 53 insertions, 0 deletions
diff --git a/homebrew/boostmpi/.beer b/homebrew/boostmpi/.beer
new file mode 100644
index 000000000..436afe3e5
--- /dev/null
+++ b/homebrew/boostmpi/.beer
@@ -0,0 +1,39 @@
+{
+ "name": "BoostMpi",
+ "description": "C++ library for C++/MPI interoperability",
+ "url": "https://dl.bintray.com/boostorg/release/1.69.0/source/boost_1_69_0.tar.bz2",
+ "mirror": null,
+ "homepage": "https://www.boost.org/",
+ "depends": [
+ {
+ "depend": "boost",
+ "build-depend": false
+ },
+ {
+ "depend": "open-mpi",
+ "build-depend": false
+ }
+ ],
+ "resource": [],
+ "conflicts": [],
+ "patches": [],
+ "install": [
+ "args = [\"--prefix=#{prefix}\",",
+ "\"--libdir=#{lib}\",",
+ "\"-d2\",",
+ "\"-j#{ENV.make_jobs}\",",
+ "\"--layout=tagged-1.66\",",
+ "\"--user-config=user-config.jam\",",
+ "\"threading=multi,single\",",
+ "\"link=shared,static\"]",
+ "args << \"cxxflags=-std=c++11\"",
+ "if ENV.compiler == :clang",
+ "args << \"cxxflags=-stdlib=libc++\" << \"linkflags=-stdlib=libc++\"",
+ "end",
+ "open(\"user-config.jam\", \"a\") do |file|",
+ "file.write \"using darwin : : #{ENV.cxx} ;\\n\"",
+ "file.write \"using mpi ;\\n\""
+ ],
+ "version": "1_69_0",
+ "file": "boost-mpi.rb"
+} \ No newline at end of file
diff --git a/homebrew/boostmpi/.make.sh-auto b/homebrew/boostmpi/.make.sh-auto
new file mode 100644
index 000000000..c1dc8ab31
--- /dev/null
+++ b/homebrew/boostmpi/.make.sh-auto
@@ -0,0 +1,9 @@
+pkg:setup
+args = ["--prefix=#{prefix}", "--libdir=#{lib}", "-d2", "-j#{ENV.make_jobs}", "--layout=tagged-1.66", "--user-config=user-config.jam", "threading=multi,single", "link=shared,static"]
+args << "cxxflags=-std=c++11"
+if ENV.compiler == :clang
+args << "cxxflags=-stdlib=libc++" << "linkflags=-stdlib=libc++"
+end
+open("user-config.jam", "a") do |file|
+file.write "using darwin : : #{ENV.cxx} ;\n"
+file.write "using mpi ;\n"
diff --git a/homebrew/boostmpi/_metadata/description b/homebrew/boostmpi/_metadata/description
new file mode 100644
index 000000000..9cd6b982b
--- /dev/null
+++ b/homebrew/boostmpi/_metadata/description
@@ -0,0 +1 @@
+C++ library for C++/MPI interoperability
diff --git a/homebrew/boostmpi/_metadata/homepage b/homebrew/boostmpi/_metadata/homepage
new file mode 100644
index 000000000..cacbe13ee
--- /dev/null
+++ b/homebrew/boostmpi/_metadata/homepage
@@ -0,0 +1 @@
+https://www.boost.org/
diff --git a/homebrew/boostmpi/_metadata/name b/homebrew/boostmpi/_metadata/name
new file mode 100644
index 000000000..678664208
--- /dev/null
+++ b/homebrew/boostmpi/_metadata/name
@@ -0,0 +1 @@
+BoostMpi
diff --git a/homebrew/boostmpi/_metadata/version b/homebrew/boostmpi/_metadata/version
new file mode 100644
index 000000000..cd606465a
--- /dev/null
+++ b/homebrew/boostmpi/_metadata/version
@@ -0,0 +1 @@
+1_69_0
diff --git a/homebrew/boostmpi/download.sh b/homebrew/boostmpi/download.sh
new file mode 100755
index 000000000..e4693dbb6
--- /dev/null
+++ b/homebrew/boostmpi/download.sh
@@ -0,0 +1 @@
+wget https://dl.bintray.com/boostorg/release/1.69.0/source/boost_1_69_0.tar.bz2 \ No newline at end of file