summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeroen Roovers <jer@gentoo.org>2015-06-15 05:22:58 +0000
committerJeroen Roovers <jer@gentoo.org>2015-06-15 05:22:58 +0000
commit59e45167bccf018cac2a360d8cb4b4e899c0f9b1 (patch)
treef364249e8509ddaa339c2b25d2e41b0facd0d555 /media-sound/ncmpc
parentVersion bump. (diff)
downloadgentoo-2-59e45167bccf018cac2a360d8cb4b4e899c0f9b1.tar.gz
gentoo-2-59e45167bccf018cac2a360d8cb4b4e899c0f9b1.tar.bz2
gentoo-2-59e45167bccf018cac2a360d8cb4b4e899c0f9b1.zip
Add missing ax_require_defined.m4.
(Portage version: 2.2.20/cvs/Linux x86_64, signed Manifest commit with key A792A613)
Diffstat (limited to 'media-sound/ncmpc')
-rw-r--r--media-sound/ncmpc/ChangeLog6
-rw-r--r--media-sound/ncmpc/files/ax_require_defined.m437
-rw-r--r--media-sound/ncmpc/ncmpc-0.24-r1.ebuild5
3 files changed, 46 insertions, 2 deletions
diff --git a/media-sound/ncmpc/ChangeLog b/media-sound/ncmpc/ChangeLog
index 3602d4113496..8c67b71c5dfd 100644
--- a/media-sound/ncmpc/ChangeLog
+++ b/media-sound/ncmpc/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for media-sound/ncmpc
# Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/media-sound/ncmpc/ChangeLog,v 1.88 2015/06/13 06:23:39 jer Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-sound/ncmpc/ChangeLog,v 1.89 2015/06/15 05:22:58 jer Exp $
+
+ 15 Jun 2015; Jeroen Roovers <jer@gentoo.org> ncmpc-0.24-r1.ebuild,
+ +files/ax_require_defined.m4:
+ Add missing ax_require_defined.m4.
*ncmpc-0.24-r1 (13 Jun 2015)
diff --git a/media-sound/ncmpc/files/ax_require_defined.m4 b/media-sound/ncmpc/files/ax_require_defined.m4
new file mode 100644
index 000000000000..cae11112d901
--- /dev/null
+++ b/media-sound/ncmpc/files/ax_require_defined.m4
@@ -0,0 +1,37 @@
+# ===========================================================================
+# http://www.gnu.org/software/autoconf-archive/ax_require_defined.html
+# ===========================================================================
+#
+# SYNOPSIS
+#
+# AX_REQUIRE_DEFINED(MACRO)
+#
+# DESCRIPTION
+#
+# AX_REQUIRE_DEFINED is a simple helper for making sure other macros have
+# been defined and thus are available for use. This avoids random issues
+# where a macro isn't expanded. Instead the configure script emits a
+# non-fatal:
+#
+# ./configure: line 1673: AX_CFLAGS_WARN_ALL: command not found
+#
+# It's like AC_REQUIRE except it doesn't expand the required macro.
+#
+# Here's an example:
+#
+# AX_REQUIRE_DEFINED([AX_CHECK_LINK_FLAG])
+#
+# LICENSE
+#
+# Copyright (c) 2014 Mike Frysinger <vapier@gentoo.org>
+#
+# Copying and distribution of this file, with or without modification, are
+# permitted in any medium without royalty provided the copyright notice
+# and this notice are preserved. This file is offered as-is, without any
+# warranty.
+
+#serial 1
+
+AC_DEFUN([AX_REQUIRE_DEFINED], [dnl
+ m4_ifndef([$1], [m4_fatal([macro ]$1[ is not defined; is a m4 file missing?])])
+])dnl AX_REQUIRE_DEFINED
diff --git a/media-sound/ncmpc/ncmpc-0.24-r1.ebuild b/media-sound/ncmpc/ncmpc-0.24-r1.ebuild
index 2fd65da57da2..17bd901b8e0d 100644
--- a/media-sound/ncmpc/ncmpc-0.24-r1.ebuild
+++ b/media-sound/ncmpc/ncmpc-0.24-r1.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/media-sound/ncmpc/ncmpc-0.24-r1.ebuild,v 1.1 2015/06/13 06:23:39 jer Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-sound/ncmpc/ncmpc-0.24-r1.ebuild,v 1.2 2015/06/15 05:22:58 jer Exp $
EAPI=5
inherit autotools eutils multilib
@@ -27,6 +27,9 @@ DOCS=( AUTHORS NEWS README doc/config.sample doc/keys.sample )
src_prepare() {
epatch "${FILESDIR}"/${PN}-0.24-tinfo.patch
+
+ cp "${FILESDIR}"/ax_require_defined.m4 m4/ || die
+
eautoreconf
}