12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667 |
- # Build recipe for markupsafe.
- #
- # Copyright (C) 2019-2020 Matias Fonzo, <selk@dragora.org>.
- #
- # Licensed under the Apache License, Version 2.0 (the "License");
- # you may not use this file except in compliance with the License.
- # You may obtain a copy of the License at
- #
- # http://www.apache.org/licenses/LICENSE-2.0
- #
- # Unless required by applicable law or agreed to in writing, software
- # distributed under the License is distributed on an "AS IS" BASIS,
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- # See the License for the specific language governing permissions and
- # limitations under the License.
- program=MarkupSafe
- version=1.1.1
- release=3
- pkgname=markupsafe
- # Set 'outdir' for a nice and well-organized output directory
- outdir="${outdir}/${arch}/python"
- tarname=${program}-${version}.tar.gz
- # Remote source(s)
- fetch=http://files.pythonhosted.org/packages/b9/2e/64db92e53b86efccfaea71321f597fa2e1b2bd3853d8ce658568f7a13094/$tarname
- description="
- A Python module that implements a XML/HTML/XHTML Markup safe string.
- MarkupSafe implements a text object that escapes characters so it is
- safe to use in HTML and XML. Characters that have special meanings
- are replaced so that they display as the actual characters. This
- mitigates injection attacks, meaning untrusted user input can safely
- be displayed on a page. Escaping is implemented in C so it is as
- efficient as possible.
- "
- homepage=http://palletsprojects.com/p/markupsafe
- license="BSD License (BSD-3-Clause)"
- docs="CHANGES* LICENSE* PKG-INFO README*"
- docsdir="${docdir}/${pkgname}-${version}"
- build()
- {
- set -e
- unpack "${tardir}/$tarname"
- cd "$srcdir"
- # Set sane permissions
- chmod -R u+w,go-w,a+rX-s .
- python3 setup.py build
- python3 setup.py install --prefix=/usr --root="$destdir" --optimize=1
- # Copy documentation
- mkdir -p "${destdir}${docsdir}"
- cp -p $docs "${destdir}${docsdir}"
- }
|