From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Bavier Subject: =?UTF-8?q?=5BPATCH=201/3=5D=20gnu=3A=20Add=20Catch=2E?= Date: Fri, 27 Mar 2015 16:24:38 -0500 Message-ID: <1427491480-27319-2-git-send-email-bavier@member.fsf.org> References: <1427491480-27319-1-git-send-email-bavier@member.fsf.org> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:60571) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YbbkP-000292-Ou for guix-devel@gnu.org; Fri, 27 Mar 2015 17:25:01 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YbbkL-0003Ff-OB for guix-devel@gnu.org; Fri, 27 Mar 2015 17:24:57 -0400 Received: from mail2.openmailbox.org ([62.4.1.33]:57190) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YbbkL-0003FR-In for guix-devel@gnu.org; Fri, 27 Mar 2015 17:24:53 -0400 In-Reply-To: <1427491480-27319-1-git-send-email-bavier@member.fsf.org> List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org To: guix-devel@gnu.org * gnu/packages/check.scm (catch-framework): New variable. --- gnu/packages/check.scm | 45 ++++++++++++++++++++++++++++++++++++++++++= ++- 1 file changed, 44 insertions(+), 1 deletion(-) diff --git a/gnu/packages/check.scm b/gnu/packages/check.scm index afaf557..3e686cc 100644 --- a/gnu/packages/check.scm +++ b/gnu/packages/check.scm @@ -1,6 +1,7 @@ ;;; GNU Guix --- Functional package management for GNU ;;; Copyright =C2=A9 2012 Nikita Karetnikov ;;; Copyright =C2=A9 2015 Paul van der Walt +;;; Copyright =C2=A9 2015 Eric Bavier ;;; ;;; This file is part of GNU Guix. ;;; @@ -23,7 +24,9 @@ #:use-module (guix licenses) #:use-module (guix packages) #:use-module (guix download) - #:use-module (guix build-system gnu)) + #:use-module (guix git-download) + #:use-module (guix build-system gnu) + #:use-module (guix build-system trivial)) =20 (define-public check (package @@ -99,3 +102,43 @@ with a flexible variety of user interfaces.") unit testing. Test output is in XML for automatic testing and GUI based= for supervised tests.") (license lgpl2.1))) ; no copyright notices. LGPL2.1 is in the tarbal= l + +(define-public catch-framework + (package + (name "catch") + (version "1.0.53") ;Sub-minor is the build number + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/philsquared/Catch") + ;; Semi-arbitrary. Contains mostly documentation fi= xes + ;; since build 53. + (commit "b9ec8a1"))) + (file-name (string-append name "-" version)) + (sha256 + (base32 + "05iijiwjwcjbza7qamwd32d0jypi0lpywmilmmj2xh280mcl4dbd"))= )) + (build-system trivial-build-system) + (arguments + `(#:modules ((guix build utils)) + #:builder (begin + (use-modules (guix build utils)) + (let* ((source (assoc-ref %build-inputs "source")) + (output (assoc-ref %outputs "out")) + (incdir (string-append output "/include")) + (docdir (string-append output "/share/doc/catc= h-" + ,version))) + (begin + (for-each mkdir-p (list incdir docdir)) + (copy-file (string-append source + "/single_include/catch.= hpp") + (string-append incdir + "/catch.hpp")) + (copy-recursively (string-append source "/docs") + docdir)))))) + (home-page "http://catch-lib.net/") + (synopsis "Automated test framework for C++ and Objective-C") + (description + "Catch stands for C++ Automated Test Cases in Headers and is a +multi-paradigm automated test framework for C++ and Objective-C.") + (license boost1.0))) --=20 1.7.9.5