summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Seifert <soap@gentoo.org>2021-05-24 21:55:23 +0200
committerSam James <sam@gentoo.org>2021-05-24 21:38:37 +0000
commit2cd8437b2d737dac6f635faa9cce85980557fe0c (patch)
treea35ff5ea6e85b783f8b6627a2a191e2c68def6ae /dev-util/boost-build
parentdev-python/pyfakefs: Added ~mips to KEYWORDS (diff)
downloadgentoo-2cd8437b2d737dac6f635faa9cce85980557fe0c.tar.gz
gentoo-2cd8437b2d737dac6f635faa9cce85980557fe0c.tar.bz2
gentoo-2cd8437b2d737dac6f635faa9cce85980557fe0c.zip
dev-util/boost-build: Fix for numpy include
Bug: https://bugs.gentoo.org/733830 Package-Manager: Portage-3.0.18, Repoman-3.0.3 Signed-off-by: David Seifert <soap@gentoo.org> Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'dev-util/boost-build')
-rw-r--r--dev-util/boost-build/boost-build-1.76.0-r2.ebuild (renamed from dev-util/boost-build/boost-build-1.76.0-r1.ebuild)1
-rw-r--r--dev-util/boost-build/files/boost-build-1.76.0-python-numpy.patch24
2 files changed, 25 insertions, 0 deletions
diff --git a/dev-util/boost-build/boost-build-1.76.0-r1.ebuild b/dev-util/boost-build/boost-build-1.76.0-r2.ebuild
index 2a800a247142..d3635332eaf6 100644
--- a/dev-util/boost-build/boost-build-1.76.0-r1.ebuild
+++ b/dev-util/boost-build/boost-build-1.76.0-r2.ebuild
@@ -24,6 +24,7 @@ PATCHES=(
"${FILESDIR}"/${PN}-1.73.0-add-none-feature-options.patch
"${FILESDIR}"/${PN}-1.76.0-respect-user-flags.patch
"${FILESDIR}"/${PN}-1.74.0-no-implicit-march-flags.patch
+ "${FILESDIR}"/${PN}-1.76.0-python-numpy.patch
)
src_unpack() {
diff --git a/dev-util/boost-build/files/boost-build-1.76.0-python-numpy.patch b/dev-util/boost-build/files/boost-build-1.76.0-python-numpy.patch
new file mode 100644
index 000000000000..ed04d5426341
--- /dev/null
+++ b/dev-util/boost-build/files/boost-build-1.76.0-python-numpy.patch
@@ -0,0 +1,24 @@
+From 61adb508853be1fa2c01a0c3a0c55fbd16cb9a52 Mon Sep 17 00:00:00 2001
+From: Peter Dimov <pdimov@gmail.com>
+Date: Mon, 24 May 2021 22:11:23 +0300
+Subject: [PATCH] Declare the /python//numpy target to hold the include path
+ (fixes #725)
+
+---
+ tools/python.jam | 3 +++
+ 1 file changed, 3 insertions(+)
+
+diff --git a/tools/python.jam b/tools/python.jam
+index 00706932d2..0dfc750a22 100644
+--- a/tools/python.jam
++++ b/tools/python.jam
+@@ -1052,6 +1052,9 @@ local rule configure ( version ? : cmd-or-prefix ? : includes * : libraries ? :
+ ;
+ }
+
++ # Declare the numpy target, which contains the NumPy include directory
++
++ alias numpy : : $(target-requirements) : : <include>$(.numpy-include) ;
+ }
+
+ # Conditional rule specification that will prevent building of a target