~ruther/guix-local

908fa1ac2730c1eab170938b9eaffdd97faa5d75 — Andreas Enge 1 year, 2 months ago 78b021d
gnu: firebird: Use git-fetch.

* gnu/packages/databases.scm (source): Use git-fetch. Do not delete
files that are not in the git repository.
[native-inputs]: Set to autoconf, automake and libtool on all
architectures.

Change-Id: I667f6fb46b9ac70139f12bd492be5bfebae42995
1 files changed, 30 insertions(+), 36 deletions(-)

M gnu/packages/databases.scm
M gnu/packages/databases.scm => gnu/packages/databases.scm +30 -36
@@ 311,39 311,35 @@ ElasticSearch server")
    (name "firebird")
    (version "3.0.12")
    (source
     (let ((revision "33787-0"))
       (origin
         (method url-fetch)
         (uri (string-append "https://github.com/FirebirdSQL/"
                             "firebird/releases/download/v"
                             version "/"
                             "Firebird-" version "." revision ".tar.bz2"))
         (sha256
          (base32 "07w109k237slwyhgyxma9r5my0dkvksc7ykpw0a4h7gpv06vzcl5"))
         (patches (search-patches "firebird-riscv64-support-pt1.patch"
                                  "firebird-riscv64-support-pt2.patch"))
         (modules '((guix build utils)))
         (snippet
          `(begin
             (for-each
              delete-file-recursively
              (list "extern/btyacc/test" ; TODO: package and remove entirely
                    "extern/editline"
                    "extern/icu"
                    "extern/libtommath"
                    "extern/zlib"
                    "src/include/firebird/impl/boost"

                    ;; Missing licence.
                    "builds/install/arch-specific/solaris"
                    "extern/SfIO"
                    "src/msgs/templates.sql"

                    ;; Generated files missing sources.
                    "doc/Firebird-3-QuickStart.pdf"
                    (string-append "doc/Firebird-" ,version
                                   "-ReleaseNotes.pdf")
                    "doc/README.SecureRemotePassword.html")))))))
     (origin
       (method git-fetch)
       (uri (git-reference
             (url "https://github.com/FirebirdSQL/firebird")
             (commit (string-append "v" version))))
       (file-name (git-file-name name version))
       (sha256
        (base32 "09i51s3zgd0qkd17kk32cq99kpxgkm3frnjmr4dgr1csncr2v3x6"))
       (patches (search-patches "firebird-riscv64-support-pt1.patch"
                                "firebird-riscv64-support-pt2.patch"))
       (modules '((guix build utils)))
       (snippet
        `(begin
           (for-each
            delete-file-recursively
            (list "extern/btyacc/test" ; TODO: package and remove entirely
                  "extern/editline"
                  "extern/icu"
                  "extern/libtommath"
                  "extern/zlib"
                  "src/include/firebird/impl/boost"

                  ;; Missing licence.
                  "builds/install/arch-specific/solaris"
                  "extern/SfIO"
                  "src/msgs/templates.sql"

                  ;; Generated files missing sources.
                  "doc/README.SecureRemotePassword.html"))))))
    (build-system gnu-build-system)
    (outputs (list "debug" "out"))
    (arguments


@@ 445,9 441,7 @@ ElasticSearch server")
                           (list "include/firebird/impl"
                                 "lib/firebird/plugins/udr")))))))))
    (native-inputs
     (if (target-riscv64?)
       (list autoconf automake libtool)
       '()))
     (list autoconf automake libtool))
    (inputs
     (list boost
           editline