Use GitLab's API endpoint for fetching a git snapshot. (#7881)

* Use GitLab's API endpoint for fetching a git snapshot.

* More GitLab packages use the API.

* find_list_url for GitLab's API URLs.

* Flake8

* Url for 'hacckernels'.

* Check GitLab API regexps before the non-API ones.
This commit is contained in:
Sergey Kosukhin
2018-04-26 23:40:11 +02:00
committed by Adam J. Stewart
parent 8afdaa5805
commit 0f35f00b6e
11 changed files with 44 additions and 19 deletions

View File

@@ -32,9 +32,9 @@ class Vecgeom(CMakePackage):
(toolkits)."""
homepage = "https://gitlab.cern.ch/VecGeom/VecGeom"
url = "https://gitlab.cern.ch/api/v4/projects/VecGeom%2FVecGeom/repository/archive.tar.gz?sha=v0.3.rc"
version('0.3.rc', git='https://gitlab.cern.ch/VecGeom/VecGeom.git',
tag='v0.3.rc')
version('0.3.rc', 'c1f5d620f655f3c0610a44e7735203b5')
depends_on('cmake@3.5:', type='build')