From 47710f2a4ff3dace3e09a79e82cfb0f5d7346bd9 Mon Sep 17 00:00:00 2001 From: Marius Bakke Date: Wed, 10 Aug 2022 22:38:05 +0200 Subject: gnu: libcmis: Update to 0.5.2-46-gf264a61. * gnu/packages/libreoffice.scm (libcmis): Update to 0.5.2-46-gf264a61. [source]: Switch to GIT-FETCH. [native-inputs]: Add AUTOCONF, AUTOMAKE, and LIBTOOL. [arguments]: Override bootstrap phase. While at it, convert to gexp and remove label usage. --- gnu/packages/libreoffice.scm | 55 +++++++++++++++++++++++++++----------------- 1 file changed, 34 insertions(+), 21 deletions(-) (limited to 'gnu/packages/libreoffice.scm') diff --git a/gnu/packages/libreoffice.scm b/gnu/packages/libreoffice.scm index da30575357a..fa171e44487 100644 --- a/gnu/packages/libreoffice.scm +++ b/gnu/packages/libreoffice.scm @@ -348,35 +348,48 @@ working with graphics in the WPG (WordPerfect Graphics) format.") (define-public libcmis (package (name "libcmis") - (version "0.5.2") + ;; Note: Use an unreleased version because libreoffice requires it and + ;; is the only user (see ). + (version "0.5.2-46-gf264a61") + (home-page "https://github.com/tdf/libcmis") (source (origin - (method url-fetch) - (uri (string-append "https://github.com/tdf/libcmis/releases/download/v" - version "/libcmis-" version ".tar.xz")) - (sha256 - (base32 - "18h0a2gsfxvlv03nlcfvw9bzsflq5sin9agq6za103hr0ab8vcfp")))) + (method git-fetch) + (uri (git-reference (url home-page) + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "06ff5vw0xrymvvna18wlaayyk20755sk2541i1gh7zpbmncs2ni6")))) (build-system gnu-build-system) (native-inputs - (list cppunit pkg-config)) - (propagated-inputs ; in Requires field of .pkg + (list autoconf automake libtool cppunit pkg-config)) + (propagated-inputs ;in Requires field of .pkg (list curl libxml2)) (inputs (list boost cyrus-sasl openssl)) (arguments - `(#:configure-flags - (list - ;; FIXME: Man pages generation requires docbook-to-man; reenable - ;; it once this is available. - "--without-man" - ;; XXX: A configure test fails with GCC7 when including Boost headers. - "--disable-werror" - ;; During configure, the boost headers are found, but linking - ;; fails without the following flag. - (string-append "--with-boost=" - (assoc-ref %build-inputs "boost"))))) - (home-page "https://github.com/tdf/libcmis") + (list + #:configure-flags + #~(list + ;; FIXME: Man pages generation requires docbook-to-man; reenable + ;; it once this is available. + "--without-man" + ;; XXX: A configure test fails with GCC7 when including Boost headers. + "--disable-werror" + ;; During configure, the boost headers are found, but linking + ;; fails without the following flag. + (string-append "--with-boost=" + (dirname (dirname + (search-input-directory %build-inputs + "include/boost"))))) + #:phases + #~(modify-phases %standard-phases + (replace 'bootstrap + (lambda _ + ;; Override the bootstrap phase as the ancient autogen.sh + ;; script exits with a non-zero code when NOCONFIGURE=1. + (invoke "autoreconf" "-vif")))))) (synopsis "CMIS client library") (description "LibCMIS is a C++ client library for the CMIS interface. It allows C++ applications to connect to any ECM behaving as a CMIS server such -- cgit v1.2.3