summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlon Bar-Lev <alonbl@gentoo.org>2015-09-15 00:41:27 +0300
committerAlon Bar-Lev <alonbl@gentoo.org>2015-09-15 00:42:25 +0300
commit4af0457d86ca573a1bc0424f2e1b01f0da130c43 (patch)
tree43908e33568762925ecd39632d4f5f35924003d6 /dev-libs/botan/files
parentsys-apps/pciutils: Removed old. (diff)
downloadgentoo-4af0457d86ca573a1bc0424f2e1b01f0da130c43.tar.gz
gentoo-4af0457d86ca573a1bc0424f2e1b01f0da130c43.tar.bz2
gentoo-4af0457d86ca573a1bc0424f2e1b01f0da130c43.zip
dev-libs/botan: version bump
Bug: 560338 Package-Manager: portage-2.2.20.1
Diffstat (limited to 'dev-libs/botan/files')
-rw-r--r--dev-libs/botan/files/botan-1.11.20-build-python.patch35
1 files changed, 35 insertions, 0 deletions
diff --git a/dev-libs/botan/files/botan-1.11.20-build-python.patch b/dev-libs/botan/files/botan-1.11.20-build-python.patch
new file mode 100644
index 000000000000..ae858856864c
--- /dev/null
+++ b/dev-libs/botan/files/botan-1.11.20-build-python.patch
@@ -0,0 +1,35 @@
+From 5bb0b47e608e083dda5e39132174b840f3b091cf Mon Sep 17 00:00:00 2001
+From: Alon Bar-Lev <alon.barlev@gmail.com>
+Date: Tue, 15 Sep 2015 00:18:19 +0300
+Subject: [PATCH] build: support multiple python versions
+
+Signed-off-by: Alon Bar-Lev <alon.barlev@gmail.com>
+---
+ src/scripts/install.py | 11 ++++++-----
+ 1 file changed, 6 insertions(+), 5 deletions(-)
+
+diff --git a/src/scripts/install.py b/src/scripts/install.py
+index 2c69213..d1d62b6 100755
+--- a/src/scripts/install.py
++++ b/src/scripts/install.py
+@@ -181,11 +181,12 @@ def main(args = None):
+ os.path.join(pkgconfig_dir, os.path.basename(cfg['botan_pkgconfig'])))
+
+ if 'ffi' in cfg['mod_list'].split('\n'):
+- py_lib_path = os.path.join(lib_dir, 'python%s' % (cfg['python_version']), 'site-packages')
+- logging.debug('Installing python module to %s' % (py_lib_path))
+- makedirs(py_lib_path)
+- for py in ['botan.py']:
+- copy_file(os.path.join(cfg['python_dir'], py), os.path.join(py_lib_path, py))
++ for ver in cfg['python_version'].split(','):
++ py_lib_path = os.path.join(lib_dir, 'python%s' % (ver), 'site-packages')
++ logging.debug('Installing python module to %s' % (py_lib_path))
++ makedirs(py_lib_path)
++ for py in ['botan.py']:
++ copy_file(os.path.join(cfg['python_dir'], py), os.path.join(py_lib_path, py))
+
+ shutil.rmtree(target_doc_dir, True)
+ shutil.copytree(cfg['doc_output_dir'], target_doc_dir)
+--
+2.4.6
+