diff options
author | Ricardo Wurmus <rekado@elephly.net> | 2017-06-27 17:43:59 +0200 |
---|---|---|
committer | Ricardo Wurmus <rekado@elephly.net> | 2017-07-09 16:57:05 +0200 |
commit | bdb31853f0d4051001ff1ca1febe1f695a3e10fc (patch) | |
tree | 467e4a4c055b712aeac15cdef4f9215747b3581e | |
parent | 2613f5aff05eb94098832938941d7e3ab7eba7c8 (diff) | |
download | guix-bdb31853f0d4051001ff1ca1febe1f695a3e10fc.tar.gz guix-bdb31853f0d4051001ff1ca1febe1f695a3e10fc.zip |
gnu: Add java-jgit-4.2.
* gnu/packages/version-control.scm (java-jgit-4.2): New variable.
-rw-r--r-- | gnu/packages/version-control.scm | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/gnu/packages/version-control.scm b/gnu/packages/version-control.scm index 7cbee01a8d..465cdc9971 100644 --- a/gnu/packages/version-control.scm +++ b/gnu/packages/version-control.scm @@ -1511,3 +1511,34 @@ unique algebra of patches called @url{http://darcs.net/Theory,Patchtheory}. Git version control system, providing repository access routines, support for network protocols, and core version control algorithms.") (license license:edl1.0))) + +;; For axoloti. This package can still be built with icedtea-7, which is +;; currently used as the default JDK. +(define-public java-jgit-4.2 + (package (inherit java-jgit) + (version "4.2.0.201601211800-r") + (source (origin + (method url-fetch) + (uri (string-append "https://repo1.maven.org/maven2/" + "org/eclipse/jgit/org.eclipse.jgit/" + version "/org.eclipse.jgit-" + version "-sources.jar")) + (sha256 + (base32 + "15gm537iivhnzlkjym4x3wn5jqdjdragsw9pdpzqqg21nrc817mm")))) + (build-system ant-build-system) + (arguments + `(#:phases + (modify-phases %standard-phases + (add-after 'unpack 'use-latest-javaewah-API + (lambda _ + (substitute* "src/org/eclipse/jgit/internal/storage/file/BitmapIndexImpl.java" + (("wordinbits") "WORD_IN_BITS")) + #t))) + ;; Build for default JDK. + ,@(substitute-keyword-arguments (package-arguments java-jgit) + ((#:jdk _) icedtea-7)))) + (inputs + `(("java-javaewah" ,java-javaewah) + ("java-jsch" ,java-jsch) + ("java-slf4j-api" ,java-slf4j-api))))) |