python/pyxdg: New maintainer; add python3 support

Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
This commit is contained in:
Hunter Sezen 2016-07-27 19:50:33 -05:00 committed by Willy Sudiarto Raharjo
parent 38e40b7527
commit 3869dcac6e
No known key found for this signature in database
GPG key ID: 887B8374D7333381
4 changed files with 9 additions and 27 deletions

View file

@ -1,5 +1,3 @@
PyXDG contains implementations of freedesktop.org standards in python.
To install python3 bindings run the slackbuild with PYTHON3=yes.
# PYTHON3=yes ./pyxdg.SlackBuild
Python3 is an optional dependency.

View file

@ -3,6 +3,7 @@
# Slackware build script for PyXDG
# Copyright 2008-2009 Frank Caraballo <fecaraballo{at}gmail{dot}com>
# Copyright 2016 Hunter Sezen California, USA
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@ -24,12 +25,12 @@
PRGNAM=pyxdg
VERSION=${VERSION:-0.25}
BUILD=${BUILD:-1}
BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
i?86) ARCH=i486 ;;
i?86) ARCH=i586 ;;
arm*) ARCH=arm ;;
*) ARCH=$( uname -m ) ;;
esac
@ -40,20 +41,6 @@ TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
if [ "$ARCH" = "i486" ]; then
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC"
LIBDIRSUFFIX="64"
else
SLKCFLAGS="-O2"
LIBDIRSUFFIX=""
fi
set -e
rm -rf $PKG
@ -71,14 +58,11 @@ find -L . \
python setup.py install --root $PKG
# Install python3 bindings for pyxdg. Default is no.
if [ "${PYTHON3:-no}" == "yes" ]; then
# Python 3 support.
if $(python3 -c 'import sys' 2>/dev/null); then
python3 setup.py install --root=$PKG
fi
find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a AUTHORS ChangeLog COPYING INSTALL PKG-INFO README TODO \
$PKG/usr/doc/$PRGNAM-$VERSION

View file

@ -6,5 +6,5 @@ MD5SUM="bedcdb3a0ed85986d40044c87f23477c"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""
MAINTAINER="Frank Caraballo"
EMAIL="fecaraballo{at}gmail{dot}com"
MAINTAINER="Hunter Sezen"
EMAIL="ovariegata@yahoo.com"

View file

@ -6,7 +6,7 @@
# customary to leave one space after the ':' except on otherwise blank lines.
|-----handy-ruler------------------------------------------------------|
pyxdg: PyXDG (Python Library)
pyxdg: PyXDG (Python XDG Library)
pyxdg:
pyxdg: PyXDG contains implementations of freedesktop.org standards in python.
pyxdg: