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 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 Efraim Flashner <efraim@flashner.co.il>
10 ;;; Copyright © 2015 Kyle Meyer <kyle@kyleam.com>
11 ;;; Copyright © 2015 Ricardo Wurmus <rekado@elephly.net>
12 ;;; Copyright © 2016 Leo Famulari <leo@famulari.name>
13 ;;; Copyright © 2016, 2017 ng0 <contact.ng0@cryptolab.net>
15 ;;; This file is part of GNU Guix.
17 ;;; GNU Guix is free software; you can redistribute it and/or modify it
18 ;;; under the terms of the GNU General Public License as published by
19 ;;; the Free Software Foundation; either version 3 of the License, or (at
20 ;;; your option) any later version.
22 ;;; GNU Guix is distributed in the hope that it will be useful, but
23 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
24 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
25 ;;; GNU General Public License for more details.
27 ;;; You should have received a copy of the GNU General Public License
28 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
30 (define-module (gnu packages version-control)
31 #:use-module ((guix licenses) #:prefix license:)
32 #:use-module (guix utils)
33 #:use-module (guix packages)
34 #:use-module (guix download)
35 #:use-module (guix git-download)
36 #:use-module (guix build-system cmake)
37 #:use-module (guix build-system gnu)
38 #:use-module (guix build-system python)
39 #:use-module (guix build-system trivial)
40 #:use-module (gnu packages apr)
41 #:use-module (gnu packages autotools)
42 #:use-module (gnu packages documentation)
43 #:use-module (gnu packages base)
44 #:use-module (gnu packages bison)
45 #:use-module (gnu packages cook)
46 #:use-module (gnu packages curl)
47 #:use-module (gnu packages docbook)
48 #:use-module (gnu packages ed)
49 #:use-module (gnu packages file)
50 #:use-module (gnu packages flex)
51 #:use-module (gnu packages gettext)
52 #:use-module (gnu packages groff)
53 #:use-module (gnu packages linux)
54 #:use-module (gnu packages nano)
55 #:use-module (gnu packages ncurses)
56 #:use-module (gnu packages ssh)
57 #:use-module (gnu packages web)
58 #:use-module (gnu packages openstack)
59 #:use-module (gnu packages perl)
60 #:use-module (gnu packages pkg-config)
61 #:use-module (gnu packages python)
62 #:use-module (gnu packages readline)
63 #:use-module (gnu packages databases)
64 #:use-module (gnu packages admin)
65 #:use-module (gnu packages xml)
66 #:use-module (gnu packages emacs)
67 #:use-module (gnu packages compression)
68 #:use-module (gnu packages swig)
69 #:use-module (gnu packages tcl)
70 #:use-module (gnu packages tls)
71 #:use-module (gnu packages)
72 #:use-module (ice-9 match)
73 #:use-module (srfi srfi-1))
82 (uri (string-append "https://launchpad.net/bzr/"
83 (version-major+minor version) "/" version
84 "/+download/bzr-" version ".tar.gz"))
87 "1cysix5k3wa6y7jjck3ckq3abls4gvz570s0v0hxv805nwki4i8d"))))
88 (build-system python-build-system)
90 ;; Note: 'tools/packaging/lp-upload-release' and 'tools/weavemerge.sh'
92 `(("gettext" ,gettext-minimal)))
94 `(#:tests? #f ; no test target
95 #:python ,python-2 ; Python 3 apparently not yet supported, see
96 ; https://answers.launchpad.net/bzr/+question/229048
98 (modify-phases %standard-phases
99 (add-after 'unpack 'fix-mandir
101 (substitute* "setup.py"
102 (("man/man1") "share/man/man1"))
104 (home-page "https://gnu.org/software/bazaar")
105 (synopsis "Version control system supporting both distributed and centralized workflows")
107 "GNU Bazaar is a version control system that allows you to record
108 changes to project files over time. It supports both a distributed workflow
109 as well as the classic centralized workflow.")
110 (license license:gpl2+)))
118 (uri (string-append "mirror://kernel.org/software/scm/git/git-"
122 "05b4jw86w77c3pyh3nm6aw31vhxwzvhnx2x0bcfqmm15wg57k9y0"))))
123 (build-system gnu-build-system)
125 `(("native-perl" ,perl)
126 ("gettext" ,gettext-minimal)
131 "mirror://kernel.org/software/scm/git/git-manpages-"
135 "0cfa3c2r7d86ksswxdl0jqdka9mai3446gg8380921gf779nwj39"))))))
141 ("python" ,python-2) ; CAVEAT: incompatible with python-3 according to INSTALL
145 ("perl-cgi" ,perl-cgi)
148 ("subversion" ,subversion)
149 ("perl-term-readkey" ,perl-term-readkey)
151 ;; For 'git-send-email'
152 ("perl-authen-sasl" ,perl-authen-sasl)
153 ("perl-net-smtp-ssl" ,perl-net-smtp-ssl)
154 ("perl-io-socket-ssl" ,perl-io-socket-ssl)
156 ;; For 'git gui', 'gitk', and 'git citool'.
159 (outputs '("out" ; the core
160 "send-email" ; for git-send-email
162 "gui")) ; gitk, git gui
164 `(#:make-flags `("V=1" ;more verbose compilation
166 ;; By default 'make install' creates hard links for
167 ;; things in 'libexec/git-core', which leads to huge
168 ;; nars; see <http://bugs.gnu.org/21949>.
169 "NO_INSTALL_HARDLINKS=indeed")
171 #:tests? #f ; FIXME: Many tests are failing
173 ;; The explicit --with-tcltk forces the build system to hardcode the
174 ;; absolute file name to 'wish'.
175 #:configure-flags (list (string-append "--with-tcltk="
176 (assoc-ref %build-inputs "tk")
177 "/bin/wish8.6")) ; XXX
179 #:modules ((srfi srfi-1)
180 ,@%gnu-build-system-modules)
182 (modify-phases %standard-phases
183 (add-after 'configure 'patch-makefile-shebangs
185 (substitute* "Makefile"
186 (("/bin/sh") (which "sh"))
187 (("/usr/bin/perl") (which "perl"))
188 (("/usr/bin/python") (which "python")))))
189 (add-after 'configure 'add-PM.stamp
191 ;; Add the "PM.stamp" to avoid "no rule to make target".
192 (call-with-output-file "perl/PM.stamp" (const #t))
194 (add-after 'install 'install-shell-completion
195 (lambda* (#:key outputs #:allow-other-keys)
196 (let* ((out (assoc-ref outputs "out"))
197 (completions (string-append out "/etc/bash_completion.d")))
198 ;; TODO: Install the tcsh and zsh completions in the right place.
199 (mkdir-p completions)
200 (copy-file "contrib/completion/git-completion.bash"
201 (string-append completions "/git"))
203 (add-after 'install 'split
204 (lambda* (#:key inputs outputs #:allow-other-keys)
205 ;; Split the binaries to the various outputs.
206 (let* ((out (assoc-ref outputs "out"))
207 (se (assoc-ref outputs "send-email"))
208 (svn (assoc-ref outputs "svn"))
209 (gui (assoc-ref outputs "gui"))
210 (gitk (string-append out "/bin/gitk"))
211 (gitk* (string-append gui "/bin/gitk"))
212 (git-gui (string-append out "/libexec/git-core/git-gui"))
213 (git-gui* (string-append gui "/libexec/git-core/git-gui"))
214 (git-cit (string-append out "/libexec/git-core/git-citool"))
215 (git-cit* (string-append gui "/libexec/git-core/git-citool"))
216 (git-se (string-append out "/libexec/git-core/git-send-email"))
217 (git-se* (string-append se "/libexec/git-core/git-send-email"))
218 (git-svn (string-append out "/libexec/git-core/git-svn"))
219 (git-svn* (string-append svn "/libexec/git-core/git-svn"))
220 (git-sm (string-append out
221 "/libexec/git-core/git-submodule")))
222 (mkdir-p (string-append gui "/bin"))
223 (mkdir-p (string-append gui "/libexec/git-core"))
224 (mkdir-p (string-append se "/libexec/git-core"))
225 (mkdir-p (string-append svn "/libexec/git-core"))
227 (for-each (lambda (old new)
231 (list gitk git-gui git-cit git-se git-svn)
232 (list gitk* git-gui* git-cit* git-se* git-svn*))
234 ;; Tell 'git-svn' where Subversion and perl-term-readkey are.
235 (wrap-program git-svn*
237 (,(string-append (assoc-ref inputs "subversion")
239 `("PERL5LIB" ":" prefix
240 ,(map (lambda (i) (string-append (assoc-ref inputs i)
241 "/lib/perl5/site_perl"))
242 '("subversion" "perl-term-readkey")))
244 ;; XXX: The .so for SVN/Core.pm lacks a RUNPATH, so
245 ;; help it find 'libsvn_client-1.so'.
246 `("LD_LIBRARY_PATH" ":" prefix
247 (,(string-append (assoc-ref inputs "subversion")
250 ;; Tell 'git-send-email' where perl modules are.
251 (wrap-program git-se*
252 `("PERL5LIB" ":" prefix
253 ,(map (lambda (o) (string-append o "/lib/perl5/site_perl"))
255 ,@(transitive-input-references
261 "perl-io-socket-ssl")))))))
263 ;; Tell 'gitweb.cgi' where perl modules are.
264 (wrap-program (string-append out "/share/gitweb/gitweb.cgi")
265 `("PERL5LIB" ":" prefix
266 ,(map (lambda (o) (string-append o "/lib/perl5/site_perl"))
268 ,@(transitive-input-references
274 ;; Tell 'git-submodule' where Perl is.
277 (,(string-append (assoc-ref inputs "perl")
280 ;; Tell 'git' to look for core programs in the user's profile.
281 ;; This allows user to install other outputs of this package and
282 ;; have them transparently taken into account. There's a
283 ;; 'GIT_EXEC_PATH' environment variable, but it's supposed to
284 ;; specify a single directory, not a search path.
285 (wrap-program (string-append out "/bin/git")
287 ("$HOME/.guix-profile/libexec/git-core"))))))
288 (add-after 'split 'install-man-pages
289 (lambda* (#:key inputs outputs #:allow-other-keys)
290 (let* ((out (assoc-ref outputs "out"))
291 (man (string-append out "/share/man"))
292 (manpages (assoc-ref inputs "git-manpages")))
294 (with-directory-excursion man
295 (zero? (system* "tar" "xvf" manpages)))))))))
298 ;; For HTTPS access, Git needs a single-file certificate bundle, specified
299 ;; with $GIT_SSL_CAINFO.
300 ;; FIXME: This variable designates a single file; it is not a search path.
301 (list (search-path-specification
302 (variable "GIT_SSL_CAINFO")
304 (files '("etc/ssl/certs/ca-certificates.crt")))))
306 (synopsis "Distributed version control system")
308 "Git is a free distributed version control system designed to handle
309 everything from small to very large projects with speed and efficiency.")
310 (license license:gpl2)
311 (home-page "http://git-scm.com/")))
313 ;; Some dependent packages directly access internal interfaces which
314 ;; have changed in 2.10
315 (define-public git@2.9
321 (uri (string-append "mirror://kernel.org/software/scm/git/git-"
325 "0qzs681a64k3shh5p0rg41l1z16fbk5sj0xga45k34hp1hsp654z"))))))
327 (define-public libgit2
333 (uri (string-append "https://github.com/libgit2/libgit2/"
334 "archive/v" version ".tar.gz"))
335 (file-name (string-append name "-" version ".tar.gz"))
338 "1cdwcw38frc1wf28x5ppddazv9hywc718j92f3xa3ybzzycyds3s"))))
339 (build-system cmake-build-system)
342 (modify-phases %standard-phases
343 (add-after 'unpack 'fix-hardcoded-paths
345 (substitute* "tests/repo/init.c"
346 (("#!/bin/sh") (string-append "#!" (which "sh"))))
347 (substitute* "tests/clar/fs.h"
348 (("/bin/cp") (which "cp"))
349 (("/bin/rm") (which "rm")))
351 ;; Run checks more verbosely.
353 (lambda _ (zero? (system* "./libgit2_clar" "-v" "-Q")))))))
355 `(("libssh2" ,libssh2)
357 ("python" ,python-wrapper)
358 ("openssl" ,openssl)))
360 `(("pkg-config" ,pkg-config)))
361 (home-page "https://libgit2.github.com/")
362 (synopsis "Library providing Git core methods")
364 "Libgit2 is a portable, pure C implementation of the Git core methods
365 provided as a re-entrant linkable library with a solid API, allowing you to
366 write native speed custom Git applications in any language with bindings.")
367 ;; GPLv2 with linking exception
368 (license license:gpl2)))
370 (define-public git-crypt
376 (uri (string-append "https://github.com/AGWA/git-crypt"
377 "/archive/" version ".tar.gz"))
378 (file-name (string-append name "-" version ".tar.gz"))
381 "0454fdmgm5f3razkn8n03lfqm5zyzvr4r2528zmlxiwba9518l2i"))))
382 (build-system gnu-build-system)
385 ("openssl" ,openssl)))
387 `(#:tests? #f ; No tests.
389 (modify-phases %standard-phases
393 (zero? (system* "make"))))
395 (lambda* (#:key outputs #:allow-other-keys)
396 (let ((out (assoc-ref outputs "out")))
397 (zero? (system* "make" "install"
398 (string-append "PREFIX=" out)))))))))
399 (home-page "https://www.agwa.name/projects/git-crypt")
400 (synopsis "Transparent encryption of files in a git repository")
401 (description "git-crypt enables transparent encryption and decryption of
402 files in a git repository. Files which you choose to protect are encrypted when
403 committed, and decrypted when checked out. git-crypt lets you freely share a
404 repository containing a mix of public and private content. git-crypt gracefully
405 degrades, so developers without the secret key can still clone and commit to a
406 repository with encrypted files. This lets you store your secret material (such
407 as keys or passwords) in the same repository as your code, without requiring you
408 to lock down your entire repository.")
409 (license license:gpl3+)))
418 "https://git.zx2c4.com/cgit/snapshot/cgit-"
422 "0kbh835p7dl4h88qv55fyfh1za09cgnqh63rii325w9215hm95x8"))))
423 (build-system gnu-build-system)
425 '(#:tests? #f ; XXX: fail to build the in-source git.
427 #:make-flags '("CC=gcc" "SHELL_PATH=sh")
429 (modify-phases %standard-phases
430 (add-after 'unpack 'unpack-git
431 (lambda* (#:key inputs #:allow-other-keys)
432 ;; Unpack the source of git into the 'git' directory.
434 "tar" "--strip-components=1" "-C" "git" "-xf"
435 (assoc-ref inputs "git:src")))))
436 (delete 'configure) ; no configure script
437 (add-after 'build 'build-man
438 (lambda* (#:key make-flags #:allow-other-keys)
439 (zero? (apply system* `("make" ,@make-flags "doc-man")))))
441 (lambda* (#:key make-flags outputs #:allow-other-keys)
442 (let ((out (assoc-ref outputs "out")))
443 (and (zero? (apply system*
444 `("make" ,@make-flags
445 ,(string-append "prefix=" out)
447 "CGIT_SCRIPT_PATH=" out "/share/cgit")
448 "install" "install-man")))
449 ;; Move the platform-dependent 'cgit.cgi' into lib
450 ;; to get it stripped.
451 (rename-file (string-append out "/share/cgit/cgit.cgi")
452 (string-append out "/lib/cgit/cgit.cgi"))
455 ;; For building manpage.
456 `(("asciidoc" ,asciidoc)
457 ("docbook-xml" ,docbook-xml)
458 ("docbook-xsl" ,docbook-xsl)
460 ("xsltprot" ,libxslt)))
462 `(("git:src" ,(package-source git@2.9))
465 (home-page "https://git.zx2c4.com/cgit/")
466 (synopsis "Web frontend for git repositories")
468 "CGit is an attempt to create a fast web interface for the Git SCM, using
469 a built-in cache to decrease server I/O pressure.")
470 (license license:gpl2)))
472 (define-public shflags
478 (uri (string-append "https://github.com/kward/shflags/archive/v"
482 "0zxw12haylaq60a335xlqcs4afw2zrgwqymmpw0m21r51w6irdmr"))))
483 (build-system trivial-build-system)
484 (native-inputs `(("tar" ,tar)
487 `(#:modules ((guix build utils))
489 (use-modules (guix build utils))
490 (let* ((source (assoc-ref %build-inputs "source"))
491 (tar (assoc-ref %build-inputs "tar"))
492 (gzip (assoc-ref %build-inputs "gzip"))
493 (output (assoc-ref %outputs "out"))
494 (srcdir (string-append output "/src")))
496 (setenv "PATH" (string-append gzip "/bin"))
497 (system* (string-append tar "/bin/tar") "xzf"
499 (chdir ,(string-append name "-" version))
501 (copy-file "src/shflags"
502 (string-append srcdir "/shflags"))
504 (home-page "https://github.com/kward/shflags")
505 (synopsis "Command-line flags library for shell scripts")
507 "Shell Flags (shFlags) is a library written to greatly simplify the
508 handling of command-line flags in Bourne based Unix shell scripts (bash, dash,
509 ksh, sh, zsh). Most shell scripts use getopt for flags processing, but the
510 different versions of getopt on various OSes make writing portable shell
511 scripts difficult. shFlags instead provides an API that doesn't change across
512 shell and OS versions so the script writer can be confident that the script
514 (license license:lgpl2.1)))
516 (define-public git-flow
519 ;; This version has not be officially released yet, so we build it
520 ;; directly from the git repository.
521 (version "0.4.2-pre")
525 (url "https://github.com/nvie/gitflow/")
526 (commit "15aab26490facf285acef56cb5d61025eacb3a69")))
529 "01fs97q76fdfnvmrh2cyjhywcs3pykf1dg58sy0frflnsdzs6prx"))))
530 (build-system gnu-build-system)
531 (inputs `(("shflags" ,shflags)))
533 '(#:tests? #f ; no tests
534 #:make-flags (list (string-append "prefix="
535 (assoc-ref %outputs "out")))
537 (modify-phases %standard-phases
538 (add-after 'unpack 'reset-shFlags-link
539 (lambda* (#:key inputs #:allow-other-keys)
540 ;; The link points to a file in the shFlags submodule.
541 ;; Redirect it to point to our system shFlags.
542 (let ((shflags (assoc-ref inputs "shflags")))
544 (delete-file "gitflow-shFlags")
545 (symlink (string-append shflags "/src/shflags")
546 "gitflow-shFlags")))))
549 (home-page "http://nvie.com/posts/a-successful-git-branching-model/")
550 (synopsis "Git extensions for Vincent Driessen's branching model")
552 "Vincent Driessen's branching model is a git branching and release
553 management strategy that helps developers keep track of features, hotfixes,
554 and releases in bigger software projects. The git-flow library of git
555 subcommands helps automate some parts of the flow to make working with it a
557 (license license:bsd-2)))
559 (define-public git-test-sequence
560 (let ((commit "48e5a2f5a13a5f30452647237e23362b459b9c76"))
562 (name "git-test-sequence")
563 (version (string-append "20140312." (string-take commit 7)))
567 ;; There are many other scripts in this directory; we
568 ;; are interested in just one for this package.
569 (url "https://github.com/dustin/bindir")
573 "1dcq0y16yznbv4k9h8gg90kv1gkn8r8dbvl4m2rpfd7q5nqhn617"))))
574 (build-system trivial-build-system)
576 `(#:modules ((guix build utils))
578 (use-modules (guix build utils))
579 (let* ((source (assoc-ref %build-inputs "source"))
580 (output (assoc-ref %outputs "out"))
581 (bindir (string-append output "/bin"))
582 (script "git-test-sequence"))
583 (install-file (string-append source "/" script)
586 (home-page "http://dustin.sallings.org/2010/03/28/git-test-sequence.html")
587 (synopsis "Run a command over a sequence of commits")
589 "git-test-sequence is similar to an automated git bisect except it’s
590 linear. It will test every change between two points in the DAG. It will
591 also walk each side of a merge and test those changes individually.")
592 (license (license:x11-style "file://LICENSE")))))
594 (define-public gitolite
601 "https://github.com/sitaramc/gitolite/archive/v"
603 (file-name (string-append name "-" version ".tar.gz"))
606 "0xpqg04gyr4dhdhxx5lbk61lwwd5ml32530bigg2qy663icngwqm"))))
607 (build-system gnu-build-system)
609 '(#:tests? #f ; no tests
610 #:phases (modify-phases %standard-phases
613 (add-before 'install 'patch-scripts
614 (lambda* (#:key inputs #:allow-other-keys)
615 (let ((perl (string-append (assoc-ref inputs "perl")
617 ;; This seems to take care of every shell script that
619 (substitute* (find-files "." ".*")
621 (string-append " " perl " -"))))))
623 (lambda* (#:key outputs #:allow-other-keys)
624 (let* ((output (assoc-ref outputs "out"))
625 (sharedir (string-append output "/share/gitolite"))
626 (bindir (string-append output "/bin")))
629 (system* "./install" "-to" sharedir)
630 ;; Create symlinks for executable scripts in /bin.
631 (for-each (lambda (script)
632 (symlink (string-append sharedir "/" script)
633 (string-append bindir "/" script)))
634 '("gitolite" "gitolite-shell"))
638 ;; git and openssh are propagated because trying to patch the source via
639 ;; regexp matching is too brittle and prone to false positives.
642 ("openssh" ,openssh)))
643 (home-page "http://gitolite.com")
644 (synopsis "Git access control layer")
646 "Gitolite is an access control layer on top of Git, providing fine access
647 control to Git repositories.")
648 (license license:gpl2)))
650 (define-public mercurial
656 (uri (string-append "https://www.mercurial-scm.org/"
657 "release/mercurial-" version ".tar.gz"))
660 "1g6svg7fc1kyaxq653iwsvdh8hp2lrhs2ywazfc436a4zzf2akw3"))))
661 (build-system python-build-system)
663 `(;; Restrict to Python 2, as Python 3 would require
664 ;; the argument --c2to3.
666 ;; FIXME: Disabled tests because they require the nose unit
667 ;; testing framework: https://nose.readthedocs.org/en/latest/ .
669 (home-page "https://www.mercurial-scm.org/")
670 (synopsis "Decentralized version control system")
672 "Mercurial is a free, distributed source control management tool.
673 It efficiently handles projects of any size
674 and offers an easy and intuitive interface.")
675 (license license:gpl2+)))
683 (uri (string-append "http://www.webdav.org/neon/neon-"
687 "1pawhk02x728xn396a1kcivy9gqm94srmgad6ymr9l0qvk02dih0"))))
688 (build-system gnu-build-system)
691 ("pkg-config" ,pkg-config)))
693 `(("libxml2" ,libxml2)
697 `(;; FIXME: Add tests once reverse address lookup is fixed in glibc, see
698 ;; https://sourceware.org/bugzilla/show_bug.cgi?id=16475
700 #:configure-flags '("--enable-shared"
701 ;; requires libgnutils-config, deprecated
703 ; "--with-ssl=gnutls")))
704 "--with-ssl=openssl")))
705 (home-page "http://www.webdav.org/neon/")
706 (synopsis "HTTP and WebDAV client library")
707 (description "Neon is an HTTP and WebDAV client library, with a
708 C interface. Features:
709 High-level wrappers for common HTTP and WebDAV operations (GET, MOVE,
711 low-level interface to the HTTP request/response engine, allowing the use
712 of arbitrary HTTP methods, headers, etc.;
713 authentication support including Basic and Digest support, along with
714 GSSAPI-based Negotiate on Unix, and SSPI-based Negotiate/NTLM on Win32;
715 SSL/TLS support using OpenSSL or GnuTLS, exposing an abstraction layer for
716 verifying server certificates, handling client certificates, and examining
717 certificate properties, smartcard-based client certificates are also
718 supported via a PKCS#11 wrapper interface;
719 abstract interface to parsing XML using libxml2 or expat, and wrappers for
720 simplifying handling XML HTTP response bodies;
721 WebDAV metadata support, wrappers for PROPFIND and PROPPATCH to simplify
722 property manipulation.")
723 (license license:gpl2+))) ; for documentation and tests; source under lgpl2.0+
725 (define-public subversion
731 (uri (string-append "https://archive.apache.org/dist/subversion/"
732 "subversion-" version ".tar.bz2"))
735 "1450fkj1jmxyphqn6cd95z1ykwsabajm9jw4i412qpwss8w9a4fy"))))
736 (build-system gnu-build-system)
739 (modify-phases %standard-phases
740 (add-after 'configure 'patch-libtool-wrapper-ls
741 (lambda* (#:key inputs #:allow-other-keys)
742 ;; This substitution allows tests svnauthz_tests and svnlook_tests
743 ;; to pass. These tests execute svnauthz and svnlook through
744 ;; their libtool wrapper scripts from svn hooks, whose empty
745 ;; environments cause "ls: command not found" errors. It would be
746 ;; nice if this fix ultimately made its way into libtool.
747 (let ((coreutils (assoc-ref inputs "coreutils")))
748 (substitute* "libtool"
749 (("\\\\`ls") (string-append "\\`" coreutils "/bin/ls")))
751 (add-after 'install 'install-perl-bindings
752 (lambda* (#:key outputs #:allow-other-keys)
753 ;; Follow the instructions from 'subversion/bindings/swig/INSTALL'.
754 (let ((out (assoc-ref outputs "out")))
755 (and (zero? (system* "make" "swig-pl-lib"))
756 ;; FIXME: Test failures.
757 ;; (zero? (system* "make" "check-swig-pl"))
758 (zero? (system* "make" "install-swig-pl-lib"))
760 ;; Set the right installation prefix.
761 (with-directory-excursion
762 "subversion/bindings/swig/perl/native"
764 (system* "perl" "Makefile.PL"
765 (string-append "PREFIX=" out)))
767 (system* "make" "install"
768 (string-append "OTHERLDFLAGS="
770 out "/lib"))))))))))))
772 `(("pkg-config" ,pkg-config)
773 ;; For the Perl bindings.
777 ("apr-util" ,apr-util)
780 ("python" ,python-2) ; incompatible with Python 3 (print syntax)
783 (home-page "https://subversion.apache.org/")
784 (synopsis "Revision control system")
786 "Subversion exists to be universally recognized and adopted as a
787 centralized version control system characterized by its
788 reliability as a safe haven for valuable data; the simplicity of its model and
789 usage; and its ability to support the needs of a wide variety of users and
790 projects, from individuals to large-scale enterprise operations.")
791 (license license:asl2.0)))
799 (uri (string-append "mirror://gnu/rcs/rcs-"
803 "1zsx7bb0rgvvvisiy4zlixf56ay8wbd9qqqcp1a1g0m1gl6mlg86"))))
804 (build-system gnu-build-system)
805 (native-inputs `(("ed" ,ed)))
806 (home-page "http://www.gnu.org/software/rcs/")
807 (synopsis "Per-file local revision control system")
809 "RCS is the original Revision Control System. It works on a
810 file-by-file basis, in contrast to subsequent version control systems such as
811 CVS, Subversion, and Git. This can make it suitable for system
812 administration files, for example, which are often inherently local to one
814 (license license:gpl3+)))
823 "http://ftp.gnu.org/non-gnu/cvs/source/feature/"
824 version "/cvs-" version ".tar.bz2"))
827 "0pjir8cwn0087mxszzbsi1gyfc6373vif96cw4q3m1x6p49kd1bq"))))
828 (build-system gnu-build-system)
830 ;; XXX: The test suite looks flawed, and the package is obsolete anyway.
832 #:configure-flags (list "--with-external-zlib")))
833 (inputs `(("zlib" ,zlib)
834 ("nano" ,nano))) ; the default editor
835 (home-page "http://cvs.nongnu.org")
836 (synopsis "Historical centralized version control system")
838 "CVS is a version control system, an important component of Source
839 Configuration Management (SCM). Using it, you can record the history of
840 sources files, and documents. It fills a similar role to the free software
841 RCS, PRCS, and Aegis packages.")
842 (license license:gpl1+)))
844 (define-public cvs-fast-export
846 (name "cvs-fast-export")
850 (uri (string-append "http://www.catb.org/~esr/"
851 name "/" name "-" version ".tar.gz"))
854 "1c3s4nacbwlaaccx1fr7hf72kxxrzy49y2rdz5hhqbk8r29vm8w1"))))
855 (build-system gnu-build-system)
857 `(#:phases (modify-phases %standard-phases (delete 'configure))
859 (list "CC=gcc" (string-append "prefix?=" (assoc-ref %outputs "out")))))
860 (inputs `(("git" ,git)))
861 (native-inputs `(("asciidoc" ,asciidoc)
862 ("docbook-xml" ,docbook-xml)
863 ("docbook-xsl" ,docbook-xsl)
865 ("xsltproc" ,libxslt)
866 ;; These are needed for the tests.
870 (home-page "http://www.catb.org/esr/cvs-fast-export/")
871 (synopsis "Export an RCS or CVS history as a fast-import stream")
872 (description "This program analyzes a collection of RCS files in a CVS
873 repository (or outside of one) and, when possible, emits an equivalent history
874 in the form of a fast-import stream. Not all possible histories can be
875 rendered this way; the program tries to emit useful warnings when it can't.
877 The program can also produce a visualization of the resulting commit directed
878 acyclic graph (DAG) in the input format of @uref{http://www.graphviz.org,
879 Graphviz}. The package also includes @command{cvssync}, a tool for mirroring
880 masters from remote CVS hosts.")
881 (license license:gpl2+)))
883 (define-public vc-dwim
889 (uri (string-append "mirror://gnu/vc-dwim/vc-dwim-"
893 "0d5sqafc40l878m8wjr35jxmalj4kam1m6ph60v08ng4ml5g7931"))))
894 (build-system gnu-build-system)
895 (inputs `(("perl" ,perl)
896 ("inetutils" ,inetutils))) ; for `hostname', used in the tests
897 (native-inputs `(("emacs" ,emacs-minimal))) ; for `ctags'
898 (home-page "https://www.gnu.org/software/vc-dwim/")
899 (synopsis "Version-control-agnostic ChangeLog diff and commit tool")
901 "The vc-dwim package contains two tools, \"vc-dwim\" and \"vc-chlog\".
902 vc-dwim is a tool that simplifies the task of maintaining a ChangeLog and
903 using version control at the same time, for example by printing a reminder
904 when a file change has been described in the ChangeLog but the file has not
905 been added to the VC. vc-chlog scans changed files and generates
906 standards-compliant ChangeLog entries based on the changes that it detects.")
907 (license license:gpl3+)))
909 (define-public diffstat
916 "ftp://invisible-island.net/diffstat/diffstat-"
920 "14rpf5c05ff30f6vn6pn6pzy0k4g4is5im656ahsxff3k58i7mgs"))))
921 (build-system gnu-build-system)
922 (home-page "http://invisible-island.net/diffstat/")
923 (synopsis "Make histograms from the output of 'diff'")
925 "Diffstat reads the output of 'diff' and displays a histogram of the
926 insertions, deletions, and modifications per-file. It is useful for reviewing
927 large, complex patch files.")
928 (license (license:x11-style "file://COPYING"))))
936 (uri (string-append "mirror://gnu/" name "/CSSC-"
940 "15191dh8hr46cvssmv4v52gymiiyk6ca9j1bfimlqakcqab6y51h"))))
941 (build-system gnu-build-system)
944 (modify-phases %standard-phases
945 (add-before 'check 'precheck
948 (substitute* "tests/common/test-common"
949 (("/bin/pwd") (which "pwd")))
951 (substitute* "tests/prt/all-512.sh"
952 (("/bin/sh") (which "sh")))
954 ;; XXX: This test has no hope of passing until there is a "nogroup"
955 ;; entry (or at least some group to which the guix builder does
956 ;; not belong) in the /etc/group file of the build environment.
957 ;; Currently we do not have such a group. Disable this test for now.
958 (substitute* "tests/Makefile"
959 (("test-delta ") ""))))))))
960 ;; These are needed for the tests
961 (native-inputs `(("git" ,git)
963 (home-page "http://www.gnu.org/software/cssc/")
964 (synopsis "File-based version control like SCCS")
965 (description "GNU CSSC provides a replacement for the legacy Unix source
966 code control system SCCS. This allows old code still under that system to be
967 accessed and migrated on modern systems.")
968 (license license:gpl3+)))
970 ;; This package can unfortunately work only in -TEST mode, since Aegis
971 ;; requires that it is installed setuid root.
978 (uri (string-append "mirror://sourceforge/aegis/aegis/" version
979 "/aegis-" version ".tar.gz"))
982 "18s86ssarfmc4l17gbpzybca29m5wa37cbaimdji8czlcry3mcjl"))
983 (patches (search-patches "aegis-perl-tempdir1.patch"
984 "aegis-perl-tempdir2.patch"
985 "aegis-test-fixup-1.patch"
986 "aegis-test-fixup-2.patch"
987 "aegis-constness-error.patch"))))
988 (build-system gnu-build-system)
990 `(("e2fsprogs" ,e2fsprogs)
995 ("gettext" ,gettext-minimal)))
1000 ;; Various tests require the following:
1004 ("subversion" ,subversion)
1008 `(#:configure-flags (list "--with-no-aegis-configured"
1009 "--sharedstatedir=/var/com/aegis")
1010 #:parallel-build? #f ; There are some nasty racy rules in the Makefile.
1012 (modify-phases %standard-phases
1013 (add-before 'configure 'pre-conf
1015 (substitute* (append '("configure"
1016 "etc/check-tar-gz.sh"
1020 "script/aebisect.in"
1021 "script/aeintegratq.in"
1023 "script/test_funcs.in"
1024 "web/eg_oss_templ.sh"
1026 "libaegis/getpw_cache.cc")
1027 (find-files "test" "\\.sh"))
1028 (("/bin/sh") (which "sh")))
1029 (setenv "SH" (which "sh"))))
1032 (let ((home (string-append (getcwd) "/my-new-home")))
1033 ;; Some tests need to write to $HOME.
1035 (setenv "HOME" home)
1037 ;; This test assumes that flex has been symlinked to "lex".
1038 (substitute* "test/00/t0011a.sh"
1039 (("type lex") "type flex"))
1041 ;; The author decided to call the check rule "sure".
1042 (zero? (system* "make" "sure"))))))))
1043 (home-page "http://aegis.sourceforge.net")
1044 (synopsis "Project change supervisor")
1045 (description "Aegis is a project change supervisor, and performs some of
1046 the Software Configuration Management needed in a CASE environment. Aegis
1047 provides a framework within which a team of developers may work on many
1048 changes to a program independently, and Aegis coordinates integrating these
1049 changes back into the master source of the program, with as little disruption
1050 as possible. Resolution of contention for source files, a major headache for
1051 any project with more than one developer, is one of Aegis's major functions.")
1052 (license license:gpl3+)))
1054 (define-public reposurgeon
1056 (name "reposurgeon")
1060 (uri (string-append "http://www.catb.org/~esr/" name "/"
1061 name "-" version ".tar.xz"))
1064 "14asjg4xy3mhh5z0r3k7c1wv9y803j2zfq32g5q5m95sf7yzygan"))))
1065 (build-system gnu-build-system)
1067 `(#:tests? #f ;no test suite distributed
1069 (list (string-append "target=" (assoc-ref %outputs "out")))
1071 (modify-phases %standard-phases
1073 (add-before 'build 'fix-docbook
1074 (lambda* (#:key inputs #:allow-other-keys)
1075 (substitute* (find-files "." "\\.xml$")
1076 (("docbook/docbookx.dtd")
1077 (string-append (assoc-ref inputs "docbook-xml")
1078 "/xml/dtd/docbook/docbookx.dtd")))
1080 (add-after 'install 'install-emacs-data
1081 (lambda* (#:key outputs #:allow-other-keys)
1082 (install-file "reposurgeon-mode.el"
1083 (string-append (assoc-ref outputs "out")
1084 "/share/emacs/site-lisp")))))))
1086 `(("python" ,python-wrapper)))
1088 `(("asciidoc" ,asciidoc)
1089 ("docbook-xml" ,docbook-xml-4.1.2)
1090 ("docbook-xsl" ,docbook-xsl)
1091 ("libxml2" ,libxml2)
1093 (home-page "http://www.catb.org/~esr/reposurgeon/")
1094 (synopsis "Edit version-control repository history")
1095 (description "Reposurgeon enables risky operations that version-control
1096 systems don't want to let you do, such as editing past comments and metadata
1097 and removing commits. It works with any version control system that can
1098 export and import Git fast-import streams, including Git, Mercurial, Fossil,
1099 Bazaar, CVS, RCS, and Src. It can also read Subversion dump files directly
1100 and can thus be used to script production of very high-quality conversions
1101 from Subversion to any supported Distributed Version Control System (DVCS).")
1102 ;; Most files are distributed under bsd-2, except 'repocutter' which is
1104 (license (list license:bsd-2 license:bsd-3))))
1113 "http://jonas.nitro.dk/tig/releases/tig-"
1117 "0k3m894vfkgkj7xbr0j6ph91351dl6id5f0hk2ksjp5lmg9i6llg"))))
1118 (build-system gnu-build-system)
1120 `(("asciidoc" ,asciidoc)
1123 `(("ncurses" ,ncurses)
1124 ("readline" ,readline)))
1127 (modify-phases %standard-phases
1128 (add-after 'install 'install-doc
1130 (zero? (system* "make" "install-doc")))))
1131 #:tests? #f)) ; tests require access to /dev/tty
1132 ;;`(#:test-target "test"))
1133 (home-page "http://jonas.nitro.dk/tig/")
1134 (synopsis "Ncurses-based text user interface for Git")
1136 "Tig is an ncurses text user interface for Git, primarily intended as
1137 a history browser. It can also stage hunks for commit, or colorize the
1138 output of the 'git' command.")
1139 (license license:gpl2+)))
1141 (define-public findnewest
1148 "https://github.com/0-wiz-0/findnewest/archive/findnewest-"
1152 "1ydis4y0amkgfr4y60sn076f1l41ya2kn89kfd9fqf44f9ccgb5r"))))
1153 (build-system gnu-build-system)
1155 '(#:phases (modify-phases %standard-phases
1156 (add-before 'configure 'bootstrap
1158 (zero? (system* "autoreconf" "-vfi")))))))
1159 (native-inputs `(("autoconf" ,autoconf)
1160 ("automake" ,automake)))
1161 (home-page "https://github.com/0-wiz-0/findnewest/releases")
1162 (synopsis "Print the modification time of the latest file")
1164 "Recursively find the newest file in a file tree and print its
1165 modification time.")
1166 (license license:bsd-2)))
1168 (define-public myrepos
1171 (version "1.20160123")
1176 "https://github.com/joeyh/myrepos/archive/"
1178 (file-name (string-append name "-" version ".tar.gz"))
1180 (base32 "1723cg5haplz2w9dwdzp6ds1ip33cx3awmj4wnb0h4yq171v5lqk"))))
1181 (build-system gnu-build-system)
1185 `(#:test-target "test"
1186 #:phases (alist-delete 'configure %standard-phases)
1187 #:make-flags (list (string-append "PREFIX=" %output))))
1188 (home-page "http://myrepos.branchable.com/")
1189 (synopsis "Multiple repository management tool")
1191 "Myrepos provides the @code{mr} command, which maps an operation (e.g.,
1192 fetching updates) over a collection of version control repositories. It
1193 supports a large number of version control systems: Git, Subversion,
1194 Mercurial, Bazaar, Darcs, CVS, Fossil, and Veracity.")
1195 (license license:gpl2+)))
1197 (define-public git-annex-remote-hubic
1199 (name "git-annex-remote-hubic")
1204 "https://github.com/Schnouki/" name "/archive/v"
1206 (file-name (string-append name "-" version ".tar.gz"))
1209 "196g3jkaybjx11nbr51n0cjps3wjzb145ab76y717diqvvxp5v4r"))))
1210 (build-system python-build-system)
1211 (arguments `(#:python ,python-2))
1214 ("python2-six" ,python2-six)))
1216 `(("python2-dateutil" ,python2-dateutil-2)
1217 ("python2-futures" ,python2-futures)
1218 ("python2-rauth" ,python2-rauth)
1219 ("python2-swiftclient" ,python2-swiftclient)))
1220 (home-page "https://github.com/Schnouki/git-annex-remote-hubic/")
1221 (synopsis "Use hubic as a git-annex remote")
1223 "This package allows you to use your hubic account as a \"special
1224 repository\" with git-annex.")
1225 (license license:gpl3+)))
1227 (define-public fossil
1235 "https://www.fossil-scm.org/index.html/uv/download/"
1236 "fossil-src-" version ".tar.gz"))
1239 "07ds6rhq69bhydpm9a01mgdhxf88p9b6y5hdnhn8gjc7ba92zyf1"))))
1240 (build-system gnu-build-system)
1242 `(("tcl" ,tcl) ;for configuration only
1243 ("which" ,which) ;for tests only
1246 `(("openssl" ,openssl)
1248 ("sqlite" ,sqlite)))
1250 `(#:configure-flags (list "--with-openssl=auto"
1251 "--disable-internal-sqlite")
1252 #:test-target "test"
1253 #:phases (modify-phases %standard-phases
1255 (lambda* (#:key outputs (configure-flags '())
1257 ;; The 'configure' script is not an autoconf script and
1258 ;; chokes on unrecognized options.
1259 (zero? (apply system*
1261 (string-append "--prefix="
1262 (assoc-ref outputs "out"))
1264 (add-before 'check 'test-setup
1266 (setenv "USER" "guix")
1268 ;; Fixing the th1 test would require many backports, so
1269 ;; just disable for now.
1270 (delete-file "test/th1.test")
1272 (home-page "https://fossil-scm.org")
1273 (synopsis "Software configuration management system")
1275 "Fossil is a distributed source control management system which supports
1276 access and administration over HTTP CGI or via a built-in HTTP server. It has
1277 a built-in wiki, built-in file browsing, built-in tickets system, etc.")
1278 (license (list license:public-domain ;src/miniz.c, src/shell.c
1281 (define-public stagit
1287 (uri (string-append "http://dl.2f30.org/releases/"
1288 name "-" version ".tar.gz"))
1291 "0ym1dwzn2z23hcg53qh1m1g5pfibrfnnlp3sm3z1v4mhz0pgaj56"))))
1292 (build-system gnu-build-system)
1294 `(#:tests? #f ; No tests
1295 #:make-flags (list "CC=gcc"
1296 (string-append "PREFIX=" %output))
1298 (modify-phases %standard-phases
1299 (delete 'configure)))) ; No configure script
1301 `(("libgit2" ,libgit2)))
1302 (home-page "http://2f30.org")
1303 (synopsis "Static git page generator")
1304 (description "Stagit creates static pages for git repositories, the results can
1305 be served with a HTTP file server of your choice.")
1306 (license license:expat)))