multimedia/quodlibet-plugins: Added to 12.2 repository

This commit is contained in:
Mihai Militaru 2010-05-12 23:31:51 +02:00 committed by Robby Workman
parent 319a6b099c
commit 1ff69682af
5 changed files with 118 additions and 0 deletions

View file

@ -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.

View file

@ -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)

View file

@ -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

View file

@ -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"

View file

@ -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: