From e8b409741baf3b9de30faa8683722375196dd1e9 Mon Sep 17 00:00:00 2001 From: Fis Trivial Date: Sat, 13 Jan 2018 16:59:01 -0800 Subject: gnu: Add rct. * gnu/packages/cpp.scm (rct): New variable. --- gnu/packages/cpp.scm | 41 ++++++++++++++++++++++++++++++++++++++++- 1 file changed, 40 insertions(+), 1 deletion(-) (limited to 'gnu/packages/cpp.scm') diff --git a/gnu/packages/cpp.scm b/gnu/packages/cpp.scm index 4fd499f5f3..8691531070 100644 --- a/gnu/packages/cpp.scm +++ b/gnu/packages/cpp.scm @@ -1,6 +1,7 @@ ;;; GNU Guix --- Functional package management for GNU ;;; Copyright © 2017 Ethan R. Jones ;;; Copyright © 2018 Tobias Geerinckx-Rice +;;; Copyright © 2018 Fis Trivial ;;; ;;; This file is part of GNU Guix. ;;; @@ -21,9 +22,15 @@ #:use-module ((guix licenses) #:prefix license:) #:use-module (guix packages) #:use-module (guix download) + #:use-module (guix git-download) + #:use-module (guix build-system cmake) #:use-module (guix build-system gnu) #:use-module (gnu packages) - #:use-module (gnu packages autotools)) + #:use-module (gnu packages autotools) + #:use-module (gnu packages check) + #:use-module (gnu packages compression) + #:use-module (gnu packages pkg-config) + #:use-module (gnu packages tls)) (define-public libzen (package @@ -58,3 +65,35 @@ strings, configuration, bit streams, threading, translation, and cross-platform operating system functions.") (license license:zlib))) + +(define-public rct + (let* ((commit "b3e6f41d9844ef64420e628e0c65ed98278a843a") + (revision "1") + (version (git-version "0.0.0" revision commit))) + (package + (name "rct") + (version version) + (home-page "https://github.com/Andersbakken/rct") + (source (origin + (method git-fetch) + (uri (git-reference + (url home-page) + (commit commit))) + (sha256 + (base32 + "1m2931jacka27ghnpgf1z1plkkr64z0pga4r4zdrfpp2d7xnrdvb")) + (file-name (git-file-name name version)))) + (build-system cmake-build-system) + (arguments + '(#:configure-flags + '("-DWITH_TESTS=ON"))) ; To run the test suite + (native-inputs + `(("cppunit" ,cppunit) + ("openssl" ,openssl) + ("pkg-config" ,pkg-config) + ("zlib" ,zlib))) + (synopsis "C++ library providing Qt-like APIs on top of the STL") + (description "Rct is a set of C++ tools that provide nicer (more Qt-like) + APIs on top of Standard Template Library (@dfn{STL}) classes.") + (license (list license:expat ; cJSON + license:bsd-4))))) ; everything else (LICENSE.txt) -- cgit v1.2.3 From bad12e839c2f7823c45aa0121f7d5c9bb70905b7 Mon Sep 17 00:00:00 2001 From: Leo Famulari Date: Sat, 13 Jan 2018 17:21:42 -0800 Subject: gnu: rct: Re-categorize some inputs. OpenSSL and zlib are referred to by the built package, so we make them regular inputs. This is a followup to commit e8b409741baf3b9de30faa8683722375196dd1e9. * gnu/packages/cpp.scm (rct)[native-inputs]: Move openssl and zlib to ... [inputs]: ... new field. --- gnu/packages/cpp.scm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'gnu/packages/cpp.scm') diff --git a/gnu/packages/cpp.scm b/gnu/packages/cpp.scm index 8691531070..7f711d5542 100644 --- a/gnu/packages/cpp.scm +++ b/gnu/packages/cpp.scm @@ -89,8 +89,9 @@ operating system functions.") '("-DWITH_TESTS=ON"))) ; To run the test suite (native-inputs `(("cppunit" ,cppunit) - ("openssl" ,openssl) - ("pkg-config" ,pkg-config) + ("pkg-config" ,pkg-config))) + (inputs + `(("openssl" ,openssl) ("zlib" ,zlib))) (synopsis "C++ library providing Qt-like APIs on top of the STL") (description "Rct is a set of C++ tools that provide nicer (more Qt-like) -- cgit v1.2.3