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 Ludovic Courtès <ludo@gnu.org>
5 ;;; Copyright © 2013, 2014 Andreas Enge <andreas@enge.fr>
6 ;;; Copyright © 2014, 2015 Mark H Weaver <mhw@netris.org>
7 ;;; Copyright © 2014 Eric Bavier <bavier@member.fsf.org>
9 ;;; This file is part of GNU Guix.
11 ;;; GNU Guix is free software; you can redistribute it and/or modify it
12 ;;; under the terms of the GNU General Public License as published by
13 ;;; the Free Software Foundation; either version 3 of the License, or (at
14 ;;; your option) any later version.
16 ;;; GNU Guix is distributed in the hope that it will be useful, but
17 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
18 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 ;;; GNU General Public License for more details.
21 ;;; You should have received a copy of the GNU General Public License
22 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
24 (define-module (gnu packages version-control)
25 #:use-module ((guix licenses)
26 #:select (asl2.0 bsd-2
27 gpl1+ gpl2 gpl2+ gpl3+ lgpl2.1
29 #:use-module (guix packages)
30 #:use-module (guix download)
31 #:use-module (guix git-download)
32 #:use-module (guix build-system gnu)
33 #:use-module (guix build-system python)
34 #:use-module (guix build-system trivial)
35 #:use-module (guix build utils)
36 #:use-module (gnu packages apr)
37 #:use-module (gnu packages base)
38 #:use-module (gnu packages bison)
39 #:use-module (gnu packages cook)
40 #:use-module (gnu packages curl)
41 #:use-module (gnu packages ed)
42 #:use-module (gnu packages file)
43 #:use-module (gnu packages flex)
44 #:use-module (gnu packages gettext)
45 #:use-module (gnu packages groff)
46 #:use-module (gnu packages linux)
47 #:use-module (gnu packages nano)
48 #:use-module (gnu packages ncurses)
49 #:use-module (gnu packages ssh)
50 #:use-module (gnu packages web)
51 #:use-module (gnu packages perl)
52 #:use-module (gnu packages pkg-config)
53 #:use-module (gnu packages python)
54 #:use-module (gnu packages databases)
55 #:use-module (gnu packages admin)
56 #:use-module (gnu packages xml)
57 #:use-module (gnu packages emacs)
58 #:use-module (gnu packages compression)
59 #:use-module (gnu packages swig)
60 #:use-module (gnu packages tcl)
61 #:use-module (gnu packages tls)
62 #:use-module (gnu packages)
63 #:use-module (ice-9 match)
64 #:use-module (srfi srfi-1))
73 (uri (string-append "https://launchpad.net/bzr/2.6/" version
74 "/+download/bzr-" version ".tar.gz"))
77 "1c6sj77h5f97qimjc14kr532kgc0jk3wq778xrkqi0pbh9qpk509"))))
78 (build-system python-build-system)
80 ;; Note: 'tools/packaging/lp-upload-release' and 'tools/weavemerge.sh'
82 `(("gettext" ,gnu-gettext)))
84 `(#:tests? #f ; no test target
85 #:python ,python-2 ; Python 3 apparently not yet supported, see
86 ; https://answers.launchpad.net/bzr/+question/229048
87 #:phases (alist-cons-after
90 (substitute* "setup.py"
91 (("man/man1") "share/man/man1")))
93 (home-page "https://gnu.org/software/bazaar")
94 (synopsis "Version control system supporting both distributed and centralized workflows")
96 "GNU Bazaar is a version control system that allows you to record
97 changes to project files over time. It supports both a distributed workflow
98 as well as the classic centralized workflow.")
102 ;; Keep in sync with 'git-manpages'!
108 (uri (string-append "mirror://kernel.org/software/scm/git/git-"
112 "0p747j94kynrx71qaamc9i0dkq5vqpv66a47b68pmin1qsxb2nfc"))))
113 (build-system gnu-build-system)
115 `(("native-perl" ,perl)
116 ("gettext" ,gnu-gettext)))
122 ("python" ,python-2) ; CAVEAT: incompatible with python-3 according to INSTALL
126 ("subversion" ,subversion)
128 ;; For 'git-send-email'
129 ("perl-authen-sasl" ,perl-authen-sasl)
130 ("perl-net-smtp-ssl" ,perl-net-smtp-ssl)
131 ("perl-io-socket-ssl" ,perl-io-socket-ssl)
133 ;; For 'git gui', 'gitk', and 'git citool'.
136 (outputs '("out" ; the core
137 "send-email" ; for git-send-email
139 "gui")) ; gitk, git gui
141 `(#:make-flags `("V=1") ; more verbose compilation
143 #:tests? #f ; FIXME: Many tests are failing
145 ;; The explicit --with-tcltk forces the build system to hardcode the
146 ;; absolute file name to 'wish'.
147 #:configure-flags (list (string-append "--with-tcltk="
148 (assoc-ref %build-inputs "tk")
149 "/bin/wish8.6")) ; XXX
151 #:modules ((srfi srfi-1)
152 ,@%gnu-build-system-modules)
155 'configure 'patch-makefile-shebangs
157 (substitute* "Makefile"
158 (("/bin/sh") (which "sh"))
159 (("/usr/bin/perl") (which "perl"))
160 (("/usr/bin/python") (which "python"))))
162 'install 'install-shell-completion
163 (lambda* (#:key outputs #:allow-other-keys)
164 (let* ((out (assoc-ref outputs "out"))
165 (completions (string-append out "/etc/bash_completion.d")))
166 ;; TODO: Install the tcsh and zsh completions in the right place.
167 (mkdir-p completions)
168 (copy-file "contrib/completion/git-completion.bash"
169 (string-append completions "/git"))
173 (lambda* (#:key inputs outputs #:allow-other-keys)
174 ;; Split the binaries to the various outputs.
175 (let* ((out (assoc-ref outputs "out"))
176 (se (assoc-ref outputs "send-email"))
177 (svn (assoc-ref outputs "svn"))
178 (gui (assoc-ref outputs "gui"))
179 (gitk (string-append out "/bin/gitk"))
180 (gitk* (string-append gui "/bin/gitk"))
181 (git-gui (string-append out "/libexec/git-core/git-gui"))
182 (git-gui* (string-append gui "/libexec/git-core/git-gui"))
183 (git-cit (string-append out "/libexec/git-core/git-citool"))
184 (git-cit* (string-append gui "/libexec/git-core/git-citool"))
185 (git-se (string-append out "/libexec/git-core/git-send-email"))
186 (git-se* (string-append se "/libexec/git-core/git-send-email"))
187 (git-svn (string-append out "/libexec/git-core/git-svn"))
188 (git-svn* (string-append svn "/libexec/git-core/git-svn"))
189 (git-sm (string-append out
190 "/libexec/git-core/git-submodule")))
191 (mkdir-p (string-append gui "/bin"))
192 (mkdir-p (string-append gui "/libexec/git-core"))
193 (mkdir-p (string-append se "/libexec/git-core"))
194 (mkdir-p (string-append svn "/libexec/git-core"))
196 (for-each (lambda (old new)
200 (list gitk git-gui git-cit git-se git-svn)
201 (list gitk* git-gui* git-cit* git-se* git-svn*))
203 ;; Tell 'git-svn' where Subversion is.
204 (wrap-program git-svn*
206 (,(string-append (assoc-ref inputs "subversion")
208 `("PERL5LIB" ":" prefix
209 (,(string-append (assoc-ref inputs "subversion")
210 "/lib/perl5/site_perl")))
212 ;; XXX: The .so for SVN/Core.pm lacks a RUNPATH, so
213 ;; help it find 'libsvn_client-1.so'.
214 `("LD_LIBRARY_PATH" ":" prefix
215 (,(string-append (assoc-ref inputs "subversion")
218 ;; Tell 'git-send-email' where perl modules are.
219 (wrap-program git-se*
220 `("PERL5LIB" ":" prefix
221 ,(map (lambda (o) (string-append o "/lib/perl5/site_perl"))
223 ,@(transitive-input-references
229 "perl-io-socket-ssl")))))))
231 ;; Tell 'git-submodule' where Perl is.
234 (,(string-append (assoc-ref inputs "perl")
237 ;; Tell 'git' to look for core programs in the user's profile.
238 ;; This allows user to install other outputs of this package and
239 ;; have them transparently taken into account. There's a
240 ;; 'GIT_EXEC_PATH' environment variable, but it's supposed to
241 ;; specify a single directory, not a search path.
242 (wrap-program (string-append out "/bin/git")
244 ("$HOME/.guix-profile/libexec/git-core")))))
245 %standard-phases)))))
248 ;; For HTTPS access, Git needs a single-file certificate bundle, specified
249 ;; with $GIT_SSL_CAINFO.
250 ;; FIXME: This variable designates a single file; it is not a search path.
251 (list (search-path-specification
252 (variable "GIT_SSL_CAINFO")
253 (files '("etc/ssl/certs/ca-certificates.crt")))))
255 (synopsis "Distributed version control system")
257 "Git is a free distributed version control system designed to handle
258 everything from small to very large projects with speed and efficiency.")
260 (home-page "http://git-scm.com/")))
262 (define-public git-manpages
263 ;; Keep in sync with 'git'!
265 ;; Granted, we could build the man pages from the 'git' package itself,
266 ;; which contains the real source. However, it would add a dependency on a
267 ;; full XML tool chain, and building it actually takes ages. So we use this
270 (name "git-manpages")
271 (version (package-version git))
275 "mirror://kernel.org/software/scm/git/git-manpages-"
279 "1spnqxzl53ic7bv1x7c6lwscdh581scqm5zh98wfp4qn1ciafvhs"))))
280 (build-system trivial-build-system)
282 '(#:modules ((guix build utils))
285 (use-modules (guix build utils))
287 (let* ((xz (assoc-ref %build-inputs "xz"))
288 (tar (assoc-ref %build-inputs "tar"))
289 (out (assoc-ref %outputs "out"))
290 (man (string-append out "/share/man")))
291 (setenv "PATH" (string-append tar "/bin:" xz "/bin"))
294 (with-directory-excursion man
295 (zero? (system* "tar" "xvf"
296 (assoc-ref %build-inputs "source"))))))))
298 (native-inputs `(("tar" ,tar)
300 (home-page (package-home-page git))
301 (license (package-license git))
302 (synopsis "Man pages of the Git version control system")
304 "This package provides the man pages of the Git version control system.
305 This is the documentation displayed when using the '--help' option of a 'git'
308 (define-public shflags
314 (uri (string-append "https://shflags.googlecode.com/files/"
315 "shflags-" version ".tgz"))
318 "08laxhf1hifh3w4j0hri5ppcklaqz0mnkmbaz8j0wxih29vi8slm"))))
319 (build-system trivial-build-system)
320 (native-inputs `(("tar" ,tar)
323 `(#:modules ((guix build utils))
325 (use-modules (guix build utils))
326 (let* ((source (assoc-ref %build-inputs "source"))
327 (tar (assoc-ref %build-inputs "tar"))
328 (gzip (assoc-ref %build-inputs "gzip"))
329 (output (assoc-ref %outputs "out"))
330 (srcdir (string-append output "/src")))
332 (setenv "PATH" (string-append gzip "/bin"))
333 (system* (string-append tar "/bin/tar") "xzf"
335 (chdir ,(string-append name "-" version))
337 (copy-file "src/shflags"
338 (string-append srcdir "/shflags"))
340 (home-page "https://code.google.com/p/shflags/")
341 (synopsis "Command-line flags library for shell scripts")
343 "Shell Flags (shFlags) is a library written to greatly simplify the
344 handling of command-line flags in Bourne based Unix shell scripts (bash, dash,
345 ksh, sh, zsh). Most shell scripts use getopt for flags processing, but the
346 different versions of getopt on various OSes make writing portable shell
347 scripts difficult. shFlags instead provides an API that doesn't change across
348 shell and OS versions so the script writer can be confident that the script
352 (define-public git-flow
355 ;; This version has not be officially released yet, so we build it
356 ;; directly from the git repository.
357 (version "0.4.2-pre")
361 (url "https://github.com/nvie/gitflow/")
365 "01fs97q76fdfnvmrh2cyjhywcs3pykf1dg58sy0frflnsdzs6prx"))))
366 (build-system gnu-build-system)
367 (inputs `(("shflags" ,shflags)))
369 '(#:tests? #f ; no tests
370 #:make-flags (list (string-append "prefix="
371 (assoc-ref %outputs "out")))
372 #:phases (alist-cons-after
373 'unpack 'reset-shFlags-link
374 (lambda* (#:key inputs #:allow-other-keys)
375 ;; The link points to a file in the shFlags submodule.
376 ;; Redirect it to point to our system shFlags.
377 (let ((shflags (assoc-ref inputs "shflags")))
379 (delete-file "gitflow-shFlags")
380 (symlink (string-append shflags "/src/shflags")
381 "gitflow-shFlags"))))
384 (alist-delete 'build %standard-phases)))))
385 (home-page "http://nvie.com/posts/a-successful-git-branching-model/")
386 (synopsis "Git extensions for Vincent Driessen's branching model")
388 "Vincent Driessen's branching model is a git branching and release
389 management strategy that helps developers keep track of features, hotfixes,
390 and releases in bigger software projects. The git-flow library of git
391 subcommands helps automate some parts of the flow to make working with it a
395 (define-public git-test-sequence
396 (let ((commit "48e5a2f"))
398 (name "git-test-sequence")
399 (version (string-append "20140312." commit))
403 ;; There are many other scripts in this directory; we
404 ;; are interested in just one for this package.
405 (url "https://github.com/dustin/bindir")
409 "1dcq0y16yznbv4k9h8gg90kv1gkn8r8dbvl4m2rpfd7q5nqhn617"))))
410 (build-system trivial-build-system)
412 `(#:modules ((guix build utils))
414 (use-modules (guix build utils))
415 (let* ((source (assoc-ref %build-inputs "source"))
416 (output (assoc-ref %outputs "out"))
417 (bindir (string-append output "/bin"))
418 (script "git-test-sequence"))
419 (install-file (string-append source "/" script)
422 (home-page "http://dustin.sallings.org/2010/03/28/git-test-sequence.html")
423 (synopsis "Run a command over a sequence of commits")
425 "git-test-sequence is similar to an automated git bisect except it’s
426 linear. It will test every change between two points in the DAG. It will
427 also walk each side of a merge and test those changes individually.")
428 (license (x11-style "file://LICENSE")))))
430 (define-public gitolite
437 "https://github.com/sitaramc/gitolite/archive/v"
439 (file-name (string-append name "-" version ".tar.gz"))
440 ;; Commit ed807a4 upstream
442 (list (search-patch "gitolite-openssh-6.8-compat.patch")))
445 "1gsgzi9ayb4rablki3mqr11b0h8db4xg43df660marfpacmkfb01"))))
446 (build-system gnu-build-system)
448 '(#:tests? #f ; no tests
449 #:phases (modify-phases %standard-phases
452 (add-before 'install 'patch-scripts
453 (lambda* (#:key inputs #:allow-other-keys)
454 (let ((perl (string-append (assoc-ref inputs "perl")
456 ;; This seems to take care of every shell script that
458 (substitute* (find-files "." ".*")
460 (string-append " " perl " -"))))))
462 (lambda* (#:key outputs #:allow-other-keys)
463 (let* ((output (assoc-ref outputs "out"))
464 (sharedir (string-append output "/share/gitolite"))
465 (bindir (string-append output "/bin")))
468 (system* "./install" "-to" sharedir)
469 ;; Create symlinks for executable scripts in /bin.
470 (for-each (lambda (script)
471 (symlink (string-append sharedir "/" script)
472 (string-append bindir "/" script)))
473 '("gitolite" "gitolite-shell"))
477 ;; git and openssh are propagated because trying to patch the source via
478 ;; regexp matching is too brittle and prone to false positives.
481 ("openssh" ,openssh)))
482 (home-page "http://gitolite.com")
483 (synopsis "Git access control layer")
485 "Gitolite is an access control layer on top of Git, providing fine access
486 control to Git repositories.")
489 (define-public mercurial
495 (uri (string-append "https://mercurial.selenic.com/release/mercurial-"
499 "1g7nfvapxj5k44dyp0p08v37s0zmrj2vl0rjgfd8297x0afidm08"))))
500 (build-system python-build-system)
502 `(;; Restrict to Python 2, as Python 3 would require
503 ;; the argument --c2to3.
505 ;; FIXME: Disabled tests because they require the nose unit
506 ;; testing framework: https://nose.readthedocs.org/en/latest/ .
508 (home-page "http://mercurial.selenic.com")
509 (synopsis "Decentralized version control system")
511 "Mercurial is a free, distributed source control management tool.
512 It efficiently handles projects of any size
513 and offers an easy and intuitive interface.")
522 (uri (string-append "http://www.webdav.org/neon/neon-"
526 "1hlhg5w505jxdvaf7bq17057f6a48dry981g7lp2gwrhbp5wyqi9"))))
527 (build-system gnu-build-system)
530 ("pkg-config" ,pkg-config)))
532 `(("libxml2" ,libxml2)
536 `(;; FIXME: Add tests once reverse address lookup is fixed in glibc, see
537 ;; https://sourceware.org/bugzilla/show_bug.cgi?id=16475
539 #:configure-flags '("--enable-shared"
540 ;; requires libgnutils-config, deprecated
542 ; "--with-ssl=gnutls")))
543 "--with-ssl=openssl")))
544 (home-page "http://www.webdav.org/neon/")
545 (synopsis "HTTP and WebDAV client library")
546 (description "Neon is an HTTP and WebDAV client library, with a
547 C interface. Features:
548 High-level wrappers for common HTTP and WebDAV operations (GET, MOVE,
550 low-level interface to the HTTP request/response engine, allowing the use
551 of arbitrary HTTP methods, headers, etc.;
552 authentication support including Basic and Digest support, along with
553 GSSAPI-based Negotiate on Unix, and SSPI-based Negotiate/NTLM on Win32;
554 SSL/TLS support using OpenSSL or GnuTLS, exposing an abstraction layer for
555 verifying server certificates, handling client certificates, and examining
556 certificate properties, smartcard-based client certificates are also
557 supported via a PKCS#11 wrapper interface;
558 abstract interface to parsing XML using libxml2 or expat, and wrappers for
559 simplifying handling XML HTTP response bodies;
560 WebDAV metadata support, wrappers for PROPFIND and PROPPATCH to simplify
561 property manipulation.")
562 (license gpl2+))) ; for documentation and tests; source under lgpl2.0+
564 (define-public subversion
570 (uri (string-append "http://archive.apache.org/dist/subversion/"
571 "subversion-" version ".tar.bz2"))
574 "07ws4bspdgi4r5hbxvk86a15c669iqz6wkfrdph78hddzk6q6f3z"))))
575 (build-system gnu-build-system)
577 '(#:phases (alist-cons-after
578 'configure 'patch-libtool-wrapper-ls
579 (lambda* (#:key inputs #:allow-other-keys)
580 ;; This substitution allows tests svnauthz_tests and
581 ;; svnlook_tests to pass. These tests execute svnauthz and
582 ;; svnlook through their libtool wrapper scripts from svn
583 ;; hooks, whose empty environments cause "ls: command not
584 ;; found" errors. It would be nice if this fix ultimately
585 ;; made its way into libtool.
586 (let ((coreutils (assoc-ref inputs "coreutils")))
587 (substitute* "libtool"
588 (("\\\\`ls") (string-append "\\`" coreutils "/bin/ls")))))
590 'install 'install-perl-bindings
591 (lambda* (#:key outputs #:allow-other-keys)
592 ;; Follow the instructions from
593 ;; 'subversion/bindings/swig/INSTALL'.
594 (let ((out (assoc-ref outputs "out")))
595 (and (zero? (system* "make" "swig-pl-lib"))
596 ;; FIXME: Test failures.
597 ;; (zero? (system* "make" "check-swig-pl"))
598 (zero? (system* "make" "install-swig-pl-lib"))
600 ;; Set the right installation prefix.
601 (with-directory-excursion
602 "subversion/bindings/swig/perl/native"
604 (system* "perl" "Makefile.PL"
605 (string-append "PREFIX=" out)))
607 (system* "make" "install"
608 (string-append "OTHERLDFLAGS="
613 `(("pkg-config" ,pkg-config)
614 ;; For the Perl bindings.
618 ("apr-util" ,apr-util)
621 ("python" ,python-2) ; incompatible with Python 3 (print syntax)
624 (home-page "http://subversion.apache.org/")
625 (synopsis "Revision control system")
627 "Subversion exists to be universally recognized and adopted as a
628 centralized version control system characterized by its
629 reliability as a safe haven for valuable data; the simplicity of its model and
630 usage; and its ability to support the needs of a wide variety of users and
631 projects, from individuals to large-scale enterprise operations.")
640 (uri (string-append "mirror://gnu/rcs/rcs-"
644 "1zsx7bb0rgvvvisiy4zlixf56ay8wbd9qqqcp1a1g0m1gl6mlg86"))))
645 (build-system gnu-build-system)
646 (native-inputs `(("ed" ,ed)))
647 (home-page "http://www.gnu.org/software/rcs/")
648 (synopsis "Per-file local revision control system")
650 "RCS is the original Revision Control System. It works on a
651 file-by-file basis, in contrast to subsequent version control systems such as
652 CVS, Subversion, and Git. This can make it suitable for system
653 administration files, for example, which are often inherently local to one
664 "http://ftp.gnu.org/non-gnu/cvs/source/feature/"
665 version "/cvs-" version ".tar.bz2"))
668 "0pjir8cwn0087mxszzbsi1gyfc6373vif96cw4q3m1x6p49kd1bq"))))
669 (build-system gnu-build-system)
671 ;; XXX: The test suite looks flawed, and the package is obsolete anyway.
673 (inputs `(("zlib" ,zlib)
674 ("nano" ,nano))) ; the default editor
675 (home-page "http://cvs.nongnu.org")
676 (synopsis "Historical centralized version control system")
678 "CVS is a version control system, an important component of Source
679 Configuration Management (SCM). Using it, you can record the history of
680 sources files, and documents. It fills a similar role to the free software
681 RCS, PRCS, and Aegis packages.")
684 (define-public vc-dwim
690 (uri (string-append "mirror://gnu/vc-dwim/vc-dwim-"
694 "094pjwshvazlgagc254in2xvrp93vhcj0kb5ms17qs7sch99x9z2"))))
695 (build-system gnu-build-system)
696 (inputs `(("perl" ,perl)
697 ("inetutils" ,inetutils) ; for `hostname', used in the tests
698 ("emacs" ,emacs-no-x))) ; for `ctags'
699 (home-page "http://www.gnu.org/software/vc-dwim/")
700 (synopsis "Version-control-agnostic ChangeLog diff and commit tool")
702 "The vc-dwim package contains two tools, \"vc-dwim\" and \"vc-chlog\".
703 vc-dwim is a tool that simplifies the task of maintaining a ChangeLog and
704 using version control at the same time, for example by printing a reminder
705 when a file change has been described in the ChangeLog but the file has not
706 been added to the VC. vc-chlog scans changed files and generates
707 standards-compliant ChangeLog entries based on the changes that it detects.")
710 (define-public diffstat
717 "ftp://invisible-island.net/diffstat/diffstat-"
721 "14rpf5c05ff30f6vn6pn6pzy0k4g4is5im656ahsxff3k58i7mgs"))))
722 (build-system gnu-build-system)
723 (home-page "http://invisible-island.net/diffstat/")
724 (synopsis "Make histograms from the output of 'diff'")
726 "Diffstat reads the output of 'diff' and displays a histogram of the
727 insertions, deletions, and modifications per-file. It is useful for reviewing
728 large, complex patch files.")
729 (license (x11-style "file://COPYING"))))
737 (uri (string-append "mirror://gnu/" name "/CSSC-"
741 "0bkw6fjh20ppvn54smv05461lm1vcwvn02avx941c4acafmkl1cm"))
742 (patches (list (search-patch "cssc-gets-undeclared.patch")
743 (search-patch "cssc-missing-include.patch")))))
744 (build-system gnu-build-system)
746 `(#:phases (alist-cons-before
750 (substitute* "tests/common/test-common"
751 (("/bin/pwd") (which "pwd")))
753 (substitute* "tests/prt/all-512.sh"
754 (("/bin/sh") (which "sh")))
756 ;; XXX: This test has no hope of passing until there is a "nogroup"
757 ;; entry (or at least some group to which the guix builder does
758 ;; not belong) in the /etc/group file of the build environment.
759 ;; Currently we do not have such a group. Disable this test for now.
760 (substitute* "tests/Makefile"
761 (("test-delta ") ""))))
763 ;; These are needed for the tests
764 (native-inputs `(("git" ,git)
766 (home-page "http://www.gnu.org/software/cssc/")
767 (synopsis "File-based version control like SCCS")
768 (description "GNU CSSC provides a replacement for the legacy Unix source
769 code control system SCCS. This allows old code still under that system to be
770 accessed and migrated on modern systems.")
773 ;; This package can unfortunately work only in -TEST mode, since Aegis
774 ;; requires that it is installed setuid root.
781 (uri (string-append "mirror://sourceforge/aegis/aegis-"
785 "18s86ssarfmc4l17gbpzybca29m5wa37cbaimdji8czlcry3mcjl"))
786 (patches (list (search-patch "aegis-perl-tempdir1.patch")
787 (search-patch "aegis-perl-tempdir2.patch")
788 (search-patch "aegis-test-fixup-1.patch")
789 (search-patch "aegis-test-fixup-2.patch")
790 (search-patch "aegis-constness-error.patch")))))
791 (build-system gnu-build-system)
793 `(("e2fsprogs" ,e2fsprogs)
798 ("gettext" ,gnu-gettext)))
803 ;; Various tests require the following:
807 ("subversion" ,subversion)
811 `(#:configure-flags (list "--with-no-aegis-configured"
812 "--sharedstatedir=/var/com/aegis")
813 #:parallel-build? #f ; There are some nasty racy rules in the Makefile.
818 (substitute* (append '("configure"
819 "etc/check-tar-gz.sh"
824 "script/aeintegratq.in"
826 "script/test_funcs.in"
827 "web/eg_oss_templ.sh"
829 "libaegis/getpw_cache.cc")
830 (find-files "test" "\\.sh"))
831 (("/bin/sh") (which "sh")))
832 (setenv "SH" (which "sh")))
836 (let ((home (string-append (getcwd) "/my-new-home")))
837 ;; Some tests need to write to $HOME.
841 ;; This test assumes that flex has been symlinked to "lex".
842 (substitute* "test/00/t0011a.sh"
843 (("type lex") "type flex"))
845 ;; The author decided to call the check rule "sure".
846 (zero? (system* "make" "sure"))))
848 (home-page "http://aegis.sourceforge.net")
849 (synopsis "Project change supervisor")
850 (description "Aegis is a project change supervisor, and performs some of
851 the Software Configuration Management needed in a CASE environment. Aegis
852 provides a framework within which a team of developers may work on many
853 changes to a program independently, and Aegis coordinates integrating these
854 changes back into the master source of the program, with as little disruption
855 as possible. Resolution of contention for source files, a major headache for
856 any project with more than one developer, is one of Aegis's major functions.")
866 "http://jonas.nitro.dk/tig/releases/tig-"
870 "1c1w6w39a1dwx4whrg0ga1mhrlz095hz875z7ajn6xgmhkv8fqih"))))
871 (build-system gnu-build-system)
873 `(("ncurses" ,ncurses)))
875 `(#:tests? #f)) ; no tests implemented
876 (home-page "http://jonas.nitro.dk/tig/")
877 (synopsis "Ncurses-based text user interface for Git")
879 "Tig is an ncurses text user interface for Git, primarily intended as
880 a history browser. It can also stage hunks for commit, or colorize the
881 output of the 'git' command.")