Browse Source

l/python-yaml: Upgraded to python-yaml-3.11.

slackware-14.2
Damien Goutte-Gattat 7 years ago
parent
commit
a126b8f093
  1. 1
      l/python-yaml/PyYAML-3.10.tar.gz.sha1
  2. 1
      l/python-yaml/PyYAML-3.11.tar.gz.sha1
  3. 24
      l/python-yaml/python-yaml.SlackBuild

1
l/python-yaml/PyYAML-3.10.tar.gz.sha1

@ -1 +0,0 @@
476dcfbcc6f4ebf3c06186229e8e2bd7d7b20e73 PyYAML-3.10.tar.gz

1
l/python-yaml/PyYAML-3.11.tar.gz.sha1

@ -0,0 +1 @@
1a2d5df8b31124573efb9598ec6d54767f3c4cd4 PyYAML-3.11.tar.gz

24
l/python-yaml/python-yaml.SlackBuild

@ -1,6 +1,6 @@
#!/bin/bash
# Build script for Slackware
# Copyright (C) 2012 Damien Goutte-Gattat
# Copyright (C) 2012,2015 Damien Goutte-Gattat
#
# Redistribution and use of this script, with or without modifications,
# is permitted provided that the following conditions are met:
@ -24,12 +24,10 @@
#
# Latest PyYAML sourcecode is available at:
# <http://pyyaml.org/wiki/PyYAML>.
#
# Depends: l/yaml
# Source package infos
NAMESRC=${NAMESRC:-PyYAML}
VERSION=${VERSION:-3.10}
VERSION=${VERSION:-3.11}
ARCHIVE=${ARCHIVE:-$NAMESRC-$VERSION.tar.gz}
WGET=${WGET:-http://pyyaml.org/download/pyyaml/$ARCHIVE}
@ -37,7 +35,6 @@ WGET=${WGET:-http://pyyaml.org/download/pyyaml/$ARCHIVE}
NAMEPKG=${NAMEPKG:-python-yaml}
BUILD=${BUILD:-1GGD}
ARCH=${ARCH:-$(uname -m | sed 's/^i.86$/i486/;s/^arm.*/arm/')}
JOBS=${JOBS:-1}
EXT=${EXT:-txz}
# Directories
@ -58,19 +55,6 @@ if [ ! -d $TMP ]; then
exit 1
fi
# Compilation flags
case "$ARCH" in
i?86)
CPUOPT="-O2 -march=$ARCH -mtune=i686"
;;
x86_64)
CPUOPT="-O2 -fPIC"
;;
*)
CPUOPT="-O2"
;;
esac
# Get and verify the source archive
if [ ! -r $ARCHIVE ]; then
wget -c -O $ARCHIVE.part "$WGET"
@ -84,8 +68,6 @@ cd $TMP
echo "Building $ARCHIVE..."
tar xf $CWD/$ARCHIVE
cd $NAME
CFLAGS=$CPUOPT \
CXXFLAGS=$CPUOPT \
python setup.py build
python setup.py install --root=$PKG
@ -95,7 +77,7 @@ find $PKG | xargs file | grep "ELF \(32\|64\)-bit LSB" | cut -d : -f 1 | \
# Install the documentation
mkdir -p $PKG/usr/doc/$NAMEPKG-$VERSION
install -m 644 CHANGES LICENSE README $PKG/usr/doc/$NAMEPKG-$VERSION
install -m 644 CHANGES LICENSE PKG-INFO README $PKG/usr/doc/$NAMEPKG-$VERSION
# Copy slack-desc file
install -D -m 644 $CWD/slack-desc $PKG/install/slack-desc

Loading…
Cancel
Save