From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:54239) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fA5O9-0002fI-CE for guix-patches@gnu.org; Sat, 21 Apr 2018 23:10:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fA5O6-0004aD-6a for guix-patches@gnu.org; Sat, 21 Apr 2018 23:10:05 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:55642) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fA5O6-0004a9-3T for guix-patches@gnu.org; Sat, 21 Apr 2018 23:10:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1fA5O5-0003pn-Tx for guix-patches@gnu.org; Sat, 21 Apr 2018 23:10:01 -0400 Subject: [bug#31234] [PATCH] gnu: Add src. Resent-Message-ID: Received: from eggs.gnu.org ([2001:4830:134:3::10]:54004) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fA5Nl-0002Wb-LL for guix-patches@gnu.org; Sat, 21 Apr 2018 23:09:42 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fA5Ni-0004M7-FK for guix-patches@gnu.org; Sat, 21 Apr 2018 23:09:41 -0400 Received: from rezeros.cc ([2001:19f0:7001:2f3e:5400:ff:fe84:e55d]:43444) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fA5Ni-0004Kc-1e for guix-patches@gnu.org; Sat, 21 Apr 2018 23:09:38 -0400 From: =?UTF-8?Q?=E5=AE=8B=E6=96=87=E6=AD=A6?= Date: Sun, 22 Apr 2018 11:09:29 +0800 Message-Id: <20180422030929.13301-1-iyzsong@member.fsf.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: 31234@debbugs.gnu.org Cc: =?UTF-8?Q?=E5=AE=8B=E6=96=87=E6=AD=A6?= * gnu/packages/version-control.scm (src): New variable. --- gnu/packages/version-control.scm | 50 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) diff --git a/gnu/packages/version-control.scm b/gnu/packages/version-control.scm index 71ede4f54..b82abaf9e 100644 --- a/gnu/packages/version-control.scm +++ b/gnu/packages/version-control.scm @@ -18,6 +18,7 @@ ;;; Copyright © 2017, 2018 Marius Bakke ;;; Copyright © 2017 Stefan Reichör ;;; Copyright © 2017 Oleg Pykhalov +;;; Copyright © 2018 Sou Bunnbu ;;; ;;; This file is part of GNU Guix. ;;; @@ -1912,3 +1913,52 @@ repository is the centre, directories are branches and files are leaves. Contributors to the source code appear and disappear as they contribute to specific files and directories.") (license license:gpl3+))) + +(define-public src + (package + (name "src") + (version "1.18") + (source (origin + (method url-fetch) + (uri (string-append + "http://www.catb.org/~esr/src/src-" version ".tar.gz")) + (sha256 + (base32 + "0n0skhvya8w2az45h2gsafxy8m2mvqas64nrgxifcmrzfv0rf26c")))) + (build-system gnu-build-system) + (arguments + '(#:make-flags + (list (string-append "prefix=" (assoc-ref %outputs "out"))) + #:phases + (modify-phases %standard-phases + (delete 'configure) ; no 'configure' script + (add-after 'install 'wrap-program + (lambda* (#:key inputs outputs #:allow-other-keys) + (let* ((out (assoc-ref outputs "out")) + (prog (string-append out "/bin/src")) + (rcs (assoc-ref inputs "rcs"))) + (wrap-program prog + `("PATH" ":" prefix (,(string-append rcs "/bin")))) + #t))) + (replace 'check + (lambda _ + (setenv "HOME" (getenv "TMPDIR")) + (invoke "git" "config" "--global" "user.name" "guix") + (invoke "git" "config" "--global" "user.email" "guix") + (invoke "./srctest")))))) + (native-inputs + ;; For testing. + `(("git" ,git) + ("perl" ,perl))) + (inputs + `(("python" ,python-wrapper) + ("rcs" ,rcs))) + (synopsis "Simple revision control") + (home-page "http://www.catb.org/~esr/src/") + (description + "SRC (or src) is simple revision control, a version-control system for +single-file projects by solo developers and authors. It modernizes the +venerable RCS, hence the anagrammatic acronym. The design is tuned for use +cases like all those little scripts in your @file{~/bin} directory, or a +directory full of HOWTOs.") + (license license:bsd-2))) -- 2.13.3