From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id 4Oc9CeMS22V62wAA62LTzQ:P1 (envelope-from ) for ; Sun, 25 Feb 2024 11:13:55 +0100 Received: from aspmx1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id 4Oc9CeMS22V62wAA62LTzQ (envelope-from ) for ; Sun, 25 Feb 2024 11:13:55 +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=LMVKfvOZ; dkim=fail ("headers rsa verify failed") header.d=messagingengine.com header.s=fm1 header.b=TtGEBqxU; 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=1708856034; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=bvrDPBJAWZNGXHi/X84PpaibYmRDs58zsh5PuObj2Qc=; b=RH6US1q+bRrnsZWkxDJLhQBQGs6yswRdWNhA5RvfD8aqcdcV0brZ0CoOdOnzJEltskt1ct mBdUdy5kL/EnKf9B0heHZwB9rUEMMz/ft/OZaa8J8Oi+1RtW3vTSxRuljCa+9jwTvcKmQa SGihOz8EcGdqdrW6gvN2JPRTsjJ5rjYDAjeSGm/5yPuWz8+aqVa47WK+CBCJXdu5whso2s OjL+bbsfHtYuXMMoIBeVboH8l43wiOxhUw6XXyihgAtuCLE7MRmxRI1LZTufKMwEiSJGM/ 8aTstCsVsSRgOzraQ7iFBgZpS7EewedpATGSAvNGvFqxl9htHL3tp43fZYmQoA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=dan.games header.s=fm2 header.b=LMVKfvOZ; dkim=fail ("headers rsa verify failed") header.d=messagingengine.com header.s=fm1 header.b=TtGEBqxU; 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=1708856034; a=rsa-sha256; cv=none; b=iIxPduYzM6I+WLrYehuScH8F84GwOnQSikA/54G+/ti3Y90k3Jb+7OT3E0BskIkFoPFRkG snuYIU/pluoenOaDiPmygIQnCkyM5LEcnpAVHDI+HNTdUYNoT4czOYF6wUp7mqfvU4dS++ OpRlxP2da9RwJgvOaMNdX9EVpuJgDK0ZetfydBNtgPdOQKwsVVo5HYcWlT+rsVPmZdrSAY 7AOLH9C3qGITKjPAzaac0/T/pyGtTO96kTyTSbY5KSuM71bIB6IsuwxqN9mba8feZvUK88 i/siA9UQ0a16Gxl3plUATCHeRaB17O1F8jehsax3A3P81Gsgc+/Q3zBjCh8GUQ== 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 174AF9F0B for ; Sun, 25 Feb 2024 11:13:54 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1reBVs-0003zs-MD; Sun, 25 Feb 2024 05:13:40 -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 1reBVq-0003yB-9n for guix-patches@gnu.org; Sun, 25 Feb 2024 05:13:38 -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 1reBVq-0002mY-1D for guix-patches@gnu.org; Sun, 25 Feb 2024 05:13:38 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1reBWE-0002RA-LE for guix-patches@gnu.org; Sun, 25 Feb 2024 05:14:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#69377] [PATCH] gnu: Add sioyek. Resent-From: dan Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 25 Feb 2024 10:14:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 69377 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 69377@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.17088560179283 (code B ref -1); Sun, 25 Feb 2024 10:14:02 +0000 Received: (at submit) by debbugs.gnu.org; 25 Feb 2024 10:13:37 +0000 Received: from localhost ([127.0.0.1]:60809 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1reBVo-0002Pf-IE for submit@debbugs.gnu.org; Sun, 25 Feb 2024 05:13:37 -0500 Received: from lists.gnu.org ([209.51.188.17]:40854) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1reBVl-0002PR-4D for submit@debbugs.gnu.org; Sun, 25 Feb 2024 05:13:34 -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 1reBVI-0003nw-UN for guix-patches@gnu.org; Sun, 25 Feb 2024 05:13:06 -0500 Received: from out2-smtp.messagingengine.com ([66.111.4.26]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1reBVF-0002j1-A3 for guix-patches@gnu.org; Sun, 25 Feb 2024 05:13:03 -0500 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id A0C925C0064 for ; Sun, 25 Feb 2024 05:12:58 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute5.internal (MEProxy); Sun, 25 Feb 2024 05:12:58 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dan.games; h=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=1708855978; x=1708942378; bh=bvrDPBJAWZ NGXHi/X84PpaibYmRDs58zsh5PuObj2Qc=; b=LMVKfvOZO1aEoXALNqfzbhfZA7 caGphdqxx0+QkL3jGSEys3PvVVO1qHyUTw4wWzW6jgYcyWHSAdoPF8All17z+OFk OP91i0o6PNLAscwk+iCY8ib0KuzchQyOlI2W1mZygOCEI+viyOCx90+bbH+yOdBT 2wBI7k5b4VHJq3vD7HuSosFRucS9FZdHLLMXRQJbNSiRwoPDM7nd/+3eXxL57Gcr gfJ9Y+r8yXUdZaGO6o3aCn81HZiCpaxTVyynD/0KuJ6/W3mruRNsym8KlXbx52XB WSROoagwLYUZTwpdJTIhjh8WqZ0GJULu5F8BFcfNIqIa6KukHgt5sjtjveLg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=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=1708855978; x=1708942378; bh=bvrDPBJAWZNGXHi/X84PpaibYmRD s58zsh5PuObj2Qc=; b=TtGEBqxUR7MGbrEZiM1+a3xKXWaHSr1E1K1L1Txf1qk9 j5oQ45LDJgjHBry4S7A9klY2o7rqPJmUC11u9kOGXFJYRepcIP8QuS4e7Hn3GUkL jh/mL47AOgjDPgsavw6NeBas5CaMa5452/ROVrAa4gqMA1Q2+NnWiNMXH0lGQbGz Qrtelp3YYxfzHhTO2EigrNvr8aCzZy+uEiXRPf9vFxmu4qr1cEhps7rwAkrEaM3O RGK9eTcd5elRVpbLs6yIyzCa1wkIfxIsl5AEzdSHMy4fTReH5KLJcz0iIXY8fhEs 0z5MnT42F5LP0+OwgAHaC3RIedn3uOQoh6Z1LSQgqQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrgedtgdduvdcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhephffvufffkffogggtgfesthekredtre dtjeenucfhrhhomhepuggrnhcuoehisegurghnrdhgrghmvghsqeenucggtffrrghtthgv rhhnpeehleevieeileelgeehfedvieetieejffejgfejueeuveeutdehtdfgtdeijeeuke enucffohhmrghinhepghhithhhuhgsrdgtohhmpdgrlhhpihhnvghlihhnuhigrdhorhhg pdhsihhohigvkhdrihhnfhhonecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpe hmrghilhhfrhhomhepihesuggrnhdrghgrmhgvsh X-ME-Proxy: Feedback-ID: i3b5946ed:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA for ; Sun, 25 Feb 2024 05:12:57 -0500 (EST) From: dan Date: Sun, 25 Feb 2024 18:12:32 +0800 Message-ID: <20240225101233.13418-1-i@dan.games> X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=66.111.4.26; envelope-from=i@dan.games; helo=out2-smtp.messagingengine.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 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: , 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-Scanner: mx10.migadu.com X-Migadu-Spam-Score: -2.71 X-Spam-Score: -2.71 X-Migadu-Queue-Id: 174AF9F0B X-TUID: +v369z8omoh7 * gnu/packages/pdf.scm (sioyek): New variable. Change-Id: Id2708745bd7ef672b620b8e9c907126bdc5a1f55 --- gnu/packages/pdf.scm | 67 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 67 insertions(+) diff --git a/gnu/packages/pdf.scm b/gnu/packages/pdf.scm index 0d796f65bb..587c952e37 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,69 @@ (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.git") + (commit (string-append "v" version)))) + (sha256 + (base32 "1vmmp2s032ygh1byz77pg9aljmp8hx745fr7mmz11831f96mlmhq")) + ;; XXX: Fix for mupdf-0.23.0+ . + (patches (list (origin + (method url-fetch) + (uri (string-append + "https://git.alpinelinux.org/aports/plain/community" + "/sioyek/mupdf-0.23.0.patch?id=" + "86e913eccf19b97a16f25d9b6cdf0f50232f1226")) + (sha256 (base32 + "0wddl7qznr7x9kmqjb05f9pag8m4w29bnnw8ghzsi1zz9ska2jmh"))))))) + (build-system gnu-build-system) + (arguments + (list + #:phases #~(modify-phases %standard-phases + (add-after 'unpack 'patch-lib-and-path + (lambda _ + (substitute* "pdf_viewer_build_config.pro" + (("-lmupdf-third") + "") + (("/share/sioyek") + "/share") + (("/etc/sioyek") + "/etc")) + (substitute* "pdf_viewer/main.cpp" + (("/usr/share/sioyek") + (string-append #$output "/share")) + (("/etc/sioyek") + (string-append #$output "/etc"))))) + (replace 'configure + (lambda _ + (invoke "qmake" + (string-append "PREFIX=" + #$output)))) + (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 + "A 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: 1306beaf3f6c8ddded2a956f5863bc65aad78882 -- 2.41.0