summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMihai Militaru <mihai.militaru@gmx.com>2010-05-12 23:31:51 +0200
committerRobby Workman <rworkman@slackbuilds.org>2010-05-12 23:31:51 +0200
commit1ff69682af9057f18f7d2dd6226c277ef45e74d9 (patch)
treefe418e86581d542ff6dd782dafb4b6bf11dd0391
parent319a6b099c6b6e2c04d898c3500dc5eb155db2b4 (diff)
downloadslackbuilds-1ff69682af9057f18f7d2dd6226c277ef45e74d9.tar.gz
multimedia/quodlibet-plugins: Added to 12.2 repository
-rw-r--r--multimedia/quodlibet-plugins/README7
-rw-r--r--multimedia/quodlibet-plugins/loggerfix.diff28
-rw-r--r--multimedia/quodlibet-plugins/quodlibet-plugins.SlackBuild56
-rw-r--r--multimedia/quodlibet-plugins/quodlibet-plugins.info8
-rw-r--r--multimedia/quodlibet-plugins/slack-desc19
5 files changed, 118 insertions, 0 deletions
diff --git a/multimedia/quodlibet-plugins/README b/multimedia/quodlibet-plugins/README
new file mode 100644
index 0000000000..f50aa1cacd
--- /dev/null
+++ b/multimedia/quodlibet-plugins/README
@@ -0,0 +1,7 @@
+Various contributed plugins for Quod Libet
+
+This package contains a number of contributed plugins for the Quod Libet
+media player, each extending the player's functionality in different ways.
+It is the original source code downloaded from the Debian repository.
+They are created for Quolibet v1.0 but most of the plugins (if not all)
+work on v2.0 as well.
diff --git a/multimedia/quodlibet-plugins/loggerfix.diff b/multimedia/quodlibet-plugins/loggerfix.diff
new file mode 100644
index 0000000000..a396b2c5f0
--- /dev/null
+++ b/multimedia/quodlibet-plugins/loggerfix.diff
@@ -0,0 +1,28 @@
+--- events/lastfmsubmit.py.orig 2007-11-25 14:45:54.000000000 +0100
++++ events/lastfmsubmit.py 2007-11-25 17:22:59.000000000 +0100
+@@ -27,10 +27,13 @@
+ __exclude = ""
+ __song = None
+ __timeout_id = -1
+- __log = lastfm.logger('quodlibet')
++ __cli = None
+
+ def __init__(self):
+- try: self.__exclude = config.get("plugins", "scrobbler_exclude")
++ try:
++ self.__exclude = config.get("plugins", "scrobbler_exclude")
++ __cli = lastfm.client.Client('quodlibet')
++ __cli.open_log()
+ except: pass
+
+ def unprepare(self):
+@@ -131,6 +134,6 @@
+ for key in data.keys():
+ if not data[key]: del(data[key])
+ try:
+- lastfm.submit([data])
+- self.__log.info("Sent %s", lastfm.repr(data))
+- except IOError, e: self.__log.error("Error: %s" % e)
++ self.__cli.submit([data])
++ self.__cli.log.info("Sent %s", lastfm.repr(data))
++ except IOError, e: self.__cli.log.error("Error: %s" % e)
diff --git a/multimedia/quodlibet-plugins/quodlibet-plugins.SlackBuild b/multimedia/quodlibet-plugins/quodlibet-plugins.SlackBuild
new file mode 100644
index 0000000000..9dd56098c0
--- /dev/null
+++ b/multimedia/quodlibet-plugins/quodlibet-plugins.SlackBuild
@@ -0,0 +1,56 @@
+#!/bin/sh
+
+# Slackware build script for quodlibet-plugins
+
+# Written by Mihai Militaru <mihai.militaru@gmx.com> # March 2009
+
+PRGNAM=quodlibet-plugins
+VERSION=${VERSION:-20080601}
+ARCH=${ARCH:-i486}
+BUILD=${BUILD:-1}
+TAG=${TAG:-_SBo}
+
+CWD=$(pwd)
+TMP=${TMP:-/tmp/SBo}
+PKG=$TMP/package-$PRGNAM
+OUTPUT=${OUTPUT:-/tmp}
+
+if [ "$ARCH" = "i486" ]; then
+ SLKCFLAGS="-O2 -march=i486 -mtune=i686"
+elif [ "$ARCH" = "i686" ]; then
+ SLKCFLAGS="-O2 -march=i686 -mtune=i686"
+elif [ "$ARCH" = "x86_64" ]; then
+ SLKCFLAGS="-O2 -fPIC"
+fi
+
+set -e
+
+rm -rf $PKG
+mkdir -p $TMP $PKG $OUTPUT
+cd $TMP
+rm -rf $PRGNAM-$VERSION
+tar xvf $CWD/$PRGNAM"_"$VERSION.orig.tar.gz
+cd $PRGNAM-$VERSION
+chown -R root:root .
+find . \
+ \( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \
+ -exec chmod 755 {} \; -o \
+ \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
+ -exec chmod 644 {} \;
+find . -type f -exec chmod 0644 {} \;
+find . -type d -exec chmod 0755 {} \;
+
+patch -p0 < $CWD/loggerfix.diff
+
+mkdir -p $PKG/usr/lib/python2.5/site-packages/quodlibet/plugins
+cp -a editing events playorder songsmenu \
+ $PKG/usr/lib/python2.5/site-packages/quodlibet/plugins
+
+mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
+cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
+
+mkdir -p $PKG/install
+cat $CWD/slack-desc > $PKG/install/slack-desc
+
+cd $PKG
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz
diff --git a/multimedia/quodlibet-plugins/quodlibet-plugins.info b/multimedia/quodlibet-plugins/quodlibet-plugins.info
new file mode 100644
index 0000000000..79eacc7e0b
--- /dev/null
+++ b/multimedia/quodlibet-plugins/quodlibet-plugins.info
@@ -0,0 +1,8 @@
+PRGNAM="quodlibet-plugins"
+VERSION="20080601"
+HOMEPAGE="http://code.google.com/p/quodlibet/wiki/Plugins"
+DOWNLOAD="http://ftp.de.debian.org/debian/pool/main/q/quodlibet-plugins/quodlibet-plugins_20080601.orig.tar.gz"
+MD5SUM="4ab7bb85b726b338a9abd6397b72bbb0"
+MAINTAINER="Mihai Militaru"
+EMAIL="mihai.militaru@gmx.com"
+APPROVED="rworkman"
diff --git a/multimedia/quodlibet-plugins/slack-desc b/multimedia/quodlibet-plugins/slack-desc
new file mode 100644
index 0000000000..17464150ed
--- /dev/null
+++ b/multimedia/quodlibet-plugins/slack-desc
@@ -0,0 +1,19 @@
+# HOW TO EDIT THIS FILE:
+# The "handy ruler" below makes it easier to edit a package description. Line
+# up the first '|' above the ':' following the base package name, and the '|'
+# on the right side marks the last column you can put a character in. You must
+# make exactly 11 lines for the formatting to be correct. It's also
+# customary to leave one space after the ':'.
+
+ |-----handy-ruler-------------------------------------------------------|
+quodlibet-plugins: quodlibet-plugins (various contributed plugins for Quod Libet)
+quodlibet-plugins:
+quodlibet-plugins: This package contains a number of contributed plugins for the
+quodlibet-plugins: Quod Libet media player, each extending the player's functionality
+quodlibet-plugins: in different ways.
+quodlibet-plugins:
+quodlibet-plugins: Homepage: http://code.google.com/p/quodlibet-plugins/
+quodlibet-plugins:
+quodlibet-plugins:
+quodlibet-plugins:
+quodlibet-plugins: