audio/python-audiotools: Updated for version 3.1.1.

Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
This commit is contained in:
Nishant Limbachia 2016-08-21 11:13:55 +01:00 committed by David Spencer
parent 0196091c86
commit 8c0bc964d3
4 changed files with 41 additions and 11 deletions

View file

@ -0,0 +1,15 @@
config() {
NEW="$1"
OLD="$(dirname $NEW)/$(basename $NEW .new)"
# If there's no config file by that name, mv it over:
if [ ! -r $OLD ]; then
mv $NEW $OLD
elif [ "$(cat $OLD | md5sum)" = "$(cat $NEW | md5sum)" ]; then
# toss the redundant copy
rm $NEW
fi
# Otherwise, we leave the .new copy for the admin to consider...
}
config etc/audiotools.cfg.new

View file

@ -0,0 +1,16 @@
--- cdiomodule.h.orig 2015-11-09 19:48:07.220880278 -0600
+++ cdiomodule.h 2015-11-09 19:48:32.765284762 -0600
@@ -1,11 +1,6 @@
#include <Python.h>
-#ifdef OLD_PARANOIA
-#include <cdio/cdda.h>
-#include <cdio/paranoia.h>
-#else
-#include <cdio/cdparanoia/cdda.h>
-#include <cdio/cdparanoia/paranoia.h>
-#endif
+#include <cdio/paranoia/cdda.h>
+#include <cdio/paranoia/paranoia.h>
/********************************************************
Audio Tools, a module and set of tools for manipulating audio data

View file

@ -3,7 +3,7 @@
# Slackware build script for Python Audio Tools # Slackware build script for Python Audio Tools
# Home Page: http://audiotools.sourceforge.net/ # Home Page: http://audiotools.sourceforge.net/
# Copyright (c) 2010-2014, Nishant Limbachia, Hoffman Estates, IL, USA # Copyright (c) 2010-2016, Nishant Limbachia, Hoffman Estates, IL, USA
# <nishant _AT_ mnspace _DOT_ net> # <nishant _AT_ mnspace _DOT_ net>
# All rights reserved. # All rights reserved.
@ -26,15 +26,15 @@
# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM="python-audiotools" PRGNAM="python-audiotools"
VERSION=${VERSION:-2.22} VERSION=${VERSION:-3.1.1}
BUILD=${BUILD:-1} BUILD=${BUILD:-1}
TAG=${TAG:-_SBo} TAG=${TAG:-_SBo}
SRCNAM="$(printf $PRGNAM | cut -f2 -d-)" SRCNAM="audiotools"
if [ -z "$ARCH" ]; then if [ -z "$ARCH" ]; then
case "$( uname -m )" in case "$( uname -m )" in
i?86) ARCH=i486 ;; i?86) ARCH=i586 ;;
arm*) ARCH=arm ;; arm*) ARCH=arm ;;
*) ARCH=$( uname -m ) ;; *) ARCH=$( uname -m ) ;;
esac esac
@ -45,8 +45,8 @@ TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp} OUTPUT=${OUTPUT:-/tmp}
if [ "$ARCH" = "i486" ]; then if [ "$ARCH" = "i586" ]; then
SLKCFLAGS="-O2 -march=i486 -mtune=i686" SLKCFLAGS="-O2 -march=i586 -mtune=i686"
LIBDIRSUFFIX="" LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686" SLKCFLAGS="-O2 -march=i686 -mtune=i686"
@ -73,8 +73,7 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \; -exec chmod 644 {} \;
# Fix for libcdio-0.9 and libcdio-paranoia-10.2+0.93 (-current) ( cd src; patch -p0 < $CWD/patches/cdiomodule_header.patch )
sed -i -e 's:#include <cdio/:#include <cdio/paranoia/:' src/cdiomodule.h
CFLAGS="$SLKCFLAGS" \ CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \

View file

@ -1,8 +1,8 @@
PRGNAM="python-audiotools" PRGNAM="python-audiotools"
VERSION="2.22" VERSION="3.1.1"
HOMEPAGE="http://audiotools.sourceforge.net/" HOMEPAGE="http://audiotools.sourceforge.net/"
DOWNLOAD="http://downloads.sourceforge.net/audiotools/audiotools-2.22.tar.gz" DOWNLOAD="http://downloads.sourceforge.net/audiotools/audiotools-3.1.1.tar.gz"
MD5SUM="8e373a6c8caf4d55bcd501c5ab6ea555" MD5SUM="08c52afbdfd41f18d068c525bcf93e42"
DOWNLOAD_x86_64="" DOWNLOAD_x86_64=""
MD5SUM_x86_64="" MD5SUM_x86_64=""
REQUIRES="" REQUIRES=""