Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 10 Apr 2010 09:08:15 +0900
From:      =?UTF-8?Q?Ry=C5=8DTa_SimaMoto?= <liangtai.s4@gmail.com>
To:        freebsd-bugs@FreeBSD.org
Subject:   Update port+ audio/xmms2-scrobbler
Message-ID:  <z2k58b5f5211004091708vc729e99doefab05a13390f53d@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
To: FreeBSD-gnats-submit@freebsd.org
From: SimaMoto,Ry=C5=8DTa <liangtai.s4@gmail.com>
Reply-To: SimaMoto,Ry=C5=8DTa <liangtai.s4@gmail.com>
Cc:
X-send-pr-version: 3.113
X-GNTS-Notify:


>Submitter-ID:  current-users
>Originator:    SimaMoto,Ry=C5=8DTa
>Confidential:  no
>Synopsis:              Update port: audio/xmms2-scrobbler
>Severity:              serious
>Priority:              medium
>Category:              ports
>Class:         change-request
>Release:               FreeBSD 8.0-RELEASE i386
>Environment:
System: FreeBSD takiba.net 8.0-RELEASE FreeBSD 8.0-RELEASE #0: Sat Nov
21 15:48:17 UTC 2009
root@almeida.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  i386
>Description:
        The latest version of xmms2-scrobber is 0.4.0.  On the current vers=
ion
        of this port (0.1.3), this program will stop with some error messag=
es
        when a new track starts.
        I made updating port in attached patch

        * site added
        * remove dependency on Ruby
        * add new patch on Makefile which adds library link to -lpthread fo=
r
          pthread_create(3)
        * modify personal configuration instruction at
files/pkg-message.in, because
          its rule was changed
        * add README file as PORTDOC which contains more detailed instructi=
on

>How-To-Repeat:
        Play a track by xmms2.
>Fix:

diff -ur audio.orig/xmms2-scrobbler/Makefile audio/xmms2-scrobbler/Makefile
--- audio.orig/xmms2-scrobbler/Makefile 2009-08-19 20:56:16.000000000 +0900
+++ audio/xmms2-scrobbler/Makefile      2010-04-10 01:50:29.000000000 +0900
@@ -2,39 +2,34 @@
 # Date created:                                06 Apr 2006
 # Whom:                                        Alexander Botero-Lowry
<alex@foxybanana.com>
 #
-# $FreeBSD: ports/audio/xmms2-scrobbler/Makefile,v 1.11 2009/08/19
11:56:16 miwi Exp $
+# $FreeBSD$

 PORTNAME=3D      xmms2-scrobbler
-PORTVERSION=3D   0.1.3
-PORTREVISION=3D  2
-CATEGORIES=3D    audio ruby
-MASTER_SITES=3D  http://exodus.xmms.se/~tilman/
+PORTVERSION=3D   0.4.0
+CATEGORIES=3D    audio
+MASTER_SITES=3D  ftp://ftp.code-monkey.de/pub/${PORTNAME}/ \
+       http://exodus.xmms.se/~tilman/

 MAINTAINER=3D    ports@FreeBSD.org
 COMMENT=3D       A last.fm submission client for XMMS2

-BUILD_DEPENDS=3D
${RUBY_SITEARCHLIBDIR}/xmmsclient_ext.so:${PORTSDIR}/audio/ruby-xmms2
\
-
${RUBY_SITELIBDIR}/event-loop.rb:${PORTSDIR}/devel/ruby-event-loop
-RUN_DEPENDS=3D
${RUBY_SITEARCHLIBDIR}/xmmsclient_ext.so:${PORTSDIR}/audio/ruby-xmms2
\
-
${RUBY_SITELIBDIR}/event-loop.rb:${PORTSDIR}/devel/ruby-event-loop
-
-USE_RUBY=3D      yes
-USE_RAKE=3D      yes
-NO_BUILD=3D      yes
-
-PLIST_FILES=3D   bin/xmms2-scrobbler \
-               %%DATADIR%%/filters/britney.rb \
-               %%DATADIR%%/filters/musicbrainz.rb
-PLIST_DIRS=3D    %%DATADIR%%/filters %%DATADIR%%
+LIB_DEPENDS=3D   xmmsclient.5:${PORTSDIR}/audio/xmms2 \
+               curl.6:${PORTSDIR}/ftp/curl

-SUB_FILES=3D     pkg-message
+USE_GMAKE=3D     yes
+
+PLIST_FILES=3D   bin/xmms2-scrobbler
+PORTDOCS=3D      README

-do-install:
-       @cd ${WRKSRC} && ${RAKE_BIN} PREFIX=3D${PREFIX}/ ${INSTALL_TARGET}
+SUB_FILES=3D     pkg-message

 post-install:
        @${ECHO_MSG}
        @${CAT} ${PKGMESSAGE}
        @${ECHO_MSG}
+.if !defined(NOPORTDOCS)
+       @${MKDIR} ${DOCSDIR} ; \
+       cd ${WRKSRC} && ${INSTALL_MAN} ${PORTDOCS} ${DOCSDIR}
+.endif

 .include <bsd.port.mk>
diff -ur audio.orig/xmms2-scrobbler/distinfo audio/xmms2-scrobbler/distinfo
--- audio.orig/xmms2-scrobbler/distinfo 2007-05-28 07:58:34.000000000 +0900
+++ audio/xmms2-scrobbler/distinfo      2010-04-10 00:46:16.000000000 +0900
@@ -1,3 +1,3 @@
-MD5 (xmms2-scrobbler-0.1.3.tar.gz) =3D 4d7fde80a5a6c963cf46864f2747d773
-SHA256 (xmms2-scrobbler-0.1.3.tar.gz) =3D
2c2306eedab88f3b8ee4b8ab07b84405349d35e0ce4a57e300f491f70049cf26
-SIZE (xmms2-scrobbler-0.1.3.tar.gz) =3D 6466
+MD5 (xmms2-scrobbler-0.4.0.tar.gz) =3D f5be15c90cf7c60209031b8968f77b19
+SHA256 (xmms2-scrobbler-0.4.0.tar.gz) =3D
7aed1670f381463e44466083f2e49119636e96005b9b93899edf79d613a2d2bc
+SIZE (xmms2-scrobbler-0.4.0.tar.gz) =3D 19831
diff -ur audio.orig/xmms2-scrobbler/files/pkg-message.in
audio/xmms2-scrobbler/files/pkg-message.in
--- audio.orig/xmms2-scrobbler/files/pkg-message.in     2006-12-23
11:27:02.000000000 +0900
+++ audio/xmms2-scrobbler/files/pkg-message.in  2010-04-10
01:21:02.000000000 +0900
@@ -1,8 +1,24 @@
-To use XMMS2Scrobbler write your username and password to the config file
-like this:
+You need to set up XMMS2-Scrobbler's config files.
+Config values that are specific to the AudioScrobbler server go in
+       ~/.config/xmms2/clients/xmms2-scrobbler/$SERVER_NAME/config.
+You will usually have
+       ~/.config/xmms2/clients/xmms2-scrobbler/lastfm/config
+and maybe
+       ~/.config/xmms2/clients/xmms2-scrobbler/librefm/config.

-        printf "user: foo\npassword: bar" > \
-                ~/.config/xmms2/clients/xmms2-scrobbler/config
+These server-specific config files contain your username and pasword
+and the URL to use:
+       mkdir ~/.config/xmms2/clients/xmms2-scrobbler/lastfm
+        echo -e "user: foo\npassword: bar\nhandshake_url:
http://post.audioscrobbler.com\n" > \
+                ~/.config/xmms2/clients/xmms2-scrobbler/lastfm/config
+For libre.fm, use
+       handshake_url: http://turtle.libre.fm.
+
+Optionally, if you're behind a proxy, you'll need to tell XMMS2-Scrobbler
+about that proxy.  This information applies to all servers an so goes in
+~/.config/xmms2/clients/xmms2-scrobbler/config:
+       echo -e "proxy: my.proxynproxy_port: 8080\n" >> \
+               ~/.config/xmms2/clients/xmms2-scrobbler/config

 ~/.config is actually $XDG_CONFIG_HOME whose default value is ~/.config.

diff -ur  /dev/null audio/xmms2-scrobbler/files/patch-aa
--- /dev/null
+++ audio/xmms2-scrobbler/files/patch-aa        2010-04-10
00:52:22.000000000 +0900
@@ -0,0 +1,10 @@
+--- Makefile.orig      2009-12-31 02:04:01.000000000 +0900
++++ Makefile   2010-04-10 00:52:20.000000000 +0900
+@@ -1,6 +1,7 @@
+ CFLAGS +=3D -std=3Dgnu99 -Wall -Wwrite-strings -pthread
+ ENDIAN_CFLAGS=3D
+ PREFIX ?=3D /usr/local
++LDFLAGS+=3D -lpthread
+
+ VERSION :=3D 0.4.0
+ TARBALL :=3D xmms2-scrobbler-$(VERSION).tar.gz



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