Mercurial > vanilla
changeset 936:fc9c0a79d6f9
python/py-markupsafe: initial import, closes #2236
author | David Demelier <markand@malikania.fr> |
---|---|
date | Thu, 29 Aug 2019 20:34:00 +0200 |
parents | ebd4e5d2817a |
children | cdbedfb9dfd0 |
files | python/py-markupsafe/py-markupsafe.sh python/py-markupsafe/py-markupsafe.sha1 |
diffstat | 2 files changed, 38 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/python/py-markupsafe/py-markupsafe.sh Thu Aug 29 20:34:00 2019 +0200 @@ -0,0 +1,37 @@ +#!/bin/sh +# +# Copyright (c) 2019 David Demelier <markand@malikania.fr> +# +# Permission to use, copy, modify, and/or distribute this software for any +# purpose with or without fee is hereby granted, provided that the above +# copyright notice and this permission notice appear in all copies. +# +# THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES +# WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF +# MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR +# ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES +# WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN +# ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF +# OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. +# + +PKGNAME=py-markupsafe +PKGVERSION=1.1.1 +PKGREVISION=1 +PKGLICENSE="BSD3CLAUSE" +PKGSUMMARY="safely add untrusted strings to HTML/XML markup" +PKGDOWNLOAD="https://files.pythonhosted.org/packages/b9/2e/64db92e53b86efccfaea71321f597fa2e1b2bd3853d8ce658568f7a13094/MarkupSafe-$PKGVERSION.tar.gz" +PKGDEPENDS="python py-setuptools" + +build() +{ + rm -rf MarkupSafe-$PKGVERSION + tar xvf MarkupSafe-$PKGVERSION.tar.gz + cd MarkupSafe-$PKGVERSION + + python setup.py build + python setup.py install --root=$DESTDIR --prefix=/. + + cd .. + rm -rf MarkupSafe-$PKGVERSION +}