From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id 6JiDKNm+PmUspgAAG6o9tA:P1 (envelope-from ) for ; Sun, 29 Oct 2023 21:21:45 +0100 Received: from aspmx1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id 6JiDKNm+PmUspgAAG6o9tA (envelope-from ) for ; Sun, 29 Oct 2023 21:21:45 +0100 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 343D95F42F for ; Sun, 29 Oct 2023 21:21:45 +0100 (CET) Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=planete-kraus.eu header.s=albinoniB header.b="I S8kzSK"; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1698610905; a=rsa-sha256; cv=none; b=quVJ/im809nfI0/sF8TXj4r0wcnHT4n6PpCceG4nRfgiNBVDAWH/KXSBoTsNRDO+m46gZh 6nUM2YX1KR6ETZD0XjhanQrWQtWIyCVIDkOE51vP5WXAhwRLmEktqIeMW2UDHqVfxHC2KT mN1or9zFNMeL7bPiReNzTCYHAjkJPgoCXJMtLHQGLmVS5VCG1EFc0XRvCR83uE4YHM4uk5 xtfLn3d1S0nTTuoaBNh0wo7qb59mWfTTjvf1qBgnAHgu8224CjCb7LSwmLsLBjb3xubEFr Dd+2+dvRk8Y0tPODIKyGFd2PsZFRN0ecG3z8nM3yxa/aqRfa6Vl3Nfv+S+oJkw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=planete-kraus.eu header.s=albinoniB header.b="I S8kzSK"; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1698610905; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=/cfK6JhtLR//jXOW5TyXFlA4eworgGqdCqb3Jlr+rdQ=; b=kodV8TZxGt5ZNHbk1/szcdmEAg88Xjh+fXsbpYJWYyIY2gIMmdNU4w9M7OGjurcfyp1cRl /JOfrAm6+5/VnWvwgUY9kIHJpHoE6k38iO0K5/SUCB/Jxb6STMJ60yvRlYpWXxU4JD2Fb2 yvIyvT/WxjRiMYUQKxPGSWG1U6+zh6OqgEnyKn41Tui3HxmjsNzg5h4CepLB7VBU511GkU AYTH9kL7hAZlNKvkTweuX4NC4ToRndl3coMRT5G4qR4uBl9VmlYb5crVfaDzsqBhO1ufw2 sLJIZ0HWoTuAFplj6mgyf9GWI4OYyLprq2P1QN3a17HwEECaAwAV6T2+l39tCA== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qxCHt-0005k1-SJ; Sun, 29 Oct 2023 16:21:33 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qxCHq-0005jU-1P for guix-patches@gnu.org; Sun, 29 Oct 2023 16:21:30 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qxCHp-0006cV-PO for guix-patches@gnu.org; Sun, 29 Oct 2023 16:21:29 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qxCIM-0002MQ-7H for guix-patches@gnu.org; Sun, 29 Oct 2023 16:22:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#66823] [PATCH gnome-team v2 1/6] gnu: Add gmobile. Resent-From: Vivien Kraus Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 29 Oct 2023 20:22:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 66823 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Liliana Marie Prikler Cc: rg@raghavgururajan.name, maxim.cournoyer@gmail.com, 66823@debbugs.gnu.org Received: via spool by 66823-submit@debbugs.gnu.org id=B66823.16986109099048 (code B ref 66823); Sun, 29 Oct 2023 20:22:02 +0000 Received: (at 66823) by debbugs.gnu.org; 29 Oct 2023 20:21:49 +0000 Received: from localhost ([127.0.0.1]:43425 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qxCI8-0002Lr-N8 for submit@debbugs.gnu.org; Sun, 29 Oct 2023 16:21:49 -0400 Received: from planete-kraus.eu ([89.234.140.182]:42654) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qxCI6-0002LN-D4 for 66823@debbugs.gnu.org; Sun, 29 Oct 2023 16:21:47 -0400 Received: from planete-kraus.eu (localhost.lan [127.0.0.1]) by planete-kraus.eu (OpenSMTPD) with ESMTP id 8b09a9b0; Sun, 29 Oct 2023 20:21:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=planete-kraus.eu; h= message-id:in-reply-to:references:from:date:subject:to:cc :mime-version; s=albinoniB; bh=AvTpdtNtSG/RImxXwgILf8SxOYg=; b=I S8kzSKIKuH5804C8MF3Xoy3mXXTdsCScz4Azjg5CPBjhFpq7hVfo0hCz+ALBUhB2 MluU9h5F13w7eMSse3EFHKa5+wd3G9AnB3CpmI9rOCbZ+Lf4KuE6vbz/TmsTD4yq R20ye2p348YNLy6+cv8zq8EDVzHELu8Yvln2uGsKfzcR4c9fEyzqTaqYY0ljHae6 hDVO4IQa1XSt7hIbXV9LafqWr3Nx8CozUcq1dBRk4oQRcHO1LWZ1nExXkQncBMoL iNA2tnX+bJxjJjDniUwLf5ZyNcWQJbrFq7IBZ0c+syVWXhaaMtXvVg0gUVIBEQx5 cyAKExVTyn0WLONotQZZQ== Received: by planete-kraus.eu (OpenSMTPD) with ESMTPSA id 10327794 (TLSv1.3:TLS_CHACHA20_POLY1305_SHA256:256:NO); Sun, 29 Oct 2023 20:21:11 +0000 (UTC) Message-ID: <854e947c25e90629325280969b8ab0561679cb4a.1698610511.git.vivien@planete-kraus.eu> In-Reply-To: References: Date: Sun, 29 Oct 2023 19:34:01 +0100 MIME-Version: 1.0 User-Agent: Evolution 3.46.4 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: , Reply-to: Vivien Kraus X-ACL-Warn: , Vivien Kraus via Guix-patches From: Vivien Kraus via Guix-patches via Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Queue-Id: 343D95F42F X-Migadu-Scanner: mx12.migadu.com X-Migadu-Spam-Score: -5.10 X-Spam-Score: -5.10 X-TUID: DNXdrAnFOgTJ * gnu/packages/gnome.scm (gmobile): New variable. * gnu/packages/patches/gmobile-make-it-installable.patch: New file. * gnu/local.mk (dist_patch_DATA): Register it here. Change-Id: If36413dfa1ee1e6156f2652fa86282283b592b36 --- gnu/local.mk | 1 + gnu/packages/gnome.scm | 27 ++++++ .../patches/gmobile-make-it-installable.patch | 87 +++++++++++++++++++ 3 files changed, 115 insertions(+) create mode 100644 gnu/packages/patches/gmobile-make-it-installable.patch diff --git a/gnu/local.mk b/gnu/local.mk index 9befa202ad..92b56289f2 100644 --- a/gnu/local.mk +++ b/gnu/local.mk @@ -1318,6 +1318,7 @@ dist_patch_DATA = \ %D%/packages/patches/glibc-2.29-supported-locales.patch \ %D%/packages/patches/glibc-supported-locales.patch \ %D%/packages/patches/glslang-install-static-libs.patch \ + %D%/packages/patches/gmobile-make-it-installable.patch \ %D%/packages/patches/gmp-arm-asm-nothumb.patch \ %D%/packages/patches/gmp-faulty-test.patch \ %D%/packages/patches/gnash-fix-giflib-version.patch \ diff --git a/gnu/packages/gnome.scm b/gnu/packages/gnome.scm index a86ddc34b3..0933bf7d34 100644 --- a/gnu/packages/gnome.scm +++ b/gnu/packages/gnome.scm @@ -12915,6 +12915,33 @@ (define-public jsonrpc-glib host to avoid parser overhead and memory-allocator fragmentation.") (license license:lgpl2.1+))) +(define-public gmobile + (package + (name "gmobile") + (version "0.0.3") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://gitlab.gnome.org/guidog/gmobile") + (commit (string-append "v" version)))) + (file-name (git-file-name "gmobile" version)) + (sha256 + (base32 + "0lr22nj4ypzxbjim1a7ay07nh4vx3dqc895qql437gda6x0rvn2p")) + (patches + (search-patches "gmobile-make-it-installable.patch")))) + (build-system meson-build-system) + (native-inputs + (list `(,glib "bin") ; for glib-compile-resources + pkg-config)) + (propagated-inputs + (list glib json-glib)) + (synopsis "Functions useful in mobile related, glib based projects") + (description "This package provides functions for mobiles.") + (home-page "https://gitlab.gnome.org/guidog/gmobile") + (license license:lgpl2.1+))) + (define-public feedbackd (package (name "feedbackd") diff --git a/gnu/packages/patches/gmobile-make-it-installable.patch b/gnu/packages/patches/gmobile-make-it-installable.patch new file mode 100644 index 0000000000..03e106c2b0 --- /dev/null +++ b/gnu/packages/patches/gmobile-make-it-installable.patch @@ -0,0 +1,87 @@ +From c1ea43a45f4588f21752b0ad679c43350a9c8905 Mon Sep 17 00:00:00 2001 +Message-ID: +From: Vivien Kraus +Date: Sun, 29 Oct 2023 19:00:44 +0100 +Subject: [PATCH] Install gmobile as a shared library. + +* src/meson.build: Install the header files. Import pkgconfig. +Generate a pkg-config definition. +(gm_lib): use "library", not "static_library". Install it. +(gmobile_gir): Install it. +* meson.build: Install gm-config.h. +--- + meson.build | 1 + + src/meson.build | 22 +++++++++++++++++++--- + 2 files changed, 20 insertions(+), 3 deletions(-) + +diff --git a/meson.build b/meson.build +index e9f6c62..51ebeac 100644 +--- a/meson.build ++++ b/meson.build +@@ -83,6 +83,7 @@ root_inc = include_directories('.') + configure_file( + output: 'gm-config.h', + configuration: config_h, ++ install_dir: get_option('includedir') + ) + + subdir('data') +diff --git a/src/meson.build b/src/meson.build +index ee98a39..3dedbe4 100644 +--- a/src/meson.build ++++ b/src/meson.build +@@ -1,3 +1,5 @@ ++pkg = import('pkgconfig') ++ + gm_deps = [ + gio_dep, + glib_dep, +@@ -37,18 +39,33 @@ gm_c_args = [ + '-DG_LOG_DOMAIN="gmobile"', + ] + +-gm_lib = static_library( ++gm_lib = library( + 'gmobile', + gm_sources, + include_directories: root_inc, + c_args: gm_c_args, +- dependencies: gm_deps) ++ dependencies: gm_deps, ++ install: true) ++ ++pkg.generate(gm_lib) + + gmobile_dep = declare_dependency( + include_directories: [root_inc, include_directories('.')], + dependencies: gm_deps, + link_with: gm_lib) + ++install_headers( ++ 'gmobile.h', ++ 'gm-cutout.h', ++ 'gm-device-info.h', ++ 'gm-device-tree.h', ++ 'gm-display-panel.h', ++ 'gm-error.h', ++ 'gm-main.h', ++ 'gm-rect.h', ++ 'gm-svg-path.h', ++ 'gm-timeout.h') ++ + if get_option('gtk_doc') + gmobile_gir_extra_args = [ + '--c-include=gmobile.h', +@@ -66,7 +83,6 @@ if get_option('gtk_doc') + identifier_prefix: 'Gm', + link_with: gm_lib, + includes: ['Gio-2.0'], +- install: false, + extra_args: gmobile_gir_extra_args, + ) + endif + +base-commit: 382fc89472176d2f1d435517cad53d969d8b8eff +-- +2.41.0 + -- 2.41.0