unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
* [PATCH] gnu: Add argtable.
@ 2015-03-31 14:30 Ricardo Wurmus
  2015-04-01  9:12 ` Ludovic Courtès
  0 siblings, 1 reply; 2+ messages in thread
From: Ricardo Wurmus @ 2015-03-31 14:30 UTC (permalink / raw)
  To: Guix-devel

[-- Attachment #1: Type: text/plain, Size: 244 bytes --]

Hi Guix,

attached is a patch to add argtable.  Ultimately, the "popt" module
should probably be renamed to something like "optparsers", but since
finding good names is something I'm not good at, I'll leave that to
someone else :)

~~ Ricardo


[-- Attachment #2: 0001-gnu-Add-argtable.patch --]
[-- Type: text/x-patch, Size: 2236 bytes --]

From c305bf1e75ad764b59845e440190bbbec675acb2 Mon Sep 17 00:00:00 2001
From: Ricardo Wurmus <ricardo.wurmus@mdc-berlin.de>
Date: Tue, 31 Mar 2015 16:28:51 +0200
Subject: [PATCH] gnu: Add argtable.

* gnu/packages/popt.scm (argtable): New variable.
---
 gnu/packages/popt.scm | 29 +++++++++++++++++++++++++++++
 1 file changed, 29 insertions(+)

diff --git a/gnu/packages/popt.scm b/gnu/packages/popt.scm
index 9ccca5c..6d3eafc 100644
--- a/gnu/packages/popt.scm
+++ b/gnu/packages/popt.scm
@@ -1,5 +1,6 @@
 ;;; GNU Guix --- Functional package management for GNU
 ;;; Copyright © 2013, 2014 Ludovic Courtès <ludo@gnu.org>
+;;; Copyright © 2015 Ricardo Wurmus <rekado@elephly.net>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -22,6 +23,34 @@
   #:use-module (guix build-system gnu)
   #:use-module (guix licenses))
 
+(define-public argtable
+  (package
+    (name "argtable")
+    (version "2.13")
+    (source (origin
+              (method url-fetch)
+              (uri (string-append
+                    "http://prdownloads.sourceforge.net/argtable/argtable"
+                    (string-join (string-split version #\.) "-")
+                    ".tar.gz"))
+             (sha256
+              (base32
+               "1gyxf4bh9jp5gb3l6g5qy90zzcf3vcpk0irgwbv1lc6mrskyhxwg"))))
+    (build-system gnu-build-system)
+    (home-page "http://argtable.sourceforge.net/")
+    (synopsis "Command line option parsing library")
+    (description
+     "Argtable is an ANSI C library for parsing GNU style command line
+options.  It enables a program's command line syntax to be defined in the
+source code as an array of argtable structs.  The command line is then parsed
+according to that specification and the resulting values are returned in those
+same structs where they are accessible to the main program.  Both tagged (-v,
+--verbose, --foo=bar) and untagged arguments are supported, as are multiple
+instances of each argument.  Syntax error handling is automatic and the library
+also provides the means for generating a textual description of the command
+line syntax.")
+    (license lgpl2.0+)))
+
 (define-public popt
   (package
     (name "popt")
-- 
2.1.0


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] gnu: Add argtable.
  2015-03-31 14:30 [PATCH] gnu: Add argtable Ricardo Wurmus
@ 2015-04-01  9:12 ` Ludovic Courtès
  0 siblings, 0 replies; 2+ messages in thread
From: Ludovic Courtès @ 2015-04-01  9:12 UTC (permalink / raw)
  To: Ricardo Wurmus; +Cc: Guix-devel

Ricardo Wurmus <ricardo.wurmus@mdc-berlin.de> skribis:

> attached is a patch to add argtable.  Ultimately, the "popt" module
> should probably be renamed to something like "optparsers", but since
> finding good names is something I'm not good at, I'll leave that to
> someone else :)

:-)

> From c305bf1e75ad764b59845e440190bbbec675acb2 Mon Sep 17 00:00:00 2001
> From: Ricardo Wurmus <ricardo.wurmus@mdc-berlin.de>
> Date: Tue, 31 Mar 2015 16:28:51 +0200
> Subject: [PATCH] gnu: Add argtable.
>
> * gnu/packages/popt.scm (argtable): New variable.

[...]

> +              (uri (string-append
> +                    "http://prdownloads.sourceforge.net/argtable/argtable"
> +                    (string-join (string-split version #\.) "-")

Please use mirror://.

OK to push with that change.

Thanks!

Ludo’.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-04-01  9:12 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-03-31 14:30 [PATCH] gnu: Add argtable Ricardo Wurmus
2015-04-01  9:12 ` Ludovic Courtès

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).