gnu: Add git-crypt.
[jackhill/guix/guix.git] / gnu / packages / version-control.scm
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>
14 ;;;
15 ;;; This file is part of GNU Guix.
16 ;;;
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.
21 ;;;
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.
26 ;;;
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/>.
29
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))
74
75 (define-public bazaar
76 (package
77 (name "bazaar")
78 (version "2.7.0")
79 (source
80 (origin
81 (method url-fetch)
82 (uri (string-append "https://launchpad.net/bzr/"
83 (version-major+minor version) "/" version
84 "/+download/bzr-" version ".tar.gz"))
85 (sha256
86 (base32
87 "1cysix5k3wa6y7jjck3ckq3abls4gvz570s0v0hxv805nwki4i8d"))))
88 (build-system python-build-system)
89 (inputs
90 ;; Note: 'tools/packaging/lp-upload-release' and 'tools/weavemerge.sh'
91 ;; require Zsh.
92 `(("gettext" ,gettext-minimal)))
93 (arguments
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
97 #:phases
98 (modify-phases %standard-phases
99 (add-after 'unpack 'fix-mandir
100 (lambda _
101 (substitute* "setup.py"
102 (("man/man1") "share/man/man1"))
103 #t)))))
104 (home-page "https://gnu.org/software/bazaar")
105 (synopsis "Version control system supporting both distributed and centralized workflows")
106 (description
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+)))
111
112 (define-public git
113 (package
114 (name "git")
115 (version "2.11.1")
116 (source (origin
117 (method url-fetch)
118 (uri (string-append "mirror://kernel.org/software/scm/git/git-"
119 version ".tar.xz"))
120 (sha256
121 (base32
122 "05b4jw86w77c3pyh3nm6aw31vhxwzvhnx2x0bcfqmm15wg57k9y0"))))
123 (build-system gnu-build-system)
124 (native-inputs
125 `(("native-perl" ,perl)
126 ("gettext" ,gettext-minimal)
127 ("git-manpages"
128 ,(origin
129 (method url-fetch)
130 (uri (string-append
131 "mirror://kernel.org/software/scm/git/git-manpages-"
132 version ".tar.xz"))
133 (sha256
134 (base32
135 "0cfa3c2r7d86ksswxdl0jqdka9mai3446gg8380921gf779nwj39"))))))
136 (inputs
137 `(("curl" ,curl)
138 ("expat" ,expat)
139 ("openssl" ,openssl)
140 ("perl" ,perl)
141 ("python" ,python-2) ; CAVEAT: incompatible with python-3 according to INSTALL
142 ("zlib" ,zlib)
143
144 ;; For 'gitweb.cgi'
145 ("perl-cgi" ,perl-cgi)
146
147 ;; For 'git-svn'.
148 ("subversion" ,subversion)
149 ("perl-term-readkey" ,perl-term-readkey)
150
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)
155
156 ;; For 'git gui', 'gitk', and 'git citool'.
157 ("tcl" ,tcl)
158 ("tk" ,tk)))
159 (outputs '("out" ; the core
160 "send-email" ; for git-send-email
161 "svn" ; git-svn
162 "gui")) ; gitk, git gui
163 (arguments
164 `(#:make-flags `("V=1" ;more verbose compilation
165
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")
170 #:test-target "test"
171 #:tests? #f ; FIXME: Many tests are failing
172
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
178
179 #:modules ((srfi srfi-1)
180 ,@%gnu-build-system-modules)
181 #:phases
182 (modify-phases %standard-phases
183 (add-after 'configure 'patch-makefile-shebangs
184 (lambda _
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
190 (lambda _
191 ;; Add the "PM.stamp" to avoid "no rule to make target".
192 (call-with-output-file "perl/PM.stamp" (const #t))
193 #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"))
202 #t)))
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"))
226
227 (for-each (lambda (old new)
228 (copy-file old new)
229 (delete-file old)
230 (chmod new #o555))
231 (list gitk git-gui git-cit git-se git-svn)
232 (list gitk* git-gui* git-cit* git-se* git-svn*))
233
234 ;; Tell 'git-svn' where Subversion and perl-term-readkey are.
235 (wrap-program git-svn*
236 `("PATH" ":" prefix
237 (,(string-append (assoc-ref inputs "subversion")
238 "/bin")))
239 `("PERL5LIB" ":" prefix
240 ,(map (lambda (i) (string-append (assoc-ref inputs i)
241 "/lib/perl5/site_perl"))
242 '("subversion" "perl-term-readkey")))
243
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")
248 "/lib"))))
249
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"))
254 (list
255 ,@(transitive-input-references
256 'inputs
257 (map (lambda (l)
258 (assoc l (inputs)))
259 '("perl-authen-sasl"
260 "perl-net-smtp-ssl"
261 "perl-io-socket-ssl")))))))
262
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"))
267 (list
268 ,@(transitive-input-references
269 'inputs
270 (map (lambda (l)
271 (assoc l (inputs)))
272 '("perl-cgi")))))))
273
274 ;; Tell 'git-submodule' where Perl is.
275 (wrap-program git-sm
276 `("PATH" ":" prefix
277 (,(string-append (assoc-ref inputs "perl")
278 "/bin"))))
279
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")
286 `("PATH" ":" prefix
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")))
293 (mkdir-p man)
294 (with-directory-excursion man
295 (zero? (system* "tar" "xvf" manpages)))))))))
296
297 (native-search-paths
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")
303 (file-type 'regular)
304 (files '("etc/ssl/certs/ca-certificates.crt")))))
305
306 (synopsis "Distributed version control system")
307 (description
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/")))
312
313 ;; Some dependent packages directly access internal interfaces which
314 ;; have changed in 2.10
315 (define-public git@2.9
316 (package
317 (inherit git)
318 (version "2.9.3")
319 (source (origin
320 (method url-fetch)
321 (uri (string-append "mirror://kernel.org/software/scm/git/git-"
322 version ".tar.xz"))
323 (sha256
324 (base32
325 "0qzs681a64k3shh5p0rg41l1z16fbk5sj0xga45k34hp1hsp654z"))))))
326
327 (define-public libgit2
328 (package
329 (name "libgit2")
330 (version "0.25.1")
331 (source (origin
332 (method url-fetch)
333 (uri (string-append "https://github.com/libgit2/libgit2/"
334 "archive/v" version ".tar.gz"))
335 (file-name (string-append name "-" version ".tar.gz"))
336 (sha256
337 (base32
338 "1cdwcw38frc1wf28x5ppddazv9hywc718j92f3xa3ybzzycyds3s"))))
339 (build-system cmake-build-system)
340 (arguments
341 `(#:phases
342 (modify-phases %standard-phases
343 (add-after 'unpack 'fix-hardcoded-paths
344 (lambda _
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")))
350 #t))
351 ;; Run checks more verbosely.
352 (replace 'check
353 (lambda _ (zero? (system* "./libgit2_clar" "-v" "-Q")))))))
354 (inputs
355 `(("libssh2" ,libssh2)
356 ("libcurl" ,curl)
357 ("python" ,python-wrapper)
358 ("openssl" ,openssl)))
359 (native-inputs
360 `(("pkg-config" ,pkg-config)))
361 (home-page "https://libgit2.github.com/")
362 (synopsis "Library providing Git core methods")
363 (description
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)))
369
370 (define-public git-crypt
371 (package
372 (name "git-crypt")
373 (version "0.5.0")
374 (source (origin
375 (method url-fetch)
376 (uri (string-append "https://github.com/AGWA/git-crypt"
377 "/archive/" version ".tar.gz"))
378 (file-name (string-append name "-" version ".tar.gz"))
379 (sha256
380 (base32
381 "0454fdmgm5f3razkn8n03lfqm5zyzvr4r2528zmlxiwba9518l2i"))))
382 (build-system gnu-build-system)
383 (inputs
384 `(("git" ,git)
385 ("openssl" ,openssl)))
386 (arguments
387 `(#:tests? #f ; No tests.
388 #:phases
389 (modify-phases %standard-phases
390 (delete 'configure)
391 (replace 'build
392 (lambda _
393 (zero? (system* "make"))))
394 (replace 'install
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+)))
410
411 (define-public cgit
412 (package
413 (name "cgit")
414 (version "1.0")
415 (source (origin
416 (method url-fetch)
417 (uri (string-append
418 "https://git.zx2c4.com/cgit/snapshot/cgit-"
419 version ".tar.xz"))
420 (sha256
421 (base32
422 "0kbh835p7dl4h88qv55fyfh1za09cgnqh63rii325w9215hm95x8"))))
423 (build-system gnu-build-system)
424 (arguments
425 '(#:tests? #f ; XXX: fail to build the in-source git.
426 #:test-target "test"
427 #:make-flags '("CC=gcc" "SHELL_PATH=sh")
428 #:phases
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.
433 (zero? (system*
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")))))
440 (replace 'install
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)
446 ,(string-append
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"))
453 #t)))))))
454 (native-inputs
455 ;; For building manpage.
456 `(("asciidoc" ,asciidoc)
457 ("docbook-xml" ,docbook-xml)
458 ("docbook-xsl" ,docbook-xsl)
459 ("xmllint" ,libxml2)
460 ("xsltprot" ,libxslt)))
461 (inputs
462 `(("git:src" ,(package-source git@2.9))
463 ("openssl" ,openssl)
464 ("zlib" ,zlib)))
465 (home-page "https://git.zx2c4.com/cgit/")
466 (synopsis "Web frontend for git repositories")
467 (description
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)))
471
472 (define-public shflags
473 (package
474 (name "shflags")
475 (version "1.2.0")
476 (source (origin
477 (method url-fetch)
478 (uri (string-append "https://github.com/kward/shflags/archive/v"
479 version ".tar.gz"))
480 (sha256
481 (base32
482 "0zxw12haylaq60a335xlqcs4afw2zrgwqymmpw0m21r51w6irdmr"))))
483 (build-system trivial-build-system)
484 (native-inputs `(("tar" ,tar)
485 ("gzip" ,gzip)))
486 (arguments
487 `(#:modules ((guix build utils))
488 #:builder (begin
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")))
495 (begin
496 (setenv "PATH" (string-append gzip "/bin"))
497 (system* (string-append tar "/bin/tar") "xzf"
498 source)
499 (chdir ,(string-append name "-" version))
500 (mkdir-p srcdir)
501 (copy-file "src/shflags"
502 (string-append srcdir "/shflags"))
503 #t)))))
504 (home-page "https://github.com/kward/shflags")
505 (synopsis "Command-line flags library for shell scripts")
506 (description
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
513 will work.")
514 (license license:lgpl2.1)))
515
516 (define-public git-flow
517 (package
518 (name "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")
522 (source (origin
523 (method git-fetch)
524 (uri (git-reference
525 (url "https://github.com/nvie/gitflow/")
526 (commit "15aab26490facf285acef56cb5d61025eacb3a69")))
527 (sha256
528 (base32
529 "01fs97q76fdfnvmrh2cyjhywcs3pykf1dg58sy0frflnsdzs6prx"))))
530 (build-system gnu-build-system)
531 (inputs `(("shflags" ,shflags)))
532 (arguments
533 '(#:tests? #f ; no tests
534 #:make-flags (list (string-append "prefix="
535 (assoc-ref %outputs "out")))
536 #:phases
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")))
543 (begin
544 (delete-file "gitflow-shFlags")
545 (symlink (string-append shflags "/src/shflags")
546 "gitflow-shFlags")))))
547 (delete 'configure)
548 (delete 'build))))
549 (home-page "http://nvie.com/posts/a-successful-git-branching-model/")
550 (synopsis "Git extensions for Vincent Driessen's branching model")
551 (description
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
556 lot easier.")
557 (license license:bsd-2)))
558
559 (define-public git-test-sequence
560 (let ((commit "48e5a2f5a13a5f30452647237e23362b459b9c76"))
561 (package
562 (name "git-test-sequence")
563 (version (string-append "20140312." (string-take commit 7)))
564 (source (origin
565 (method git-fetch)
566 (uri (git-reference
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")
570 (commit commit)))
571 (sha256
572 (base32
573 "1dcq0y16yznbv4k9h8gg90kv1gkn8r8dbvl4m2rpfd7q5nqhn617"))))
574 (build-system trivial-build-system)
575 (arguments
576 `(#:modules ((guix build utils))
577 #:builder (begin
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)
584 bindir)
585 #t))))
586 (home-page "http://dustin.sallings.org/2010/03/28/git-test-sequence.html")
587 (synopsis "Run a command over a sequence of commits")
588 (description
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")))))
593
594 (define-public gitolite
595 (package
596 (name "gitolite")
597 (version "3.6.5")
598 (source (origin
599 (method url-fetch)
600 (uri (string-append
601 "https://github.com/sitaramc/gitolite/archive/v"
602 version ".tar.gz"))
603 (file-name (string-append name "-" version ".tar.gz"))
604 (sha256
605 (base32
606 "0xpqg04gyr4dhdhxx5lbk61lwwd5ml32530bigg2qy663icngwqm"))))
607 (build-system gnu-build-system)
608 (arguments
609 '(#:tests? #f ; no tests
610 #:phases (modify-phases %standard-phases
611 (delete 'configure)
612 (delete 'build)
613 (add-before 'install 'patch-scripts
614 (lambda* (#:key inputs #:allow-other-keys)
615 (let ((perl (string-append (assoc-ref inputs "perl")
616 "/bin/perl")))
617 ;; This seems to take care of every shell script that
618 ;; invokes Perl.
619 (substitute* (find-files "." ".*")
620 ((" perl -")
621 (string-append " " perl " -"))))))
622 (replace 'install
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")))
627 (mkdir-p sharedir)
628 (mkdir-p bindir)
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"))
635 #t))))))
636 (inputs
637 `(("perl" ,perl)))
638 ;; git and openssh are propagated because trying to patch the source via
639 ;; regexp matching is too brittle and prone to false positives.
640 (propagated-inputs
641 `(("git" ,git)
642 ("openssh" ,openssh)))
643 (home-page "http://gitolite.com")
644 (synopsis "Git access control layer")
645 (description
646 "Gitolite is an access control layer on top of Git, providing fine access
647 control to Git repositories.")
648 (license license:gpl2)))
649
650 (define-public mercurial
651 (package
652 (name "mercurial")
653 (version "3.9")
654 (source (origin
655 (method url-fetch)
656 (uri (string-append "https://www.mercurial-scm.org/"
657 "release/mercurial-" version ".tar.gz"))
658 (sha256
659 (base32
660 "1g6svg7fc1kyaxq653iwsvdh8hp2lrhs2ywazfc436a4zzf2akw3"))))
661 (build-system python-build-system)
662 (arguments
663 `(;; Restrict to Python 2, as Python 3 would require
664 ;; the argument --c2to3.
665 #:python ,python-2
666 ;; FIXME: Disabled tests because they require the nose unit
667 ;; testing framework: https://nose.readthedocs.org/en/latest/ .
668 #:tests? #f))
669 (home-page "https://www.mercurial-scm.org/")
670 (synopsis "Decentralized version control system")
671 (description
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+)))
676
677 (define-public neon
678 (package
679 (name "neon")
680 (version "0.30.1")
681 (source (origin
682 (method url-fetch)
683 (uri (string-append "http://www.webdav.org/neon/neon-"
684 version ".tar.gz"))
685 (sha256
686 (base32
687 "1pawhk02x728xn396a1kcivy9gqm94srmgad6ymr9l0qvk02dih0"))))
688 (build-system gnu-build-system)
689 (native-inputs
690 `(("perl" ,perl)
691 ("pkg-config" ,pkg-config)))
692 (inputs
693 `(("libxml2" ,libxml2)
694 ("openssl" ,openssl)
695 ("zlib" ,zlib)))
696 (arguments
697 `(;; FIXME: Add tests once reverse address lookup is fixed in glibc, see
698 ;; https://sourceware.org/bugzilla/show_bug.cgi?id=16475
699 #:tests? #f
700 #:configure-flags '("--enable-shared"
701 ;; requires libgnutils-config, deprecated
702 ;; in gnutls 2.8.
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,
710 DELETE, etc.);
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+
724
725 (define-public subversion
726 (package
727 (name "subversion")
728 (version "1.8.17")
729 (source (origin
730 (method url-fetch)
731 (uri (string-append "https://archive.apache.org/dist/subversion/"
732 "subversion-" version ".tar.bz2"))
733 (sha256
734 (base32
735 "1450fkj1jmxyphqn6cd95z1ykwsabajm9jw4i412qpwss8w9a4fy"))))
736 (build-system gnu-build-system)
737 (arguments
738 '(#:phases
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")))
750 #t)))
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"))
759
760 ;; Set the right installation prefix.
761 (with-directory-excursion
762 "subversion/bindings/swig/perl/native"
763 (and (zero?
764 (system* "perl" "Makefile.PL"
765 (string-append "PREFIX=" out)))
766 (zero?
767 (system* "make" "install"
768 (string-append "OTHERLDFLAGS="
769 "-Wl,-rpath="
770 out "/lib"))))))))))))
771 (native-inputs
772 `(("pkg-config" ,pkg-config)
773 ;; For the Perl bindings.
774 ("swig" ,swig)))
775 (inputs
776 `(("apr" ,apr)
777 ("apr-util" ,apr-util)
778 ("serf" ,serf)
779 ("perl" ,perl)
780 ("python" ,python-2) ; incompatible with Python 3 (print syntax)
781 ("sqlite" ,sqlite)
782 ("zlib" ,zlib)))
783 (home-page "https://subversion.apache.org/")
784 (synopsis "Revision control system")
785 (description
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)))
792
793 (define-public rcs
794 (package
795 (name "rcs")
796 (version "5.9.4")
797 (source (origin
798 (method url-fetch)
799 (uri (string-append "mirror://gnu/rcs/rcs-"
800 version ".tar.xz"))
801 (sha256
802 (base32
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")
808 (description
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
813 machine.")
814 (license license:gpl3+)))
815
816 (define-public cvs
817 (package
818 (name "cvs")
819 (version "1.12.13")
820 (source (origin
821 (method url-fetch)
822 (uri (string-append
823 "http://ftp.gnu.org/non-gnu/cvs/source/feature/"
824 version "/cvs-" version ".tar.bz2"))
825 (sha256
826 (base32
827 "0pjir8cwn0087mxszzbsi1gyfc6373vif96cw4q3m1x6p49kd1bq"))))
828 (build-system gnu-build-system)
829 (arguments
830 ;; XXX: The test suite looks flawed, and the package is obsolete anyway.
831 '(#:tests? #f
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")
837 (description
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+)))
843
844 (define-public cvs-fast-export
845 (package
846 (name "cvs-fast-export")
847 (version "1.33")
848 (source (origin
849 (method url-fetch)
850 (uri (string-append "http://www.catb.org/~esr/"
851 name "/" name "-" version ".tar.gz"))
852 (sha256
853 (base32
854 "1c3s4nacbwlaaccx1fr7hf72kxxrzy49y2rdz5hhqbk8r29vm8w1"))))
855 (build-system gnu-build-system)
856 (arguments
857 `(#:phases (modify-phases %standard-phases (delete 'configure))
858 #:make-flags
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)
864 ("xmllint" ,libxml2)
865 ("xsltproc" ,libxslt)
866 ;; These are needed for the tests.
867 ("cvs" ,cvs)
868 ("python" ,python-2)
869 ("rcs" ,rcs)))
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.
876
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+)))
882
883 (define-public vc-dwim
884 (package
885 (name "vc-dwim")
886 (version "1.8")
887 (source (origin
888 (method url-fetch)
889 (uri (string-append "mirror://gnu/vc-dwim/vc-dwim-"
890 version ".tar.xz"))
891 (sha256
892 (base32
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")
900 (description
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+)))
908
909 (define-public diffstat
910 (package
911 (name "diffstat")
912 (version "1.58")
913 (source (origin
914 (method url-fetch)
915 (uri (string-append
916 "ftp://invisible-island.net/diffstat/diffstat-"
917 version ".tgz"))
918 (sha256
919 (base32
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'")
924 (description
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"))))
929
930 (define-public cssc
931 (package
932 (name "cssc")
933 (version "1.4.0")
934 (source (origin
935 (method url-fetch)
936 (uri (string-append "mirror://gnu/" name "/CSSC-"
937 version ".tar.gz"))
938 (sha256
939 (base32
940 "15191dh8hr46cvssmv4v52gymiiyk6ca9j1bfimlqakcqab6y51h"))))
941 (build-system gnu-build-system)
942 (arguments
943 `(#:phases
944 (modify-phases %standard-phases
945 (add-before 'check 'precheck
946 (lambda _
947 (begin
948 (substitute* "tests/common/test-common"
949 (("/bin/pwd") (which "pwd")))
950
951 (substitute* "tests/prt/all-512.sh"
952 (("/bin/sh") (which "sh")))
953
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)
962 ("cvs" ,cvs)))
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+)))
969
970 ;; This package can unfortunately work only in -TEST mode, since Aegis
971 ;; requires that it is installed setuid root.
972 (define-public aegis
973 (package
974 (name "aegis")
975 (version "4.24")
976 (source (origin
977 (method url-fetch)
978 (uri (string-append "mirror://sourceforge/aegis/aegis/" version
979 "/aegis-" version ".tar.gz"))
980 (sha256
981 (base32
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)
989 (inputs
990 `(("e2fsprogs" ,e2fsprogs)
991 ("curl" ,curl)
992 ("file" ,file)
993 ("libxml2" ,libxml2)
994 ("zlib" ,zlib)
995 ("gettext" ,gettext-minimal)))
996 (native-inputs
997 `(("bison" ,bison)
998 ("groff" ,groff)
999 ("perl" ,perl)
1000 ;; Various tests require the following:
1001 ("cvs" ,cvs)
1002 ("flex" ,flex)
1003 ("cook" ,cook)
1004 ("subversion" ,subversion)
1005 ("rcs" ,rcs)
1006 ("ed" ,ed)))
1007 (arguments
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.
1011 #:phases
1012 (modify-phases %standard-phases
1013 (add-before 'configure 'pre-conf
1014 (lambda _
1015 (substitute* (append '("configure"
1016 "etc/check-tar-gz.sh"
1017 "etc/patches.sh"
1018 "etc/test.sh"
1019 "script/aexver.in"
1020 "script/aebisect.in"
1021 "script/aeintegratq.in"
1022 "script/tkaegis.in"
1023 "script/test_funcs.in"
1024 "web/eg_oss_templ.sh"
1025 "web/webiface.html"
1026 "libaegis/getpw_cache.cc")
1027 (find-files "test" "\\.sh"))
1028 (("/bin/sh") (which "sh")))
1029 (setenv "SH" (which "sh"))))
1030 (replace 'check
1031 (lambda _
1032 (let ((home (string-append (getcwd) "/my-new-home")))
1033 ;; Some tests need to write to $HOME.
1034 (mkdir home)
1035 (setenv "HOME" home)
1036
1037 ;; This test assumes that flex has been symlinked to "lex".
1038 (substitute* "test/00/t0011a.sh"
1039 (("type lex") "type flex"))
1040
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+)))
1053
1054 (define-public reposurgeon
1055 (package
1056 (name "reposurgeon")
1057 (version "3.37")
1058 (source (origin
1059 (method url-fetch)
1060 (uri (string-append "http://www.catb.org/~esr/" name "/"
1061 name "-" version ".tar.xz"))
1062 (sha256
1063 (base32
1064 "14asjg4xy3mhh5z0r3k7c1wv9y803j2zfq32g5q5m95sf7yzygan"))))
1065 (build-system gnu-build-system)
1066 (arguments
1067 `(#:tests? #f ;no test suite distributed
1068 #:make-flags
1069 (list (string-append "target=" (assoc-ref %outputs "out")))
1070 #:phases
1071 (modify-phases %standard-phases
1072 (delete 'configure)
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")))
1079 #t))
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")))))))
1085 (inputs
1086 `(("python" ,python-wrapper)))
1087 (native-inputs
1088 `(("asciidoc" ,asciidoc)
1089 ("docbook-xml" ,docbook-xml-4.1.2)
1090 ("docbook-xsl" ,docbook-xsl)
1091 ("libxml2" ,libxml2)
1092 ("xmlto" ,xmlto)))
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
1103 ;; under bsd-3.
1104 (license (list license:bsd-2 license:bsd-3))))
1105
1106 (define-public tig
1107 (package
1108 (name "tig")
1109 (version "2.2")
1110 (source (origin
1111 (method url-fetch)
1112 (uri (string-append
1113 "http://jonas.nitro.dk/tig/releases/tig-"
1114 version ".tar.gz"))
1115 (sha256
1116 (base32
1117 "0k3m894vfkgkj7xbr0j6ph91351dl6id5f0hk2ksjp5lmg9i6llg"))))
1118 (build-system gnu-build-system)
1119 (native-inputs
1120 `(("asciidoc" ,asciidoc)
1121 ("xmlto" ,xmlto)))
1122 (inputs
1123 `(("ncurses" ,ncurses)
1124 ("readline" ,readline)))
1125 (arguments
1126 `(#:phases
1127 (modify-phases %standard-phases
1128 (add-after 'install 'install-doc
1129 (lambda _
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")
1135 (description
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+)))
1140
1141 (define-public findnewest
1142 (package
1143 (name "findnewest")
1144 (version "0.3")
1145 (source (origin
1146 (method url-fetch)
1147 (uri (string-append
1148 "https://github.com/0-wiz-0/findnewest/archive/findnewest-"
1149 version ".tar.gz"))
1150 (sha256
1151 (base32
1152 "1ydis4y0amkgfr4y60sn076f1l41ya2kn89kfd9fqf44f9ccgb5r"))))
1153 (build-system gnu-build-system)
1154 (arguments
1155 '(#:phases (modify-phases %standard-phases
1156 (add-before 'configure 'bootstrap
1157 (lambda _
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")
1163 (description
1164 "Recursively find the newest file in a file tree and print its
1165 modification time.")
1166 (license license:bsd-2)))
1167
1168 (define-public myrepos
1169 (package
1170 (name "myrepos")
1171 (version "1.20160123")
1172 (source
1173 (origin
1174 (method url-fetch)
1175 (uri (string-append
1176 "https://github.com/joeyh/myrepos/archive/"
1177 version ".tar.gz"))
1178 (file-name (string-append name "-" version ".tar.gz"))
1179 (sha256
1180 (base32 "1723cg5haplz2w9dwdzp6ds1ip33cx3awmj4wnb0h4yq171v5lqk"))))
1181 (build-system gnu-build-system)
1182 (inputs
1183 `(("perl" ,perl)))
1184 (arguments
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")
1190 (description
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+)))
1196
1197 (define-public git-annex-remote-hubic
1198 (package
1199 (name "git-annex-remote-hubic")
1200 (version "0.3.1")
1201 (source (origin
1202 (method url-fetch)
1203 (uri (string-append
1204 "https://github.com/Schnouki/" name "/archive/v"
1205 version ".tar.gz"))
1206 (file-name (string-append name "-" version ".tar.gz"))
1207 (sha256
1208 (base32
1209 "196g3jkaybjx11nbr51n0cjps3wjzb145ab76y717diqvvxp5v4r"))))
1210 (build-system python-build-system)
1211 (arguments `(#:python ,python-2))
1212 (native-inputs
1213 `(;; for the tests
1214 ("python2-six" ,python2-six)))
1215 (propagated-inputs
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")
1222 (description
1223 "This package allows you to use your hubic account as a \"special
1224 repository\" with git-annex.")
1225 (license license:gpl3+)))
1226
1227 (define-public fossil
1228 (package
1229 (name "fossil")
1230 (version "1.35")
1231 (source
1232 (origin
1233 (method url-fetch)
1234 (uri (string-append
1235 "https://www.fossil-scm.org/index.html/uv/download/"
1236 "fossil-src-" version ".tar.gz"))
1237 (sha256
1238 (base32
1239 "07ds6rhq69bhydpm9a01mgdhxf88p9b6y5hdnhn8gjc7ba92zyf1"))))
1240 (build-system gnu-build-system)
1241 (native-inputs
1242 `(("tcl" ,tcl) ;for configuration only
1243 ("which" ,which) ;for tests only
1244 ("ed" ,ed))) ;ditto
1245 (inputs
1246 `(("openssl" ,openssl)
1247 ("zlib" ,zlib)
1248 ("sqlite" ,sqlite)))
1249 (arguments
1250 `(#:configure-flags (list "--with-openssl=auto"
1251 "--disable-internal-sqlite")
1252 #:test-target "test"
1253 #:phases (modify-phases %standard-phases
1254 (replace 'configure
1255 (lambda* (#:key outputs (configure-flags '())
1256 #:allow-other-keys)
1257 ;; The 'configure' script is not an autoconf script and
1258 ;; chokes on unrecognized options.
1259 (zero? (apply system*
1260 "./configure"
1261 (string-append "--prefix="
1262 (assoc-ref outputs "out"))
1263 configure-flags))))
1264 (add-before 'check 'test-setup
1265 (lambda _
1266 (setenv "USER" "guix")
1267 (setenv "TZ" "UTC")
1268 ;; Fixing the th1 test would require many backports, so
1269 ;; just disable for now.
1270 (delete-file "test/th1.test")
1271 #t)))))
1272 (home-page "https://fossil-scm.org")
1273 (synopsis "Software configuration management system")
1274 (description
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
1279 license:bsd-2))))
1280
1281 (define-public stagit
1282 (package
1283 (name "stagit")
1284 (version "0.5")
1285 (source (origin
1286 (method url-fetch)
1287 (uri (string-append "http://dl.2f30.org/releases/"
1288 name "-" version ".tar.gz"))
1289 (sha256
1290 (base32
1291 "0ym1dwzn2z23hcg53qh1m1g5pfibrfnnlp3sm3z1v4mhz0pgaj56"))))
1292 (build-system gnu-build-system)
1293 (arguments
1294 `(#:tests? #f ; No tests
1295 #:make-flags (list "CC=gcc"
1296 (string-append "PREFIX=" %output))
1297 #:phases
1298 (modify-phases %standard-phases
1299 (delete 'configure)))) ; No configure script
1300 (inputs
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)))