mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-16 19:50:19 +01:00
python/Mako: Updated for version 1.0.7 + new maintainer.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
parent
bfc6e66ba1
commit
df1c07da24
3 changed files with 37 additions and 22 deletions
|
@ -3,15 +3,33 @@
|
|||
# Slackware build script for Mako
|
||||
|
||||
# Written by Larry Hajali <larryhaja[at]gmail[dot]com>
|
||||
# Copyright 2017 Hunter Sezen California, USA
|
||||
#
|
||||
# Redistribution and use of this script, with or without modification, is
|
||||
# permitted provided that the following conditions are met:
|
||||
#
|
||||
# 1. Redistributions of this script must retain the above copyright
|
||||
# notice, this list of conditions and the following disclaimer.
|
||||
#
|
||||
# THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR IMPLIED
|
||||
# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
||||
# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
|
||||
# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
|
||||
# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
|
||||
# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
||||
# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
|
||||
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
|
||||
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
PRGNAM=Mako
|
||||
VERSION=${VERSION:-1.0.0}
|
||||
VERSION=${VERSION:-1.0.7}
|
||||
BUILD=${BUILD:-1}
|
||||
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
|
||||
|
@ -22,7 +40,7 @@ TMP=${TMP:-/tmp/SBo}
|
|||
PKG=$TMP/package-$PRGNAM
|
||||
OUTPUT=${OUTPUT:-/tmp}
|
||||
|
||||
set -e
|
||||
set -eu
|
||||
|
||||
rm -rf $PKG
|
||||
mkdir -p $TMP $PKG $OUTPUT
|
||||
|
@ -35,16 +53,12 @@ find -L . \
|
|||
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
|
||||
-o -perm 511 \) -exec chmod 755 {} \; -o \
|
||||
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
|
||||
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
|
||||
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
|
||||
|
||||
python setup.py install --root=$PKG --no-compile
|
||||
|
||||
find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
|
||||
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
|
||||
python setup.py install --root=$PKG
|
||||
|
||||
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
|
||||
cp -a \
|
||||
CHANGES LICENSE README.rst doc/* \
|
||||
cp -a AUTHORS CHANGES LICENSE README.rst doc/*.html \
|
||||
$PKG/usr/doc/$PRGNAM-$VERSION
|
||||
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
|
||||
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
PRGNAM="Mako"
|
||||
VERSION="1.0.0"
|
||||
VERSION="1.0.7"
|
||||
HOMEPAGE="http://www.makotemplates.org/"
|
||||
DOWNLOAD="https://pypi.python.org/packages/source/M/Mako/Mako-1.0.0.tar.gz"
|
||||
MD5SUM="ae27c6512832fe528bb67f1a851921cc"
|
||||
DOWNLOAD="https://pypi.python.org/packages/eb/f3/67579bb486517c0d49547f9697e36582cd19dafb5df9e687ed8e22de57fa/Mako-1.0.7.tar.gz"
|
||||
MD5SUM="5836cc997b1b773ef389bf6629c30e65"
|
||||
DOWNLOAD_x86_64=""
|
||||
MD5SUM_x86_64=""
|
||||
REQUIRES="MarkupSafe"
|
||||
MAINTAINER="Ben Mendis"
|
||||
EMAIL="ben.mendis@gmail.com"
|
||||
MAINTAINER="Hunter Sezen"
|
||||
EMAIL="ovariegata@yahoo.com"
|
||||
|
|
|
@ -1,8 +1,9 @@
|
|||
Mako is a template library written in Python. It provides a familiar,
|
||||
non-XML syntax which compiles into Python modules for maximum performance.
|
||||
Mako's syntax and API borrows from the best ideas of many others, including
|
||||
Django templates, Cheetah, Myghty, and Genshi. Conceptually, Mako is an
|
||||
embedded Python (i.e. Python Server Page) language, which refines the
|
||||
familiar ideas of componentized layout and inheritance to produce one of
|
||||
the most straightforward and flexible models available, while also
|
||||
maintaining close ties to Python calling and scoping semantics.
|
||||
non-XML syntax which compiles into Python modules for maximum
|
||||
performance. Mako's syntax and API borrows from the best ideas of many
|
||||
others, including Django templates, Cheetah, Myghty, and Genshi.
|
||||
Conceptually, Mako is an embedded Python (i.e. Python Server Page)
|
||||
language, which refines the familiar ideas of componentized layout and
|
||||
inheritance to produce one of the most straightforward and flexible
|
||||
models available, while also maintaining close ties to Python calling
|
||||
and scoping semantics.
|
||||
|
|
Loading…
Reference in a new issue