From patchwork Tue May 19 17:36:28 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: "vasilii.smirnov--- via Guix-patches\" via" X-Patchwork-Id: 22218 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 88CC227BBE1; Tue, 19 May 2020 18:37:09 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL, T_DKIM_INVALID,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTP id E232527BBE3 for ; Tue, 19 May 2020 18:37:08 +0100 (BST) Received: from localhost ([::1]:50606 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jb6Au-0006rk-HL for patchwork@mira.cbaines.net; Tue, 19 May 2020 13:37:08 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:37356) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jb6Ao-0006qT-OW for guix-patches@gnu.org; Tue, 19 May 2020 13:37:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:39304) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jb6Ao-0007YL-FO for guix-patches@gnu.org; Tue, 19 May 2020 13:37:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jb6Ao-0000qL-DE for guix-patches@gnu.org; Tue, 19 May 2020 13:37:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#41293] [PATCH 1/1] gnu: Add appstream. Resent-From: Ryan Prior Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 19 May 2020 17:37:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 41293 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: To: 41293@debbugs.gnu.org Received: via spool by 41293-submit@debbugs.gnu.org id=B41293.15899098033207 (code B ref 41293); Tue, 19 May 2020 17:37:02 +0000 Received: (at 41293) by debbugs.gnu.org; 19 May 2020 17:36:43 +0000 Received: from localhost ([127.0.0.1]:50849 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jb6AV-0000pf-D0 for submit@debbugs.gnu.org; Tue, 19 May 2020 13:36:43 -0400 Received: from mail-40134.protonmail.ch ([185.70.40.134]:56900) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jb6AS-0000pC-Ma for 41293@debbugs.gnu.org; Tue, 19 May 2020 13:36:41 -0400 Date: Tue, 19 May 2020 17:36:28 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail; t=1589909794; bh=ndeDZ3e0QYnW4O+r3d5zorK1GM3yQpS2l2pbQ0vvU4o=; h=Date:To:From:Reply-To:Subject:In-Reply-To:References:From; b=R3WHGDwZIWIHHYqBSAVULfjKcG+7phJ13bgFPLkPtclb6OHhIJ2/TeGuqzdRW4fEh D+hFhtquZKOmLOoZZ+JKoBHa56lydO1G8je2EaYwrx7nA29FjLQgU9rzB4SHLFl8LE Mdg04C2M09xUF0IyEyTQHG3oXbWeYSY0mrOlOJoQ= Message-ID: <20200519173617.29250-2-rprior@protonmail.com> In-Reply-To: <20200519173617.29250-1-rprior@protonmail.com> References: <20200519173617.29250-1-rprior@protonmail.com> MIME-Version: 1.0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" Reply-to: Ryan Prior , Ryan Prior via Guix-patches X-Patchwork-Original-From: Ryan Prior via Guix-patches via From: "vasilii.smirnov--- via Guix-patches\" via" X-getmail-retrieved-from-mailbox: Patches * gnu/packages/freedesktop.scm (appstream): New variable. --- gnu/packages/freedesktop.scm | 59 ++++++++++++++++++++++++++++++++++++ 1 file changed, 59 insertions(+) diff --git a/gnu/packages/freedesktop.scm b/gnu/packages/freedesktop.scm index f00cb1e076..2373cc733c 100644 --- a/gnu/packages/freedesktop.scm +++ b/gnu/packages/freedesktop.scm @@ -20,6 +20,7 @@ ;;; Copyright © 2020 Jakub Kądziołka ;;; Copyright © 2020 Rene Saavedra ;;; Copyright © 2020 Nicolò Balzarotti +;;; Copyright © 2020 Ryan Prior ;;; ;;; This file is part of GNU Guix. ;;; @@ -55,8 +56,10 @@ #:use-module (gnu packages bash) #:use-module (gnu packages boost) #:use-module (gnu packages check) + #:use-module (gnu packages cmake) #:use-module (gnu packages compression) #:use-module (gnu packages cryptsetup) + #:use-module (gnu packages databases) #:use-module (gnu packages disk) #:use-module (gnu packages docbook) #:use-module (gnu packages documentation) @@ -1874,3 +1877,59 @@ useful with system integration.") into the Unity menu bar. Based on KSNI, it also works in KDE and will fallback to generic Systray support if none of those are available.") (license license:lgpl2.1+))) + +(define-public appstream + (package + (name "appstream") + (version "0.12.11") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/ximion/appstream.git") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "0ma1nldpc01rr2x14q1ymv2fvf7qcs3wp8fdqsnd17qx0hrz483c")))) + (build-system meson-build-system) + (arguments + `(#:configure-flags + (list "-Dvapi=true" + "-Dstemming=false" + "-Dapidocs=false" + "-Dinstall-docs=false") + #:phases + (modify-phases %standard-phases + (add-after 'unpack 'disable-stemmer-inc-dirs + (lambda* (#:key outputs #:allow-other-keys) + (let ((out (assoc-ref outputs "out"))) + (substitute* "meson.build" + (("include_directories\\(\\['\\/usr\\/include'\\]\\)") + "''") + (("subdir\\('docs\\/'\\)") + "")) + (substitute* "data/meson.build" + (("\\/etc") + (string-append out "/etc"))) + #t)))))) + (inputs + `(("glib" ,glib) + ("gperf" ,gperf) + ("libsoup" ,libsoup) + ("libxml2" ,libxml2) + ("libxslt" ,libxslt) + ("libyaml" ,libyaml) + ("lmdb" ,lmdb))) + (native-inputs + `(("cmake" ,cmake) + ("gettext" ,gettext-minimal) + ("glib:bin" ,glib "bin") ; for glib-compile-resources + ("gobject-introspection" ,gobject-introspection) + ("pkg-config" ,pkg-config) + ("vala" ,vala))) + (home-page "https://www.freedesktop.org/wiki/Distributions/AppStream/") + (synopsis "Provides the foundation to build software-center applications") + (description "AppStream is a cross-distribution effort for enhancing the way +we interact with the software repositories provided by GNU/Linux distributions +by standardizing software component metadata.") + (license license:gpl2)))