summaryrefslogtreecommitdiff
path: root/homebrew/boostpython/.beer
blob: 2a816b190b8203d87565f4811a0137c1967b98c2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
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"
}