From 0d9670402bb2d62a25242fe6ca7b32838e3eea2c Mon Sep 17 00:00:00 2001
From: Andre Anjos <andre.dos.anjos@gmail.com>
Date: Tue, 19 Feb 2019 10:37:25 +0100
Subject: [PATCH] [conda] Implements new documentation installation strategy to
 solve test-only conda-builds based on tarballs

---
 conda/meta.yaml | 11 +++++------
 1 file changed, 5 insertions(+), 6 deletions(-)

diff --git a/conda/meta.yaml b/conda/meta.yaml
index ca2dec95..9f7b03da 100644
--- a/conda/meta.yaml
+++ b/conda/meta.yaml
@@ -17,12 +17,10 @@ build:
     - python setup.py sdist --formats=zip
     {% endif %}
     - python setup.py install --single-version-externally-managed --record record.txt
-    # installs the documentation source, readme and license to share/doc
-    # so it is available during test time
-    - install -d ${PREFIX}/share/doc/{{ name }}
-    - install -m 644 -D README.rst ${PREFIX}/share/doc/{{ name }}
-    - install -m 644 -D LICENSE ${PREFIX}/share/doc/{{ name }}
-    - find doc -type f -exec install -m 644 -D "{}" "${PREFIX}/share/doc/{{ name }}/{}" \;
+     # installs the documentation source, readme to share/doc so it is available
+    # during test time
+    - install -d "${PREFIX}/share/doc/{{ name }}"
+    - cp -R README.rst doc "${PREFIX}/share/doc/{{ name }}/"
 
 requirements:
   host:
@@ -93,3 +91,4 @@ about:
   license: BSD 3-Clause
   summary: Tools for development and CI integration of Bob packages
   license_family: BSD
+  license_file: ../LICENSE
-- 
GitLab