[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
09/14: gnu: Add java-jopt-simple-4.
From: |
guix-commits |
Subject: |
09/14: gnu: Add java-jopt-simple-4. |
Date: |
Tue, 22 Jun 2021 07:11:37 -0400 (EDT) |
roptat pushed a commit to branch master
in repository guix.
commit 01706f6e0081674dffa39a49c33e04d48aad5300
Author: Julien Lepiller <julien@lepiller.eu>
AuthorDate: Tue Jun 1 00:44:22 2021 +0200
gnu: Add java-jopt-simple-4.
* gnu/packges/java.scm (java-jopt-simple-4): New variable.
(java-jopt-simple): Install to maven repository structure.
---
gnu/packages/java.scm | 32 ++++++++++++++++++++++++++++++--
1 file changed, 30 insertions(+), 2 deletions(-)
diff --git a/gnu/packages/java.scm b/gnu/packages/java.scm
index 59f9497..b34e31a 100644
--- a/gnu/packages/java.scm
+++ b/gnu/packages/java.scm
@@ -3,7 +3,7 @@
;;; Copyright © 2016 Leo Famulari <leo@famulari.name>
;;; Copyright © 2016, 2017 Roel Janssen <roel@gnu.org>
;;; Copyright © 2017, 2019, 2021 Carlo Zancanaro <carlo@zancanaro.id.au>
-;;; Copyright © 2017-2020 Julien Lepiller <julien@lepiller.eu>
+;;; Copyright © 2017-2021 Julien Lepiller <julien@lepiller.eu>
;;; Copyright © 2017 Thomas Danckaert <post@thomasdanckaert.be>
;;; Copyright © 2016, 2017, 2018 Alex Vong <alexvong1995@gmail.com>
;;; Copyright © 2017, 2019, 2021 Tobias Geerinckx-Rice <me@tobias.gr>
@@ -5781,7 +5781,13 @@ The jMock library
(build-system ant-build-system)
(arguments
`(#:tests? #f ; there are no tests
- #:jar-name "jopt-simple.jar"))
+ #:jar-name "jopt-simple.jar"
+ #:phases
+ (modify-phases %standard-phases
+ (add-before 'install 'create-pom
+ (generate-pom.xml "pom.xml" "net.sf.jopt-simple" "jopt-simple"
,version))
+ (replace 'install
+ (install-from-pom "pom.xml")))))
(home-page "https://pholser.github.io/jopt-simple/")
(synopsis "Java library for parsing command line options")
(description "JOpt Simple is a Java library for parsing command line
@@ -5793,6 +5799,28 @@ retrieval of options and their arguments simple and
expressive, without being
overly clever.")
(license license:expat)))
+;; Required by jmh
+(define-public java-jopt-simple-4
+ (package
+ (inherit java-jopt-simple)
+ (version "4.6")
+ (source (origin
+ (method url-fetch)
+ (uri (string-append "https://repo1.maven.org/maven2/"
+ "net/sf/jopt-simple/jopt-simple/"
+ version "/jopt-simple-"
+ version "-sources.jar"))
+ (sha256
+ (base32
+ "0ny82zczxkn201ld0b7rps0ifzjhfs8m1ncdmy1f50145ciszkpd"))))
+ (arguments
+ (substitute-keyword-arguments (package-arguments java-jopt-simple)
+ ((#:phases phases)
+ `(modify-phases ,phases
+ (replace 'create-pom
+ (generate-pom.xml "pom.xml" "net.sf.jopt-simple" "jopt-simple"
+ ,version))))))))
+
(define-public java-commons-math3
(package
(name "java-commons-math3")
- 01/14: guix: java-utils: Factorize pom.xml generation., (continued)
- 01/14: guix: java-utils: Factorize pom.xml generation., guix-commits, 2021/06/22
- 03/14: guix: maven: Simplify finding local packages and modules., guix-commits, 2021/06/22
- 04/14: guix: maven: Support fixing extensions., guix-commits, 2021/06/22
- 05/14: guix: maven: Support fixing modules., guix-commits, 2021/06/22
- 02/14: guix: maven: Simplify finding version and group information., guix-commits, 2021/06/22
- 07/14: guix: maven: Use a temporary file to fix pom files., guix-commits, 2021/06/22
- 08/14: guix: java-utils: Look for actual jar files., guix-commits, 2021/06/22
- 11/14: gnu: maven-core: Hardcode versions we have in Guix., guix-commits, 2021/06/22
- 13/14: gnu: java-jmh: Update to 1.32., guix-commits, 2021/06/22
- 06/14: guix: maven: Look in local packages when searching for package version., guix-commits, 2021/06/22
- 09/14: gnu: Add java-jopt-simple-4.,
guix-commits <=
- 12/14: gnu: maven-enforcer-parent-pom: Fix pom., guix-commits, 2021/06/22
- 10/14: gnu: java-commons-math3: Install to maven repository., guix-commits, 2021/06/22
- 14/14: gnu: java-jmh: Switch to maven-build-system., guix-commits, 2021/06/22