diff options
-rw-r--r-- | libraries/mmpython/README | 6 | ||||
-rw-r--r-- | libraries/mmpython/mmpython-0.4.10-stdint.patch | 20 | ||||
-rw-r--r-- | libraries/mmpython/mmpython.SlackBuild | 53 | ||||
-rw-r--r-- | libraries/mmpython/mmpython.info | 8 | ||||
-rw-r--r-- | libraries/mmpython/slack-desc | 16 |
5 files changed, 103 insertions, 0 deletions
diff --git a/libraries/mmpython/README b/libraries/mmpython/README new file mode 100644 index 0000000000..c74667cdb9 --- /dev/null +++ b/libraries/mmpython/README @@ -0,0 +1,6 @@ +MMPython is a Media Meta Data retrieval framework. It retrieves metadata +from mp3, ogg, avi, jpg, tiff and other file formats. Among others it +thereby parses ID3v2, ID3v1, EXIF, IPTC and Vorbis data into an object +oriented struture. + +Requires lsdvd and PyXML.
\ No newline at end of file diff --git a/libraries/mmpython/mmpython-0.4.10-stdint.patch b/libraries/mmpython/mmpython-0.4.10-stdint.patch new file mode 100644 index 0000000000..6752216921 --- /dev/null +++ b/libraries/mmpython/mmpython-0.4.10-stdint.patch @@ -0,0 +1,20 @@ +--- disc/ifomodule.c~ 2004-07-17 10:46:52.000000000 +0200 ++++ disc/ifomodule.c 2006-04-11 07:59:38.030697690 +0200 +@@ -9,6 +9,7 @@ + #include <unistd.h> + #include <assert.h> + #include <inttypes.h> ++#include <stdint.h> + + #include <dvdread/dvd_reader.h> + #include <dvdread/ifo_types.h> +--- disc/cdrommodule.c~ 2003-06-23 21:26:16.000000000 +0200 ++++ disc/cdrommodule.c 2006-04-11 07:58:02.463087444 +0200 +@@ -36,6 +36,7 @@ + #include "Python.h" + #include <fcntl.h> + #include <sys/ioctl.h> ++#include <stdint.h> + + #ifdef __linux__ + #include <linux/cdrom.h> diff --git a/libraries/mmpython/mmpython.SlackBuild b/libraries/mmpython/mmpython.SlackBuild new file mode 100644 index 0000000000..393c90a6f5 --- /dev/null +++ b/libraries/mmpython/mmpython.SlackBuild @@ -0,0 +1,53 @@ +#!/bin/sh + +# Slackware build script for mmpython + +# Written by Larry Hajali <larryhaja[at]gmail[dot]com> + +PRGNAM=mmpython +VERSION=${VERSION:-0.4.10} +ARCH=${ARCH:-i486} +BUILD=${BUILD:-1} +TAG=${TAG:-_SBo} + +CWD=$(pwd) +TMP=${TMP:-/tmp/SBo} +PKG=$TMP/package-$PRGNAM +OUTPUT=${OUTPUT:-/tmp} + +set -e + +rm -rf $PKG +mkdir -p $TMP $PKG $OUTPUT +cd $TMP +rm -rf $PRGNAM-$VERSION +tar xvf $CWD/$PRGNAM-$VERSION.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 {} \; + +# Add stdint.h headers +patch -p0 < $CWD/mmpython-0.4.10-stdint.patch + +python setup.py build + +python setup.py install --prefix="$PKG/usr" + +( cd $PKG + find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true + find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null +) + +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION +cp -a COPYING CREDITS PKG-INFO README $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/libraries/mmpython/mmpython.info b/libraries/mmpython/mmpython.info new file mode 100644 index 0000000000..dc62bac37b --- /dev/null +++ b/libraries/mmpython/mmpython.info @@ -0,0 +1,8 @@ +PRGNAM="mmpython" +VERSION="0.4.10" +HOMEPAGE="http://mmpython.sourceforge.net/" +DOWNLOAD="http://downloads.sourceforge.net/mmpython/mmpython-0.4.10.tar.gz" +MD5SUM="3a1f2e754308ac8cacd266c1350dcf34" +MAINTAINER="Larry Hajali" +EMAIL="larryhaja[at]gmail[dot]com" +APPROVED="michiel" diff --git a/libraries/mmpython/slack-desc b/libraries/mmpython/slack-desc new file mode 100644 index 0000000000..1b47c6af94 --- /dev/null +++ b/libraries/mmpython/slack-desc @@ -0,0 +1,16 @@ +# 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------------------------------------------------------| +mmpython: mmpython (Media Metadata for Python) +mmpython: +mmpython: MMPython is a Media Meta Data retrieval framework. It retrieves +mmpython: metadata from mp3, ogg, avi, jpg, tiff and other file formats. Among +mmpython: others it thereby parses ID3v2, ID3v1, EXIF, IPTC and Vorbis data +mmpython: into an object oriented struture. +mmpython: +mmpython: Homepage: http://mmpython.sourceforge.net/
\ No newline at end of file |