UPDATE: scmpc
Hi, Are there any mpd and last.fm users who could test the following scmpc diff please? This version is a completely rewrite, so I'd appreciate some testing (esp. on sparc). -- Cheers, Jasper Capable, generous men do not create victims, they nurture them. Index: Makefile === RCS file: /cvs/ports/audio/scmpc/Makefile,v retrieving revision 1.15 diff -p -u -r1.15 Makefile --- Makefile15 Nov 2010 00:22:48 - 1.15 +++ Makefile25 Apr 2011 17:28:14 - @@ -2,39 +2,37 @@ COMMENT= client for MPD to submit tracks to Last.fm CATEGORIES=audio -DISTNAME= scmpc-0.2.2 -REVISION= 8 +DISTNAME= scmpc-0.3.0 HOMEPAGE= http://scmpc.berlios.de/ -# GPL +# GPLv2 PERMIT_PACKAGE_CDROM= Yes PERMIT_PACKAGE_FTP=Yes PERMIT_DISTFILES_CDROM=Yes PERMIT_DISTFILES_FTP= Yes -WANTLIB= c pthread argtable2=1 confuse daemon=2 curl=5 +WANTLIB += c confuse curl glib-2.0 MASTER_SITES= ${MASTER_SITE_BERLIOS:=scmpc/} EXTRACT_SUFX= .tar.bz2 -MODULES= gcc3 -MODGCC3_ARCHES=sparc -MODGCC3_LANGS= c +# XXX: Still needed? +#MODULES= gcc3 +#MODGCC3_ARCHES= sparc +#MODGCC3_LANGS=c MODULES+= devel/gettext CONFIGURE_STYLE= gnu -CONFIGURE_ENV+=LDFLAGS=-L${LOCALBASE}/lib \ - CPPFLAGS=-I${LOCALBASE}/include \ - CFLAGS=-I${LOCALBASE}/include -USE_GROFF =Yes -LIB_DEPENDS= devel/argtable \ +LIB_DEPENDS= devel/glib2 \ devel/libconfuse \ - devel/libdaemon \ net/curl -USE_GMAKE= Yes +post-install: + ${INSTALL_DATA_DIR} ${PREFIX}/share/examples/scmpc/ + ${INSTALL_DATA} ${WRKSRC}/scmpc.conf.example \ + ${PREFIX}/share/examples/scmpc/ .include bsd.port.mk Index: distinfo === RCS file: /cvs/ports/audio/scmpc/distinfo,v retrieving revision 1.2 diff -p -u -r1.2 distinfo --- distinfo5 Apr 2007 15:37:44 - 1.2 +++ distinfo25 Apr 2011 17:28:14 - @@ -1,5 +1,5 @@ -MD5 (scmpc-0.2.2.tar.bz2) = 9CSC5NvzmN+So21WELQD5Q== -RMD160 (scmpc-0.2.2.tar.bz2) = taq2ty//GRDI4kX6gB7XiL2Y7s4= -SHA1 (scmpc-0.2.2.tar.bz2) = QQXvMvVDxLq8IL8VacoAQmxxKP4= -SHA256 (scmpc-0.2.2.tar.bz2) = ONWZKr0LTuVfnH5A6XnFbpDGhSFum2H8hnXi3ezlYt4= -SIZE (scmpc-0.2.2.tar.bz2) = 72561 +MD5 (scmpc-0.3.0.tar.bz2) = AHh/WYP5J+Dx4WTVwAeidw== +RMD160 (scmpc-0.3.0.tar.bz2) = 9uy6X7WD4uR61rE5TOuV3KLrXj0= +SHA1 (scmpc-0.3.0.tar.bz2) = Nl2SSGae0jVfNAqhgVR7050fiDs= +SHA256 (scmpc-0.3.0.tar.bz2) = 3YWcqMOAavYJ3N+vdNjdkkVzDIoj+Tnmtir1no2Khb8= +SIZE (scmpc-0.3.0.tar.bz2) = 84496 Index: patches/patch-Makefile_in === RCS file: patches/patch-Makefile_in diff -N patches/patch-Makefile_in --- patches/patch-Makefile_in 31 May 2009 20:47:08 - 1.3 +++ /dev/null 1 Jan 1970 00:00:00 - @@ -1,12 +0,0 @@ -$OpenBSD: patch-Makefile_in,v 1.3 2009/05/31 20:47:08 jasper Exp $ Makefile.in.orig Sun Dec 3 05:59:18 2006 -+++ Makefile.inFri Jun 22 00:06:00 2007 -@@ -17,7 +17,7 @@ LIBS := @LIBS@ @libcurl_LIBS@ @confuse_LIBS@ @libdaemo - LIBOBJS := @LIBOBJS@ - - # This is probably broken if gcc isn't being used... --BUILD_CFLAGS := -Wall -Wextra -pedantic -Wno-unused-parameter -std=c99 $(CFLAGS) -+BUILD_CFLAGS := -Wall -pedantic -Wno-unused-parameter $(CFLAGS) - - INSTALL := @INSTALL@ - Index: patches/patch-examples-scmpc_in === RCS file: patches/patch-examples-scmpc_in diff -N patches/patch-examples-scmpc_in --- patches/patch-examples-scmpc_in 31 May 2009 20:47:08 - 1.2 +++ /dev/null 1 Jan 1970 00:00:00 - @@ -1,12 +0,0 @@ -$OpenBSD: patch-examples-scmpc_in,v 1.2 2009/05/31 20:47:08 jasper Exp $ examples/scmpc.conf.in.origFri Dec 8 16:38:28 2006 -+++ examples/scmpc.conf.in Fri Dec 8 16:38:40 2006 -@@ -31,7 +31,7 @@ - # cache_file - # - # The file in which scmpc will store the unsubmitted songs cache. --#cache_file = /var/lib/scmpc/scmpc.cache -+#cache_file = /var/scmpc/scmpc.cache - - # queue_length - # Index: patches/patch-man-scmpc_man === RCS file: patches/patch-man-scmpc_man diff -N patches/patch-man-scmpc_man --- patches/patch-man-scmpc_man 31 May 2009 20:47:08 - 1.3 +++ /dev/null 1 Jan 1970 00:00:00 - @@ -1,12 +0,0 @@ -$OpenBSD: patch-man-scmpc_man,v 1.3 2009/05/31 20:47:08 jasper Exp $ man/scmpc.man.orig Sat Dec 2 13:59:18 2006 -+++ man/scmpc.man Sun May 31 14:36:29 2009 -@@ -152,7 +152,7 @@ Your plaintext Audioscrobbler password. - Configuration files - .RE - .PP
Re: UPDATE: scmpc
Hi Still says every file is not tagged properly, same as the old version did after mpd was updated (even files it was previously happy with). Am I doing something silly? On Mon, Apr 25, 2011 at 07:28:44PM +0200, Jasper Lievisse Adriaanse wrote: Hi, Are there any mpd and last.fm users who could test the following scmpc diff please? This version is a completely rewrite, so I'd appreciate some testing (esp. on sparc). -- Cheers, Jasper Capable, generous men do not create victims, they nurture them. Index: Makefile === RCS file: /cvs/ports/audio/scmpc/Makefile,v retrieving revision 1.15 diff -p -u -r1.15 Makefile --- Makefile 15 Nov 2010 00:22:48 - 1.15 +++ Makefile 25 Apr 2011 17:28:14 - @@ -2,39 +2,37 @@ COMMENT= client for MPD to submit tracks to Last.fm CATEGORIES= audio -DISTNAME=scmpc-0.2.2 -REVISION=8 +DISTNAME=scmpc-0.3.0 HOMEPAGE=http://scmpc.berlios.de/ -# GPL +# GPLv2 PERMIT_PACKAGE_CDROM=Yes PERMIT_PACKAGE_FTP= Yes PERMIT_DISTFILES_CDROM= Yes PERMIT_DISTFILES_FTP=Yes -WANTLIB= c pthread argtable2=1 confuse daemon=2 curl=5 +WANTLIB += c confuse curl glib-2.0 MASTER_SITES=${MASTER_SITE_BERLIOS:=scmpc/} EXTRACT_SUFX=.tar.bz2 -MODULES= gcc3 -MODGCC3_ARCHES= sparc -MODGCC3_LANGS= c +# XXX: Still needed? +#MODULES=gcc3 +#MODGCC3_ARCHES= sparc +#MODGCC3_LANGS= c MODULES+=devel/gettext CONFIGURE_STYLE= gnu -CONFIGURE_ENV+= LDFLAGS=-L${LOCALBASE}/lib \ - CPPFLAGS=-I${LOCALBASE}/include \ - CFLAGS=-I${LOCALBASE}/include -USE_GROFF = Yes -LIB_DEPENDS= devel/argtable \ +LIB_DEPENDS= devel/glib2 \ devel/libconfuse \ - devel/libdaemon \ net/curl -USE_GMAKE= Yes +post-install: + ${INSTALL_DATA_DIR} ${PREFIX}/share/examples/scmpc/ + ${INSTALL_DATA} ${WRKSRC}/scmpc.conf.example \ + ${PREFIX}/share/examples/scmpc/ .include bsd.port.mk Index: distinfo === RCS file: /cvs/ports/audio/scmpc/distinfo,v retrieving revision 1.2 diff -p -u -r1.2 distinfo --- distinfo 5 Apr 2007 15:37:44 - 1.2 +++ distinfo 25 Apr 2011 17:28:14 - @@ -1,5 +1,5 @@ -MD5 (scmpc-0.2.2.tar.bz2) = 9CSC5NvzmN+So21WELQD5Q== -RMD160 (scmpc-0.2.2.tar.bz2) = taq2ty//GRDI4kX6gB7XiL2Y7s4= -SHA1 (scmpc-0.2.2.tar.bz2) = QQXvMvVDxLq8IL8VacoAQmxxKP4= -SHA256 (scmpc-0.2.2.tar.bz2) = ONWZKr0LTuVfnH5A6XnFbpDGhSFum2H8hnXi3ezlYt4= -SIZE (scmpc-0.2.2.tar.bz2) = 72561 +MD5 (scmpc-0.3.0.tar.bz2) = AHh/WYP5J+Dx4WTVwAeidw== +RMD160 (scmpc-0.3.0.tar.bz2) = 9uy6X7WD4uR61rE5TOuV3KLrXj0= +SHA1 (scmpc-0.3.0.tar.bz2) = Nl2SSGae0jVfNAqhgVR7050fiDs= +SHA256 (scmpc-0.3.0.tar.bz2) = 3YWcqMOAavYJ3N+vdNjdkkVzDIoj+Tnmtir1no2Khb8= +SIZE (scmpc-0.3.0.tar.bz2) = 84496 Index: patches/patch-Makefile_in === RCS file: patches/patch-Makefile_in diff -N patches/patch-Makefile_in --- patches/patch-Makefile_in 31 May 2009 20:47:08 - 1.3 +++ /dev/null 1 Jan 1970 00:00:00 - @@ -1,12 +0,0 @@ -$OpenBSD: patch-Makefile_in,v 1.3 2009/05/31 20:47:08 jasper Exp $ Makefile.in.orig Sun Dec 3 05:59:18 2006 -+++ Makefile.in Fri Jun 22 00:06:00 2007 -@@ -17,7 +17,7 @@ LIBS := @LIBS@ @libcurl_LIBS@ @confuse_LIBS@ @libdaemo - LIBOBJS := @LIBOBJS@ - - # This is probably broken if gcc isn't being used... --BUILD_CFLAGS := -Wall -Wextra -pedantic -Wno-unused-parameter -std=c99 $(CFLAGS) -+BUILD_CFLAGS := -Wall -pedantic -Wno-unused-parameter $(CFLAGS) - - INSTALL := @INSTALL@ - Index: patches/patch-examples-scmpc_in === RCS file: patches/patch-examples-scmpc_in diff -N patches/patch-examples-scmpc_in --- patches/patch-examples-scmpc_in 31 May 2009 20:47:08 - 1.2 +++ /dev/null 1 Jan 1970 00:00:00 - @@ -1,12 +0,0 @@ -$OpenBSD: patch-examples-scmpc_in,v 1.2 2009/05/31 20:47:08 jasper Exp $ examples/scmpc.conf.in.orig Fri Dec 8 16:38:28 2006 -+++ examples/scmpc.conf.in Fri Dec 8 16:38:40 2006 -@@ -31,7 +31,7 @@ - # cache_file - # - # The file in which scmpc will store the unsubmitted songs cache. --#cache_file = /var/lib/scmpc/scmpc.cache -+#cache_file = /var/scmpc/scmpc.cache - - # queue_length - # Index: patches/patch-man-scmpc_man === RCS file: patches/patch-man-scmpc_man diff -N patches/patch-man-scmpc_man --- patches/patch-man-scmpc_man 31 May 2009 20:47:08
Re: UPDATE: scmpc
Er sorry, I forgot I found the reason for this last time I looked. I had to set metadata_to_use none to fix the stupid sorting behaviour and that breaks scmpc. This seems to work fine without that set on amd64. On Mon, Apr 25, 2011 at 07:45:41PM +0100, Nicholas Marriott wrote: Hi Still says every file is not tagged properly, same as the old version did after mpd was updated (even files it was previously happy with). Am I doing something silly? On Mon, Apr 25, 2011 at 07:28:44PM +0200, Jasper Lievisse Adriaanse wrote: Hi, Are there any mpd and last.fm users who could test the following scmpc diff please? This version is a completely rewrite, so I'd appreciate some testing (esp. on sparc). -- Cheers, Jasper Capable, generous men do not create victims, they nurture them. Index: Makefile === RCS file: /cvs/ports/audio/scmpc/Makefile,v retrieving revision 1.15 diff -p -u -r1.15 Makefile --- Makefile15 Nov 2010 00:22:48 - 1.15 +++ Makefile25 Apr 2011 17:28:14 - @@ -2,39 +2,37 @@ COMMENT= client for MPD to submit tracks to Last.fm CATEGORIES=audio -DISTNAME= scmpc-0.2.2 -REVISION= 8 +DISTNAME= scmpc-0.3.0 HOMEPAGE= http://scmpc.berlios.de/ -# GPL +# GPLv2 PERMIT_PACKAGE_CDROM= Yes PERMIT_PACKAGE_FTP=Yes PERMIT_DISTFILES_CDROM=Yes PERMIT_DISTFILES_FTP= Yes -WANTLIB= c pthread argtable2=1 confuse daemon=2 curl=5 +WANTLIB += c confuse curl glib-2.0 MASTER_SITES= ${MASTER_SITE_BERLIOS:=scmpc/} EXTRACT_SUFX= .tar.bz2 -MODULES= gcc3 -MODGCC3_ARCHES=sparc -MODGCC3_LANGS= c +# XXX: Still needed? +#MODULES= gcc3 +#MODGCC3_ARCHES= sparc +#MODGCC3_LANGS=c MODULES+= devel/gettext CONFIGURE_STYLE= gnu -CONFIGURE_ENV+=LDFLAGS=-L${LOCALBASE}/lib \ - CPPFLAGS=-I${LOCALBASE}/include \ - CFLAGS=-I${LOCALBASE}/include -USE_GROFF =Yes -LIB_DEPENDS= devel/argtable \ +LIB_DEPENDS= devel/glib2 \ devel/libconfuse \ - devel/libdaemon \ net/curl -USE_GMAKE= Yes +post-install: + ${INSTALL_DATA_DIR} ${PREFIX}/share/examples/scmpc/ + ${INSTALL_DATA} ${WRKSRC}/scmpc.conf.example \ + ${PREFIX}/share/examples/scmpc/ .include bsd.port.mk Index: distinfo === RCS file: /cvs/ports/audio/scmpc/distinfo,v retrieving revision 1.2 diff -p -u -r1.2 distinfo --- distinfo5 Apr 2007 15:37:44 - 1.2 +++ distinfo25 Apr 2011 17:28:14 - @@ -1,5 +1,5 @@ -MD5 (scmpc-0.2.2.tar.bz2) = 9CSC5NvzmN+So21WELQD5Q== -RMD160 (scmpc-0.2.2.tar.bz2) = taq2ty//GRDI4kX6gB7XiL2Y7s4= -SHA1 (scmpc-0.2.2.tar.bz2) = QQXvMvVDxLq8IL8VacoAQmxxKP4= -SHA256 (scmpc-0.2.2.tar.bz2) = ONWZKr0LTuVfnH5A6XnFbpDGhSFum2H8hnXi3ezlYt4= -SIZE (scmpc-0.2.2.tar.bz2) = 72561 +MD5 (scmpc-0.3.0.tar.bz2) = AHh/WYP5J+Dx4WTVwAeidw== +RMD160 (scmpc-0.3.0.tar.bz2) = 9uy6X7WD4uR61rE5TOuV3KLrXj0= +SHA1 (scmpc-0.3.0.tar.bz2) = Nl2SSGae0jVfNAqhgVR7050fiDs= +SHA256 (scmpc-0.3.0.tar.bz2) = 3YWcqMOAavYJ3N+vdNjdkkVzDIoj+Tnmtir1no2Khb8= +SIZE (scmpc-0.3.0.tar.bz2) = 84496 Index: patches/patch-Makefile_in === RCS file: patches/patch-Makefile_in diff -N patches/patch-Makefile_in --- patches/patch-Makefile_in 31 May 2009 20:47:08 - 1.3 +++ /dev/null 1 Jan 1970 00:00:00 - @@ -1,12 +0,0 @@ -$OpenBSD: patch-Makefile_in,v 1.3 2009/05/31 20:47:08 jasper Exp $ Makefile.in.orig Sun Dec 3 05:59:18 2006 -+++ Makefile.inFri Jun 22 00:06:00 2007 -@@ -17,7 +17,7 @@ LIBS := @LIBS@ @libcurl_LIBS@ @confuse_LIBS@ @libdaemo - LIBOBJS := @LIBOBJS@ - - # This is probably broken if gcc isn't being used... --BUILD_CFLAGS := -Wall -Wextra -pedantic -Wno-unused-parameter -std=c99 $(CFLAGS) -+BUILD_CFLAGS := -Wall -pedantic -Wno-unused-parameter $(CFLAGS) - - INSTALL := @INSTALL@ - Index: patches/patch-examples-scmpc_in === RCS file: patches/patch-examples-scmpc_in diff -N patches/patch-examples-scmpc_in --- patches/patch-examples-scmpc_in 31 May 2009 20:47:08 - 1.2 +++ /dev/null 1 Jan 1970 00:00:00 - @@ -1,12 +0,0 @@ -$OpenBSD: patch-examples-scmpc_in,v 1.2 2009/05/31 20:47:08 jasper Exp $ examples/scmpc.conf.in.origFri Dec 8 16:38:28 2006 -+++ examples/scmpc.conf.in Fri Dec 8 16:38:40 2006 -@@ -31,7 +31,7 @@ - # cache_file -