From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alex Sassmannshausen Subject: [PATCH] gnu: Add guile-dsv. Date: Fri, 24 Nov 2017 12:22:01 +0100 Message-ID: <20171124112201.30377-1-alex@pompo.co> Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:53678) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eIC47-0007si-Ou for guix-devel@gnu.org; Fri, 24 Nov 2017 06:22:40 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eIC43-0004Vy-Ba for guix-devel@gnu.org; Fri, 24 Nov 2017 06:22:39 -0500 Received: from mail-wm0-x236.google.com ([2a00:1450:400c:c09::236]:45673) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eIC43-0004V2-4d for guix-devel@gnu.org; Fri, 24 Nov 2017 06:22:35 -0500 Received: by mail-wm0-x236.google.com with SMTP id 9so21767136wme.4 for ; Fri, 24 Nov 2017 03:22:35 -0800 (PST) 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 Cc: Alex Sassmannshausen * gnu/packages/guile.scm (guile-dsv): New variable. --- gnu/packages/guile.scm | 51 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) diff --git a/gnu/packages/guile.scm b/gnu/packages/guile.scm index abcefd32e..b94ffa754 100644 --- a/gnu/packages/guile.scm +++ b/gnu/packages/guile.scm @@ -1492,6 +1492,57 @@ It currently supports MySQL, Postgres and SQLite3.") SQL databases. This package implements the interface for SQLite.") (license license:gpl2+))) +(define-public guile-dsv + (package + (name "guile-dsv") + (version "0.2.0") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/artyom-poptsov/guile-dsv") + (commit "7d2e06a15e1d8478cd0e8fb4c79aec519dc4cfd0"))) + (file-name (string-append name "-" version "-checkout")) + (sha256 + (base32 + "0ywb0hdbs4lcjag8b3id43fpyn5s6gscg7dk0n9ryigyvch80wxj")))) + (build-system gnu-build-system) + (native-inputs + `(("autoconf" ,autoconf) + ("automake" ,automake) + ("pkg-config" ,pkg-config) + ("texinfo" ,texinfo))) + (inputs `(("guile" ,guile-2.2))) + (propagated-inputs `(("guile-lib" ,guile2.2-lib))) + (arguments + '(#:phases (modify-phases %standard-phases + (add-before 'configure 'set-guilesitedir + (lambda _ + (substitute* "Makefile.in" + (("^guilesitedir =.*$") + "guilesitedir = \ +$(datadir)/guile/site/$(GUILE_EFFECTIVE_VERSION)\n")) + (substitute* "modules/Makefile.in" + (("^guilesitedir =.*$") + "guilesitedir = \ +$(datadir)/guile/site/$(GUILE_EFFECTIVE_VERSION)\n")) + (substitute* "modules/dsv/Makefile.in" + (("^guilesitedir =.*$") + "guilesitedir = \ +$(datadir)/guile/site/$(GUILE_EFFECTIVE_VERSION)\n")) + #t)) + (add-after 'unpack 'autoreconf + (lambda _ + (zero? (system* "autoreconf" "-vfi"))))))) + (home-page "https://github.com/artyom-poptsov/guile-dsv") + (synopsis "DSV module for Guile") + (description + "Guile-DSV is a GNU Guile module for working with the +delimiter-separated values (DSV) data format. + +Guile-DSV supports the Unix-style DSV format and RFC 4180 format. +") + (license license:gpl3))) + (define-public guile-xosd (package (name "guile-xosd") -- 2.15.0