summaryrefslogtreecommitdiff
path: root/homebrew/boostpython
diff options
context:
space:
mode:
Diffstat (limited to 'homebrew/boostpython')
-rw-r--r--homebrew/boostpython/.beer38
-rw-r--r--homebrew/boostpython/.make.sh-auto11
-rw-r--r--homebrew/boostpython/_metadata/description1
-rw-r--r--homebrew/boostpython/_metadata/homepage1
-rw-r--r--homebrew/boostpython/_metadata/name1
-rw-r--r--homebrew/boostpython/_metadata/version1
-rwxr-xr-xhomebrew/boostpython/download.sh1
7 files changed, 54 insertions, 0 deletions
diff --git a/homebrew/boostpython/.beer b/homebrew/boostpython/.beer
new file mode 100644
index 000000000..2a816b190
--- /dev/null
+++ b/homebrew/boostpython/.beer
@@ -0,0 +1,38 @@
+{
+ "name": "BoostPython",
+ "description": "C++ library for C++/Python2 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
+ }
+ ],
+ "resource": [],
+ "conflicts": [],
+ "patches": [],
+ "install": [
+ "args = [\"--prefix=#{prefix}\",",
+ "\"--libdir=#{lib}\",",
+ "\"-d2\",",
+ "\"-j#{ENV.make_jobs}\",",
+ "\"--layout=tagged-1.66\",",
+ "\"threading=multi,single\",",
+ "\"link=shared,static\"]",
+ "args << \"cxxflags=-std=c++14\"",
+ "if ENV.compiler == :clang",
+ "args << \"cxxflags=-stdlib=libc++\" << \"linkflags=-stdlib=libc++\"",
+ "end",
+ "pyver = Language::Python.major_minor_version \"python\"",
+ "system \"./bootstrap.sh\", \"--prefix=#{prefix}\", \"--libdir=#{lib}\",",
+ "\"--with-libraries=python\", \"--with-python=python\"",
+ "system \"./b2\", \"--build-dir=build-python\", \"--stagedir=stage-python\",",
+ "\"python=#{pyver}\", *args",
+ "lib.install Dir[\"stage-python/lib/*py*\"]",
+ "doc.install Dir[\"libs/python/doc/*\"]"
+ ],
+ "version": "1_69_0",
+ "file": "boost-python.rb"
+} \ No newline at end of file
diff --git a/homebrew/boostpython/.make.sh-auto b/homebrew/boostpython/.make.sh-auto
new file mode 100644
index 000000000..1b5120094
--- /dev/null
+++ b/homebrew/boostpython/.make.sh-auto
@@ -0,0 +1,11 @@
+pkg:setup
+args = ["--prefix=#{prefix}", "--libdir=#{lib}", "-d2", "-j#{ENV.make_jobs}", "--layout=tagged-1.66", "threading=multi,single", "link=shared,static"]
+args << "cxxflags=-std=c++14"
+if ENV.compiler == :clang
+args << "cxxflags=-stdlib=libc++" << "linkflags=-stdlib=libc++"
+end
+pyver = Language::Python.major_minor_version "python"
+./bootstrap.sh --prefix=${PKG_TAPF} --libdir=${PKG_TAPF}/lib --with-libraries=python --with-python=python
+./b2 --build-dir=build-python --stagedir=stage-python python=#{pyver} *args
+lib.install Dir["stage-python/lib/*py*"]
+doc.install Dir["libs/python/doc/*"]
diff --git a/homebrew/boostpython/_metadata/description b/homebrew/boostpython/_metadata/description
new file mode 100644
index 000000000..07495f340
--- /dev/null
+++ b/homebrew/boostpython/_metadata/description
@@ -0,0 +1 @@
+C++ library for C++/Python2 interoperability
diff --git a/homebrew/boostpython/_metadata/homepage b/homebrew/boostpython/_metadata/homepage
new file mode 100644
index 000000000..cacbe13ee
--- /dev/null
+++ b/homebrew/boostpython/_metadata/homepage
@@ -0,0 +1 @@
+https://www.boost.org/
diff --git a/homebrew/boostpython/_metadata/name b/homebrew/boostpython/_metadata/name
new file mode 100644
index 000000000..1dcd8f472
--- /dev/null
+++ b/homebrew/boostpython/_metadata/name
@@ -0,0 +1 @@
+BoostPython
diff --git a/homebrew/boostpython/_metadata/version b/homebrew/boostpython/_metadata/version
new file mode 100644
index 000000000..cd606465a
--- /dev/null
+++ b/homebrew/boostpython/_metadata/version
@@ -0,0 +1 @@
+1_69_0
diff --git a/homebrew/boostpython/download.sh b/homebrew/boostpython/download.sh
new file mode 100755
index 000000000..e4693dbb6
--- /dev/null
+++ b/homebrew/boostpython/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