gentoo/dev-libs/boost/files/boost-1.48.0-disable_libboost_python3.patch
Danny Robson 01f1094931 Add initial support for *-mingw* CHOST
This is a direct copy of the Gentoo boost-1.53.0 ebuild, with only minor
differences to support mingw targets.

* specify target-os in bjam options
* disable builds with threads and shared linking due to unresolved
  linking errors.
2013-08-01 17:52:02 +10:00

63 lines
1.5 KiB
Diff

--- libs/python/build/Jamfile.v2
+++ libs/python/build/Jamfile.v2
@@ -39,23 +39,6 @@
PYTHON_ID = [ regex.replace $(python-id) "[*\\/:\"\']" "_" ] ;
}
-
-rule find-py3-version
-{
- local versions = [ feature.values python ] ;
- local py3ver ;
- for local v in $(versions)
- {
- if $(v) >= 3.0
- {
- py3ver = $(v) ;
- }
- }
- return $(py3ver) ;
-}
-
-py3-version = [ find-py3-version ] ;
-
project boost/python
: source-location ../src
: requirements
@@ -82,7 +65,7 @@
rule cond ( test ? : yes * : no * ) { if $(test) { return $(yes) ; } else { return $(no) ; } }
rule unless ( test ? : yes * : no * ) { if ! $(test) { return $(yes) ; } else { return $(no) ; } }
-rule lib_boost_python ( is-py3 ? )
+rule lib_boost_python
{
local python_major_version = [ MATCH "^([^.]+)" : [ feature.values python ] ] ;
@@ -91,7 +74,7 @@
{
python2 = true ;
}
- lib [ cond $(is-py3) : boost_python3 : boost_python ]
+ lib boost_python
: # sources
numeric.cpp
list.cpp
@@ -148,7 +131,6 @@
<dependency>config-warning
<python-debugging>on:<define>BOOST_DEBUG_PYTHON
- [ cond $(is-py3) : <python>$(py3-version) ]
: # default build
<link>shared
: # usage requirements
@@ -160,9 +142,3 @@
lib_boost_python ;
boost-install boost_python ;
-
-if $(py3-version)
-{
- lib_boost_python yes ;
- boost-install boost_python3 ;
-}