1 ;;; GNU Guix --- Functional package management for GNU
2 ;;; Copyright © 2013 Nikita Karetnikov <nikita@karetnikov.org>
3 ;;; Copyright © 2013 Cyril Roelandt <tipecaml@gmail.com>
4 ;;; Copyright © 2013, 2014, 2015, 2016, 2017, 2018, 2019 Ludovic Courtès <ludo@gnu.org>
5 ;;; Copyright © 2013, 2014 Andreas Enge <andreas@enge.fr>
6 ;;; Copyright © 2015, 2016 Mathieu Lirzin <mthl@gnu.org>
7 ;;; Copyright © 2014, 2015, 2016 Mark H Weaver <mhw@netris.org>
8 ;;; Copyright © 2014, 2016 Eric Bavier <bavier@member.fsf.org>
9 ;;; Copyright © 2015, 2016, 2017, 2018, 2019 Efraim Flashner <efraim@flashner.co.il>
10 ;;; Copyright © 2015, 2018 Kyle Meyer <kyle@kyleam.com>
11 ;;; Copyright © 2015, 2017, 2018 Ricardo Wurmus <rekado@elephly.net>
12 ;;; Copyright © 2016, 2017 Leo Famulari <leo@famulari.name>
13 ;;; Copyright © 2016, 2017, 2018 ng0 <ng0@n0.is>
14 ;;; Copyright © 2017, 2018, 2019 Tobias Geerinckx-Rice <me@tobias.gr>
15 ;;; Copyright © 2017 Vasile Dumitrascu <va511e@yahoo.com>
16 ;;; Copyright © 2017 Clément Lassieur <clement@lassieur.org>
17 ;;; Copyright © 2017 André <eu@euandre.org>
18 ;;; Copyright © 2017, 2018 Marius Bakke <mbakke@fastmail.com>
19 ;;; Copyright © 2017 Stefan Reichör <stefan@xsteve.at>
20 ;;; Copyright © 2017 Oleg Pykhalov <go.wigust@gmail.com>
21 ;;; Copyright © 2018 Sou Bunnbu <iyzsong@member.fsf.org>
22 ;;; Copyright © 2018 Christopher Baines <mail@cbaines.net>
23 ;;; Copyright © 2018 Timothy Sample <samplet@ngyro.com>
24 ;;; Copyright © 2018 Arun Isaac <arunisaac@systemreboot.net>
25 ;;; Copyright © 2019 Jovany Leandro G.C <bit4bit@riseup.net>
27 ;;; This file is part of GNU Guix.
29 ;;; GNU Guix is free software; you can redistribute it and/or modify it
30 ;;; under the terms of the GNU General Public License as published by
31 ;;; the Free Software Foundation; either version 3 of the License, or (at
32 ;;; your option) any later version.
34 ;;; GNU Guix is distributed in the hope that it will be useful, but
35 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
36 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
37 ;;; GNU General Public License for more details.
39 ;;; You should have received a copy of the GNU General Public License
40 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
42 (define-module (gnu packages version-control)
43 #:use-module ((guix licenses) #:prefix license:)
44 #:use-module (guix utils)
45 #:use-module (guix packages)
46 #:use-module (guix download)
47 #:use-module (guix git-download)
48 #:use-module (guix build-system ant)
49 #:use-module (guix build-system cmake)
50 #:use-module (guix build-system gnu)
51 #:use-module (guix build-system haskell)
52 #:use-module (guix build-system python)
53 #:use-module (guix build-system trivial)
54 #:use-module (gnu packages apr)
55 #:use-module (gnu packages autotools)
56 #:use-module (gnu packages documentation)
57 #:use-module (gnu packages base)
58 #:use-module (gnu packages bash)
59 #:use-module (gnu packages bison)
60 #:use-module (gnu packages boost)
61 #:use-module (gnu packages check)
62 #:use-module (gnu packages cook)
63 #:use-module (gnu packages curl)
64 #:use-module (gnu packages docbook)
65 #:use-module (gnu packages ed)
66 #:use-module (gnu packages file)
67 #:use-module (gnu packages flex)
68 #:use-module (gnu packages gettext)
69 #:use-module (gnu packages gl)
70 #:use-module (gnu packages groff)
71 #:use-module (gnu packages guile)
72 #:use-module (gnu packages haskell)
73 #:use-module (gnu packages haskell-check)
74 #:use-module (gnu packages haskell-crypto)
75 #:use-module (gnu packages haskell-web)
76 #:use-module (gnu packages image)
77 #:use-module (gnu packages java)
78 #:use-module (gnu packages linux)
79 #:use-module (gnu packages maths)
80 #:use-module (gnu packages nano)
81 #:use-module (gnu packages ncurses)
82 #:use-module (gnu packages ssh)
83 #:use-module (gnu packages web)
84 #:use-module (gnu packages openstack)
85 #:use-module (gnu packages pcre)
86 #:use-module (gnu packages perl)
87 #:use-module (gnu packages perl-check)
88 #:use-module (gnu packages pkg-config)
89 #:use-module (gnu packages python)
90 #:use-module (gnu packages python-web)
91 #:use-module (gnu packages python-xyz)
92 #:use-module (gnu packages readline)
93 #:use-module (gnu packages rsync)
94 #:use-module (gnu packages sqlite)
95 #:use-module (gnu packages admin)
96 #:use-module (gnu packages xml)
97 #:use-module (gnu packages emacs)
98 #:use-module (gnu packages compression)
99 #:use-module (gnu packages sdl)
100 #:use-module (gnu packages swig)
101 #:use-module (gnu packages tcl)
102 #:use-module (gnu packages textutils)
103 #:use-module (gnu packages time)
104 #:use-module (gnu packages tls)
105 #:use-module (gnu packages)
106 #:use-module (ice-9 match)
107 #:use-module (srfi srfi-1))
109 (define-public bazaar
116 (uri (string-append "https://launchpad.net/bzr/"
117 (version-major+minor version) "/" version
118 "/+download/bzr-" version ".tar.gz"))
119 (patches (search-patches "bazaar-CVE-2017-14176.patch"))
122 "1cysix5k3wa6y7jjck3ckq3abls4gvz570s0v0hxv805nwki4i8d"))))
123 (build-system python-build-system)
125 ;; Note: 'tools/packaging/lp-upload-release' and 'tools/weavemerge.sh'
127 `(("gettext" ,gettext-minimal)))
129 `(#:tests? #f ; no test target
130 #:python ,python-2 ; Python 3 apparently not yet supported, see
131 ; https://answers.launchpad.net/bzr/+question/229048
133 (modify-phases %standard-phases
134 (add-after 'unpack 'fix-mandir
136 (substitute* "setup.py"
137 (("man/man1") "share/man/man1"))
139 (home-page "https://gnu.org/software/bazaar")
140 (synopsis "Version control system supporting both distributed and centralized workflows")
142 "GNU Bazaar is a version control system that allows you to record
143 changes to project files over time. It supports both a distributed workflow
144 as well as the classic centralized workflow.")
145 (license license:gpl2+)))
150 ;; XXX When updating Git, check if the special 'git-source' input to cgit
151 ;; needs to be updated as well.
155 (uri (string-append "mirror://kernel.org/software/scm/git/git-"
159 "0a0d0b07rmvs985zpndxxy0vzr0vq53kq5kyd68iv6gf8gkirjwc"))))
160 (build-system gnu-build-system)
162 `(("native-perl" ,perl)
163 ("gettext" ,gettext-minimal)
168 "mirror://kernel.org/software/scm/git/git-manpages-"
172 "0lgcynqbjmfsvhfk14jvqyvb1xiyqgkgznb707vha38wjcjdqs1g"))))
173 ;; For subtree documentation.
174 ("asciidoc" ,asciidoc)
175 ("docbook-xsl" ,docbook-xsl)
182 ("python" ,python-2) ; CAVEAT: incompatible with python-3 according to INSTALL
185 ;; Note: we keep this in inputs rather than native-inputs to work around
186 ;; a problem in 'patch-shebangs'; see <https://bugs.gnu.org/31952>.
187 ("bash-for-tests" ,bash)
190 ("perl-cgi" ,perl-cgi)
193 ("subversion" ,subversion)
194 ("perl-term-readkey" ,perl-term-readkey)
196 ;; For 'git-send-email'
197 ("perl-authen-sasl" ,perl-authen-sasl)
198 ("perl-net-smtp-ssl" ,perl-net-smtp-ssl)
199 ("perl-io-socket-ssl" ,perl-io-socket-ssl)
201 ;; For 'git gui', 'gitk', and 'git citool'.
204 (outputs '("out" ; the core
205 "send-email" ; for git-send-email
207 "credential-netrc" ; git-credential-netrc
208 "subtree" ; git-subtree
209 "gui")) ; gitk, git gui
211 `(#:make-flags `("V=1" ;more verbose compilation
213 ,(string-append "SHELL_PATH="
214 (assoc-ref %build-inputs "bash")
217 ;; Tests require a bash with completion support.
218 ,(string-append "TEST_SHELL_PATH="
219 (assoc-ref %build-inputs "bash-for-tests")
222 ;; By default 'make install' creates hard links for
223 ;; things in 'libexec/git-core', which leads to huge
224 ;; nars; see <https://bugs.gnu.org/21949>.
225 "NO_INSTALL_HARDLINKS=indeed")
227 ;; Make sure the full bash does not end up in the final closure.
228 #:disallowed-references (,bash)
232 ;; Tests fail randomly when parallel: <https://bugs.gnu.org/29512>.
235 ;; The explicit --with-tcltk forces the build system to hardcode the
236 ;; absolute file name to 'wish'.
237 #:configure-flags (list (string-append "--with-tcltk="
238 (assoc-ref %build-inputs "tk")
239 "/bin/wish8.6")) ; XXX
241 #:modules ((srfi srfi-1)
243 ,@%gnu-build-system-modules)
245 (modify-phases %standard-phases
246 (add-after 'unpack 'modify-PATH
247 (lambda* (#:key inputs #:allow-other-keys)
248 (let ((path (string-split (getenv "PATH") #\:))
249 (bash-full (assoc-ref inputs "bash-for-tests")))
250 ;; Drop the test bash from PATH so that (which "sh") and
251 ;; similar does the right thing.
252 (setenv "PATH" (string-join
253 (remove (cut string-prefix? bash-full <>) path)
256 (add-after 'configure 'patch-makefiles
258 (substitute* "Makefile"
259 (("/usr/bin/perl") (which "perl"))
260 (("/usr/bin/python") (which "python")))
262 (add-after 'configure 'add-PM.stamp
264 ;; Add the "PM.stamp" to avoid "no rule to make target".
265 (call-with-output-file "perl/PM.stamp" (const #t))
267 (add-after 'build 'build-subtree
268 (lambda* (#:key inputs #:allow-other-keys)
269 (with-directory-excursion "contrib/subtree"
270 (substitute* "Makefile"
271 ;; Apparently `xmlto' does not bother to looks up the stylesheets
272 ;; specified in the XML, unlike the above substitution. Instead it
273 ;; uses a hard-coded URL. Work around it here, but if this is
274 ;; common perhaps we should hardcode this path in xmlto itself.
275 (("\\$\\(XMLTO\\) -m \\$\\(MANPAGE_XSL\\) man")
276 (string-append "$(XMLTO) -x "
277 (string-append (assoc-ref inputs "docbook-xsl")
278 "/xml/xsl/docbook-xsl-"
279 ,(package-version docbook-xsl))
280 "/manpages/docbook.xsl -m $(MANPAGE_XSL) man")))
282 (invoke "make" "install")
283 (invoke "make" "install-doc")
284 (substitute* "git-subtree"
285 (("/bin/sh") (which "sh"))))
287 (add-before 'check 'patch-tests
289 (let ((store-directory (%store-directory)))
290 ;; These files contain some funny bytes that Guile is unable
291 ;; to decode for shebang patching. Just delete them.
292 (for-each delete-file '("t/t4201-shortlog.sh"
293 "t/t7813-grep-icase-iso.sh"))
294 ;; Many tests contain inline shell scripts (hooks etc).
295 (substitute* (find-files "t" "\\.sh$")
296 (("#!/bin/sh") (string-append "#!" (which "sh"))))
297 ;; Un-do shebang patching here to prevent checksum mismatch.
298 (substitute* '("t/t4034/perl/pre" "t/t4034/perl/post")
299 (("^#!.*/bin/perl") "#!/usr/bin/perl"))
300 (substitute* "t/t5003-archive-zip.sh"
301 (("cp /bin/sh") (string-append "cp " (which "sh"))))
302 (substitute* "t/t6030-bisect-porcelain.sh"
303 (("\"/bin/sh\"") (string-append "\"" (which "sh") "\"")))
304 ;; FIXME: This test runs `git commit` with a bogus EDITOR
305 ;; and empty commit message, but does not fail the way it's
306 ;; expected to. The test passes when invoked interactively.
307 (substitute* "t/t7508-status.sh"
308 (("\tcommit_template_commented") "\ttrue"))
309 ;; More checksum mismatches due to odd shebangs.
310 (substitute* "t/t9100-git-svn-basic.sh"
311 (((string-append "\"#!" store-directory ".*/bin/sh")) "\"#!/bin/sh") )
312 (substitute* "t/t9300-fast-import.sh"
313 (((string-append "\t#!" store-directory ".*/bin/sh")) "\t#!/bin/sh")
314 (((string-append "'#!" store-directory ".*/bin/sh")) "'#!/bin/sh"))
315 ;; FIXME: Some hooks fail with "basename: command not found".
316 ;; See 't/trash directory.t9164.../svn-hook.log'.
317 (delete-file "t/t9164-git-svn-dcommit-concurrent.sh")
319 ;; XXX: These tests fail intermittently for unknown reasons:
320 ;; <https://bugs.gnu.org/29546>.
321 (for-each delete-file
322 '("t/t9128-git-svn-cmd-branch.sh"
323 "t/t9167-git-svn-cmd-branch-subproject.sh"
324 "t/t9141-git-svn-multiple-branches.sh"))
326 (add-after 'install 'install-shell-completion
327 (lambda* (#:key outputs #:allow-other-keys)
328 (let* ((out (assoc-ref outputs "out"))
329 (completions (string-append out "/etc/bash_completion.d")))
330 ;; TODO: Install the tcsh and zsh completions in the right place.
331 (mkdir-p completions)
332 (copy-file "contrib/completion/git-completion.bash"
333 (string-append completions "/git"))
335 (add-after 'install 'install-credential-netrc
336 (lambda* (#:key outputs #:allow-other-keys)
337 (let* ((netrc (assoc-ref outputs "credential-netrc")))
338 (install-file "contrib/credential/netrc/git-credential-netrc"
339 (string-append netrc "/bin"))
340 ;; Previously, Git.pm was automatically found by netrc.
341 ;; Perl 5.26 changed how it locates modules so that @INC no
342 ;; longer includes the current working directory (the Perl
343 ;; community calls this "dotless @INC").
344 (wrap-program (string-append netrc "/bin/git-credential-netrc")
345 `("PERL5LIB" ":" prefix
346 (,(string-append (assoc-ref outputs "out") "/share/perl5"))))
348 (add-after 'install 'install-subtree
349 (lambda* (#:key outputs #:allow-other-keys)
350 (let ((subtree (assoc-ref outputs "subtree")))
351 (install-file "contrib/subtree/git-subtree"
352 (string-append subtree "/bin"))
353 (install-file "contrib/subtree/git-subtree.1"
354 (string-append subtree "/share/man/man1"))
356 (add-after 'install 'split
357 (lambda* (#:key inputs outputs #:allow-other-keys)
358 ;; Split the binaries to the various outputs.
359 (let* ((out (assoc-ref outputs "out"))
360 (se (assoc-ref outputs "send-email"))
361 (svn (assoc-ref outputs "svn"))
362 (gui (assoc-ref outputs "gui"))
363 (gitk (string-append out "/bin/gitk"))
364 (gitk* (string-append gui "/bin/gitk"))
365 (git-gui (string-append out "/libexec/git-core/git-gui"))
366 (git-gui* (string-append gui "/libexec/git-core/git-gui"))
367 (git-cit (string-append out "/libexec/git-core/git-citool"))
368 (git-cit* (string-append gui "/libexec/git-core/git-citool"))
369 (git-se (string-append out "/libexec/git-core/git-send-email"))
370 (git-se* (string-append se "/libexec/git-core/git-send-email"))
371 (git-svn (string-append out "/libexec/git-core/git-svn"))
372 (git-svn* (string-append svn "/libexec/git-core/git-svn"))
373 (git-sm (string-append out
374 "/libexec/git-core/git-submodule")))
375 (mkdir-p (string-append gui "/bin"))
376 (mkdir-p (string-append gui "/libexec/git-core"))
377 (mkdir-p (string-append se "/libexec/git-core"))
378 (mkdir-p (string-append svn "/libexec/git-core"))
380 (for-each (lambda (old new)
384 (list gitk git-gui git-cit git-se git-svn)
385 (list gitk* git-gui* git-cit* git-se* git-svn*))
387 ;; Tell 'git-svn' where Subversion and perl-term-readkey are.
388 (wrap-program git-svn*
390 (,(string-append (assoc-ref inputs "subversion")
392 `("PERL5LIB" ":" prefix
393 ,(map (lambda (i) (string-append (assoc-ref inputs i)
394 "/lib/perl5/site_perl"))
395 '("subversion" "perl-term-readkey")))
397 ;; XXX: The .so for SVN/Core.pm lacks a RUNPATH, so
398 ;; help it find 'libsvn_client-1.so'.
399 `("LD_LIBRARY_PATH" ":" prefix
400 (,(string-append (assoc-ref inputs "subversion")
403 ;; Tell 'git-send-email' where perl modules are.
404 (wrap-program git-se*
405 `("PERL5LIB" ":" prefix
406 ,(map (lambda (o) (string-append o "/lib/perl5/site_perl"))
408 ,@(transitive-input-references
411 (assoc l (package-inputs this-package)))
414 "perl-io-socket-ssl")))))))
416 ;; Tell 'gitweb.cgi' where perl modules are.
417 (wrap-program (string-append out "/share/gitweb/gitweb.cgi")
418 `("PERL5LIB" ":" prefix
419 ,(map (lambda (o) (string-append o "/lib/perl5/site_perl"))
421 ,@(transitive-input-references
424 (assoc l (package-inputs this-package)))
427 ;; Tell 'git-submodule' where Perl is.
430 (,(string-append (assoc-ref inputs "perl")
434 (add-after 'split 'install-man-pages
435 (lambda* (#:key inputs outputs #:allow-other-keys)
436 (let* ((out (assoc-ref outputs "out"))
437 (man (string-append out "/share/man"))
438 (manpages (assoc-ref inputs "git-manpages")))
440 (with-directory-excursion man
441 (invoke "tar" "xvf" manpages))))))))
444 ;; For HTTPS access, Git needs a single-file certificate bundle, specified
445 ;; with $GIT_SSL_CAINFO.
446 (list (search-path-specification
447 (variable "GIT_SSL_CAINFO")
449 (separator #f) ;single entry
450 (files '("etc/ssl/certs/ca-certificates.crt")))
451 (search-path-specification
452 (variable "GIT_EXEC_PATH")
453 (separator #f) ;single entry
454 (files '("libexec/git-core")))))
456 (synopsis "Distributed version control system")
458 "Git is a free distributed version control system designed to handle
459 everything from small to very large projects with speed and efficiency.")
460 (license license:gpl2)
461 (home-page "https://git-scm.com/")))
463 (define-public git-minimal
464 ;; The size of the closure of 'git-minimal' is two thirds that of 'git'.
465 ;; Its test suite runs slightly faster and most importantly it doesn't
466 ;; depend on packages that are expensive to build such as Subversion.
471 (substitute-keyword-arguments (package-arguments git)
473 `(modify-phases ,phases
474 (replace 'patch-makefiles
476 (substitute* "Makefile"
477 (("/usr/bin/perl") (which "perl")))
479 (delete 'build-subtree)
481 (delete 'install-man-pages)
482 (delete 'install-subtree)
483 (delete 'install-credential-netrc)
484 (add-before 'check 'delete-svn-test
486 ;; This test cannot run since we are not building 'git-svn'.
487 (delete-file "t/t9020-remote-svn.sh")
489 (add-after 'install 'remove-unusable-perl-commands
490 (lambda* (#:key outputs #:allow-other-keys)
491 (let* ((out (assoc-ref outputs "out"))
492 (bin (string-append out "/bin"))
493 (libexec (string-append out "/libexec")))
494 (for-each (lambda (file)
495 (delete-file (string-append libexec
497 '("git-svn" "git-cvsimport" "git-archimport"
498 "git-cvsserver" "git-request-pull"
499 "git-add--interactive" "git-cvsexportcommit"
500 "git-instaweb" "git-send-email"))
501 (delete-file (string-append bin "/git-cvsserver"))
503 ;; These templates typically depend on Perl. Remove them.
504 (delete-file-recursively
505 (string-append out "/share/git-core/templates/hooks"))
507 ;; Gitweb depends on Perl as well.
508 (delete-file-recursively
509 (string-append out "/share/gitweb"))
511 ((#:configure-flags flags)
513 ((#:disallowed-references lst '())
517 `(("native-perl" ,perl)
518 ("gettext" ,gettext-minimal)))
520 `(("curl" ,curl) ;for HTTP(S) access
521 ("expat" ,expat) ;for 'git push' over HTTP(S)
525 ("bash-for-tests" ,bash)))))
527 (define-public libgit2
533 (uri (string-append "https://github.com/libgit2/libgit2/"
534 "archive/v" version ".tar.gz"))
535 (file-name (string-append name "-" version ".tar.gz"))
538 "0swk2dyq5a4p1jn5wvbcsrxckhh808vifxz5y8w663avg541188c"))
539 (patches (search-patches "libgit2-avoid-python.patch"
540 "libgit2-mtime-0.patch"))
542 ;; Remove bundled software.
544 (delete-file-recursively "deps")
546 (modules '((guix build utils)))))
547 (build-system cmake-build-system)
548 (outputs '("out" "debug"))
550 `(#:configure-flags '("-DUSE_SHA1DC=ON") ; SHA-1 collision detection
552 (modify-phases %standard-phases
553 (add-after 'unpack 'fix-hardcoded-paths
555 (substitute* "tests/repo/init.c"
556 (("#!/bin/sh") (string-append "#!" (which "sh"))))
557 (substitute* "tests/clar/fs.h"
558 (("/bin/cp") (which "cp"))
559 (("/bin/rm") (which "rm")))
561 ;; Run checks more verbosely.
563 (lambda _ (invoke "./libgit2_clar" "-v" "-Q"))))))
565 `(("libssh2" ,libssh2)
566 ("http-parser" ,http-parser)))
568 `(("guile" ,guile-2.2)
569 ("pkg-config" ,pkg-config)))
571 ;; These two libraries are in 'Requires.private' in libgit2.pc.
572 `(("openssl" ,openssl)
574 (home-page "https://libgit2.github.com/")
575 (synopsis "Library providing Git core methods")
577 "Libgit2 is a portable, pure C implementation of the Git core methods
578 provided as a re-entrant linkable library with a solid API, allowing you to
579 write native speed custom Git applications in any language with bindings.")
580 ;; GPLv2 with linking exception
581 (license license:gpl2)))
583 (define-public git-crypt
589 (uri (string-append "https://github.com/AGWA/git-crypt"
590 "/archive/" version ".tar.gz"))
591 (file-name (string-append name "-" version ".tar.gz"))
594 "0454fdmgm5f3razkn8n03lfqm5zyzvr4r2528zmlxiwba9518l2i"))))
595 (build-system gnu-build-system)
598 ("openssl" ,openssl)))
600 `(#:tests? #f ; No tests.
602 (modify-phases %standard-phases
608 (lambda* (#:key outputs #:allow-other-keys)
609 (let ((out (assoc-ref outputs "out")))
610 (invoke "make" "install"
611 (string-append "PREFIX=" out))))))))
612 (home-page "https://www.agwa.name/projects/git-crypt")
613 (synopsis "Transparent encryption of files in a git repository")
614 (description "git-crypt enables transparent encryption and decryption of
615 files in a git repository. Files which you choose to protect are encrypted when
616 committed, and decrypted when checked out. git-crypt lets you freely share a
617 repository containing a mix of public and private content. git-crypt gracefully
618 degrades, so developers without the secret key can still clone and commit to a
619 repository with encrypted files. This lets you store your secret material (such
620 as keys or passwords) in the same repository as your code, without requiring you
621 to lock down your entire repository.")
622 (license license:gpl3+)))
624 (define-public git-remote-gcrypt
626 (name "git-remote-gcrypt")
631 (url "https://git.spwhitton.name/git-remote-gcrypt")
633 (file-name (string-append name "-" version "-checkout"))
636 "1vay3204729c7wajgn3nxf0s0hzwpdrw14pl6kd8w2ss25gvw2k1"))))
637 (build-system trivial-build-system)
639 `(#:modules ((guix build utils))
641 (use-modules (guix build utils))
642 (let* ((source (assoc-ref %build-inputs "source"))
643 (output (assoc-ref %outputs "out"))
644 (bindir (string-append output "/bin")))
645 (install-file (string-append source "/git-remote-gcrypt")
648 (home-page "https://spwhitton.name/tech/code/git-remote-gcrypt/")
649 (synopsis "Whole remote repository encryption")
650 (description "git-remote-gcrypt is a Git remote helper to push and pull from
651 repositories encrypted with GnuPG. It works with the standard Git transports,
652 including repository hosting services like GitLab.
654 Remote helper programs are invoked by Git to handle network transport. This
655 helper handles @code{gcrypt:} URLs that access a remote repository encrypted
656 with GPG, using our custom format.
658 Supported locations are local, @code{rsync://} and @code{sftp://}, where the
659 repository is stored as a set of files, or instead any Git URL where gcrypt
660 will store the same representation in a Git repository, bridged over arbitrary
663 The aim is to provide confidential, authenticated Git storage and
664 collaboration using typical untrusted file hosts or services.")
665 (license license:gpl3+)))
674 "https://git.zx2c4.com/cgit/snapshot/cgit-"
678 "1gw2j5xc5qdx2hwiwkr8h6kgya7v9d9ff9j32ga1dys0cca7qm1w"))))
679 (build-system gnu-build-system)
681 '(#:tests? #f ; XXX: fail to build the in-source git.
683 #:make-flags '("CC=gcc" "SHELL_PATH=sh")
685 (modify-phases %standard-phases
686 (add-after 'unpack 'unpack-git
687 (lambda* (#:key inputs #:allow-other-keys)
688 ;; Unpack the source of git into the 'git' directory.
689 (invoke "tar" "--strip-components=1" "-C" "git" "-xf"
690 (assoc-ref inputs "git-source"))))
691 (add-after 'unpack 'patch-absolute-file-names
692 (lambda* (#:key inputs #:allow-other-keys)
693 (define (quoted-file-name input path)
694 (string-append "\"" input path "\""))
695 (substitute* "ui-snapshot.c"
697 (quoted-file-name (assoc-ref inputs "gzip") "/bin/gzip"))
699 (quoted-file-name (assoc-ref inputs "bzip2") "/bin/bzip2"))
701 (quoted-file-name (assoc-ref inputs "xz") "/bin/xz")))
703 (substitute* "filters/about-formatting.sh"
704 (("$\\(dirname $0\\)") (string-append (assoc-ref outputs "out")
705 "/lib/cgit/filters"))
706 (("\\| tr") (string-append "| " (which "tr"))))
708 (substitute* "filters/html-converters/txt2html"
709 (("sed") (which "sed")))
711 (substitute* "filters/html-converters/man2html"
712 (("groff") (which "groff")))
714 (substitute* "filters/html-converters/rst2html"
715 (("rst2html\\.py") (which "rst2html.py")))
718 (delete 'configure) ; no configure script
719 (add-after 'build 'build-man
720 (lambda* (#:key make-flags #:allow-other-keys)
721 (apply invoke "make" "doc-man" make-flags)))
723 (lambda* (#:key make-flags outputs #:allow-other-keys)
724 (let ((out (assoc-ref outputs "out")))
726 "make" "install" "install-man"
727 (string-append "prefix=" out)
728 (string-append "CGIT_SCRIPT_PATH=" out "/share/cgit")
730 ;; Move the platform-dependent 'cgit.cgi' into lib to get it
732 (rename-file (string-append out "/share/cgit/cgit.cgi")
733 (string-append out "/lib/cgit/cgit.cgi"))
735 (add-after 'install 'wrap-python-scripts
736 (lambda* (#:key outputs #:allow-other-keys)
739 (wrap-program (string-append (assoc-ref outputs "out")
740 "/lib/cgit/filters/" file)
741 `("PYTHONPATH" ":" prefix (,(getenv "PYTHONPATH")))))
742 '("syntax-highlighting.py"
743 "html-converters/md2html"))
746 ;; For building manpage.
747 `(("asciidoc" ,asciidoc)
752 `(;; Building cgit requires a Git source tree.
756 ;; XXX CGit is currently incompatible with Git > 2.18.
757 (uri "mirror://kernel.org/software/scm/git/git-2.18.0.tar.xz")
760 "14hfwfkrci829a9316hnvkglnqqw1p03cw9k56p4fcb078wbwh4b"))))
764 ("python-docutils" ,python-docutils)
765 ("python-markdown" ,python-markdown)
766 ("python-pygments" ,python-pygments)
768 (home-page "https://git.zx2c4.com/cgit/")
769 (synopsis "Web frontend for git repositories")
771 "CGit is an attempt to create a fast web interface for the Git SCM, using
772 a built-in cache to decrease server I/O pressure.")
773 (license license:gpl2)))
775 (define-public python-ghp-import
777 (name "python-ghp-import")
783 "https://github.com/davisp/ghp-import/archive/"
785 (file-name (string-append name "-" version ".tar.gz"))
788 "0x887v690xsac2hzjkpbvp3a6crh3m08mqbk3nb4xwc9dnk869q7"))))
789 (build-system python-build-system)
791 `(#:phases (modify-phases %standard-phases
792 (add-after 'install 'install-documentation
793 (lambda* (#:key outputs #:allow-other-keys)
794 (let* ((out (assoc-ref outputs "out"))
795 (doc (string-append out "/share/doc"))
796 (licenses (string-append out "/share/licenses")))
797 (install-file "README.md" doc)
798 (install-file "LICENSE" licenses)))))))
799 (home-page "https://github.com/davisp/ghp-import")
800 (synopsis "Copy directory to the gh-pages branch")
801 (description "Script that copies a directory to the gh-pages branch (by
802 default) of the repository.")
804 ;; See <https://bugs.gnu.org/27913>.
805 (license (license:non-copyleft
806 "https://raw.githubusercontent.com/davisp/ghp-import/master/LICENSE"
807 "Tumbolia Public License"))))
809 (define-public python2-ghp-import
810 (package-with-python2
811 (strip-python2-variant python-ghp-import)))
813 (define-public python-gitdb
815 (name "python-gitdb")
819 (uri (pypi-uri "gitdb2" version))
822 "0i608q9c47rdsmyac1cn6s0hzwwj7cb957y8fc9wacc5lnw8ak5v"))))
823 (build-system python-build-system)
825 `(#:phases (modify-phases %standard-phases
826 (add-before 'check 'create-test-repository
828 (mkdir "/tmp/testrepo")
829 ;; Some tests require a git repository, so create one.
830 (with-directory-excursion "/tmp/testrepo"
831 (do ((filecount 1 (1+ filecount)))
833 (call-with-output-file (string-append
834 "file" (number->string filecount))
836 (format port "~a" filecount))))
838 (invoke "git" "init")
839 (invoke "git" "config" "user.name" "Total Git")
840 (invoke "git" "config" "user.email" "git@localhost")
841 (invoke "git" "add" "-A")
842 (invoke "git" "commit" "-q" "-m" "dummy commit")))
844 ;; The repository checkout must be a "bare" clone.
845 (invoke "git" "clone" "--bare" "/tmp/testrepo"
846 "/tmp/testrepo.git")))
849 (setenv "GITDB_TEST_GIT_REPO_BASE" "/tmp/testrepo.git")
850 ;; Skip tests that must be run from the gitdb repository.
851 (setenv "TRAVIS" "1")
852 (invoke "nosetests" "-v"))))))
854 `(("python-smmap2" ,python-smmap2)))
857 ("python-nose" ,python-nose)))
858 (home-page "https://github.com/gitpython-developers/gitdb")
859 (synopsis "Python implementation of the Git object database")
861 "GitDB allows you to access @dfn{bare} Git repositories for reading and
862 writing. It aims at allowing full access to loose objects as well as packs
863 with performance and scalability in mind. It operates exclusively on streams,
864 allowing to handle large objects with a small memory footprint.")
865 (license license:bsd-3)))
867 (define-public python2-gitdb
868 (package-with-python2 python-gitdb))
870 (define-public python-gitpython
872 (name "python-gitpython")
876 (uri (pypi-uri "GitPython" version))
879 "1a357c28dnhgvq3saia7v29r71ynp48l2qp5xsmnc4vgzmdxqdw2"))))
880 (build-system python-build-system)
882 `(#:tests? #f ;XXX: Tests can only be run within the GitPython repository.
883 #:phases (modify-phases %standard-phases
884 (add-after 'unpack 'embed-git-reference
885 (lambda* (#:key inputs #:allow-other-keys)
886 (substitute* "git/cmd.py"
887 (("git_exec_name = \"git\"")
888 (string-append "git_exec_name = \""
889 (assoc-ref inputs "git")
895 `(("python-gitdb" ,python-gitdb)))
897 `(("python-ddt" ,python-ddt)
898 ("python-nose" ,python-nose)))
899 (home-page "https://github.com/gitpython-developers/GitPython")
900 (synopsis "Python library for interacting with Git repositories")
902 "GitPython is a python library used to interact with Git repositories,
903 high-level like git-porcelain, or low-level like git-plumbing.
905 It provides abstractions of Git objects for easy access of repository data,
906 and additionally allows you to access the Git repository more directly using
907 either a pure Python implementation, or the faster, but more resource intensive
908 @command{git} command implementation.")
909 (license license:bsd-3)))
911 (define-public python2-gitpython
912 (package-with-python2 python-gitpython))
914 (define-public shflags
921 (url "https://github.com/kward/shflags.git")
922 (commit (string-append "v" version))))
923 (file-name (git-file-name name version))
926 "1ydx0sb6vz9s2dgp5bd64y7fpzh9qvmlfjxrbmzac8saknijrlly"))))
927 (build-system gnu-build-system)
929 `(#:tests? #f ; no tests
931 (modify-phases %standard-phases
932 (delete 'configure) ; nothing to configure
933 (delete 'build) ; nothing to build
935 (lambda* (#:key outputs #:allow-other-keys)
936 (let* ((out (assoc-ref outputs "out"))
937 (src (string-append out "/src")))
938 (install-file "shflags" src)
940 (home-page "https://github.com/kward/shflags")
941 (synopsis "Command-line flags library for shell scripts")
943 "Shell Flags (shFlags) is a library written to greatly simplify the
944 handling of command-line flags in Bourne based Unix shell scripts (bash, dash,
945 ksh, sh, zsh). Most shell scripts use getopt for flags processing, but the
946 different versions of getopt on various OSes make writing portable shell
947 scripts difficult. shFlags instead provides an API that doesn't change across
948 shell and OS versions so the script writer can be confident that the script
950 (license license:lgpl2.1)))
952 (define-public git-flow
955 ;; This version has not be officially released yet, so we build it
956 ;; directly from the git repository.
957 (version "0.4.2-pre")
961 (url "https://github.com/nvie/gitflow/")
962 (commit "15aab26490facf285acef56cb5d61025eacb3a69")))
963 (file-name (git-file-name name version))
966 "01fs97q76fdfnvmrh2cyjhywcs3pykf1dg58sy0frflnsdzs6prx"))))
967 (build-system gnu-build-system)
968 (inputs `(("shflags" ,shflags)))
970 '(#:tests? #f ; no tests
971 #:make-flags (list (string-append "prefix="
972 (assoc-ref %outputs "out")))
974 (modify-phases %standard-phases
975 (add-after 'unpack 'reset-shFlags-link
976 (lambda* (#:key inputs #:allow-other-keys)
977 ;; The link points to a file in the shFlags submodule.
978 ;; Redirect it to point to our system shFlags.
979 (let ((shflags (assoc-ref inputs "shflags")))
981 (delete-file "gitflow-shFlags")
982 (symlink (string-append shflags "/src/shflags")
983 "gitflow-shFlags")))))
986 (home-page "http://nvie.com/posts/a-successful-git-branching-model/")
987 (synopsis "Git extensions for Vincent Driessen's branching model")
989 "Vincent Driessen's branching model is a git branching and release
990 management strategy that helps developers keep track of features, hotfixes,
991 and releases in bigger software projects. The git-flow library of git
992 subcommands helps automate some parts of the flow to make working with it a
994 (license license:bsd-2)))
1004 (url "https://github.com/ctmarinas/stgit.git")
1005 (commit (string-append "v" version))))
1006 (file-name (git-file-name name version))
1008 (base32 "0ydgg744m671nkhg7h4q2z3b9vpbc9914rbc0wcgimqfqsxkxx2y"))))
1009 (build-system python-build-system)
1013 `(#:python ,python-2
1015 (modify-phases %standard-phases
1018 ;; Two tests will fail -> disable them. TODO: fix the failing tests
1019 (delete-file "t/t3300-edit.sh")
1020 (delete-file "t/t7504-commit-msg-hook.sh")
1021 (invoke "make" "test"))))))
1022 (home-page "http://procode.org/stgit/")
1023 (synopsis "Stacked Git")
1025 "StGit is a command-line application that provides functionality similar
1026 to Quilt (i.e., pushing/popping patches to/from a stack), but using Git
1027 instead of @command{diff} and @command{patch}. StGit stores its patches in a
1028 Git repository as normal Git commits, and provides a number of commands to
1029 manipulate them in various ways.")
1030 (license license:gpl2)))
1035 (version "1.20151229")
1038 (uri (string-append "https://github.com/RichiH/vcsh/archive/v"
1040 (file-name (string-append name "-" version ".tar.gz"))
1043 "1ym3swkh738c3vciffvlr96vqzhwmzkb8ajqzap8f0j9n039a1mf"))))
1044 (build-system gnu-build-system)
1046 `(("which" ,which)))
1050 ("perl-test-harness" ,perl-test-harness)
1051 ("perl-shell-command" ,perl-shell-command)
1052 ("perl-test-most" ,perl-test-most)))
1054 '(#:phases (modify-phases %standard-phases
1057 #:make-flags (list (string-append "PREFIX="
1058 (assoc-ref %outputs "out")))
1059 #:test-target "test"))
1060 (home-page "https://github.com/RichiH/vcsh")
1061 (synopsis "Version control system for @code{$HOME}")
1063 "vcsh version-controls configuration files in several Git repositories,
1064 all in one single directory. They all maintain their working trees without
1065 clobbering each other or interfering otherwise. By default, all Git
1066 repositories maintained via vcsh store the actual files in @code{$HOME},
1067 though this can be overridden.")
1068 (license license:gpl2+)))
1070 (define-public git-test-sequence
1071 (let ((commit "48e5a2f5a13a5f30452647237e23362b459b9c76"))
1073 (name "git-test-sequence")
1074 (version (string-append "20140312." (string-take commit 7)))
1078 ;; There are many other scripts in this directory; we
1079 ;; are interested in just one for this package.
1080 (url "https://github.com/dustin/bindir")
1082 (file-name (git-file-name name version))
1085 "1dcq0y16yznbv4k9h8gg90kv1gkn8r8dbvl4m2rpfd7q5nqhn617"))))
1086 (build-system trivial-build-system)
1088 `(#:modules ((guix build utils))
1090 (use-modules (guix build utils))
1091 (let* ((source (assoc-ref %build-inputs "source"))
1092 (output (assoc-ref %outputs "out"))
1093 (bindir (string-append output "/bin"))
1094 (script "git-test-sequence"))
1095 (install-file (string-append source "/" script)
1098 (home-page "http://dustin.sallings.org/2010/03/28/git-test-sequence.html")
1099 (synopsis "Run a command over a sequence of commits")
1101 "git-test-sequence is similar to an automated git bisect except it’s
1102 linear. It will test every change between two points in the DAG. It will
1103 also walk each side of a merge and test those changes individually.")
1104 (license (license:x11-style "file://LICENSE")))))
1106 (define-public gitolite
1113 "https://github.com/sitaramc/gitolite/archive/v"
1115 (file-name (string-append name "-" version ".tar.gz"))
1118 "1idxipg0df80bhjcxgwxs3lllqnkvhwpinmfv1xvg1l98fxiapgp"))))
1119 (build-system gnu-build-system)
1121 '(#:tests? #f ; no tests
1122 #:phases (modify-phases %standard-phases
1125 (add-before 'install 'patch-scripts
1126 (lambda* (#:key inputs #:allow-other-keys)
1127 (let ((perl (string-append (assoc-ref inputs "perl")
1129 ;; This seems to take care of every shell script that
1131 (substitute* (find-files "." ".*")
1133 (string-append " " perl " -")))
1135 (substitute* (find-files "src/triggers" ".*")
1137 (string-append " " (which "sed") " ")))
1140 '("src/triggers/post-compile/update-gitweb-access-list"
1141 "src/triggers/post-compile/ssh-authkeys-split"
1142 "src/triggers/upstream")
1144 (string-append " " (which "grep") " ")))
1146 ;; Avoid references to the store in authorized_keys.
1147 ;; This works because gitolite-shell is in the PATH.
1148 (substitute* "src/triggers/post-compile/ssh-authkeys"
1149 (("\\$glshell \\$user")
1150 "gitolite-shell $user"))
1152 (add-before 'install 'patch-source
1153 (lambda* (#:key inputs #:allow-other-keys)
1154 ;; Gitolite uses cat to test the readability of the
1156 (substitute* "src/lib/Gitolite/Setup.pm"
1158 (string-append "\"" (which "cat") " "))
1160 (string-append "\"" (which "ssh-keygen"))))
1162 (substitute* '("src/lib/Gitolite/Hooks/PostUpdate.pm"
1163 "src/lib/Gitolite/Hooks/Update.pm")
1165 (string-append (assoc-ref inputs "perl")
1168 (substitute* "src/lib/Gitolite/Common.pm"
1170 (string-append "\"" (which "ssh-keygen")))
1173 (assoc-ref inputs "inetutils")
1178 (lambda* (#:key outputs #:allow-other-keys)
1179 (let* ((output (assoc-ref outputs "out"))
1180 (sharedir (string-append output "/share/gitolite"))
1181 (bindir (string-append output "/bin")))
1184 (invoke "./install" "-to" sharedir)
1185 ;; Create symlinks for executable scripts in /bin.
1186 (for-each (lambda (script)
1187 (symlink (string-append sharedir "/" script)
1188 (string-append bindir "/" script)))
1189 '("gitolite" "gitolite-shell"))
1191 (add-after 'install 'wrap-scripts
1192 (lambda* (#:key inputs outputs #:allow-other-keys)
1193 (let ((out (assoc-ref outputs "out"))
1194 (coreutils (assoc-ref inputs "coreutils"))
1195 (findutils (assoc-ref inputs "findutils"))
1196 (git (assoc-ref inputs "git")))
1197 (wrap-program (string-append out "/bin/gitolite")
1200 (string-append dir "/bin"))
1201 (list out coreutils findutils git))))
1205 ("coreutils" ,coreutils)
1206 ("findutils" ,findutils)
1207 ("inetutils" ,inetutils)))
1208 ;; git and openssh are propagated because trying to patch the source via
1209 ;; regexp matching is too brittle and prone to false positives.
1212 ("openssh" ,openssh)))
1213 (home-page "http://gitolite.com")
1214 (synopsis "Git access control layer")
1216 "Gitolite is an access control layer on top of Git, providing fine access
1217 control to Git repositories.")
1218 (license license:gpl2)))
1220 (define-public mercurial
1226 (uri (string-append "https://www.mercurial-scm.org/"
1227 "release/mercurial-" version ".tar.gz"))
1230 "1yq9r8s9jzj8hk2yizjk25s4w16yx9b8mbdj6wp8ld7j2r15kw4p"))))
1231 (build-system python-build-system)
1233 `(;; Restrict to Python 2, as Python 3 would require
1234 ;; the argument --c2to3.
1236 ;; FIXME: Disabled tests because they require the nose unit
1237 ;; testing framework: https://nose.readthedocs.org/en/latest/ .
1239 (home-page "https://www.mercurial-scm.org/")
1240 (synopsis "Decentralized version control system")
1242 "Mercurial is a free, distributed source control management tool.
1243 It efficiently handles projects of any size
1244 and offers an easy and intuitive interface.")
1245 (license license:gpl2+)))
1253 (uri (string-append "http://www.webdav.org/neon/neon-"
1257 "1jpvczcx658vimqm7c8my2q41fnmjaf1j03g7bsli6rjxk6xh2yv"))))
1258 (build-system gnu-build-system)
1261 ("pkg-config" ,pkg-config)))
1263 `(("libxml2" ,libxml2)
1264 ("openssl" ,openssl)
1267 `(;; FIXME: Add tests once reverse address lookup is fixed in glibc, see
1268 ;; https://sourceware.org/bugzilla/show_bug.cgi?id=16475
1270 #:configure-flags '("--enable-shared"
1271 ;; requires libgnutils-config, deprecated
1273 ; "--with-ssl=gnutls")))
1274 "--with-ssl=openssl")))
1275 (home-page "http://www.webdav.org/neon/")
1276 (synopsis "HTTP and WebDAV client library")
1278 "Neon is an HTTP and WebDAV client library, with a C interface and the
1281 @item High-level wrappers for common HTTP and WebDAV operations (GET, MOVE,
1283 @item low-level interface to the HTTP request/response engine, allowing the use
1284 of arbitrary HTTP methods, headers, etc.;
1285 @item authentication support including Basic and Digest support, along with
1286 GSSAPI-based Negotiate on Unix, and SSPI-based Negotiate/NTLM on Win32;
1287 @item SSL/TLS support using OpenSSL or GnuTLS, exposing an abstraction layer for
1288 verifying server certificates, handling client certificates, and examining
1289 certificate properties, smartcard-based client certificates are also
1290 supported via a PKCS#11 wrapper interface;
1291 @item abstract interface to parsing XML using libxml2 or expat, and wrappers for
1292 simplifying handling XML HTTP response bodies;
1293 @item WebDAV metadata support, wrappers for PROPFIND and PROPPATCH to simplify
1294 property manipulation.
1296 (license license:gpl2+))) ; for documentation and tests; source under lgpl2.0+
1298 (define-public subversion
1306 (string-append "https://archive.apache.org/dist/subversion/"
1307 "subversion-" version ".tar.bz2")
1308 (string-append "https://www-eu.apache.org/dist/subversion/"
1309 "subversion-" version ".tar.bz2")))
1312 "18c1vdq32nil76w678lxmp73jsbqha3dmzgmfrj76nc0xjmywql2"))))
1313 (build-system gnu-build-system)
1316 (modify-phases %standard-phases
1317 (add-after 'configure 'patch-libtool-wrapper-ls
1318 (lambda* (#:key inputs #:allow-other-keys)
1319 ;; This substitution allows tests svnauthz_tests and svnlook_tests
1320 ;; to pass. These tests execute svnauthz and svnlook through
1321 ;; their libtool wrapper scripts from svn hooks, whose empty
1322 ;; environments cause "ls: command not found" errors. It would be
1323 ;; nice if this fix ultimately made its way into libtool.
1324 (let ((coreutils (assoc-ref inputs "coreutils")))
1325 (substitute* "libtool"
1326 (("\\\\`ls") (string-append "\\`" coreutils "/bin/ls")))
1328 (add-before 'build 'patch-test-sh
1330 (substitute* "subversion/tests/libsvn_repos/repos-test.c"
1331 (("#!/bin/sh") (string-append "#!" (which "sh"))))
1333 (add-after 'install 'install-perl-bindings
1334 (lambda* (#:key outputs #:allow-other-keys)
1335 ;; Follow the instructions from 'subversion/bindings/swig/INSTALL'.
1336 (let ((out (assoc-ref outputs "out")))
1337 (invoke "make" "swig-pl-lib")
1338 ;; FIXME: Test failures.
1339 ;; (invoke "make" "check-swig-pl")
1340 (invoke "make" "install-swig-pl-lib")
1342 ;; Set the right installation prefix.
1343 (with-directory-excursion
1344 "subversion/bindings/swig/perl/native"
1345 (invoke "perl" "Makefile.PL"
1347 (string-append "PREFIX=" out))
1348 (invoke "make" "install"
1349 (string-append "OTHERLDFLAGS="
1353 `(("pkg-config" ,pkg-config)
1354 ;; For the Perl bindings.
1358 ("apr-util" ,apr-util)
1362 ("python" ,python-wrapper)
1364 ("utf8proc" ,utf8proc)
1366 (home-page "https://subversion.apache.org/")
1367 (synopsis "Revision control system")
1369 "@dfn{Subversion} (svn) exists to be recognized and adopted as a
1370 centralized version control system characterized by its
1371 reliability as a safe haven for valuable data; the simplicity of its model and
1372 usage; and its ability to support the needs of a wide variety of users and
1373 projects, from individuals to large-scale enterprise operations.")
1374 (license license:asl2.0)))
1382 (uri (string-append "mirror://gnu/rcs/rcs-"
1386 "1zsx7bb0rgvvvisiy4zlixf56ay8wbd9qqqcp1a1g0m1gl6mlg86"))
1387 (patches (search-patches "rcs-5.9.4-noreturn.patch"))))
1388 (build-system gnu-build-system)
1389 (native-inputs `(("ed" ,ed)))
1390 (home-page "https://www.gnu.org/software/rcs/")
1391 (synopsis "Per-file local revision control system")
1393 "RCS is the original Revision Control System. It works on a
1394 file-by-file basis, in contrast to subsequent version control systems such as
1395 CVS, Subversion, and Git. This can make it suitable for system
1396 administration files, for example, which are often inherently local to one
1398 (license license:gpl3+)))
1407 "https://ftp.gnu.org/non-gnu/cvs/source/feature/"
1408 version "/cvs-" version ".tar.bz2"))
1409 (patches (search-patches "cvs-2017-12836.patch"))
1412 "0pjir8cwn0087mxszzbsi1gyfc6373vif96cw4q3m1x6p49kd1bq"))))
1413 (build-system gnu-build-system)
1415 ;; XXX: The test suite looks flawed, and the package is obsolete anyway.
1417 #:configure-flags (list "--with-external-zlib")))
1418 (inputs `(("zlib" ,zlib)
1419 ("nano" ,nano))) ; the default editor
1420 (home-page "http://cvs.nongnu.org")
1421 (synopsis "Historical centralized version control system")
1423 "CVS is a version control system, an important component of Source
1424 Configuration Management (SCM). Using it, you can record the history of
1425 sources files, and documents. It fills a similar role to the free software
1426 RCS, PRCS, and Aegis packages.")
1427 (license license:gpl1+)))
1429 (define-public cvs-fast-export
1431 (name "cvs-fast-export")
1435 (uri (string-append "http://www.catb.org/~esr/cvs-fast-export/"
1436 "cvs-fast-export-" version ".tar.gz"))
1439 "19pxg6p0pcgyd2fbnh3wy1kazv6vcfi5lzc2whhdi1w9kj4r9c4z"))))
1440 (build-system gnu-build-system)
1443 (modify-phases %standard-phases
1444 (delete 'configure) ; no configure script
1445 (add-after 'unpack 'remove-optimizations
1447 ;; Don't optimize for a specific processor architecture.
1448 (substitute* "Makefile"
1449 (("CFLAGS \\+= -march=native") ""))
1451 #:parallel-build? #f ; parallel a2x commands fail spectacularly
1453 (list "CC=gcc" (string-append "prefix?=" (assoc-ref %outputs "out")))))
1454 (inputs `(("git" ,git)))
1455 (native-inputs `(("asciidoc" ,asciidoc)
1456 ;; These are needed for the tests.
1458 ("python" ,python-2)
1460 (home-page "http://www.catb.org/esr/cvs-fast-export/")
1461 (synopsis "Export an RCS or CVS history as a fast-import stream")
1462 (description "This program analyzes a collection of RCS files in a CVS
1463 repository (or outside of one) and, when possible, emits an equivalent history
1464 in the form of a fast-import stream. Not all possible histories can be
1465 rendered this way; the program tries to emit useful warnings when it can't.
1467 The program can also produce a visualization of the resulting commit directed
1468 acyclic graph (DAG) in the input format of @uref{http://www.graphviz.org,
1469 Graphviz}. The package also includes @command{cvssync}, a tool for mirroring
1470 masters from remote CVS hosts.")
1471 (license license:gpl2+)))
1473 (define-public vc-dwim
1479 (uri (string-append "mirror://gnu/vc-dwim/vc-dwim-"
1483 "0d5sqafc40l878m8wjr35jxmalj4kam1m6ph60v08ng4ml5g7931"))))
1484 (build-system gnu-build-system)
1485 (inputs `(("perl" ,perl)
1486 ("inetutils" ,inetutils))) ; for `hostname', used in the tests
1487 (native-inputs `(("emacs" ,emacs-minimal))) ; for `ctags'
1488 (home-page "https://www.gnu.org/software/vc-dwim/")
1489 (synopsis "Version-control-agnostic ChangeLog diff and commit tool")
1491 "The vc-dwim package contains two tools, \"vc-dwim\" and \"vc-chlog\".
1492 vc-dwim is a tool that simplifies the task of maintaining a ChangeLog and
1493 using version control at the same time, for example by printing a reminder
1494 when a file change has been described in the ChangeLog but the file has not
1495 been added to the VC. vc-chlog scans changed files and generates
1496 standards-compliant ChangeLog entries based on the changes that it detects.")
1497 (license license:gpl3+)))
1499 (define-public diffstat
1507 (string-append "ftp://invisible-island.net/diffstat/"
1508 name "-" version ".tgz")
1509 (string-append "http://invisible-mirror.net/archives/diffstat/"
1510 name "-" version ".tgz")))
1513 "07sr482y6iw7n7ddkba0w51kbjc99snvnijkn5ba2xzd8hv1h2bz"))))
1514 (build-system gnu-build-system)
1515 (home-page "https://invisible-island.net/diffstat/")
1516 (synopsis "Make histograms from the output of @command{diff}")
1518 "Diffstat reads the output of @command{diff} and displays a histogram of
1519 the insertions, deletions, and modifications per file. It is useful for
1520 reviewing large, complex patch files.")
1521 (license (license:x11-style "file://COPYING"))))
1529 (uri (string-append "mirror://gnu/" name "/CSSC-"
1533 "15191dh8hr46cvssmv4v52gymiiyk6ca9j1bfimlqakcqab6y51h"))))
1534 (build-system gnu-build-system)
1537 (modify-phases %standard-phases
1538 (add-before 'check 'precheck
1541 (substitute* "tests/common/test-common"
1542 (("/bin/pwd") (which "pwd")))
1544 (substitute* "tests/prt/all-512.sh"
1545 (("/bin/sh") (which "sh")))
1547 ;; XXX: This test has no hope of passing until there is a "nogroup"
1548 ;; entry (or at least some group to which the guix builder does
1549 ;; not belong) in the /etc/group file of the build environment.
1550 ;; Currently we do not have such a group. Disable this test for now.
1551 (substitute* "tests/Makefile"
1552 (("test-delta ") ""))))))))
1553 ;; These are needed for the tests
1554 (native-inputs `(("git" ,git)
1556 (home-page "https://www.gnu.org/software/cssc/")
1557 (synopsis "File-based version control like SCCS")
1558 (description "GNU CSSC provides a replacement for the legacy Unix source
1559 code control system SCCS. This allows old code still under that system to be
1560 accessed and migrated on modern systems.")
1561 (license license:gpl3+)))
1563 ;; This package can unfortunately work only in -TEST mode, since Aegis
1564 ;; requires that it is installed setuid root.
1565 (define-public aegis
1571 (uri (string-append "mirror://sourceforge/aegis/aegis/" version
1572 "/aegis-" version ".tar.gz"))
1575 "18s86ssarfmc4l17gbpzybca29m5wa37cbaimdji8czlcry3mcjl"))
1576 (patches (search-patches "aegis-perl-tempdir1.patch"
1577 "aegis-perl-tempdir2.patch"
1578 "aegis-test-fixup-1.patch"
1579 "aegis-test-fixup-2.patch"
1580 "aegis-constness-error.patch"))))
1581 (build-system gnu-build-system)
1583 `(("e2fsprogs" ,e2fsprogs)
1586 ("libxml2" ,libxml2)
1588 ("gettext" ,gettext-minimal)))
1593 ;; Various tests require the following:
1597 ("subversion" ,subversion)
1601 `(#:configure-flags (list "--with-no-aegis-configured"
1602 "--sharedstatedir=/var/com/aegis")
1603 #:parallel-build? #f ; There are some nasty racy rules in the Makefile.
1605 (modify-phases %standard-phases
1606 (add-before 'configure 'pre-conf
1608 (substitute* (append '("configure"
1609 "etc/check-tar-gz.sh"
1613 "script/aebisect.in"
1614 "script/aeintegratq.in"
1616 "script/test_funcs.in"
1617 "web/eg_oss_templ.sh"
1619 "libaegis/getpw_cache.cc")
1620 (find-files "test" "\\.sh"))
1621 (("/bin/sh") (which "sh")))
1622 (setenv "SH" (which "sh"))
1626 (let ((home (string-append (getcwd) "/my-new-home")))
1627 ;; Some tests need to write to $HOME.
1629 (setenv "HOME" home)
1631 ;; This test assumes that flex has been symlinked to "lex".
1632 (substitute* "test/00/t0011a.sh"
1633 (("type lex") "type flex"))
1635 ;; XXX Disable tests that fail, for unknown reasons, ‘for now’.
1637 (lambda (test) (substitute* "Makefile"
1638 (((string-append "test/" test "\\.ES ")) "")))
1643 ;; The author decided to call the check rule "sure".
1644 (invoke "make" "sure")))))))
1645 (home-page "http://aegis.sourceforge.net")
1646 (synopsis "Project change supervisor")
1647 (description "Aegis is a project change supervisor, and performs some of
1648 the Software Configuration Management needed in a CASE environment. Aegis
1649 provides a framework within which a team of developers may work on many
1650 changes to a program independently, and Aegis coordinates integrating these
1651 changes back into the master source of the program, with as little disruption
1652 as possible. Resolution of contention for source files, a major headache for
1653 any project with more than one developer, is one of Aegis's major functions.")
1654 (license license:gpl3+)))
1656 (define-public reposurgeon
1658 (name "reposurgeon")
1662 (uri (string-append "http://www.catb.org/~esr/" name "/"
1663 name "-" version ".tar.xz"))
1666 "1af0z14wcm4bk5a9ysinbwq2fp3lf5f7i8mvwh7286hr3fnagcaz"))
1667 (patches (search-patches
1668 "reposurgeon-add-missing-docbook-files.patch"))))
1669 (build-system gnu-build-system)
1673 (string-append "target=" (assoc-ref %outputs "out")))
1675 (modify-phases %standard-phases
1676 (add-after 'unpack 'patch-inputs
1677 (lambda* (#:key inputs #:allow-other-keys)
1678 (let ((tzdata (assoc-ref inputs "tzdata")))
1679 (substitute* "reposurgeon"
1680 (("/usr/share/zoneinfo")
1681 (string-append tzdata "/share/zoneinfo")))
1682 (substitute* "test/svn-to-svn"
1683 (("/bin/echo") "echo"))
1685 (delete 'configure) ; no configure script
1686 (add-before 'build 'fix-docbook
1687 (lambda* (#:key inputs #:allow-other-keys)
1688 (substitute* (find-files "." "\\.xml$")
1689 (("docbook/docbookx.dtd")
1690 (string-append (assoc-ref inputs "docbook-xml")
1691 "/xml/dtd/docbook/docbookx.dtd")))
1693 (add-before 'check 'set-up-test-environment
1694 (lambda* (#:key inputs #:allow-other-keys)
1695 (let ((tzdata (assoc-ref inputs "tzdata")))
1696 (setenv "TZDIR" (string-append tzdata "/share/zoneinfo"))
1698 (add-after 'install 'install-emacs-data
1699 (lambda* (#:key outputs #:allow-other-keys)
1700 (install-file "reposurgeon-mode.el"
1701 (string-append (assoc-ref outputs "out")
1702 "/share/emacs/site-lisp"))
1705 `(("python" ,python-wrapper)
1706 ("tzdata" ,tzdata)))
1708 `( ;; For building documentation.
1709 ("asciidoc" ,asciidoc)
1710 ("docbook-xml" ,docbook-xml)
1711 ("docbook-xsl" ,docbook-xsl)
1712 ("libxml2" ,libxml2)
1718 ("mercurial" ,mercurial)
1719 ("subversion" ,subversion)))
1720 (home-page "http://www.catb.org/~esr/reposurgeon/")
1721 (synopsis "Edit version-control repository history")
1722 (description "Reposurgeon enables risky operations that version-control
1723 systems don't want to let you do, such as editing past comments and metadata
1724 and removing commits. It works with any version control system that can
1725 export and import Git fast-import streams, including Git, Mercurial, Fossil,
1726 Bazaar, CVS, RCS, and Src. It can also read Subversion dump files directly
1727 and can thus be used to script production of very high-quality conversions
1728 from Subversion to any supported Distributed Version Control System (DVCS).")
1729 ;; Most files are distributed under bsd-2, except 'repocutter' which is
1731 (license (list license:bsd-2 license:bsd-3))))
1740 "https://github.com/jonas/tig/releases/download/tig-"
1741 version "/tig-" version ".tar.gz"))
1744 "1f2qhpzbl7f35lsjcnx8lxzskha24m4frczsw78284jp7qcamdmn"))))
1745 (build-system gnu-build-system)
1747 `(("asciidoc" ,asciidoc)
1750 `(("ncurses" ,ncurses)
1751 ("readline" ,readline)))
1754 (modify-phases %standard-phases
1755 (add-after 'install 'install-doc
1757 (invoke "make" "install-doc"))))
1758 #:tests? #f)) ; tests require access to /dev/tty
1759 ;; #:test-target "test"))
1760 (home-page "https://jonas.github.io/tig/")
1761 (synopsis "Ncurses-based text user interface for Git")
1763 "Tig is an ncurses text user interface for Git, primarily intended as
1764 a history browser. It can also stage hunks for commit, or colorize the
1765 output of the @code{git} command.")
1766 (license license:gpl2+)))
1768 (define-public findnewest
1775 "https://github.com/0-wiz-0/findnewest/archive/findnewest-"
1779 "1ydis4y0amkgfr4y60sn076f1l41ya2kn89kfd9fqf44f9ccgb5r"))))
1780 (build-system gnu-build-system)
1781 (native-inputs `(("autoconf" ,autoconf)
1782 ("automake" ,automake)))
1783 (home-page "https://github.com/0-wiz-0/findnewest/releases")
1784 (synopsis "Print the modification time of the latest file")
1786 "Recursively find the newest file in a file tree and print its
1787 modification time.")
1788 (license license:bsd-2)))
1790 (define-public myrepos
1793 (version "1.20180726")
1798 (url "git://myrepos.branchable.com/myrepos")
1800 (file-name (string-append name "-" version "-checkout"))
1802 (base32 "0jphw61plm8cgklja6hs639xhdvxgvjwbr6jpvjwpp7hc5gmhms5"))))
1803 (build-system gnu-build-system)
1805 '(#:test-target "test"
1806 #:make-flags (list (string-append "PREFIX=" %output))
1808 (modify-phases %standard-phases
1810 (add-after 'install 'wrap-webcheckout
1811 (lambda* (#:key inputs outputs #:allow-other-keys)
1812 (let ((out (assoc-ref outputs "out")))
1813 (wrap-program (string-append out "/bin/webcheckout")
1814 `("PERL5LIB" ":" prefix
1815 ,(map (lambda (i) (string-append (assoc-ref inputs i)
1816 "/lib/perl5/site_perl"))
1817 '("perl-encode-locale" "perl-http-date"
1818 "perl-http-message" "perl-html-parser" "perl-libwww"
1819 "perl-uri" "perl-try-tiny"))))
1823 ("perl-encode-locale" ,perl-encode-locale)
1824 ("perl-html-parser" ,perl-html-parser)
1825 ("perl-http-date" ,perl-http-date)
1826 ("perl-http-message" ,perl-http-message)
1827 ("perl-libwww" ,perl-libwww)
1828 ("perl-try-tiny" ,perl-try-tiny)
1829 ("perl-uri" ,perl-uri)))
1830 (home-page "https://myrepos.branchable.com/")
1831 (synopsis "Multiple repository management tool")
1833 "Myrepos provides the @code{mr} command, which maps an operation (e.g.,
1834 fetching updates) over a collection of version control repositories. It
1835 supports a large number of version control systems: Git, Subversion,
1836 Mercurial, Bazaar, Darcs, CVS, Fossil, and Veracity.")
1837 (license license:gpl2+)))
1839 (define-public git-annex-remote-hubic
1841 (name "git-annex-remote-hubic")
1846 "https://github.com/Schnouki/" name "/archive/v"
1848 (file-name (string-append name "-" version ".tar.gz"))
1851 "196g3jkaybjx11nbr51n0cjps3wjzb145ab76y717diqvvxp5v4r"))))
1852 (build-system python-build-system)
1853 (arguments `(#:python ,python-2))
1856 ("python2-six" ,python2-six)))
1858 `(("python2-dateutil" ,python2-dateutil)
1859 ("python2-futures" ,python2-futures)
1860 ("python2-rauth" ,python2-rauth)
1861 ("python2-swiftclient" ,python2-swiftclient)))
1862 (home-page "https://github.com/Schnouki/git-annex-remote-hubic/")
1863 (synopsis "Use hubic as a git-annex remote")
1865 "This package allows you to use your hubic account as a \"special
1866 repository\" with git-annex.")
1867 (license license:gpl3+)))
1869 (define-public fossil
1876 ;; Older downloads are moved to another URL.
1879 "https://www.fossil-scm.org/index.html/uv/download/"
1880 "fossil-src-" version ".tar.gz")
1882 "https://www.fossil-scm.org/index.html/uv/"
1883 "fossil-src-" version ".tar.gz")))
1886 "0pbinf8d2kj1j7niblhzjd2l2khg6r2pn2xvig6gavz27p3vwcka"))
1887 (modules '((guix build utils)))
1890 (delete-file-recursively "compat") #t))))
1891 (build-system gnu-build-system)
1893 `(("tcl" ,tcl) ;for configuration only
1894 ("which" ,which) ;for tests only
1897 `(("openssl" ,openssl)
1899 ("sqlite" ,sqlite-3.26.0)))
1901 `(#:configure-flags (list "--with-openssl=auto"
1902 "--disable-internal-sqlite")
1903 #:test-target "test"
1904 #:phases (modify-phases %standard-phases
1905 (add-after 'patch-source-shebangs 'patch-sh
1907 (substitute* '("auto.def")
1908 (("/bin/sh") (which "sh")))
1911 (lambda* (#:key outputs (configure-flags '())
1913 ;; The 'configure' script is not an autoconf script and
1914 ;; chokes on unrecognized options.
1917 (string-append "--prefix="
1918 (assoc-ref outputs "out"))
1921 (add-before 'check 'test-setup
1923 (setenv "USER" "guix")
1926 (home-page "https://fossil-scm.org")
1927 (synopsis "Software configuration management system")
1929 "Fossil is a distributed source control management system which supports
1930 access and administration over HTTP CGI or via a built-in HTTP server. It has
1931 a built-in wiki, built-in file browsing, built-in tickets system, etc.")
1932 (license (list license:public-domain ;src/miniz.c, src/shell.c
1935 (define-public stagit
1941 (uri (string-append "https://dl.2f30.org/releases/"
1942 name "-" version ".tar.gz"))
1945 "1m3s9g1z9szbjrhm8sic91xh6f2bfpi56rskdkqd5wc4wdycpyi5"))))
1946 (build-system gnu-build-system)
1948 `(#:tests? #f ; No tests
1949 #:make-flags (list "CC=gcc"
1950 (string-append "PREFIX=" %output))
1952 (modify-phases %standard-phases
1953 (delete 'configure)))) ; No configure script
1955 `(("libgit2" ,libgit2)))
1956 (home-page "https://2f30.org/")
1957 (synopsis "Static git page generator")
1958 (description "Stagit creates static pages for git repositories, the results can
1959 be served with a HTTP file server of your choice.")
1960 (license license:expat)))
1962 ;; Darcs has no https support: http://irclog.perlgeek.de/darcs/2016-09-17
1963 ;; http://darcs.net/manual/Configuring_darcs.html#SECTION00440070000000000000
1964 ;; and results of search engines will show that if the protocol is http, https
1965 ;; is never mentioned.
1966 (define-public darcs
1973 (uri (string-append "https://hackage.haskell.org/package/darcs/"
1974 "darcs-" version ".tar.gz"))
1977 "0zm2486gyhiga1amclbg92cd09bvki6vgh0ll75hv5kl72j61lb5"))
1978 (modules '((guix build utils)))
1979 ;; Remove time-dependent code for reproducibility.
1982 (substitute* "darcs/darcs.hs"
1983 (("__DATE__") "\"1970-01-01\"")
1984 (("__TIME__") "\"00:00:00\""))
1986 (build-system haskell-build-system)
1988 `(#:configure-flags '("-fpkgconfig" "-fcurl" "-flibiconv" "-fthreaded"
1989 "-fnetwork-uri" "-fhttp" "--flag=executable"
1992 (modify-phases %standard-phases
1993 (add-after 'patch-source-shebangs 'patch-sh
1995 (substitute* "tests/issue538.sh"
1996 (("/bin/sh") (which "sh")))
1999 `(("ghc-cmdargs" ,ghc-cmdargs)
2000 ("ghc-split" ,ghc-split)
2001 ("ghc-test-framework-quickcheck2" ,ghc-test-framework-quickcheck2)
2002 ("ghc-test-framework-hunit" ,ghc-test-framework-hunit)
2003 ("ghc-test-framework" ,ghc-test-framework)
2004 ("ghc-quickcheck" ,ghc-quickcheck)
2005 ("ghc-findbin" ,ghc-findbin)
2006 ("ghc-hunit" ,ghc-hunit)
2007 ("ghc-async" ,ghc-async)
2008 ("ghc-attoparsec" ,ghc-attoparsec)
2009 ("ghc-base16-bytestring" ,ghc-base16-bytestring)
2010 ("ghc-bytestring-builder" ,ghc-bytestring-builder)
2011 ("ghc-cryptohash" ,ghc-cryptohash)
2012 ("ghc-data-ordlist" ,ghc-data-ordlist)
2013 ("ghc-fgl" ,ghc-fgl)
2014 ("ghc-system-filepath" ,ghc-system-filepath)
2015 ("ghc-graphviz" ,ghc-graphviz)
2016 ("ghc-hashable" ,ghc-hashable)
2017 ("ghc-html" ,ghc-html)
2018 ("ghc-mmap" ,ghc-mmap)
2019 ("ghc-old-time" ,ghc-old-time)
2020 ("ghc-parsec" ,ghc-parsec)
2021 ("ghc-random" ,ghc-random)
2022 ("ghc-regex-applicative" ,ghc-regex-applicative)
2023 ("ghc-regex-compat-tdfa" ,ghc-regex-compat-tdfa)
2024 ("ghc-sandi" ,ghc-sandi)
2025 ("ghc-shelly" ,ghc-shelly)
2026 ("ghc-tar" ,ghc-tar)
2027 ("ghc-transformers-compat" ,ghc-transformers-compat)
2028 ("ghc-unix-compat" ,ghc-unix-compat)
2029 ("ghc-utf8-string" ,ghc-utf8-string)
2030 ("ghc-vector" ,ghc-vector)
2031 ("ghc-zip-archive" ,ghc-zip-archive)
2032 ("ghc-zlib" ,ghc-zlib)
2033 ("ghc-http" ,ghc-http)
2036 ("ncurses" ,ncurses)
2038 ("libiconv" ,libiconv)
2039 ("ghc-network" ,ghc-network)
2040 ("ghc-network-uri" ,ghc-network-uri)))
2042 `(("pkg-config" ,pkg-config)))
2043 (home-page "http://darcs.net")
2044 (synopsis "Distributed Revision Control System")
2046 "Darcs is a revision control system. It is:
2049 @item Distributed: Every user has access to the full command set, removing boundaries
2050 between server and client or committer and non-committers.
2051 @item Interactive: Darcs is easy to learn and efficient to use because it asks you
2052 questions in response to simple commands, giving you choices in your work flow.
2053 You can choose to record one change in a file, while ignoring another. As you update
2054 from upstream, you can review each patch name, even the full diff for interesting
2056 @item Smart: Originally developed by physicist David Roundy, darcs is based on a
2057 unique algebra of patches called @url{http://darcs.net/Theory,Patchtheory}.
2059 (license license:gpl2)))
2061 (define-public java-jgit
2064 (version "4.7.0.201704051617-r")
2067 (uri (string-append "https://repo1.maven.org/maven2/"
2068 "org/eclipse/jgit/org.eclipse.jgit/"
2069 version "/org.eclipse.jgit-"
2070 version "-sources.jar"))
2073 "13ii4jn02ynzq6i7gsyi21k2i94jpc85wf6bcm31q4cyvzv0mk4k"))))
2074 (build-system ant-build-system)
2076 `(#:tests? #f ; There are no tests to run.
2077 #:jar-name "jgit.jar"
2078 ;; JGit must be built with a JDK supporting Java 8.
2080 ;; Target our older default JDK.
2081 #:make-flags (list "-Dtarget=1.7")
2083 (modify-phases %standard-phases
2084 ;; The jar file generated by the default build.xml does not include
2085 ;; the text properties files, so we need to add them.
2086 (add-after 'build 'add-properties
2087 (lambda* (#:key jar-name #:allow-other-keys)
2088 (with-directory-excursion "src"
2089 (apply invoke "jar" "-uf"
2090 (string-append "../build/jar/" jar-name)
2091 (find-files "." "\\.properties$")))
2094 `(("java-classpathx-servletapi" ,java-classpathx-servletapi)
2095 ("java-javaewah" ,java-javaewah)
2096 ("java-jsch" ,java-jsch)
2097 ("java-slf4j-api" ,java-slf4j-api)))
2098 (home-page "https://eclipse.org/jgit/")
2099 (synopsis "Java library implementing the Git version control system")
2100 (description "JGit is a lightweight, pure Java library implementing the
2101 Git version control system, providing repository access routines, support for
2102 network protocols, and core version control algorithms.")
2103 (license license:edl1.0)))
2105 ;; For axoloti. This package can still be built with icedtea-7, which is
2106 ;; currently used as the default JDK.
2107 (define-public java-jgit-4.2
2108 (package (inherit java-jgit)
2109 (version "4.2.0.201601211800-r")
2112 (uri (string-append "https://repo1.maven.org/maven2/"
2113 "org/eclipse/jgit/org.eclipse.jgit/"
2114 version "/org.eclipse.jgit-"
2115 version "-sources.jar"))
2118 "15gm537iivhnzlkjym4x3wn5jqdjdragsw9pdpzqqg21nrc817mm"))))
2119 (build-system ant-build-system)
2121 (substitute-keyword-arguments (package-arguments java-jgit)
2122 ;; Build for default JDK.
2123 ((#:jdk _) icedtea-7)
2125 `(modify-phases ,phases
2126 (add-after 'unpack 'use-latest-javaewah-API
2128 (substitute* "src/org/eclipse/jgit/internal/storage/file/BitmapIndexImpl.java"
2129 (("wordinbits") "WORD_IN_BITS"))
2132 `(("java-javaewah" ,java-javaewah)
2133 ("java-jsch" ,java-jsch)
2134 ("java-slf4j-api" ,java-slf4j-api)))))
2136 (define-public gource
2143 "https://github.com/acaudwell/Gource/releases/download"
2144 "/gource-" version "/gource-" version ".tar.gz"))
2147 "12hf5ipcsp9dxsqn84n4kr63xaiskrnf5a084wr29qk171lj7pd9"))))
2148 (build-system gnu-build-system)
2151 (list (string-append "--with-boost-libdir="
2152 (assoc-ref %build-inputs "boost")
2155 `(("pkg-config" ,pkg-config)))
2165 ("sdl-union" ,(sdl-union (list sdl2 sdl2-image)))))
2166 (home-page "http://gource.io/")
2167 (synopsis "3D visualisation tool for source control repositories")
2168 (description "@code{gource} provides a software version control
2169 visualization. The repository is displayed as a tree where the root of the
2170 repository is the centre, directories are branches and files are leaves.
2171 Contributors to the source code appear and disappear as they contribute to
2172 specific files and directories.")
2173 (license license:gpl3+)))
2182 "http://www.catb.org/~esr/src/src-" version ".tar.gz"))
2185 "0n0skhvya8w2az45h2gsafxy8m2mvqas64nrgxifcmrzfv0rf26c"))))
2186 (build-system gnu-build-system)
2189 (list (string-append "prefix=" (assoc-ref %outputs "out")))
2191 (modify-phases %standard-phases
2192 (delete 'configure) ; no 'configure' script
2193 (add-after 'install 'wrap-program
2194 (lambda* (#:key inputs outputs #:allow-other-keys)
2195 (let* ((out (assoc-ref outputs "out"))
2196 (prog (string-append out "/bin/src"))
2197 (rcs (assoc-ref inputs "rcs")))
2199 `("PATH" ":" prefix (,(string-append rcs "/bin"))))
2203 (setenv "HOME" (getenv "TMPDIR"))
2204 (invoke "git" "config" "--global" "user.name" "guix")
2205 (invoke "git" "config" "--global" "user.email" "guix")
2206 (invoke "./srctest"))))))
2212 `(("python" ,python-wrapper)
2214 (synopsis "Simple revision control")
2215 (home-page "http://www.catb.org/~esr/src/")
2217 "SRC (or src) is simple revision control, a version-control system for
2218 single-file projects by solo developers and authors. It modernizes the
2219 venerable RCS, hence the anagrammatic acronym. The design is tuned for use
2220 cases like all those little scripts in your @file{~/bin} directory, or a
2221 directory full of HOWTOs.")
2222 (license license:bsd-2)))
2224 (define-public git-annex
2227 (version "6.20180926")
2231 (uri (string-append "https://hackage.haskell.org/package/"
2232 "git-annex/git-annex-" version ".tar.gz"))
2235 "1251rj8h63y30sfqk0zh670yhz14p256y59n3590pg015pf3575d"))))
2236 (build-system haskell-build-system)
2239 '("--flags=-Android -Assistant -Pairing -S3 -Webapp -WebDAV")
2241 (modify-phases %standard-phases
2242 (add-before 'configure 'patch-shell
2244 (substitute* "Utility/Shell.hs"
2245 (("/bin/sh") (which "sh")))
2247 (add-before 'configure 'factor-setup
2249 ;; Factor out necessary build logic from the provided
2250 ;; `Setup.hs' script. The script as-is does not work because
2251 ;; it cannot find its dependencies, and there is no obvious way
2252 ;; to tell it where to look. Note that we do not preserve the
2253 ;; code that installs man pages here.
2254 (call-with-output-file "PreConf.hs"
2256 (format out "import qualified Build.Configure as Configure~%")
2257 (format out "main = Configure.run Configure.tests~%")))
2258 (call-with-output-file "Setup.hs"
2260 (format out "import Distribution.Simple~%")
2261 (format out "main = defaultMain~%")))
2263 (add-before 'configure 'pre-configure
2265 (invoke "runhaskell" "PreConf.hs")
2269 ;; We need to set the path so that Git recognizes
2270 ;; `git annex' as a custom command.
2271 (setenv "PATH" (string-append (getenv "PATH") ":"
2272 (getcwd) "/dist/build/git-annex"))
2273 (with-directory-excursion "dist/build/git-annex"
2274 (symlink "git-annex" "git-annex-shell"))
2275 (invoke "git-annex" "test")
2277 (add-after 'install 'install-symlinks
2278 (lambda* (#:key outputs #:allow-other-keys)
2279 (let* ((out (assoc-ref outputs "out"))
2280 (bin (string-append out "/bin")))
2281 (symlink (string-append bin "/git-annex")
2282 (string-append bin "/git-annex-shell"))
2283 (symlink (string-append bin "/git-annex")
2284 (string-append bin "/git-remote-tor-annex"))
2288 ("ghc-aeson" ,ghc-aeson)
2289 ("ghc-async" ,ghc-async)
2290 ("ghc-bloomfilter" ,ghc-bloomfilter)
2291 ("ghc-byteable" ,ghc-byteable)
2292 ("ghc-case-insensitive" ,ghc-case-insensitive)
2293 ("ghc-crypto-api" ,ghc-crypto-api)
2294 ("ghc-cryptonite" ,ghc-cryptonite)
2295 ("ghc-data-default" ,ghc-data-default)
2296 ("ghc-disk-free-space" ,ghc-disk-free-space)
2297 ("ghc-dlist" ,ghc-dlist)
2298 ("ghc-edit-distance" ,ghc-edit-distance)
2299 ("ghc-esqueleto" ,ghc-esqueleto)
2300 ("ghc-exceptions" ,ghc-exceptions)
2301 ("ghc-feed" ,ghc-feed)
2302 ("ghc-free" ,ghc-free)
2303 ("ghc-hslogger" ,ghc-hslogger)
2304 ("ghc-http-client" ,ghc-http-client)
2305 ("ghc-http-conduit" ,ghc-http-conduit)
2306 ("ghc-http-types" ,ghc-http-types)
2307 ("ghc-ifelse" ,ghc-ifelse)
2308 ("ghc-memory" ,ghc-memory)
2309 ("ghc-monad-control" ,ghc-monad-control)
2310 ("ghc-monad-logger" ,ghc-monad-logger)
2311 ("ghc-network" ,ghc-network)
2312 ("ghc-old-locale" ,ghc-old-locale)
2313 ("ghc-optparse-applicative" ,ghc-optparse-applicative)
2314 ("ghc-persistent" ,ghc-persistent)
2315 ("ghc-persistent-sqlite" ,ghc-persistent-sqlite)
2316 ("ghc-persistent-template" ,ghc-persistent-template)
2317 ("ghc-quickcheck" ,ghc-quickcheck)
2318 ("ghc-random" ,ghc-random)
2319 ("ghc-regex-tdfa" ,ghc-regex-tdfa)
2320 ("ghc-resourcet" ,ghc-resourcet)
2321 ("ghc-safesemaphore" ,ghc-safesemaphore)
2322 ("ghc-sandi" ,ghc-sandi)
2323 ("ghc-securemem" ,ghc-securemem)
2324 ("ghc-socks" ,ghc-socks)
2325 ("ghc-split" ,ghc-split)
2326 ("ghc-stm" ,ghc-stm)
2327 ("ghc-stm-chans" ,ghc-stm-chans)
2328 ("ghc-tagsoup" ,ghc-tagsoup)
2329 ("ghc-text" ,ghc-text)
2330 ("ghc-unix-compat" ,ghc-unix-compat)
2331 ("ghc-unordered-containers" ,ghc-unordered-containers)
2332 ("ghc-utf8-string" ,ghc-utf8-string)
2333 ("ghc-uuid" ,ghc-uuid)
2337 `(("ghc-tasty" ,ghc-tasty)
2338 ("ghc-tasty-hunit" ,ghc-tasty-hunit)
2339 ("ghc-tasty-quickcheck" ,ghc-tasty-quickcheck)
2340 ("ghc-tasty-rerun" ,ghc-tasty-rerun)))
2341 (home-page "https://git-annex.branchable.com/")
2342 (synopsis "Manage files with Git, without checking in their contents")
2343 (description "This package allows managing files with Git, without
2344 checking the file contents into Git. It can store files in many places,
2345 such as local hard drives and cloud storage services. It can also be
2346 used to keep a folder in sync between computers.")
2347 ;; The web app is released under the AGPLv3+.
2348 (license (list license:gpl3+
2351 (define-public git-when-merged
2352 ;; Use an unreleased version to get a PY3 compatibility fix.
2353 (let ((commit "ab6af7865a0ba55ba364a6c507e0be6f84f31c6d"))
2355 (name "git-when-merged")
2356 (version (string-append "1.2.0-" (string-take commit 7)))
2360 (url "https://github.com/mhagger/git-when-merged/")
2362 (file-name (git-file-name name version))
2365 "0iyk2psf97bc9h43m89p3xjmm79fsx99i7px29g4lcnmdy5kmz0p"))))
2366 (build-system gnu-build-system)
2368 `(#:tests? #f ; there are no tests
2370 (modify-phases %standard-phases
2374 (lambda* (#:key outputs #:allow-other-keys)
2375 (install-file "bin/git-when-merged"
2376 (string-append (assoc-ref outputs "out")
2379 (add-before 'install 'patch-git
2380 (lambda* (#:key inputs #:allow-other-keys)
2381 (let ((git (string-append (assoc-ref inputs "git")
2383 (substitute* "bin/git-when-merged"
2384 (("'git'") (string-append "'" git "'")))
2386 (add-after 'install 'wrap-script
2387 (lambda* (#:key outputs #:allow-other-keys)
2388 (wrap-program (string-append (assoc-ref outputs "out")
2389 "/bin/git-when-merged")
2390 `("PYTHONPATH" ":" prefix (,(getenv "PYTHONPATH"))))
2394 ("python" ,python-wrapper)))
2395 (home-page "https://github.com/mhagger/git-when-merged")
2396 (synopsis "Determine when a commit was merged into a Git branch")
2397 (description "This Git extension defines a subcommand,
2398 @code{when-merged}, whose core operation is to find the merge that brought a
2399 given commit into the specified ref(s). It has various options that control
2400 how information about the merge is displayed.")
2401 (license license:gpl2+))))
2403 (define-public git-imerge
2410 "https://github.com/mhagger/git-imerge/archive/v"
2412 (file-name (string-append name "-" version ".tar.gz"))
2415 "0a6ay8fpgz3yd84jc40w41x0rcfpan6bcq4wd1hxiiqwb51jysb2"))))
2416 (build-system gnu-build-system)
2418 `(#:tests? #f ; The are only manual test scripts.
2419 #:make-flags (list (string-append "DESTDIR=" %output)
2422 (modify-phases %standard-phases
2424 (add-before 'install 'patch-git
2425 (lambda* (#:key inputs #:allow-other-keys)
2426 (let ((git (string-append (assoc-ref inputs "git")
2428 (substitute* "git-imerge"
2429 (("'git'") (string-append "'" git "'")))
2431 (add-after 'install 'wrap-script
2432 (lambda* (#:key outputs #:allow-other-keys)
2433 (wrap-program (string-append (assoc-ref outputs "out")
2435 `("PYTHONPATH" ":" prefix (,(getenv "PYTHONPATH"))))
2439 ("python" ,python-wrapper)))
2440 (home-page "https://github.com/mhagger/git-imerge")
2441 (synopsis "Incremental merge for Git")
2442 (description "This Git extension defines a subcommand, @code{imerge},
2443 which performs an incremental merge between two branches. Its two primary
2444 design goals are to reduce the pain of resolving merge conflicts by finding
2445 the smallest possible conflicts and to allow a merge to be saved, tested,
2446 interrupted, published, and collaborated on while in progress.")
2447 (license license:gpl2+)))