From patchwork Sun Sep 18 18:45:16 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Artyom V. Poptsov" X-Patchwork-Id: 42714 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 D0EBD27BBEA; Sun, 18 Sep 2022 19:46:22 +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_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FROM,MAILING_LIST_MULTI, SPF_HELO_PASS,URIBL_BLOCKED autolearn=unavailable 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 4C9BC27BBE9 for ; Sun, 18 Sep 2022 19:46:22 +0100 (BST) Received: from localhost ([::1]:58292 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oZzJ7-0001yV-GR for patchwork@mira.cbaines.net; Sun, 18 Sep 2022 14:46:21 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:45882) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oZzIo-0001y4-It for guix-patches@gnu.org; Sun, 18 Sep 2022 14:46:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:52183) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oZzIo-0006mN-8U for guix-patches@gnu.org; Sun, 18 Sep 2022 14:46:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oZzIo-0004QQ-3q for guix-patches@gnu.org; Sun, 18 Sep 2022 14:46:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#57913] [PATCH] gnu: Add java-argparse4j. Resent-From: "Artyom V. Poptsov" Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 18 Sep 2022 18:46:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 57913 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Julien Lepiller Cc: 57913@debbugs.gnu.org Received: via spool by 57913-submit@debbugs.gnu.org id=B57913.166352673616974 (code B ref 57913); Sun, 18 Sep 2022 18:46:02 +0000 Received: (at 57913) by debbugs.gnu.org; 18 Sep 2022 18:45:36 +0000 Received: from localhost ([127.0.0.1]:51261 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oZzIN-0004Ph-DW for submit@debbugs.gnu.org; Sun, 18 Sep 2022 14:45:35 -0400 Received: from mail-lf1-f48.google.com ([209.85.167.48]:47061) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oZzIK-0004PQ-Lp for 57913@debbugs.gnu.org; Sun, 18 Sep 2022 14:45:33 -0400 Received: by mail-lf1-f48.google.com with SMTP id a8so43430658lff.13 for <57913@debbugs.gnu.org>; Sun, 18 Sep 2022 11:45:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:user-agent:message-id:in-reply-to:date:references :subject:cc:to:from:from:to:cc:subject:date; bh=wxEXmG3Yw/4hD0RJ5kH7ogn23rpAD+CcZH6ozbB1k1c=; b=EZ0Gng1h8DSJ7cLSDELk5bu/Zss11sm1sh2bmNKjpKmbGiHhkMN9hcfBIlNrfy5+/z MSz0t4JeMzHiAaUwHrHt+wTSKnljRO72ZSFjgiopOCQrXMwyZf+LmOtB1kiGrcJjkZuN eHOwYGc1KY0b/rBLGPa3RmsINRgCRiIOMUwOIy7WzmAHFfyzhbBXZoAtoHd3bGYJ6aK0 ILf+jOSUTZAqqjQeCrj6jjYRHDbe3brNYNowmx4v7rTczpuWifBa1TQDNWoO4lUtt4P6 wQKqMdhJuBn2oBTkXHdff6KSH7cIH4mzkV53fombf5ApqUEPqVKznZHSSzsKiP8qv40L Upow== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=mime-version:user-agent:message-id:in-reply-to:date:references :subject:cc:to:from:x-gm-message-state:from:to:cc:subject:date; bh=wxEXmG3Yw/4hD0RJ5kH7ogn23rpAD+CcZH6ozbB1k1c=; b=QXPb5WeryoL9kQMqgLLFGQA+xmovgeGSTaiivmGinPCyKS8g85ZJ7NatPHrX8WMEvv MzYby2vrItzBDFVXzCk/BrooWaFp59rmiblErNfzF8Iuhy52n/1YfzEscU7y4Gw70Pvz 8DuwKS0k4MCpvxqxjPyfrK9a2e8eWDn7tTSS1kmxt00p5pDstVh9/HrTFg3PZz4L4JvH Sw+61updqFL+uTWlqjx7zl0VfgPbOk78yPq14bD+P/0keP/qaw89YVVneN+KzCyDTdH/ /EHYu/cDfcccB1WdIBdRuAinqsWLVI11rQhu5Ice/BTw6c4w96HQFGyzfAT/XpKcfSdx p0dw== X-Gm-Message-State: ACrzQf1MfzWAwFe9D9dHM7tKf3/LpNVtShX0e9ExIp43XBD9TA9ev7Vv CRXtYEoVszbCVR+TFFKaU9gLguCUIxE= X-Google-Smtp-Source: AMsMyM6gSFcn/pmJjKel46CbiAIKEAetq6lo+87mzOG27aQBG/IkNqz9b3AnGi3Ey1wInLieDtuUcQ== X-Received: by 2002:a05:6512:409:b0:49a:e44a:c6b1 with SMTP id u9-20020a056512040900b0049ae44ac6b1mr4882643lfk.222.1663526725721; Sun, 18 Sep 2022 11:45:25 -0700 (PDT) Received: from elephant ([5.166.205.177]) by smtp.gmail.com with ESMTPSA id c24-20020a197618000000b00497a41b3a42sm4797800lff.88.2022.09.18.11.45.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 18 Sep 2022 11:45:24 -0700 (PDT) From: "Artyom V. Poptsov" References: <87czbsob4l.fsf@gmail.com> <1D297848-AC16-4043-A64C-C2CBA3D23F16@lepiller.eu> Date: Sun, 18 Sep 2022 21:45:16 +0300 In-Reply-To: <1D297848-AC16-4043-A64C-C2CBA3D23F16@lepiller.eu> (Julien Lepiller's message of "Sun, 18 Sep 2022 20:35:15 +0200") Message-ID: <878rmgo72b.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.1 (gnu/linux) 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: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches Hello Julien, thank you for the patch review. > This looks good from a distance, but I'm not sure you need > maven-enforcer-plugin. Since you're using the ant-build-system, I > don't think the plugin has a chance to run? Good catch. It seems that "java-argparse4j" builds fine w/o "maven-enforcer-plugin". I removed this dependency and added "java-junit" instead as it is required for the tests. - Artyom From c96118bb654a6120614c363b9ff3e37ac9162b06 Mon Sep 17 00:00:00 2001 From: "Artyom V. Poptsov" Date: Sun, 18 Sep 2022 20:14:28 +0300 Subject: [PATCH] gnu: Add java-argparse4j. * gnu/packages/java.scm (java-argparse4j): New variable. --- gnu/packages/java.scm | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/gnu/packages/java.scm b/gnu/packages/java.scm index c25a330c2a..e4814d1acb 100644 --- a/gnu/packages/java.scm +++ b/gnu/packages/java.scm @@ -13965,6 +13965,41 @@ (define-public java-args4j parse command line options/arguments in your CUI application.") (license license:expat))) +(define-public java-argparse4j + (package + (name "java-argparse4j") + (version "0.9.0") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/argparse4j/argparse4j") + (commit (string-append "argparse4j-" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "1i0j3zs1ln48n0g8a90vqbv6528mcswhzys6252yp0c8w1ai64fb")))) + (build-system ant-build-system) + (arguments + (list #:jar-name "java-argparse4j.jar" + #:source-dir "main/src/main/" + #:test-dir "main/src/test/" + #:jdk openjdk11 + #:phases #~(modify-phases %standard-phases + (add-after 'unpack 'copy-resources + (lambda _ + (copy-recursively "main/src/test/resources" + "target/test-classes") + (copy-recursively "main/src/main/resources" + "build/classes"))) + (replace 'install + (install-from-pom "pom.xml"))))) + (inputs (list java-junit)) + (home-page "https://argparse4j.github.io/") + (synopsis "Java command-line argument parser library") + (description "Argparse4j is a command line argument parser library for +Java based on Python's @code{argparse} module.") + (license license:expat))) + (define-public java-metadata-extractor (package (name "java-metadata-extractor") -- 2.34.1