From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 0473C58973 for ; Wed, 27 Jan 2016 23:16:38 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 90DC121C026; Wed, 27 Jan 2016 23:16:37 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 2338521C026 for ; Wed, 27 Jan 2016 23:16:37 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id B620F340A98 for ; Wed, 27 Jan 2016 23:16:35 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id BB575E5F for ; Wed, 27 Jan 2016 23:16:32 +0000 (UTC) From: "David Seifert" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "David Seifert" Message-ID: <1453936584.3f0f37a8631c9ed6b863bbfe3ac13d57eafb145b.soap@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: media-sound/moc/, media-sound/moc/files/ X-VCS-Repository: repo/gentoo X-VCS-Files: media-sound/moc/files/moc-2.6_alpha1-fix-ncurses-underlinking.patch media-sound/moc/moc-2.6_alpha1-r1.ebuild X-VCS-Directories: media-sound/moc/ media-sound/moc/files/ X-VCS-Committer: soap X-VCS-Committer-Name: David Seifert X-VCS-Revision: 3f0f37a8631c9ed6b863bbfe3ac13d57eafb145b X-VCS-Branch: master Date: Wed, 27 Jan 2016 23:16:32 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 9712f182-2fcb-4f1f-99ae-d2ff1297b64f X-Archives-Hash: 6baab599d8048b455c697ecdcec09675 commit: 3f0f37a8631c9ed6b863bbfe3ac13d57eafb145b Author: David Seifert gentoo org> AuthorDate: Wed Jan 27 23:15:44 2016 +0000 Commit: David Seifert gentoo org> CommitDate: Wed Jan 27 23:16:24 2016 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3f0f37a8 media-sound/moc: Use pkgconfig to detect sys-libs/ncurses flags Gentoo-Bug: 521860 * EAPI=6 * Remove .la files unconditionally Package-Manager: portage-2.2.27 .../moc-2.6_alpha1-fix-ncurses-underlinking.patch | 180 +++++++++++++++++++++ media-sound/moc/moc-2.6_alpha1-r1.ebuild | 90 +++++++++++ 2 files changed, 270 insertions(+) diff --git a/media-sound/moc/files/moc-2.6_alpha1-fix-ncurses-underlinking.patch b/media-sound/moc/files/moc-2.6_alpha1-fix-ncurses-underlinking.patch new file mode 100644 index 0000000..a5715ba --- /dev/null +++ b/media-sound/moc/files/moc-2.6_alpha1-fix-ncurses-underlinking.patch @@ -0,0 +1,180 @@ +Fix missing ncurses underlinking issue caused by broken detection mechanisms. +https://bugs.gentoo.org/show_bug.cgi?id=521860 + +--- moc-2.6-alpha1/configure.ac ++++ moc-2.6-alpha1/configure.ac +@@ -340,17 +340,13 @@ + [Define if we have __attribute__ extension])]) + + dnl ncurses +-MP_WITH_CURSES +-if test -z "$CURSES_LIB" +-then +- AC_MSG_ERROR([You need curses/ncurses library and header files.]) +-else +- AC_CHECK_LIB([$CURSES_LIB], [set_escdelay], +- AC_DEFINE([HAVE_SET_ESCDELAY], 1, [Define if you have set_escdelay.]), +- [AC_CHECK_FUNC([setenv], , +- AC_MSG_ERROR([Required function setenv not found.]))]) +- EXTRA_LIBS="$EXTRA_LIBS -l$CURSES_LIB" +-fi ++AC_ARG_WITH([ncursesw], ++ AS_HELP_STRING([--without-ncursesw], [Don't use ncursesw (UTF-8 support)])) ++AS_IF([test "x$with_ncursesw" != "xno"], ++ [PKG_CHECK_MODULES([CURSES],[ncursesw]) ++ AC_DEFINE([HAVE_NCURSESW], [1], [Define if you have ncursesw])], ++ [PKG_CHECK_MODULES([CURSES],[ncurses]) ++ AC_DEFINE([HAVE_CURSES], [1], [Define if you have curses])]) + + dnl popt + AC_CHECK_LIB([popt], [poptGetContext], [true], [POPT_MISSING="yes"]) +--- moc-2.6-alpha1/interface_elements.c ++++ moc-2.6-alpha1/interface_elements.c +@@ -37,11 +37,10 @@ + # define _XOPEN_SOURCE_EXTENDED /* for wget_wch() */ + #endif + +-#ifdef HAVE_NCURSESW_H ++#ifdef HAVE_NCURSESW + # include +-#elif HAVE_NCURSES_H + # include +-#elif HAVE_CURSES_H ++#elif HAVE_CURSES + # include + #endif + +--- moc-2.6-alpha1/interface_elements.h ++++ moc-2.6-alpha1/interface_elements.h +@@ -1,11 +1,10 @@ + #ifndef INTERFACE_ELEMENTS_H + #define INTERFACE_ELEMENTS_H + +-#ifdef HAVE_NCURSESW_H ++#ifdef HAVE_NCURSESW + # include +-#elif HAVE_NCURSES_H + # include +-#elif HAVE_CURSES_H ++#elif HAVE_CURSES + # include + #endif + +--- moc-2.6-alpha1/keys.c ++++ moc-2.6-alpha1/keys.c +@@ -17,11 +17,10 @@ + #include + #include + +-#ifdef HAVE_NCURSESW_H ++#ifdef HAVE_NCURSESW + # include +-#elif HAVE_NCURSES_H + # include +-#elif HAVE_CURSES_H ++#elif HAVE_CURSES + # include + #endif + +--- moc-2.6-alpha1/Makefile.am ++++ moc-2.6-alpha1/Makefile.am +@@ -2,6 +2,7 @@ + SUBDIRS = themes decoder_plugins + AM_CPPFLAGS = -DSYSTEM_THEMES_DIR=\"$(pkgdatadir)/themes\" \ + -DPLUGIN_DIR=\"$(plugindir)/$(DECODER_PLUGIN_DIR)\" ++AM_CFLAGS = @CURSES_CFLAGS@ + + bin_PROGRAMS = mocp + mocp_SOURCES = log.c \ +@@ -81,7 +82,7 @@ + jack.c \ + jack.h + man_MANS = mocp.1 +-mocp_LDADD = @EXTRA_OBJS@ -lltdl ++mocp_LDADD = @EXTRA_OBJS@ -lltdl @CURSES_LIBS@ + mocp_DEPENDENCIES = @EXTRA_OBJS@ + mocp_LDFLAGS = @EXTRA_LIBS@ $(RCC_LIBS) -export-dynamic + EXTRA_DIST = README_equalizer mocp.1 THANKS keymap.example Doxyfile \ +--- moc-2.6-alpha1/menu.c ++++ moc-2.6-alpha1/menu.c +@@ -17,11 +17,10 @@ + #include + #include + +-#ifdef HAVE_NCURSESW_H ++#ifdef HAVE_NCURSESW + # include +-#elif HAVE_NCURSES_H + # include +-#elif HAVE_CURSES_H ++#elif HAVE_CURSES + # include + #endif + +--- moc-2.6-alpha1/menu.h ++++ moc-2.6-alpha1/menu.h +@@ -1,11 +1,10 @@ + #ifndef MENU_H + #define MENU_H + +-#ifdef HAVE_NCURSESW_H ++#ifdef HAVE_NCURSESW + # include +-#elif HAVE_NCURSES_H + # include +-#elif HAVE_CURSES_H ++#elif HAVE_CURSES + # include + #endif + +--- moc-2.6-alpha1/themes.c ++++ moc-2.6-alpha1/themes.c +@@ -13,11 +13,10 @@ + # include "config.h" + #endif + +-#ifdef HAVE_NCURSESW_H ++#ifdef HAVE_NCURSESW + # include +-#elif HAVE_NCURSES_H + # include +-#elif HAVE_CURSES_H ++#elif HAVE_CURSES + # include + #endif + +--- moc-2.6-alpha1/utf8.c ++++ moc-2.6-alpha1/utf8.c +@@ -30,13 +30,13 @@ + # include + #endif + +-#ifdef HAVE_NCURSESW_H ++#ifdef HAVE_NCURSESW + # include +-#elif HAVE_NCURSES_H + # include +-#else ++#elif HAVE_CURSES + # include + #endif ++ + #include + #include + #include +--- moc-2.6-alpha1/utf8.h ++++ moc-2.6-alpha1/utf8.h +@@ -1,11 +1,10 @@ + #ifndef UTF8_H + #define UTF8_H + +-#ifdef HAVE_NCURSESW_H ++#ifdef HAVE_NCURSESW + # include +-#elif HAVE_NCURSES_H + # include +-#else ++#elif HAVE_CURSES + # include + #endif + diff --git a/media-sound/moc/moc-2.6_alpha1-r1.ebuild b/media-sound/moc/moc-2.6_alpha1-r1.ebuild new file mode 100644 index 0000000..a5b24cd --- /dev/null +++ b/media-sound/moc/moc-2.6_alpha1-r1.ebuild @@ -0,0 +1,90 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=6 + +inherit autotools eutils versionator + +MY_PV="$(replace_version_separator 2 -)" +DESCRIPTION="Music On Console - ncurses interface for playing audio files" +HOMEPAGE="http://moc.daper.net" +SRC_URI="http://ftp.daper.net/pub/soft/moc/unstable/${PN}-${MY_PV}.tar.xz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~ppc ~ppc64 ~sparc ~x86" +IUSE="aac alsa +cache curl debug ffmpeg flac jack libsamplerate mad +magic modplug musepack + oss sid sndfile speex timidity tremor +unicode vorbis wavpack" + +RDEPEND=">=dev-libs/libltdl-2:0 + sys-libs/ncurses:0=[unicode?] + aac? ( media-libs/faad2 ) + alsa? ( media-libs/alsa-lib ) + cache? ( >=sys-libs/db-4:* ) + curl? ( net-misc/curl ) + ffmpeg? ( virtual/ffmpeg ) + flac? ( media-libs/flac ) + jack? ( media-sound/jack-audio-connection-kit ) + libsamplerate? ( media-libs/libsamplerate ) + mad? ( media-libs/libmad sys-libs/zlib media-libs/libid3tag ) + magic? ( sys-apps/file ) + modplug? ( media-libs/libmodplug ) + musepack? ( media-sound/musepack-tools media-libs/taglib ) + sid? ( >=media-libs/libsidplay-2 ) + sndfile? ( media-libs/libsndfile ) + speex? ( media-libs/speex ) + timidity? ( media-libs/libtimidity media-sound/timidity++ ) + vorbis? ( + media-libs/libogg + tremor? ( media-libs/tremor ) + !tremor? ( media-libs/libvorbis ) + ) + wavpack? ( media-sound/wavpack )" +DEPEND="${RDEPEND} + app-arch/xz-utils + virtual/pkgconfig" +PATCHES=( + "${FILESDIR}/${P}-fix-ncurses-underlinking.patch" +) +S="${WORKDIR}/${PN}-${MY_PV}" + +src_prepare() { + mv configure.{in,ac} || die + default + eautoreconf +} + +src_configure() { + local myconf=( + --without-rcc + $(use_enable debug) + $(use_enable cache) + $(use_with oss) + $(use_with alsa) + $(use_with jack) + $(use_with magic) + $(use_with unicode ncursesw) + $(use_with libsamplerate samplerate) + $(use_with aac) + $(use_with ffmpeg) + $(use_with flac) + $(use_with modplug) + $(use_with mad mp3) + $(use_with musepack) + $(use_with sid sidplay2) + $(use_with sndfile) + $(use_with speex) + $(use_with timidity) + $(use_with vorbis vorbis $(usex tremor tremor "")) + $(use_with wavpack) + $(use_with curl) + ) + + econf "${myconf[@]}" +} + +src_install() { + default + prune_libtool_files --all +}