all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Ricardo Wurmus <ricardo.wurmus@mdc-berlin.de>
To: Axel <grafov@gmail.com>
Cc: guix-devel <guix-devel@gnu.org>
Subject: Re: [PATCH] gnu: Add xcape.
Date: Mon, 16 Mar 2015 15:53:34 +0100	[thread overview]
Message-ID: <871tkpat8x.fsf@mango.localdomain> (raw)
In-Reply-To: <CAJpGxxDaEUyQoBLyB4mt_p2AwTziomGMCG=bN8wXaO310RHyXw@mail.gmail.com>


> From 0ad9b0eea2cd6151072d27f5e2505db9db083b37 Mon Sep 17 00:00:00 2001
> From: "Alexander I.Grafov (Axel)" <grafov@gmail.com>
> Date: Sun, 15 Mar 2015 20:01:03 +0300
> Subject: [PATCH] gnu: Add xcape.
> 
> * gnu/packages/xdisorg.scm (xcape): New variable.
> ---
> +
> +(define-public xcape
> +  (package
> +    (name "xcape")
> +    (version "1.1")
> +    (source
> +      (origin
> +        (method url-fetch)
> +        (uri (string-append
> +              "https://github.com/alols/"
> +              name
> +              "/archive/v"
> +              version
> +              ".tar.gz"))

As the tarball does not include the name of the package you should
probably add something like this:

    (file-name (string-append name "-" version ".tar.gz"))

> +    (arguments
> +     `(#:tests? #f ; no test target
> +       #:phases (alist-replace
> +                 'configure
> +                 (let ((out (assoc-ref %outputs "out")))
> +                   (lambda _
> +                     (substitute* "Makefile"
> +                       (("(PREFIX[[:blank:]]*=.*)")
> +                        (string-append "CC:=gcc\nPREFIX=" out "\n"))
> +                       (("(MANDIR.*=.*)")
> +                        (string-append "MANDIR=/share/man/man1\n")))))

Is this really necessary or could you just set these variables as
make-flags?

    #:make-flags (list (string-append "PREFIX=" (assoc-ref %outputs "out"))
                       "CC=gcc"
                       ...)

~~ Ricardo

  parent reply	other threads:[~2015-03-16 14:53 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-03-15 17:09 [PATCH] gnu: Add xcape Axel
2015-03-16 13:11 ` David Thompson
2015-03-16 14:53 ` Ricardo Wurmus [this message]
2015-03-16 22:19   ` Axel
2015-03-18  0:31     ` David Thompson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=871tkpat8x.fsf@mango.localdomain \
    --to=ricardo.wurmus@mdc-berlin.de \
    --cc=grafov@gmail.com \
    --cc=guix-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.