gnu: tegola: Fix build.

* gnu/packages/geo.scm (tegola)[arguments]: Adapt the "unpack-path" for the new
unpack phase.
* gnu/packages/geo.scm (tegola)[phases]{set-version}: Update the directory path.
{rename-import}: Remove phase.
This commit is contained in:
Maxim Cournoyer 2019-05-06 23:10:36 -04:00
parent bdc0c20cab
commit d9ef50b3bc
No known key found for this signature in database
GPG key ID: 1260E46482E63562

View file

@ -668,21 +668,15 @@ (define-public tegola
(build-system go-build-system) (build-system go-build-system)
(arguments (arguments
`(#:import-path "github.com/go-spatial/tegola/cmd/tegola" `(#:import-path "github.com/go-spatial/tegola/cmd/tegola"
#:unpack-path "github.com/go-spatial" #:unpack-path "github.com/go-spatial/tegola"
#:phases #:phases
(modify-phases %standard-phases (modify-phases %standard-phases
(add-before 'build 'set-version (add-before 'build 'set-version
(lambda _ (lambda _
(with-directory-excursion (with-directory-excursion "src/github.com/go-spatial/tegola"
(string-append "src/github.com/go-spatial/tegola-" ,version)
(substitute* '("cmd/tegola/cmd/root.go" (substitute* '("cmd/tegola/cmd/root.go"
"cmd/tegola_lambda/main.go") "cmd/tegola_lambda/main.go")
(("version not set") ,version))) (("version not set") ,version)))
#t))
(add-before 'build 'rename-import
(lambda _
(rename-file (string-append "src/github.com/go-spatial/tegola-" ,version)
"src/github.com/go-spatial/tegola")
#t))))) #t)))))
(home-page "http://tegola.io") (home-page "http://tegola.io")
(synopsis "Vector tile server for maps") (synopsis "Vector tile server for maps")