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

---
 bob/devtools/templates/conda/meta.yaml | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/bob/devtools/templates/conda/meta.yaml b/bob/devtools/templates/conda/meta.yaml
index 1d480ff6..7a0e3209 100644
--- a/bob/devtools/templates/conda/meta.yaml
+++ b/bob/devtools/templates/conda/meta.yaml
@@ -15,6 +15,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 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:
   # place your build dependencies before the 'host' section
@@ -47,7 +51,8 @@ test:
     # extend this list with further test-time-only dependencies
 
 about:
+  summary: (( title ))
   home: https://www.idiap.ch/software/{{ group }}/
   license: (% if license == 'gplv3' %)GNU General Public License v3 (GPLv3)(% else %)BSD 3-Clause(% endif %)
   license_family: (% if license == 'gplv3' %)GPL(% else %)BSD(% endif %)
-  summary: (( title ))
+  license_file: (% if license == 'gplv3' %)../COPYING(% else %)../LICENSE(% endif %)
-- 
GitLab