From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Danckaert Subject: [PATCH] gnu: Add grantlee. Date: Thu, 01 Dec 2016 12:51:20 +0100 (CET) Message-ID: <20161201.125120.1606350361207529741.post@thomasdanckaert.be> Mime-Version: 1.0 Content-Type: Text/X-Patch; charset=us-ascii Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:60051) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cCPti-0004GC-AF for guix-devel@gnu.org; Thu, 01 Dec 2016 06:51:31 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cCPtd-0005Ah-FF for guix-devel@gnu.org; Thu, 01 Dec 2016 06:51:30 -0500 Received: from s02-out.spamexperts.axc.nl ([159.253.1.2]:48875 helo=s02.spamexperts.axc.nl) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cCPtd-0005AE-8d for guix-devel@gnu.org; Thu, 01 Dec 2016 06:51:25 -0500 Received: from vserver42.axc.nl ([159.253.0.80]) by s02.spamexperts.axc.nl with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.86) (envelope-from ) id 1cCPta-0003K5-UK for guix-devel@gnu.org; Thu, 01 Dec 2016 12:51:24 +0100 Received: from mail.axc.nl ([159.253.0.157]:33541) by vserver42.axc.nl with esmtp (Exim 4.87) (envelope-from ) id 1cCPta-0002Va-Bk for guix-devel@gnu.org; Thu, 01 Dec 2016 12:51:22 +0100 Content-Disposition: inline; filename="0001-gnu-Add-grantlee.patch" 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" To: guix-devel@gnu.org >From 2a6447853b240887810459e06e6336b1d925756f Mon Sep 17 00:00:00 2001 From: Thomas Danckaert Date: Thu, 1 Dec 2016 12:25:38 +0100 Subject: [PATCH] gnu: Add grantlee. * gnu/packages/qt.scm (grantlee): New variable. --- gnu/packages/qt.scm | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/gnu/packages/qt.scm b/gnu/packages/qt.scm index b442356..ae951aa 100644 --- a/gnu/packages/qt.scm +++ b/gnu/packages/qt.scm @@ -35,6 +35,7 @@ #:use-module (gnu packages compression) #:use-module (gnu packages cups) #:use-module (gnu packages databases) + #:use-module (gnu packages documentation) #:use-module (gnu packages fontutils) #:use-module (gnu packages flex) #:use-module (gnu packages freedesktop) @@ -59,6 +60,38 @@ #:use-module (gnu packages xorg) #:use-module (gnu packages xml)) +(define-public grantlee + (package + (name "grantlee") + (version "5.1.0") + (source + (origin + (method url-fetch) + (uri (string-append "https://github.com/steveire/grantlee/archive/v" + version ".tar.gz")) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "1lf9rkv0i0kd7fvpgg5l8jb87zw8dzcwd1liv6hji7g4wlpmfdiq")))) + (native-inputs + `(("doxygen" ,doxygen))) + (inputs + `(("qtbase" ,qtbase) + ("qtscript" ,qtscript))) + (build-system cmake-build-system) + (arguments + `(#:phases + (modify-phases %standard-phases + (replace 'check + (lambda _ + (zero? (system* "ctest" ;; exclude 2 tests which require a display + "-E" "htmlbuildertest|plainmarkupbuildertest"))))))) + (home-page "https://github.com/steveire/grantlee") + (synopsis "Libraries for text templating with Qt") + (description "Grantlee Templates can be used for theming and generation of +other text such as code. The syntax uses the syntax of the Django template +system, and the core design of Django is reused in Grantlee.") + (license license:lgpl2.0+))) + (define-public qt (package (name "qt") -- 2.7.4