Subject: [PATCH 1/1] gnu: Add rct.

From: Fis Trivial <[email-masked]>
Date: Tue, 9 Jan 2018 14:00:00 +0000

* gnu/packages/cpp.scm (rct): New public variable.
---
 gnu/packages/cpp.scm | 38 +++++++++++++++++++++++++++++++++++++-
 1 file changed, 37 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/cpp.scm b/gnu/packages/cpp.scm
index 5ad9fd33b..cd058f62a 100644
--- a/gnu/packages/cpp.scm
+++ b/gnu/packages/cpp.scm
@@ -1,5 +1,6 @@
 ;;; GNU Guix --- Functional package management for GNU
 ;;; Copyright © 2017 Ethan R. Jones <[email-masked]>
+;;; Copyright © 2018 Fis Trivial <[email-masked]>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -20,9 +21,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
@@ -57,3 +64,32 @@
 strings, configuration, bit streams, threading, translation, and cross-platform
 operating system functions.")
     (license license:zlib)))
+
+(define-public rct
+  (package
+    (name "rct")
+    (version "2017.12.09")
+    (home-page "https://github.com/Andersbakken/rct")
+    (source (origin
+              (method git-fetch)
+              (uri (git-reference
+                    (url home-page)
+                    (commit "b3e6f41d9844ef64420e628e0c65ed98278a843a")))
+              (sha256
+               (base32
+                "1m2931jacka27ghnpgf1z1plkkr64z0pga4r4zdrfpp2d7xnrdvb"))
+              (file-name (git-file-name name version))))
+    (build-system cmake-build-system)
+    (arguments
+     '(#:configure-flags
+       '("-DWITH_TESTS=ON")))
+    (native-inputs                      ; All native-inputs are for tests
+     `(("pkg-config" ,pkg-config)
+       ("cppunit" ,cppunit)
+       ("zlib" ,zlib)
+       ("openssl" ,openssl)))
+    (synopsis "C++ library providing Qt-like APIs on top of STL")
+    (description "Rct is a set of C++ tools that provide nicer (more Qt-like)
+ APIs on top of stl classes.")
+    (license (license:non-copyleft "LICENSE.txt"
+                                   "See LICENSE.txt in the distribution."))))
-- 
2.13.6