From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ricardo Wurmus Subject: [PATCH 3/7] gnu: Add stb-image-for-extempore. Date: Wed, 14 Sep 2016 11:38:08 +0200 Message-ID: <20160914093812.28422-4-rekado@elephly.net> References: <20160914093812.28422-1-rekado@elephly.net> Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:54592) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bk6eE-0004ZQ-FW for guix-devel@gnu.org; Wed, 14 Sep 2016 05:38:31 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bk6eD-0003FP-Av for guix-devel@gnu.org; Wed, 14 Sep 2016 05:38:30 -0400 Received: from sender163-mail.zoho.com ([74.201.84.163]:21454) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bk6eD-0003F4-2v for guix-devel@gnu.org; Wed, 14 Sep 2016 05:38:29 -0400 In-Reply-To: <20160914093812.28422-1-rekado@elephly.net> 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 * gnu/packages/image.scm (stb-image-for-extempore): New variable. --- gnu/packages/image.scm | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/gnu/packages/image.scm b/gnu/packages/image.scm index 1b10846..e40fa9a 100644 --- a/gnu/packages/image.scm +++ b/gnu/packages/image.scm @@ -49,6 +49,7 @@ #:use-module ((guix licenses) #:prefix license:) #:use-module (guix packages) #:use-module (guix download) + #:use-module (guix git-download) #:use-module (guix build-system gnu) #:use-module (guix build-system cmake) #:use-module (srfi srfi-1)) @@ -904,3 +905,28 @@ kinds of image- and audio-files. The color- respectivly sample-frequencies are not changed thus making the embedding resistant against first-order statistical tests.") (license license:gpl2+))) + +(define-public stb-image-for-extempore + (let ((revision "1") + (commit "152a250a702bf28951bb0220d63bc0c99830c498")) + (package + (name "stb-image-for-extempore") + (version (string-append "0-" revision "." (string-take commit 9))) + (source + (origin (method git-fetch) + (uri (git-reference + (url "https://github.com/extemporelang/stb.git") + (commit commit))) + (sha256 + (base32 + "0y0aa20pj9311x2ii06zg8xs34idg14hfgldqc5ymizc6cf1qiqv")) + (file-name (string-append name "-" version "-checkout")))) + (build-system cmake-build-system) + (arguments `(#:tests? #f)) ; no tests included + (home-page "https://github.com/extemporelang/stb") + (synopsis "Image library for Extempore") + (description + "This package is a collection of assorted single-file libraries. Of +all included libraries only the image loading and decoding library is +installed as @code{stb_image}.") + (license license:public-domain)))) -- 2.10.0