gnu: tegola: Fix build.
authorMaxim Cournoyer <maxim.cournoyer@gmail.com>
Tue, 7 May 2019 03:10:36 +0000 (23:10 -0400)
committerMaxim Cournoyer <maxim.cournoyer@gmail.com>
Tue, 7 May 2019 03:10:36 +0000 (23:10 -0400)
* 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.

gnu/packages/geo.scm

index c8d149a..94f2cf0 100644 (file)
@@ -668,21 +668,15 @@ extension.")
     (build-system go-build-system)
     (arguments
      `(#:import-path "github.com/go-spatial/tegola/cmd/tegola"
     (build-system go-build-system)
     (arguments
      `(#:import-path "github.com/go-spatial/tegola/cmd/tegola"
-       #:unpack-path "github.com/go-spatial"
+       #:unpack-path "github.com/go-spatial/tegola"
        #:phases
        (modify-phases %standard-phases
          (add-before 'build 'set-version
            (lambda _
        #:phases
        (modify-phases %standard-phases
          (add-before 'build 'set-version
            (lambda _
-             (with-directory-excursion
-               (string-append "src/github.com/go-spatial/tegola-" ,version)
+             (with-directory-excursion "src/github.com/go-spatial/tegola"
                (substitute* '("cmd/tegola/cmd/root.go"
                               "cmd/tegola_lambda/main.go")
                  (("version not set") ,version)))
                (substitute* '("cmd/tegola/cmd/root.go"
                               "cmd/tegola_lambda/main.go")
                  (("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)))))
     (home-page "http://tegola.io")
     (synopsis "Vector tile server for maps")
              #t)))))
     (home-page "http://tegola.io")
     (synopsis "Vector tile server for maps")