Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 9 Oct 2024 19:43:41 GMT
From:      Daniel Engberg <diizzy@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: b5867f9d57b7 - main - audio/ncmpc: Update to 0.5.1
Message-ID:  <202410091943.499JhfmO088194@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by diizzy:

URL: https://cgit.FreeBSD.org/ports/commit/?id=b5867f9d57b7c1501bc64c20d4040cce1b361a0c

commit b5867f9d57b7c1501bc64c20d4040cce1b361a0c
Author:     Daniel Engberg <diizzy@FreeBSD.org>
AuthorDate: 2024-10-09 19:40:41 +0000
Commit:     Daniel Engberg <diizzy@FreeBSD.org>
CommitDate: 2024-10-09 19:43:26 +0000

    audio/ncmpc: Update to 0.5.1
    
    Changelog: https://github.com/MusicPlayerDaemon/ncmpc/blob/v0.51/NEWS
    
    PR:             281696
    Approved by:    portmgr (maintainer timeout, 2+ weeks)
---
 audio/ncmpc/Makefile                       | 34 +++++++++++++++---------------
 audio/ncmpc/distinfo                       |  6 +++---
 audio/ncmpc/files/patch-src_LyricsPage.cxx | 11 ++++++++++
 audio/ncmpc/files/patch-src_plugin.cxx     | 12 +++++------
 audio/ncmpc/pkg-plist                      |  7 +++---
 5 files changed, 41 insertions(+), 29 deletions(-)

diff --git a/audio/ncmpc/Makefile b/audio/ncmpc/Makefile
index d89eecc7f7a3..89c3a1e7bb95 100644
--- a/audio/ncmpc/Makefile
+++ b/audio/ncmpc/Makefile
@@ -1,6 +1,5 @@
 PORTNAME=	ncmpc
-PORTVERSION=	0.48
-PORTREVISION=	1
+DISTVERSION=	0.51
 CATEGORIES=	audio
 MASTER_SITES=	https://www.musicpd.org/download/ncmpc/0/
 
@@ -11,15 +10,24 @@ WWW=		https://www.musicpd.org/clients/ncmpc/
 LICENSE=	GPLv2+
 LICENSE_FILE=	${WRKSRC}/COPYING
 
-LIB_DEPENDS=	libmpdclient.so:audio/libmpdclient \
+LIB_DEPENDS=	libfmt.so:devel/libfmt \
+		libmpdclient.so:audio/libmpdclient \
 		libpcre2-8.so:devel/pcre2
 
 USES=		compiler:c++17-lang cpe iconv localbase:ldflags meson ncurses \
-		pkgconfig tar:xz shebangfix
-MESON_ARGS=	-Dlirc=disabled
+		pkgconfig python:env tar:xz shebangfix
+CPE_VENDOR=	ncmpc_project
 SHEBANG_GLOB=	*.py
 
-CPE_VENDOR=	ncmpc_project
+EXTRACT_AFTER_ARGS=	--exclude ${DISTNAME}/subprojects/ \
+			--no-same-owner --no-same-permissions
+
+PORTDOCS=	*
+
+MESON_ARGS=	-Depoll=false \
+		-Deventfd=false \
+		-Dsignalfd=false \
+		-Dlirc=disabled
 
 OPTIONS_DEFINE=		COLORS DOCS LYRICS MANPAGES NLS
 OPTIONS_DEFAULT=	COLORS LYRICS MANPAGES
@@ -36,21 +44,13 @@ DOCS_MESON_TRUE=	html_manual
 LYRICS_MESON_TRUE=	lyrics_screen
 
 MANPAGES_BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}sphinx>=0,1:textproc/py-sphinx@${PY_FLAVOR}
+MANPAGES_USES=		python:build
 MANPAGES_MAKE_ENV=	PYTHON=${PYTHON_CMD} \
 			SPHINX=sphinx-build-${PYTHON_VER}
 MANPAGES_MESON_TRUE=	manual
-MANPAGES_USES=		python:build
 
+NLS_USES=		gettext
 NLS_LDFLAGS=		-lintl
 NLS_MESON_ENABLED=	nls
-NLS_USES=		gettext
-
-PORTDOCS=	*
-
-.include <bsd.port.pre.mk>
-
-.if ${COMPILER_TYPE} == clang
-CPPFLAGS+=	-Wno-error=enum-constexpr-conversion
-.endif
 
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
diff --git a/audio/ncmpc/distinfo b/audio/ncmpc/distinfo
index dbf2953a80de..0dd0328e968d 100644
--- a/audio/ncmpc/distinfo
+++ b/audio/ncmpc/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1689471482
-SHA256 (ncmpc-0.48.tar.xz) = b4b2d27e518096de2a145ef5ddf86cf46f8ba1f849bf45c6d81183a38869b90c
-SIZE (ncmpc-0.48.tar.xz) = 296320
+TIMESTAMP = 1727207542
+SHA256 (ncmpc-0.51.tar.xz) = e74be00e69bc3ed1268cafcc87274e78dfbde147f2480ab0aad8260881ec7271
+SIZE (ncmpc-0.51.tar.xz) = 312732
diff --git a/audio/ncmpc/files/patch-src_LyricsPage.cxx b/audio/ncmpc/files/patch-src_LyricsPage.cxx
new file mode 100644
index 000000000000..766bbc88d850
--- /dev/null
+++ b/audio/ncmpc/files/patch-src_LyricsPage.cxx
@@ -0,0 +1,11 @@
+--- src/LyricsPage.cxx.orig	2024-09-14 23:59:12 UTC
++++ src/LyricsPage.cxx
+@@ -28,7 +28,7 @@ using std::string_view_literals::operator""sv;
+ 
+ using std::string_view_literals::operator""sv;
+ 
+-#ifdef __APPLE__
++#ifdef __FreeBSD__
+ extern char **environ;
+ #endif
+ 
diff --git a/audio/ncmpc/files/patch-src_plugin.cxx b/audio/ncmpc/files/patch-src_plugin.cxx
index dcd45c579fcc..cad04cc92642 100644
--- a/audio/ncmpc/files/patch-src_plugin.cxx
+++ b/audio/ncmpc/files/patch-src_plugin.cxx
@@ -1,11 +1,11 @@
---- src/plugin.cxx.orig	2023-07-16 02:01:20 UTC
+--- src/plugin.cxx.orig	2024-09-15 08:35:35 UTC
 +++ src/plugin.cxx
-@@ -21,6 +21,8 @@
+@@ -22,7 +22,7 @@
  #include <sys/stat.h>
  #include <sys/wait.h>
  
-+extern char **environ;
-+
- struct PluginCycle;
+-#ifdef __APPLE__
++#ifdef __FreeBSD__
+ extern char **environ;
+ #endif
  
- class PluginPipe {
diff --git a/audio/ncmpc/pkg-plist b/audio/ncmpc/pkg-plist
index f7e55e02a440..c12935459a5e 100644
--- a/audio/ncmpc/pkg-plist
+++ b/audio/ncmpc/pkg-plist
@@ -1,11 +1,12 @@
 bin/ncmpc
 %%LYRICS%%lib/ncmpc/lyrics/20-azlyrics.py
-%%LYRICS%%lib/ncmpc/lyrics/40-tekstowo.py
-%%LYRICS%%lib/ncmpc/lyrics/51-supermusic.py
-%%LYRICS%%lib/ncmpc/lyrics/60-google.py
+%%LYRICS%%lib/ncmpc/lyrics/25-musixmatch.py
 %%LYRICS%%lib/ncmpc/lyrics/30-karaoke_texty.py
+%%LYRICS%%lib/ncmpc/lyrics/40-tekstowo.py
 %%LYRICS%%lib/ncmpc/lyrics/50-genius.py
+%%LYRICS%%lib/ncmpc/lyrics/51-supermusic.py
 %%LYRICS%%lib/ncmpc/lyrics/52-zeneszoveg.py
+%%LYRICS%%lib/ncmpc/lyrics/60-google.py
 %%MANPAGES%%share/man/man1/ncmpc.1.gz
 %%NLS%%share/locale/cs/LC_MESSAGES/ncmpc.mo
 %%NLS%%share/locale/da/LC_MESSAGES/ncmpc.mo



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202410091943.499JhfmO088194>