summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergei Trofimovich <slyfox@gentoo.org>2012-03-03 17:49:34 +0000
committerSergei Trofimovich <slyfox@gentoo.org>2012-03-03 17:49:34 +0000
commitb4ea46aefbc68908e31877a0aa01a310bc46497e (patch)
tree13b6356993e823801e06fc4cc1e7d4f0efdda0ab /media-sound/xmms2-scrobbler
parentNew version (diff)
downloadhistorical-b4ea46aefbc68908e31877a0aa01a310bc46497e.tar.gz
historical-b4ea46aefbc68908e31877a0aa01a310bc46497e.tar.bz2
historical-b4ea46aefbc68908e31877a0aa01a310bc46497e.zip
Initial ebuild by Alexander Tsoy (bug #341939). I slightly cleaned it and added --as-needed fixes.
Package-Manager: portage-2.2.0_alpha89_p3/cvs/Linux x86_64
Diffstat (limited to 'media-sound/xmms2-scrobbler')
-rw-r--r--media-sound/xmms2-scrobbler/ChangeLog14
-rw-r--r--media-sound/xmms2-scrobbler/Manifest17
-rw-r--r--media-sound/xmms2-scrobbler/files/xmms2-scrobbler-0.4.0-ld-order.patch32
-rw-r--r--media-sound/xmms2-scrobbler/files/xmms2-scrobbler-0.4.0-ldflags.patch19
-rw-r--r--media-sound/xmms2-scrobbler/files/xmms2-scrobbler-0.4.0-libs.patch19
-rw-r--r--media-sound/xmms2-scrobbler/metadata.xml15
-rw-r--r--media-sound/xmms2-scrobbler/xmms2-scrobbler-0.4.0.ebuild46
7 files changed, 162 insertions, 0 deletions
diff --git a/media-sound/xmms2-scrobbler/ChangeLog b/media-sound/xmms2-scrobbler/ChangeLog
new file mode 100644
index 000000000000..682a361bb0a9
--- /dev/null
+++ b/media-sound/xmms2-scrobbler/ChangeLog
@@ -0,0 +1,14 @@
+# ChangeLog for media-sound/xmms2-scrobbler
+# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/media-sound/xmms2-scrobbler/ChangeLog,v 1.1 2012/03/03 17:49:34 slyfox Exp $
+
+*xmms2-scrobbler-0.4.0 (03 Mar 2012)
+
+ 03 Mar 2012; Sergei Trofimovich <slyfox@gentoo.org>
+ +files/xmms2-scrobbler-0.4.0-ld-order.patch,
+ +files/xmms2-scrobbler-0.4.0-ldflags.patch,
+ +files/xmms2-scrobbler-0.4.0-libs.patch, +metadata.xml,
+ +xmms2-scrobbler-0.4.0.ebuild:
+ Initial ebuild by Alexander Tsoy (bug #341939). I slightly cleaned it and
+ added --as-needed fixes.
+
diff --git a/media-sound/xmms2-scrobbler/Manifest b/media-sound/xmms2-scrobbler/Manifest
new file mode 100644
index 000000000000..4843a0c70235
--- /dev/null
+++ b/media-sound/xmms2-scrobbler/Manifest
@@ -0,0 +1,17 @@
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA1
+
+AUX xmms2-scrobbler-0.4.0-ld-order.patch 1662 RMD160 eaeee1303116b8959d80e973993ca33c49b07639 SHA1 06c6462acbffcb511eeb074f8a5a7f86a1b013a9 SHA256 421c2f9c3a8439e1cd7f9d898d85a879cc421c0f4bfec9da3e205c2f97233fa0
+AUX xmms2-scrobbler-0.4.0-ldflags.patch 685 RMD160 6fb6e29e3cf20bd0a16f657e1c05e6460761e49c SHA1 9262398afbf0ce644073e9d8e78275ce38624e22 SHA256 62dfca24030fbac99d39e8a33530b07ef24f1b8ded77c102625ba0efb29f714d
+AUX xmms2-scrobbler-0.4.0-libs.patch 621 RMD160 5b33bf67338da7e7f9ca689ad70652db1d60033c SHA1 7a0d341b12bd1d59eb79f543c416f51d643e9a08 SHA256 62f3ebd5db9c93d5db728fc3ebd650feeb1dd86c934e57a1214abb6aeb9f7f4c
+DIST xmms2-scrobbler-0.4.0.tar.gz 19831 RMD160 01ddeb2655a8a87c91666df7f222f858857eac82 SHA1 cf0c6f9828806340cff1012980a37e944b212b7d SHA256 7aed1670f381463e44466083f2e49119636e96005b9b93899edf79d613a2d2bc
+EBUILD xmms2-scrobbler-0.4.0.ebuild 1389 RMD160 913c2d49e4250fa0f095a7a437f121839dc8cd2b SHA1 9f10dc81324c12a0bfe22912d9d10c77ec9269d4 SHA256 c5d76c6958c82fa2bdd60e3b9f5b9442f4af1b3eaea369ba1996e135b66ca614
+MISC ChangeLog 608 RMD160 bb37b67027cd1cdf02575cf35802f03adfd3edf7 SHA1 98f51e2e25e9900b963f02235420f64bd05b73bd SHA256 5947a7758c9d22df89681d57a61a095b15846453e1d8a73289318c2532041b31
+MISC metadata.xml 568 RMD160 dc0cae36f79201d5929a0fc10837dc967567be55 SHA1 a8fb5a19bfa63ed59a39d6bc2fc2c14f8a0a0a18 SHA256 436f09533424f82c8f504d3455a2a30c7cbf6e832d8f024e926911f46804a44d
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v2.0.17 (GNU/Linux)
+
+iEYEARECAAYFAk9SWs8ACgkQcaHudmEf86rYrACcCHdpM2pKeAol5LE5vL8m1oRI
+WSwAn1Q67VEGUgswyHOo8phmgoEq+Uo/
+=9dJ/
+-----END PGP SIGNATURE-----
diff --git a/media-sound/xmms2-scrobbler/files/xmms2-scrobbler-0.4.0-ld-order.patch b/media-sound/xmms2-scrobbler/files/xmms2-scrobbler-0.4.0-ld-order.patch
new file mode 100644
index 000000000000..1ba5443a9264
--- /dev/null
+++ b/media-sound/xmms2-scrobbler/files/xmms2-scrobbler-0.4.0-ld-order.patch
@@ -0,0 +1,32 @@
+commit 096ee717070bdde9c1adc29f02fcb537920daca9
+Author: Sergei Trofimovich <slyfox@gentoo.org>
+Date: Sat Mar 3 20:24:21 2012 +0300
+
+ Makefile: set proper link order for libraries
+
+ '-Wl,--as-needed' enforces libraries to go in proper dependency order:
+
+ $ x86_64-pc-linux-gnu-gcc -Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu -Wl,--hash-style=gnu `pkg-config xmms2-client --libs` `pkg-config libcurl --libs` src/xmms2-scrobbler.o src/list.o src/queue.o src/strbuf.o src/md5.o src/submission.o -o bin/xmms2-scrobbler
+ src/xmms2-scrobbler.o: In function `save_profile_submissions_queue':
+ xmms2-scrobbler.c:(.text+0x281): undefined reference to `xmmsc_userconfdir_get'
+ src/xmms2-scrobbler.o: In function `load_config':
+ xmms2-scrobbler.c:(.text+0x3e2): undefined reference to `xmmsc_userconfdir_get'
+ src/xmms2-scrobbler.o: In function `maybe_submit_to_profile':
+ xmms2-scrobbler.c:(.text+0x7e3): undefined reference to `xmmsc_medialib_get_info'
+ xmms2-scrobbler.c:(.text+0x7f7): undefined reference to `xmmsc_result_notifier_set'
+
+ Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
+
+diff --git a/Makefile b/Makefile
+index 7693bd2..4207cda 100644
+--- a/Makefile
++++ b/Makefile
+@@ -36,7 +36,7 @@ install: $(BINARY)
+ install -m 755 $(BINARY) $(DESTDIR)$(PREFIX)/bin
+
+ $(BINARY): $(OBJECTS) bin
+- $(QUIET_LINK)$(CC) $(OBJECTS) $(LDFLAGS) $(XMMS_LDFLAGS) $(CURL_LDFLAGS) -o $@ $(LIBS)
++ $(QUIET_LINK)$(CC) $(OBJECTS) -o $@ $(LDFLAGS) $(XMMS_LDFLAGS) $(CURL_LDFLAGS) $(LIBS)
+
+ src/%.o : src/%.c
+ $(QUIET_CC)$(CC) $(CFLAGS) $(XMMS_CFLAGS) $(CURL_CFLAGS) $(ENDIAN_CFLAGS) -o $@ -c $<
diff --git a/media-sound/xmms2-scrobbler/files/xmms2-scrobbler-0.4.0-ldflags.patch b/media-sound/xmms2-scrobbler/files/xmms2-scrobbler-0.4.0-ldflags.patch
new file mode 100644
index 000000000000..a570548ed4e9
--- /dev/null
+++ b/media-sound/xmms2-scrobbler/files/xmms2-scrobbler-0.4.0-ldflags.patch
@@ -0,0 +1,19 @@
+commit 8b97319c1a03acecc21b5608516859daaf5bca75
+Author: James Le Cuirot <chewi@aura-online.co.uk>
+Date: Fri Mar 26 20:10:54 2010 +0100
+
+ Fixed the build if the --as-needed linker option is enabled.
+
+diff --git a/Makefile b/Makefile
+index dad3fcb..3331e30 100644
+--- a/Makefile
++++ b/Makefile
+@@ -35,7 +35,7 @@ install: $(BINARY)
+ install -m 755 $(BINARY) $(DESTDIR)$(PREFIX)/bin
+
+ $(BINARY): $(OBJECTS) bin
+- $(QUIET_LINK)$(CC) $(LDFLAGS) $(XMMS_LDFLAGS) $(CURL_LDFLAGS) $(OBJECTS) -o $@
++ $(QUIET_LINK)$(CC) $(OBJECTS) $(LDFLAGS) $(XMMS_LDFLAGS) $(CURL_LDFLAGS) -o $@
+
+ src/%.o : src/%.c
+ $(QUIET_CC)$(CC) $(CFLAGS) $(XMMS_CFLAGS) $(CURL_CFLAGS) $(ENDIAN_CFLAGS) -o $@ -c $<
diff --git a/media-sound/xmms2-scrobbler/files/xmms2-scrobbler-0.4.0-libs.patch b/media-sound/xmms2-scrobbler/files/xmms2-scrobbler-0.4.0-libs.patch
new file mode 100644
index 000000000000..959f1232e6d5
--- /dev/null
+++ b/media-sound/xmms2-scrobbler/files/xmms2-scrobbler-0.4.0-libs.patch
@@ -0,0 +1,19 @@
+diff --git a/Makefile b/Makefile
+index 3331e30..7693bd2 100644
+--- a/Makefile
++++ b/Makefile
+@@ -1,4 +1,5 @@
+ CFLAGS += -std=gnu99 -Wall -Wwrite-strings -pthread
++LIBS = -lrt -lpthread
+ ENDIAN_CFLAGS=
+ PREFIX ?= /usr/local
+
+@@ -35,7 +36,7 @@ install: $(BINARY)
+ install -m 755 $(BINARY) $(DESTDIR)$(PREFIX)/bin
+
+ $(BINARY): $(OBJECTS) bin
+- $(QUIET_LINK)$(CC) $(OBJECTS) $(LDFLAGS) $(XMMS_LDFLAGS) $(CURL_LDFLAGS) -o $@
++ $(QUIET_LINK)$(CC) $(OBJECTS) $(LDFLAGS) $(XMMS_LDFLAGS) $(CURL_LDFLAGS) -o $@ $(LIBS)
+
+ src/%.o : src/%.c
+ $(QUIET_CC)$(CC) $(CFLAGS) $(XMMS_CFLAGS) $(CURL_CFLAGS) $(ENDIAN_CFLAGS) -o $@ -c $<
diff --git a/media-sound/xmms2-scrobbler/metadata.xml b/media-sound/xmms2-scrobbler/metadata.xml
new file mode 100644
index 000000000000..a282ed8ce0e4
--- /dev/null
+++ b/media-sound/xmms2-scrobbler/metadata.xml
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer>
+ <email>slyfox@gentoo.org</email>
+ <name>Sergei Trofimovich</name>
+ <description>Primary Maintainer</description>
+ </maintainer>
+ <longdescription>
+ XMMS2-Scrobbler is a client for XMMS2 that feeds information about the songs
+ you played to last.fm, formerly known as AudioScrobbler.
+ XMMS2-Scrobbler supports "multi-scrobbling", i.e. it can talk to more than
+ one AudioScrobbler server.
+ </longdescription>
+</pkgmetadata>
diff --git a/media-sound/xmms2-scrobbler/xmms2-scrobbler-0.4.0.ebuild b/media-sound/xmms2-scrobbler/xmms2-scrobbler-0.4.0.ebuild
new file mode 100644
index 000000000000..809fe6a4aabd
--- /dev/null
+++ b/media-sound/xmms2-scrobbler/xmms2-scrobbler-0.4.0.ebuild
@@ -0,0 +1,46 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/media-sound/xmms2-scrobbler/xmms2-scrobbler-0.4.0.ebuild,v 1.1 2012/03/03 17:49:34 slyfox Exp $
+
+EAPI=4
+
+inherit eutils toolchain-funcs
+
+DESCRIPTION="XMMS2 AudioScrobbler client"
+HOMEPAGE="http://code-monkey.de/pages/xmms2-scrobbler"
+SRC_URI="ftp://ftp.code-monkey.de/pub/${PN}/${P}.tar.gz"
+
+LICENSE="as-is"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+RDEPEND="media-sound/xmms2
+ net-misc/curl"
+DEPEND="${RDEPEND}"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-ldflags.patch
+ epatch "${FILESDIR}"/${P}-libs.patch
+ epatch "${FILESDIR}"/${P}-ld-order.patch
+}
+
+src_compile() {
+ emake CC="$(tc-getCC)"
+}
+
+src_install() {
+ emake PREFIX="${EROOT}/usr" DESTDIR="${D}" install
+ dodoc README AUTHORS
+}
+
+pkg_postinst() {
+ einfo "xmms2-scrobbler will fail to start until you create a configfile"
+ einfo ""
+ einfo "mkdir -p ~/.config/xmms2/clients/xmms2-scrobbler/lastfm"
+ einfo "echo 'user: foo' >> ~/.config/xmms2/clients/xmms2-scrobbler/lastfm/config"
+ einfo "echo 'password: bar' >> ~/.config/xmms2/clients/xmms2-scrobbler/lastfm/config"
+ einfo "echo 'handshake_url: http://post.audioscrobbler.com' >> ~/.config/xmms2/clients/xmms2-scrobbler/lastfm/config"
+ einfo ""
+ einfo "More info and configuration-options can be found in xmms2-scrobbler's README file"
+}