From patchwork Thu Mar 6 08:54:51 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: "King, Spencer via Guix-patches\" via" X-Patchwork-Id: 39732 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 D87E827BBEA; Thu, 6 Mar 2025 08:57:39 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-7.4 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_DNSWL_BLOCKED,RCVD_IN_MSPIKE_H2, RCVD_IN_VALIDITY_CERTIFIED,RCVD_IN_VALIDITY_RPBL,RCVD_IN_VALIDITY_SAFE, SPF_HELO_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 2899B27BBE2 for ; Thu, 6 Mar 2025 08:57:38 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tq72R-0007DD-Pm; Thu, 06 Mar 2025 03:57:08 -0500 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 1tq72N-0007Cs-TT for guix-patches@gnu.org; Thu, 06 Mar 2025 03:57:03 -0500 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 1tq72N-0004nD-G1 for guix-patches@gnu.org; Thu, 06 Mar 2025 03:57:03 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:Date:From:To:Subject; bh=B7Dk7Iq6WCqH6naf2aHzoKsxAlOGBbsfrNAvLlqg18Y=; b=uyNFs+e97OXRJOg7RR/AMaFB9Y835V2x7MFW4T1TANxmWXyvoybahcnbgTQJb6z1hIfWMQq2i7EqJ4P64RvvIBwRMbm6gjHdzonGRTSjd0FOgOw5yqjU017N/oxSvH76S8IK1ueV1jA7DwC6Pi07PNQmda1ISHU22nrpPeCbSzxWdtV7JmaYbPOQYKFQz0/5EjyUAmoxTtsvRmdtF1vp5E/On698TckCr+5dhZ32sA0Ln3uS9BcvMX5GOMictvOmhE/bACYDHv2byE6FxxR7Vg1XbsHH6FBFNnvKzGc0yI2KXBwwTFhy6h9vksc6882EW5Bu54gkiYHfpZ6+DvgECQ==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tq72M-0002cd-Io; Thu, 06 Mar 2025 03:57:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#76776] [PATCH] gnu: Add mepo. Resent-From: =?utf-8?b?Tmd1eeG7hW4=?= Gia Phong Original-Sender: "Debbugs-submit" Resent-CC: andreas@enge.fr, bavier@posteo.net, sharlatanus@gmail.com, guix-patches@gnu.org Resent-Date: Thu, 06 Mar 2025 08:57:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 76776 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 76776@debbugs.gnu.org Cc: =?utf-8?b?Tmd1eeG7hW4=?= Gia Phong , Andreas Enge , Eric Bavier , Sharlatan Hellseher X-Debbugs-Original-To: guix-patches@gnu.org X-Debbugs-Original-Xcc: Andreas Enge , Eric Bavier , Sharlatan Hellseher Received: via spool by submit@debbugs.gnu.org id=B.17412513779981 (code B ref -1); Thu, 06 Mar 2025 08:57:02 +0000 Received: (at submit) by debbugs.gnu.org; 6 Mar 2025 08:56:17 +0000 Received: from localhost ([127.0.0.1]:41454 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tq71S-0002aX-Sg for submit@debbugs.gnu.org; Thu, 06 Mar 2025 03:56:17 -0500 Received: from lists.gnu.org ([2001:470:142::17]:50384) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1tq71P-0002ZY-36 for submit@debbugs.gnu.org; Thu, 06 Mar 2025 03:56:04 -0500 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 1tq70s-0006fD-7d for guix-patches@gnu.org; Thu, 06 Mar 2025 03:55:34 -0500 Received: from layka.disroot.org ([178.21.23.139]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tq70m-0004hV-Gi for guix-patches@gnu.org; Thu, 06 Mar 2025 03:55:29 -0500 Received: from mail01.disroot.lan (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id 28D7E25670; Thu, 6 Mar 2025 09:55:20 +0100 (CET) X-Virus-Scanned: SPAM Filter at disroot.org Received: from layka.disroot.org ([127.0.0.1]) by localhost (disroot.org [127.0.0.1]) (amavis, port 10024) with ESMTP id 8w0xsLACRyr1; Thu, 6 Mar 2025 09:55:15 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1741251315; bh=IBImd2Y75W3/v/tm7M+hMJxor7MmFsZGVMmSN4YPoj0=; h=From:To:Cc:Subject:Date; b=gWnAPX1KZ/fnMaGMBUctAzIqqbyjQMifmkDxEfM/FDkZHt36KLQPF5bddGs42Uz3H OX8wYy5w9Jz7/iFC4WmaAdq+eHZnLSqVkQbfwq9g0pKA1DXJ0jWhnLE2WtQfPD84oc 2k+Qfw722K0A0900fdo4RkVlzH24HaKHahfUt4VZlUOsSHqmrT+DtSHzSs6bkHmyIp 5eXOAhGSl3qanZQEIFnXSjzd8CK03FoOZQtndcp7/xEjksB1gHcEGco7fyyNNqIuxw She70YqDNnPe2sv9Fzgt1ct4Xrx6i1b6AWQXo9inrPETehVEP7YQu7uUgfZu+EO6h9 wpm5GZhbfPLWg== Date: Thu, 6 Mar 2025 17:54:51 +0900 Message-ID: <76fa5d6e602e02ccb20511dd26112b322a805baa.1741251290.git.mcsinyx@disroot.org> MIME-Version: 1.0 Received-SPF: pass client-ip=178.21.23.139; envelope-from=mcsinyx@disroot.org; helo=layka.disroot.org X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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: =?utf-8?b?Tmd1eeG7hW4=?= Gia Phong X-ACL-Warn: , =?utf-8?q?Nguy=E1=BB=85n_Gia_Phong_via_Guix-patches?= X-Patchwork-Original-From: guix-patches--- via From: "King, Spencer via Guix-patches\" via" Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches * gnu/packages/geo.scm (mepo): New variable. Change-Id: I1513af518da9ca687091bf7f78f48c93ec07f24a --- gnu/packages/geo.scm | 83 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 83 insertions(+) base-commit: 310adf4ce70cbb864859274fcc7842bd519bbddc diff --git a/gnu/packages/geo.scm b/gnu/packages/geo.scm index 251ef5ced9a1..8c242bac8acf 100644 --- a/gnu/packages/geo.scm +++ b/gnu/packages/geo.scm @@ -28,6 +28,7 @@ ;;; Copyright © 2025 Andreas Enge ;;; Copyright © 2025 Lars Bilke ;;; Copyright © 2025 Nicolas Graves +;;; Copyright © 2025 Nguyễn Gia Phong ;;; ;;; This file is part of GNU Guix. ;;; @@ -56,6 +57,7 @@ (define-module (gnu packages geo) #:use-module (guix build-system python) #:use-module (guix build-system qt) #:use-module (guix build-system r) + #:use-module (guix build-system zig) #:use-module (guix download) #:use-module (guix gexp) #:use-module (guix git-download) @@ -73,6 +75,7 @@ (define-module (gnu packages geo) #:use-module (gnu packages bison) #:use-module (gnu packages boost) #:use-module (gnu packages build-tools) + #:use-module (gnu packages busybox) #:use-module (gnu packages c) #:use-module (gnu packages certs) #:use-module (gnu packages check) @@ -121,6 +124,7 @@ (define-module (gnu packages geo) #:use-module (gnu packages machine-learning) #:use-module (gnu packages maths) #:use-module (gnu packages multiprecision) + #:use-module (gnu packages ncurses) #:use-module (gnu packages pcre) #:use-module (gnu packages pdf) #:use-module (gnu packages perl) @@ -611,6 +615,85 @@ (define-public libgeotiff (license:non-copyleft "file://LICENSE" "See LICENSE in the distribution."))))) +(define-public mepo + (package + (name "mepo") + (version "1.3.3") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://git.sr.ht/~mil/mepo") + (commit version))) + (file-name (git-file-name name version)) + (sha256 + (base32 "025nxkilar3gdif2f1zsiy27614x2hbpcmh38sl61ng37aji0jw4")))) + (build-system zig-build-system) + (arguments + (list #:install-source? #f + ;; Work around https://github.com/ziglang/zig/issues/17384 + #:zig-build-flags #~(list "--search-prefix" #$curl) + #:zig-release-type "safe" + #:phases + #~(modify-phases %standard-phases + (add-after 'install 'wrap-scripts + (lambda* (#:key inputs #:allow-other-keys) + (let ((bin-dirs + (map (lambda (bin) + (dirname (search-input-file inputs bin))) + '("bin/column" ;util-linux + "bin/gpspipe" ;gpsd + "bin/jq" + "bin/xargs" ;busybox + "bin/xwininfo" + "bin/zenity")))) + (for-each (lambda (script) + (wrap-program + (string-append #$output "/bin/" script) + `("PATH" ":" prefix ,bin-dirs))) + '("mepo_dl.sh" + "mepo_generated_osmtags.sh" + "mepo_geojson_import.sh" + "mepo_ui_central_menu.sh" + "mepo_ui_helper_menu.sh" + "mepo_ui_helper_pref_pan.sh" + "mepo_ui_menu_dbg_queueclear.sh" + "mepo_ui_menu_dbg_queuedownloadinteractive.sh" + "mepo_ui_menu_dbg_queuedownloadnoninteractive.sh" + "mepo_ui_menu_pin_drop.sh" + "mepo_ui_menu_pref_fontsize.sh" + "mepo_ui_menu_pref_network.sh" + "mepo_ui_menu_pref_stateload.sh" + "mepo_ui_menu_pref_statesave.sh" + "mepo_ui_menu_pref_url.sh" + "mepo_ui_menu_pref_zoom.sh" + "mepo_ui_menu_reposition_nominatim.sh" + "mepo_ui_menu_route_graphhopper.sh" + "mepo_ui_menu_route_mobroute.sh" + "mepo_ui_menu_search_nominatim.sh" + "mepo_ui_menu_search_overpass.sh" + "mepo_ui_menu_user_pin_updater.sh")))))))) + (native-inputs (list pkg-config)) + ;; TODO: package Mobroute + (inputs (list busybox curl gpsd jq ncurses + sdl2 sdl2-gfx sdl2-image sdl2-ttf + util-linux xwininfo zenity)) + (home-page "https://mepo.lrdu.org") + (synopsis "OpenStreetMap map viewer") + (description + "Mepo is a fast, simple, and hackable OSM map viewer for desktop & mobile +Linux devices (like the PinePhone, Librem 5, postmarketOS devices etc.) +and both environment's various user interfaces (Wayland & X inclusive). +Environments supported include Phosh, Sxmo, Plasma Mobile, desktop X, +and desktop Wayland. + +Mepo works both offline and online, features a minimalist both touch/mouse +and keyboard compatible interface, and offers a simple and powerful JSON API +to allow the user to change and add functionality such as adding their own +search and routing scripts, add arbitrary buttons/keybindings to the UI, +and more.") + (license license:gpl3+))) + (define-public librasterlite2 (package (name "librasterlite2")