From mboxrd@z Thu Jan 1 00:00:00 1970 From: Roel Janssen Subject: [PATCH] Add libconfig. Date: Thu, 10 Dec 2015 14:54:33 +0100 Message-ID: <878u52be92.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:47754) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a71f0-0000da-Tw for guix-devel@gnu.org; Thu, 10 Dec 2015 08:53:32 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a71ew-00025Q-Mb for guix-devel@gnu.org; Thu, 10 Dec 2015 08:53:30 -0500 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:50723) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a71ew-000259-Iu for guix-devel@gnu.org; Thu, 10 Dec 2015 08:53:26 -0500 Received: from 541e9304.cm-5-7c.dynamic.ziggo.nl ([84.30.147.4]:58570 helo=roel-tp) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1a71ew-0006FZ-0O for guix-devel@gnu.org; Thu, 10 Dec 2015 08:53:26 -0500 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 --=-=-= Content-Type: text/x-patch; charset=utf-8 Content-Disposition: attachment; filename=0001-gnu-Add-libconfig.patch Content-Transfer-Encoding: 8bit >From a21ebd71a39bf5000e5809514f0e00185311795d Mon Sep 17 00:00:00 2001 From: Roel Janssen Date: Thu, 10 Dec 2015 14:45:47 +0100 Subject: [PATCH] gnu: Add libconfig. * gnu/packages/libconfig.scm: New file. * gnu-system.am (GNU_SYSTEM_MODULES): Add it. --- gnu-system.am | 1 + gnu/packages/libconfig.scm | 45 +++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 46 insertions(+) create mode 100644 gnu/packages/libconfig.scm diff --git a/gnu-system.am b/gnu-system.am index ec9f63c..7e567c9 100644 --- a/gnu-system.am +++ b/gnu-system.am @@ -177,6 +177,7 @@ GNU_SYSTEM_MODULES = \ gnu/packages/less.scm \ gnu/packages/lesstif.scm \ gnu/packages/libcanberra.scm \ + gnu/packages/libconfig.scm \ gnu/packages/libdaemon.scm \ gnu/packages/libedit.scm \ gnu/packages/libevent.scm \ diff --git a/gnu/packages/libconfig.scm b/gnu/packages/libconfig.scm new file mode 100644 index 0000000..4f59377 --- /dev/null +++ b/gnu/packages/libconfig.scm @@ -0,0 +1,45 @@ +;;; GNU Guix --- Functional package management for GNU +;;; Copyright © 2015 Roel Janssen +;;; +;;; This file is part of GNU Guix. +;;; +;;; GNU Guix is free software; you can redistribute it and/or modify it +;;; under the terms of the GNU General Public License as published by +;;; the Free Software Foundation; either version 3 of the License, or (at +;;; your option) any later version. +;;; +;;; GNU Guix is distributed in the hope that it will be useful, but +;;; WITHOUT ANY WARRANTY; without even the implied warranty of +;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +;;; GNU General Public License for more details. +;;; +;;; You should have received a copy of the GNU General Public License +;;; along with GNU Guix. If not, see . + +(define-module (gnu packages libconfig) + #:use-module ((guix licenses) #:prefix license:) + #:use-module (guix packages) + #:use-module (guix download) + #:use-module (guix build-system gnu)) + +(define-public libconfig + (package + (name "libconfig") + (version "1.5") + (source (origin + (method url-fetch) + (uri (string-append + "http://www.hyperrealm.com/libconfig/libconfig-" + version ".tar.gz")) + (sha256 + (base32 + "1xh3hzk63v4y8815lc5209m3s6ms2cpgw4h5hg462i4f1lwsl7g3")))) + (build-system gnu-build-system) + (home-page "http://www.hyperrealm.com/libconfig/") + (synopsis "C/C++ configuration file library") + (description + "Libconfig is a simple library for manipulating structured configuration +files. This file format is more compact and more readable than XML. And +unlike XML, it is type-aware, so it is not necessary to do string parsing in +application code.") + (license license:lgpl2.1))) -- 2.5.0 --=-=-= Content-Type: text/plain Dear list, This is a patch to add libconfig. It's a simple library without any special dependencies. The reason to add this, is because I'm packaging other software that depends on libconfig. I ran guix lint on it, but I still have a problem with TLS, so I'm not 100% confident running guix lint is clean. Please let me know if something is wrong with the patch. Kind regards, Roel --=-=-=--