From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ben Woodcroft Subject: Re: [PATCH] Add yaggo. Date: Sun, 05 Jul 2015 21:33:50 +1000 Message-ID: <5599161E.8090304@uq.edu.au> References: <558A3377.6060301@uq.edu.au> <87vbdz3vo8.fsf@netris.org> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------030403080607080001020304" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:59069) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZBiBP-0005tb-Si for guix-devel@gnu.org; Sun, 05 Jul 2015 07:34:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZBiBM-0002YZ-A8 for guix-devel@gnu.org; Sun, 05 Jul 2015 07:34:03 -0400 Received: from mailhub2.soe.uq.edu.au ([130.102.132.209]:40380 helo=newmailhub.uq.edu.au) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZBiBL-0002Y7-MW for guix-devel@gnu.org; Sun, 05 Jul 2015 07:34:00 -0400 In-Reply-To: <87vbdz3vo8.fsf@netris.org> 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: Mark H Weaver Cc: guix-devel@gnu.org This is a multi-part message in MIME format. --------------030403080607080001020304 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit On 05/07/15 17:33, Mark H Weaver wrote: > Normally I use more whitespace, but in this case I think it's perfectly > readable. What do you think? Sure. The tab issues were caused by my using the scheme mode of emacs rather than the guile one, and shouldn't happen any more. Apparently also when you search for space in emacs it also highlights tabs... > Can you send an updated patch? Attached, but actually I have two questions: 1. should the name of this be yaggo or ruby-yaggo? 2. should ruby be a propagated input, or the bin/ script wrapped as suggested otherwise in this thread? Happy for you to push if you think the patch is OK - it does not change strategy from the original. Thanks, ben --------------030403080607080001020304 Content-Type: text/x-patch; name="0001-gnu-Add-yaggo.patch" Content-Disposition: attachment; filename="0001-gnu-Add-yaggo.patch" Content-Transfer-Encoding: quoted-printable X-MIME-Autoconverted: from 8bit to quoted-printable by newmailhub.uq.edu.au id t65BXrXH044089 >From df26cd16f04f322bdf1685072f21dc2de67796a8 Mon Sep 17 00:00:00 2001 From: Ben Woodcroft Date: Sun, 5 Jul 2015 21:13:33 +1000 Subject: [PATCH] gnu: Add yaggo. * gnu/packages/ruby.scm (yaggo): New variable. --- gnu/packages/ruby.scm | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm index af87cf5..58f8dba 100644 --- a/gnu/packages/ruby.scm +++ b/gnu/packages/ruby.scm @@ -3,6 +3,7 @@ ;;; Copyright =C2=A9 2014 Ludovic Court=C3=A8s ;;; Copyright =C2=A9 2014, 2015 Mark H Weaver ;;; Copyright =C2=A9 2014 David Thompson +;;; Copyright =C2=A9 2015 Ben Woodcroft ;;; ;;; This file is part of GNU Guix. ;;; @@ -697,3 +698,34 @@ options and parsing command line flags.") net/http library.") (home-page "https://github.com/nicksieger/multipart-post") (license license:expat))) + +(define-public yaggo + (package + (name "yaggo") + (version "1.5.4") + (source (origin + (method url-fetch) + (uri (string-append + "https://github.com/gmarcais/yaggo/archive/v" + version ".tar.gz")) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "1mxfvrim03xg80agws9zdpk00r0kjpqhw3xbli0w8wvsnsa274y3")))= ) + (build-system ruby-build-system) + (arguments + `( + ;; No rake test, and Makefile in test/ appears malformed. + ;; See https://github.com/gmarcais/yaggo/issues/3 + #:tests? #f + #:phases + (modify-phases %standard-phases + (replace 'build (lambda* _ (zero? (system* "rake" "gem"))))))) + (synopsis "Generate C++ command line parsers using getopt_long") + (description "Yaggo is a tool to generate command line parsers for C+= +. +Yaggo stands for 'Yet Another GenGetOpt' and is inspired by GNU Gengetop= t. It +reads a configuration file describing the switches and argument for a C+= + +program and it generates one header file that parses the command line us= ing +getopt_long(3).") + (home-page "https://github.com/gmarcais/yaggo") + (license license:gpl3+))) --=20 2.1.4 --------------030403080607080001020304--