From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id 6A/kLcSJ22XRmAAA62LTzQ:P1 (envelope-from ) for ; Sun, 25 Feb 2024 19:41:08 +0100 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id 6A/kLcSJ22XRmAAA62LTzQ (envelope-from ) for ; Sun, 25 Feb 2024 19:41:08 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=dan.games header.s=fm2 header.b=auK7+e+x; dkim=fail ("headers rsa verify failed") header.d=messagingengine.com header.s=fm1 header.b=k6v+qjmm; 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"; dmarc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1708886468; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: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=o/ai30K0Gh6hjx/p0oAyMZQRF0gGy1iGUVgPB/gBnTI=; b=Nvxt3BMm/ShJqRnRREmZD1LrbCeHBQMNCz0yXyrjzceAlnG6kksfmzaKUVahKMlpvjPg4B zQKPDCu+RNT68zzyHNtHH+wgH5TK4FdvYOrJ9dK+oe49f5NGGQplGkVsH9d7YSF/ee1hW0 JW0/7m+a8Z77SHZ1A+21zm/S3VkTMu9nVr29UZK0l/C1W7EdIweVBOGTeovSOKgv9KGNQv 5UtIoZa93+BZUBQjnU52PWMfe22+b+0QWFEvnAbZLDT3Q6+UF9vCPBmGSLxm+SsHVRa7C6 nyIC2mhP6bDq7q7ssdSS0KCRbqV4pN0miPahkEBnqQ05xb6IcPByiCITyjCXKA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=dan.games header.s=fm2 header.b=auK7+e+x; dkim=fail ("headers rsa verify failed") header.d=messagingengine.com header.s=fm1 header.b=k6v+qjmm; 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"; dmarc=none ARC-Seal: i=1; s=key1; d=yhetil.org; t=1708886468; a=rsa-sha256; cv=none; b=KZ8O9efyqh6iJ2A9g1Pfz31la0CYMRAwp0LYFVfEeuG0KpoREmrz7xlqp3EZiMZOmnFSU0 cXs9kAyI/vZMqawpaqh5Yq1xjrhkkC5pMO7TK060s8o5j7QYab32dZ2Hx8+TsUZPXNBacQ ImYWHzm5cpnHackdQxSOPHHjFLT96tFsvOIBhBD6xUuwW6u9JrG3PfMNSf65qz6oEBEgZV QCLLJGbPnXeQ1zmZEbtJLdq8yqkNrdHXLRBpEiEZogTCk2vL6U95TqmgbYnjpPULySDptZ LzGmOogZVYsZPKvVXX5BCFznK3B5fx5JX/LfV6yF5EXA8dASivlh+CBAA9wDNg== 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 A3723768F8 for ; Sun, 25 Feb 2024 19:41:07 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1reJQY-0007iD-HL; Sun, 25 Feb 2024 13:40:42 -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 1reJQV-0007gA-Lj for guix-patches@gnu.org; Sun, 25 Feb 2024 13:40:39 -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 1reJQV-0000Rt-BC for guix-patches@gnu.org; Sun, 25 Feb 2024 13:40:39 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1reJQu-0001Do-5b for guix-patches@gnu.org; Sun, 25 Feb 2024 13:41:04 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#69377] [PATCH v2] gnu: Add sioyek. References: <20240225101233.13418-1-i@dan.games> In-Reply-To: <20240225101233.13418-1-i@dan.games> Resent-From: dan Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 25 Feb 2024 18:41:04 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 69377 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 69377@debbugs.gnu.org Cc: hako@ultrarare.space Received: via spool by 69377-submit@debbugs.gnu.org id=B69377.17088864304540 (code B ref 69377); Sun, 25 Feb 2024 18:41:04 +0000 Received: (at 69377) by debbugs.gnu.org; 25 Feb 2024 18:40:30 +0000 Received: from localhost ([127.0.0.1]:37958 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1reJQL-0001B5-7c for submit@debbugs.gnu.org; Sun, 25 Feb 2024 13:40:30 -0500 Received: from wfhigh6-smtp.messagingengine.com ([64.147.123.157]:43933) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1reIwa-00086n-5K for 69377@debbugs.gnu.org; Sun, 25 Feb 2024 13:09:46 -0500 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailfhigh.west.internal (Postfix) with ESMTP id 2D005180006E; Sun, 25 Feb 2024 13:09:13 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Sun, 25 Feb 2024 13:09:13 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dan.games; h=cc :cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:message-id:mime-version:reply-to :subject:subject:to:to; s=fm2; t=1708884552; x=1708970952; bh=o/ ai30K0Gh6hjx/p0oAyMZQRF0gGy1iGUVgPB/gBnTI=; b=auK7+e+xCZYlj8lkzY K7khiK502hTKgKqqXAmZR1oVS6XeDDsAcDH1384icnOdAEYEotYyfYcAHkyjPuHO /FRHTYjcfQspH+hQSPsuBpPt+8s/MsbgHJVYN0YzqLDY1tiZptu2GcqkxSQyUnNz Nyh4B1gFL/peGaffsk3nEkZZgkUvg6d2BImdHiOFJ+Nv93fnd+W9/HkCmwN3d4TF Ytmerq7kRtQcM72dPfQRfFfwPa645EXnIG937gv90/9QkmBkL2eFovZRe1AQzFcr 1R8N0fTrGyMccT3S7f/jbyyeMbO3KCnugI57Vf35IecrNJ3zPRnVVh6dSvwU783C rakQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:message-id:mime-version:reply-to:subject :subject:to:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm1; t=1708884552; x=1708970952; bh=o/ai30K0Gh6hj x/p0oAyMZQRF0gGy1iGUVgPB/gBnTI=; b=k6v+qjmmqDqX1LYlREQ5OYqKiA8aW K3NyaVIYyAHhcBxyEqT8qFqlVE7kftNkgkXHHIOatvIgowkJCkZENlCOm85bPWLv xAkjmwIDyHEzKPvTQF9jV1ca5sPtNI4685pWrsKvDH6L4YEHiF1aF2K0U5nxB1Du JuEx0bdIy8bONAWTVq+5cPbQoCaUMbzb/u07wUTqHJyP0Q2Ysrk6tichONRkl6wI iMRJGmZvkN0b7ngPymaFycYcHPqZUOBx7xHSKH9bmzzCUBhDJ86/toQf4QV/3/nL wCvl2aRNJm2naiUvGLcYtnC/1ducUCFRKsvRdCWhQySjHUOfRzTV+bouA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrgedtgddutdejucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefhvfevufffkffogggtgfesthekre dtredtjeenucfhrhhomhepuggrnhcuoehisegurghnrdhgrghmvghsqeenucggtffrrght thgvrhhnpeetleetgfduieffffdtkeejteetkeetieefgfetveefiedvudeghfffgedvke ethfenucffohhmrghinhepghhithhhuhgsrdgtohhmpdhsihhohigvkhdrihhnfhhonecu vehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepihesuggrnh drghgrmhgvsh X-ME-Proxy: Feedback-ID: i3b5946ed:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sun, 25 Feb 2024 13:09:10 -0500 (EST) From: dan Date: Mon, 26 Feb 2024 02:08:56 +0800 Message-ID: X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -4.37 X-Spam-Score: -4.37 X-Migadu-Queue-Id: A3723768F8 X-Migadu-Scanner: mx11.migadu.com X-TUID: jnuuOxdviTQI * gnu/packages/pdf.scm (sioyek): New variable. Change-Id: Id2708745bd7ef672b620b8e9c907126bdc5a1f55 --- gnu/packages/pdf.scm | 56 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 56 insertions(+) diff --git a/gnu/packages/pdf.scm b/gnu/packages/pdf.scm index 0d796f65bb..553642c170 100644 --- a/gnu/packages/pdf.scm +++ b/gnu/packages/pdf.scm @@ -25,6 +25,7 @@ ;;; Copyright © 2022 Paul A. Patience ;;; Copyright © 2022 Petr Hodina ;;; Copyright © 2023 Felix Gruber +;;; Copyright © 2024 dan ;;; ;;; This file is part of GNU Guix. ;;; @@ -1710,3 +1711,58 @@ (define-public weasyprint Keywords: html2pdf, htmltopdf") (license license:bsd-3))) + +(define-public sioyek + (package + (name "sioyek") + (version "2.0.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/ahrm/sioyek") + (commit (string-append "v" version)))) + (sha256 + (base32 "1vmmp2s032ygh1byz77pg9aljmp8hx745fr7mmz11831f96mlmhq")) + (modules '((guix build utils))) + (snippet '(substitute* "pdf_viewer_build_config.pro" + (("-lmupdf-third") + ""))) + ;; XXX: Fix for mupdf-0.23.0+ . + (patches (search-patches "sioyek-mupdf-0.23.0-fix-build.patch")))) + (build-system gnu-build-system) + (arguments + (list + #:configure-flags #~(list (string-append "PREFIX=" + #$output)) + #:phases #~(modify-phases %standard-phases + (add-after 'unpack 'patch-paths + (lambda _ + (substitute* "pdf_viewer/main.cpp" + (("/usr/share") + (string-append #$output "/share")) + (("/etc") + (string-append #$output "/etc"))))) + (replace 'configure + (lambda* (#:key configure-flags #:allow-other-keys) + (apply invoke "qmake" configure-flags))) + (add-after 'install 'instal-man-page + (lambda _ + (install-file "resources/sioyek.1" + (string-append #$output "/share/man/man1"))))))) + (inputs (list freetype + gumbo-parser + harfbuzz + jbig2dec + libjpeg-turbo + mujs + mupdf + openjpeg + qt3d-5 + qtbase-5 + zlib)) + (home-page "https://sioyek.info") + (synopsis "PDF viewer with a focus on technical books and research papers") + (description + "Sioyek is a PDF viewer with a focus on textbooks and research papers.") + (license license:gpl3+))) base-commit: b25b94335a3ee8d68d2145da8e5ea0325ecea451 -- 2.41.0