unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Paul van der Walt <paul@denknerd.org>
To: Guix-devel <guix-devel@gnu.org>
Subject: [PATCH] Update ncmpcpp to v0.6.2
Date: Fri, 27 Feb 2015 11:13:22 +0100	[thread overview]
Message-ID: <87sidrll19.fsf@denknerd.org> (raw)

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

Hello again,

A patch to update ncmpcpp, the mpd frontend. I hope my patch makes more
sense now -- the build system is a little finicky, so perhaps there's a
neater way to accomplish what i'm doing.

Thanks,
p.

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-gnu-ncmpcpp-Update-to-0.6.2.patch --]
[-- Type: text/x-diff, Size: 2709 bytes --]

From e1382a9df3e7df94e794df8aa247920b7e28c0c6 Mon Sep 17 00:00:00 2001
From: Paul van der Walt <paul@denknerd.org>
Date: Fri, 27 Feb 2015 10:54:07 +0100
Subject: [PATCH] gnu: ncmpcpp: Update to 0.6.2.

* gnu/packages/mpd.scm (ncmpcpp): Update to 0.6.2. Add readline, boost,
  autotools. Patch build system to find boost correctly (without -mt suffix).
---
 gnu/packages/mpd.scm | 27 ++++++++++++++++++++++++---
 1 file changed, 24 insertions(+), 3 deletions(-)

diff --git a/gnu/packages/mpd.scm b/gnu/packages/mpd.scm
index a1b4272..1daf261 100644
--- a/gnu/packages/mpd.scm
+++ b/gnu/packages/mpd.scm
@@ -27,6 +27,8 @@
   #:use-module (guix utils)
   #:use-module (guix build-system gnu)
   #:use-module (gnu packages avahi)
+  #:use-module (gnu packages boost)
+  #:use-module (gnu packages readline)
   #:use-module (gnu packages compression)
   #:use-module (gnu packages curl)
   #:use-module (gnu packages doxygen)
@@ -35,6 +37,7 @@
   #:use-module (gnu packages mp3)
   #:use-module (gnu packages ncurses)
   #:use-module (gnu packages pkg-config)
+  #:use-module (gnu packages autotools)
   #:use-module (gnu packages pulseaudio)
   #:use-module (gnu packages databases)
   #:use-module (gnu packages video)
@@ -153,7 +156,7 @@ terminal using ncurses.")
 (define ncmpcpp
   (package
     (name "ncmpcpp")
-    (version "0.5.10")
+    (version "0.6.2")
     (source (origin
               (method url-fetch)
               (uri
@@ -161,11 +164,29 @@ terminal using ncurses.")
                               version ".tar.bz2"))
               (sha256
                (base32
-                "1a54g6dary1rirrny9fd0hpxpyyffypni3mpbdpvmjnrl9v56vgz"))))
+                "1mrd6m6ph0fscxp9x96ipxh6ai7w0n1miapcfqrqfy058qx5zbck"))))
     (build-system gnu-build-system)
     (inputs `(("libmpdclient" ,libmpdclient)
               ("ncurses" ,ncurses)))
-    (native-inputs `(("pkg-config" ,pkg-config)))
+    (native-inputs
+     `(("pkg-config" ,pkg-config)
+       ("readline" ,readline)
+       ("automake" ,automake)
+       ("autoconf" ,autoconf)
+       ("libtool" ,libtool)
+       ("boost" ,boost)))
+    (arguments
+     '(#:configure-flags
+       '("BOOST_LIB_SUFFIX=")
+       #:phases
+       (alist-cons-after
+        'unpack 'autogen
+        (lambda _
+          (substitute* "autogen.sh"
+            (("/bin/sh") (which "bash")))
+          (setenv "NOCONFIGURE" "true")
+          (zero? (system* "bash" "autogen.sh")))
+        %standard-phases)))
     (synopsis "Featureful ncurses based MPD client inspired by ncmpc")
     (description "Ncmpcpp is an mpd client with a UI very similar to ncmpc,
 but it provides new useful features such as support for regular expressions
-- 
2.3.1


             reply	other threads:[~2015-02-27 10:13 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-02-27 10:13 Paul van der Walt [this message]
2015-02-27 12:50 ` [PATCH] Update ncmpcpp to v0.6.2 David Thompson
2015-02-27 16:13   ` Mark H Weaver
2015-02-27 16:18     ` David Thompson
2015-02-27 16:27     ` Paul van der Walt
2015-02-27 17:13       ` David Thompson
2015-02-27 18:21       ` Mark H Weaver
2015-02-27 18:53         ` Paul van der Walt

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

  List information: https://guix.gnu.org/

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

  git send-email \
    --in-reply-to=87sidrll19.fsf@denknerd.org \
    --to=paul@denknerd.org \
    --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 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).