From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:470:142:3::10]:59712) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1isvNz-0001gc-LT for guix-patches@gnu.org; Sat, 18 Jan 2020 16:12:04 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1isvNy-00018e-H1 for guix-patches@gnu.org; Sat, 18 Jan 2020 16:12:03 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:36339) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1isvNy-00018a-DV for guix-patches@gnu.org; Sat, 18 Jan 2020 16:12:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1isvNy-0001nC-9S for guix-patches@gnu.org; Sat, 18 Jan 2020 16:12:02 -0500 Subject: [bug#39182] [PATCH 02/26] gnu: Add kmime. Resent-Message-ID: From: Hartmut Goebel Date: Sat, 18 Jan 2020 22:11:21 +0100 Message-Id: <20200118211145.27488-2-h.goebel@crazy-compilers.com> In-Reply-To: <20200118211145.27488-1-h.goebel@crazy-compilers.com> References: <20200118211145.27488-1-h.goebel@crazy-compilers.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: 39182@debbugs.gnu.org * gnu/packages/kde-pim.scm (kmime): New variable. --- gnu/packages/kde-pim.scm | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/gnu/packages/kde-pim.scm b/gnu/packages/kde-pim.scm index 3bf3e96a02..393ffaba7e 100644 --- a/gnu/packages/kde-pim.scm +++ b/gnu/packages/kde-pim.scm @@ -110,3 +110,37 @@ data. This package contains the Akonadi PIM storage server and associated programs.") (license license:fdl1.2+))) + +(define-public kmime + (package + (name "kmime") + (version "19.08.3") + (source + (origin + (method url-fetch) + (uri (string-append "mirror://kde/stable/applications/" version + "/src/kmime-" version ".tar.xz")) + (sha256 + (base32 "1pc00pwwrngsyr7ppvqwfgvcgy2wiqdbqxhv9xidn4dw9way2ng6")))) + (build-system qt-build-system) + (native-inputs + `(("extra-cmake-modules" ,extra-cmake-modules))) + (inputs + `(("kcodecs" ,kcodecs) + ("ki18n" ,ki18n) + ("qtbase" ,qtbase))) + (arguments + `(#:phases + (modify-phases %standard-phases + (add-after 'unpack 'fix-test-case + (lambda _ + ;; This is curious: autotests/CMakeLists.txt sets LC_TIME=C, but + ;; the Qt locale returns different. See kmime commit 3a9651d26a. + (substitute* "autotests/dateformattertest.cpp" + (("(Today|Yesterday) 12:34:56" line day) + (string-append day " 12:34 PM"))) + #t))))) + (home-page "https://api.kde.org/stable/kdepimlibs-apidocs/") + (synopsis "Library for handling MIME data") + (description "A library for MIME handling.") + (license license:lgpl2.0+))) -- 2.21.1