From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id ELbdLnsP4GM2dAEAbAwnHQ (envelope-from ) for ; Sun, 05 Feb 2023 21:20:11 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id uBLKLnsP4GMIGQEA9RJhRA (envelope-from ) for ; Sun, 05 Feb 2023 21:20:11 +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 8539837C70 for ; Sun, 5 Feb 2023 21:20:11 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pOlUa-0002Wc-DO; Sun, 05 Feb 2023 15:20: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 1pOlUY-0002VJ-FI for guix-patches@gnu.org; Sun, 05 Feb 2023 15:20:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pOlUX-0001Gv-T8 for guix-patches@gnu.org; Sun, 05 Feb 2023 15:20:01 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pOlUX-0007BJ-P2 for guix-patches@gnu.org; Sun, 05 Feb 2023 15:20:01 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#57337] [PATCH v3 2/2] gnu: Add docxbox. Resent-From: Wiktor =?UTF-8?Q?=C5=BBelazny?= Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 05 Feb 2023 20:20:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 57337 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 57337@debbugs.gnu.org Cc: ludo@gnu.org Received: via spool by 57337-submit@debbugs.gnu.org id=B57337.167562835227542 (code B ref 57337); Sun, 05 Feb 2023 20:20:01 +0000 Received: (at 57337) by debbugs.gnu.org; 5 Feb 2023 20:19:12 +0000 Received: from localhost ([127.0.0.1]:46545 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pOlTj-0007AA-I4 for submit@debbugs.gnu.org; Sun, 05 Feb 2023 15:19:11 -0500 Received: from freeshell.de ([116.202.128.144]:57600) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pOlTh-00079x-Eo for 57337@debbugs.gnu.org; Sun, 05 Feb 2023 15:19:10 -0500 Received: from localhost.localdomain (cst-prg-30-103.cust.vodafone.cz [46.135.30.103]) (Authenticated sender: wz) by freeshell.de (Postfix) with ESMTPSA id 8FBC5B3B1F2C; Sun, 5 Feb 2023 21:18:43 +0100 (CET) From: Wiktor =?UTF-8?Q?=C5=BBelazny?= Date: Sun, 5 Feb 2023 21:18:33 +0100 Message-Id: <20230205201833.24156-2-wz@freeshell.de> X-Mailer: git-send-email 2.39.1 In-Reply-To: <20230205201833.24156-1-wz@freeshell.de> References: <20230205201833.24156-1-wz@freeshell.de> MIME-Version: 1.0 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 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1675628411; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: 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; bh=f5zzjRzSOnVZ40sATrihtr1QqVePugGFAsQev5sJ6+M=; b=CaIqd2aFboY7jPQNR2xSm09wOcUN0wcRUrnrl2z/SbVjmJVAaKQiIYnxPunK5JXJw4V+kI FaWVLRltLSPJG7hW3Pq3pTOfBk6prBSI04OpS8GqBBTB9CDerzuPQLdtDprqDeg3vi7xS6 t/KlUakCCIwxSMM855PvEnVIrHIptHU7fOiYS4wIIMH43Ku6Sx9dc5hd7ivcv6QGXSGihy 0LRh4gXVTQP+Opawy4FdSnPjmeUPiuCqgUnC9+TXiBmSsKARAVrg5rCepJJliuiUwpY2Ul uHoxP5gdhAW5xlfF41ac1ORFU92VBWZ0G/qsd2Y4o5D+p26XM7Z7cioQ5l7yEw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; 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=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=freeshell.de (policy=none) ARC-Seal: i=1; s=key1; d=yhetil.org; t=1675628411; a=rsa-sha256; cv=none; b=MLjYG65L7Xiz0LC51SO8V+iJlr/cSCW/UDT33xL3BLXvCx3pgtuCcJEEcA2EoL4pVCoeH3 gNG5f7EmaWAFcU27KcZgJHDg56bUEb1/1jga4qbTsIIj3xzJ23TBGYUvAysafdzfBsQ7dg /hUBvzT38WwECgLRwhTsOSguSfjidqWfUnYz2Gv+bTIG5nh5krJYPpbj6cTAsnTmUobM7n eqWN6p+lF9WeuAH6UxmAfKzZWu2YZSOf34AW5pEDDb/sjTeAEWwsCZD61PhDYe81c5LD83 VXapPWS/Wz+s5DXSc3Tql8NfxYrOxUcz1VWIq9XqXyNl06S0uq3hUob+y6vFJg== X-Migadu-Spam-Score: -0.99 X-Spam-Score: -0.99 X-Migadu-Queue-Id: 8539837C70 X-Migadu-Scanner: scn0.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=none; 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=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=freeshell.de (policy=none) X-TUID: TcajCyHtqzsG * gnu/packages/textutils.scm (docxbox): New variable. --- gnu/packages/textutils.scm | 73 +++++++++++++++++++++++++++++++++++++- 1 file changed, 72 insertions(+), 1 deletion(-) diff --git a/gnu/packages/textutils.scm b/gnu/packages/textutils.scm index 151add964e..b75b54e9f4 100644 --- a/gnu/packages/textutils.scm +++ b/gnu/packages/textutils.scm @@ -58,6 +58,7 @@ (define-module (gnu packages textutils) #:use-module (gnu packages autotools) #:use-module (gnu packages base) #:use-module (gnu packages compression) + #:use-module (gnu packages cpp) #:use-module (gnu packages gcc) #:use-module (gnu packages golang) #:use-module (gnu packages gettext) @@ -74,7 +75,8 @@ (define-module (gnu packages textutils) #:use-module (gnu packages ruby) #:use-module (gnu packages slang) #:use-module (gnu packages syncthing) - #:use-module (gnu packages web)) + #:use-module (gnu packages web) + #:use-module (gnu packages xml)) (define-public dos2unix (package @@ -1522,3 +1524,72 @@ (define-public ack easily specify file types, match highlighting, Perl-Compatible Regular Expressions, and being faster to type than grep.") (license license:artistic2.0))) + +(define-public docxbox + (let ((commit "7c09cfdfd055fedf72676250eae8f03bb8ef7ed5") + (revision "1")) + (package + (name "docxbox") + (version (git-version "0.0.5" revision commit)) + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/gyselroth/docxbox") + (commit commit))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "0irccm5siy7k6kjnrmm9pxc4cmc3l30377kqpp6vd6y21nk7yc4w")) + (modules '((guix build utils))) + (snippet '(for-each delete-file-recursively + '("bin" "vendor/json" "vendor/miniz-cpp" + "vendor/tinyxml2"))))) + (build-system cmake-build-system) + ;; (native-inputs (list bats)) ; Enable after fixing tests, use bash module + (inputs (list json-modern-cxx miniz-cpp)) + (arguments + (list #:phases #~(modify-phases %standard-phases + (add-after 'unpack 'unvendor + (lambda* (#:key inputs #:allow-other-keys) + (substitute* "CMakeLists.txt" + (("vendor/miniz-cpp/zip_file.hpp") + "")) + (with-directory-excursion "docxbox" + (substitute* (find-files "." "\\.(cc|h)$") + (("#include