recipe 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. # Build recipe for pymako (Mako).
  2. #
  3. # Copyright (C) 2019-2020 Matias Fonzo, <selk@dragora.org>.
  4. #
  5. # Licensed under the Apache License, Version 2.0 (the "License");
  6. # you may not use this file except in compliance with the License.
  7. # You may obtain a copy of the License at
  8. #
  9. # http://www.apache.org/licenses/LICENSE-2.0
  10. #
  11. # Unless required by applicable law or agreed to in writing, software
  12. # distributed under the License is distributed on an "AS IS" BASIS,
  13. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  14. # See the License for the specific language governing permissions and
  15. # limitations under the License.
  16. program=Mako
  17. version=1.1.2
  18. release=2
  19. pkgname=pymako
  20. # Set 'outdir' for a nice and well-organized output directory
  21. outdir="${outdir}/${arch}/python"
  22. tarname=${program}-${version}.tar.gz
  23. # Remote source(s)
  24. fetch=http://files.pythonhosted.org/packages/42/64/fc7c506d14d8b6ed363e7798ffec2dfe4ba21e14dda4cfab99f4430cba3a/$tarname
  25. description="
  26. Mako is a template library written in Python.
  27. It provides a familiar, non-XML syntax which compiles into Python
  28. modules for maximum performance. Mako's syntax and API borrows
  29. from the best ideas of many others, including Django and
  30. Jinja2templates, Cheetah, Myghty, and Genshi. Conceptually,
  31. Mako is an embedded Python (i.e. Python Server Page) language,
  32. which refines the familiar ideas of componentized layout and
  33. inheritance to produce one of the most straightforward and
  34. flexible models available, while also maintaining close ties
  35. to Python calling and scoping semantics.
  36. The package name is called \"pymako\" in order to avoid possible
  37. conflicts with another package name.
  38. "
  39. homepage=http://www.makotemplates.org
  40. license=MIT
  41. docs="AUTHORS CHANGES LICENSE PKG-INFO README.rst"
  42. docsdir="${docdir}/${pkgname}-${version}"
  43. build()
  44. {
  45. set -e
  46. unpack "${tardir}/$tarname"
  47. cd "$srcdir"
  48. # Set sane permissions
  49. chmod -R u+w,go-w,a+rX-s .
  50. python3 setup.py build
  51. python3 setup.py install --prefix=/usr --root="$destdir" --optimize=1
  52. # Copy documentation
  53. mkdir -p "${destdir}${docsdir}"
  54. cp -p $docs "${destdir}${docsdir}"
  55. }