From eda2196af7f0a281f2db87772e2af5674ed63e92 Mon Sep 17 00:00:00 2001 From: Roman Bogorodskiy Date: Sun, 27 Aug 2006 16:25:00 +0000 Subject: [PATCH] XMMS2-Scrobbler is a client for XMMS2 that feeds information about the songs you played to last.fm, formerly known as AudioScrobbler. WWW: http://code-monkey.de/pages/xmms2-scrobbler PR: ports/102511 Submitted by: Alexander Botero-Lowry --- audio/Makefile | 1 + audio/xmms2-scrobbler/Makefile | 41 ++++++++++++++++++++++ audio/xmms2-scrobbler/distinfo | 3 ++ audio/xmms2-scrobbler/files/pkg-message.in | 8 +++++ audio/xmms2-scrobbler/pkg-descr | 4 +++ 5 files changed, 57 insertions(+) create mode 100644 audio/xmms2-scrobbler/Makefile create mode 100644 audio/xmms2-scrobbler/distinfo create mode 100644 audio/xmms2-scrobbler/files/pkg-message.in create mode 100644 audio/xmms2-scrobbler/pkg-descr diff --git a/audio/Makefile b/audio/Makefile index a0f738bff177..593c8150a534 100644 --- a/audio/Makefile +++ b/audio/Makefile @@ -665,6 +665,7 @@ SUBDIR += xmms-xf86audio SUBDIR += xmms-xymms SUBDIR += xmms2 + SUBDIR += xmms2-scrobbler SUBDIR += xmmsctrl SUBDIR += xmp SUBDIR += xmpeg3 diff --git a/audio/xmms2-scrobbler/Makefile b/audio/xmms2-scrobbler/Makefile new file mode 100644 index 000000000000..f8076f894692 --- /dev/null +++ b/audio/xmms2-scrobbler/Makefile @@ -0,0 +1,41 @@ +# New ports collection makefile for: snett +# Date created: 06 Apr 2006 +# Whom: Alexander Botero-Lowry +# +# $FreeBSD$ + +PORTNAME= xmms2-scrobbler +PORTVERSION= 0.1.1 +CATEGORIES= audio ruby +MASTER_SITES= ftp://ftp.code-monkey.de/pub/xmms2-scrobbler/ + +MAINTAINER= alex@foxybanana.com +COMMENT= A last.fm submission client for XMMS2 + +BUILD_DEPENDS= ${RUBY_SITEARCHLIBDIR}/xmmsclient.so:${PORTSDIR}/audio/ruby-xmms2 \ + ${LOCALBASE}/lib/ruby/gems/${RUBY_VER}/gems/event-loop-0.2/gemspec.rb:${PORTSDIR}/devel/rubygem-event-loop \ + ${LOCALBASE}/bin/rake:${PORTSDIR}/devel/rubygem-rake +RUN_DEPENDS= ${RUBY_SITEARCHLIBDIR}/xmmsclient.so:${PORTSDIR}/audio/ruby-xmms2 \ + ${LOCALBASE}/lib/ruby/gems/${RUBY_VER}/gems/event-loop-0.2/gemspec.rb:${PORTSDIR}/devel/rubygem-event-loop + +USE_RUBY= yes +NO_BUILD= yes + +PLIST_FILES= bin/xmms2-scrobbler + +SUB_FILES= pkg-message + +.include + +.if ${OSVERSION} < 500000 +BROKEN= Does not compile on FreeBSD 4.x +.endif + +do-install: + @cd ${WRKSRC} && ${LOCALBASE}/bin/rake PREFIX=${PREFIX}/ ${INSTALL_TARGET} + +post-install: + @${ECHO_MSG} + @${CAT} ${PKGMESSAGE} + @${ECHO_MSG} +.include diff --git a/audio/xmms2-scrobbler/distinfo b/audio/xmms2-scrobbler/distinfo new file mode 100644 index 000000000000..cd75535b737a --- /dev/null +++ b/audio/xmms2-scrobbler/distinfo @@ -0,0 +1,3 @@ +MD5 (xmms2-scrobbler-0.1.1.tar.gz) = fd9764be000957434eb3e4aef9e042db +SHA256 (xmms2-scrobbler-0.1.1.tar.gz) = 958c093a065ff2d14f63d1a83e0aeaf3aa08fac070292b7cae1b0447a8ac3077 +SIZE (xmms2-scrobbler-0.1.1.tar.gz) = 5923 diff --git a/audio/xmms2-scrobbler/files/pkg-message.in b/audio/xmms2-scrobbler/files/pkg-message.in new file mode 100644 index 000000000000..937afdfd6bf3 --- /dev/null +++ b/audio/xmms2-scrobbler/files/pkg-message.in @@ -0,0 +1,8 @@ +To use XMMS2Scrobbler write your username and password to the config file +like this: + + printf "user: foo\npassword: bar" > \ + ~/.xmms2/clients/xmms2-scrobbler/config + +If you wish for XMMS2Scrobbler to start when you start xmms2d, make a +symbolic link from %%PREFIX%%/bin/xmms2-scrobbler to ~/.xmms2/startup.d/ diff --git a/audio/xmms2-scrobbler/pkg-descr b/audio/xmms2-scrobbler/pkg-descr new file mode 100644 index 000000000000..4b496dd27ae5 --- /dev/null +++ b/audio/xmms2-scrobbler/pkg-descr @@ -0,0 +1,4 @@ +XMMS2-Scrobbler is a client for XMMS2 that feeds information about the songs +you played to last.fm, formerly known as AudioScrobbler. + +WWW: http://code-monkey.de/pages/xmms2-scrobbler