From patchwork Fri Sep 8 10:34:19 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Jean-Pierre De Jesus DIAZ X-Patchwork-Id: 53674 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 C65A227BBEA; Fri, 8 Sep 2023 11:35:24 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,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 614B227BBE9 for ; Fri, 8 Sep 2023 11:35:23 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qeYpL-0005QW-6N; Fri, 08 Sep 2023 06:35:03 -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 1qeYpJ-0005PJ-ML for guix-patches@gnu.org; Fri, 08 Sep 2023 06:35:01 -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 1qeYpJ-0000kR-DR for guix-patches@gnu.org; Fri, 08 Sep 2023 06:35:01 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qeYpK-0003Yp-Gy for guix-patches@gnu.org; Fri, 08 Sep 2023 06:35:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#65820] [PATCH 1/3] gnu: Add vim-vader. References: <20230908103223.21492-1-jean@foundationdevices.com> In-Reply-To: <20230908103223.21492-1-jean@foundationdevices.com> Resent-From: Jean-Pierre De Jesus DIAZ Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 08 Sep 2023 10:35:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 65820 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 65820@debbugs.gnu.org Cc: Jean-Pierre De Jesus DIAZ Received: via spool by 65820-submit@debbugs.gnu.org id=B65820.169416928813652 (code B ref 65820); Fri, 08 Sep 2023 10:35:02 +0000 Received: (at 65820) by debbugs.gnu.org; 8 Sep 2023 10:34:48 +0000 Received: from localhost ([127.0.0.1]:42274 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qeYp5-0003Y7-UL for submit@debbugs.gnu.org; Fri, 08 Sep 2023 06:34:48 -0400 Received: from mail-wm1-x331.google.com ([2a00:1450:4864:20::331]:62609) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qeYp2-0003Xt-EQ for 65820@debbugs.gnu.org; Fri, 08 Sep 2023 06:34:46 -0400 Received: by mail-wm1-x331.google.com with SMTP id 5b1f17b1804b1-401d2e11dacso19947185e9.0 for <65820@debbugs.gnu.org>; Fri, 08 Sep 2023 03:34:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foundationdevices.com; s=google; t=1694169276; x=1694774076; darn=debbugs.gnu.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=odHDJip+0UJQ89Fpblqy23/hK3FyYRmpQ+jZsLftRh0=; b=WUiqbSoLzRB4o5nIx04Wpq7jjE21kGGcxlhqF1OWoQKaVGCwDZQSfH8PJq8zKBJ0Se nubUaGXWNbUi9vc2dCxp2wOXQGurpfHxDcnRTbguTwintunGbIMQZ348/6u9em7Gm2nc fH2jzu8Yc19nXMakzbsL+iEO/2Jlpnug7xQEWpdG3G8HoH+qz40yD7zbfaADZD3O6Emy sBngb72KBFnQNSFdDAwc0m0xIYZlknUrFa9wIFwZ69IkWOwtzQrf3R5YW06BAj1S+6Bz AQd+y5XRT2otnATYLu1WSpRIjRb5zfaN7jhvM8OV7/dlifv1Ey/rs912MLlPqTOeyY6D hujA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694169276; x=1694774076; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=odHDJip+0UJQ89Fpblqy23/hK3FyYRmpQ+jZsLftRh0=; b=xAzc4U7/DBIGlKIna62Vq/JX/LtwmRLF7Y87ghst4SaDl76/IbNke7SQvIyWgsuiS5 Q9R6r7jLw28iCFWcjhlzX7HkslQDCcmmhqNqym6Sq7ywIWEpOjDd4XcsFBUZxbzyyYZj XJgJA5kDa7VCxN9faw/uBD2HI0+CJZH2wupX/UdCMdpCeCT73Fy2E7DiJLxlryZeQ6hE Jiw0Ozuo9yb75j34tVOh76fTg7bw0uhtS84pPwRwxUXoqsTjBDd8dccQ2o8HeaiV0kId 1EUmnpKUS1e6UiDRYbdEjmJkJApij2unYwZ2DUlZQozeF0hQhq5RdbC5ILTWGcxESB13 SnpA== X-Gm-Message-State: AOJu0YycuKGURQKauFeHUQQ+ci0O/84TN/3XV4zEU3pAVr367HmXKldb rnXzKmKt85JQGDVjOYk0XZs7eo+yw/Ry+KwbaWd+dA== X-Google-Smtp-Source: AGHT+IGQh4s+RXJkihonKqpZ59xsELyOnVgY3PrK5XCsuTXxJZ+0iSodGMYN2VdZa9zdFX2mhHO00w== X-Received: by 2002:a05:600c:5127:b0:402:f91e:df80 with SMTP id o39-20020a05600c512700b00402f91edf80mr842543wms.3.1694169275678; Fri, 08 Sep 2023 03:34:35 -0700 (PDT) Received: from omen15.home ([89.131.29.87]) by smtp.gmail.com with ESMTPSA id l40-20020a05600c1d2800b00402f7b50517sm1442102wms.40.2023.09.08.03.34.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 Sep 2023 03:34:35 -0700 (PDT) Date: Fri, 8 Sep 2023 12:34:19 +0200 Message-Id: <20230908103419.21662-1-jean@foundationdevices.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 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: Jean-Pierre De Jesus DIAZ X-ACL-Warn: , Jean-Pierre De Jesus DIAZ via Guix-patches X-Patchwork-Original-From: Jean-Pierre De Jesus DIAZ via Guix-patches via From: Jean-Pierre De Jesus DIAZ 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/vim.scm (vim-vader): New variable. Signed-off-by: Jean-Pierre De Jesus DIAZ --- gnu/packages/vim.scm | 50 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) diff --git a/gnu/packages/vim.scm b/gnu/packages/vim.scm index 122f0f8ee7..e7c51c1c2d 100644 --- a/gnu/packages/vim.scm +++ b/gnu/packages/vim.scm @@ -14,6 +14,7 @@ ;;; Copyright © 2021 Foo Chuan Wei ;;; Copyright © 2022, 2023 Luis Henrique Gomes Higin65820@debbugs.gnu.orgo ;;; Copyright © 2023 Charles Jackson +;;; Copyright © 2023 Foundation Devices, Inc. ;;; ;;; This file is part of GNU Guix. ;;; @@ -1479,3 +1480,52 @@ (define-public vim-nerdcommenter operations and styles which are invoked via key mappings and a menu. These operations are available for most filetypes.") (license license:cc0))) + +(define-public vim-vader + (let ((revision "0") + (commit "6fff477431ac3191c69a3a5e5f187925466e275a")) + (package + (name "vim-vader") + (version (git-version "0.4.0" revision commit)) + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/junegunn/vader.vim") + (commit commit))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "179dbbqdyl6qf6jdb6kdazn3idz17m1h2n88rlggb1wnly74vjin")))) + (build-system copy-build-system) + (arguments + '(#:install-plan + '(("autoload" "share/vim/vimfiles/") + ("doc" "share/vim/vimfiles/") + ("ftdetect" "share/vim/vimfiles/") + ("ftplugin" "share/vim/vimfiles/") + ("plugin" "share/vim/vimfiles/") + ("syntax" "share/vim/vimfiles/")) + #:phases + (modify-phases %standard-phases + (add-before 'install 'check + (lambda* (#:key tests? #:allow-other-keys) + (when tests? + ;; FIXME: suite1.vader fails with an unknown reason, + ;; lang-if.vader requires Python and Ruby. + (substitute* "test/vader.vader" + (("Include.*feature/suite1.vader.*$") "") + (("Include.*feature/lang-if.vader.*$") "")) + + (display "Running Vim tests\n") + (with-directory-excursion "test" + (setenv "VADER_TEST_VIM" "vim -E") + (invoke "bash" "./run-tests.sh")))))))) + (native-inputs (list vim)) + (home-page "https://github.com/junegunn/vader.vim") + (synopsis "Test framework for Vimscript") + (description "Vader is a test framework for Vimscript designed to +simplify the process of writing and running unit tests. Vader.vim provides an +intuitive test syntax for defining test cases and expectations, it also can +be integrated with @acronym{CI, Continuous Integration} pipelines to +automate testing and is compatible with Vim and Neovim.") + (license license:expat)))) ;; Specified in README.md.