Date: Monday, September 26, 2022 @ 07:11:15 Author: grawlinson Revision: 1311442
addpkg: python-cheetah3 3.3.0a1-1 Added: python-cheetah3/ python-cheetah3/repos/ python-cheetah3/trunk/ python-cheetah3/trunk/PKGBUILD python-cheetah3/trunk/cheetah.1 -----------+ PKGBUILD | 78 +++++++++++++++++++++++++++++++++ cheetah.1 | 138 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 216 insertions(+) Added: python-cheetah3/trunk/PKGBUILD =================================================================== --- python-cheetah3/trunk/PKGBUILD (rev 0) +++ python-cheetah3/trunk/PKGBUILD 2022-09-26 07:11:15 UTC (rev 1311442) @@ -0,0 +1,78 @@ +# Maintainer: George Rawlinson <[email protected]> +# Contributor: Alex Brinister <alex_brinister at yahoo dot com> + +pkgbase=python-cheetah3 +pkgname=('python-cheetah3' 'python-cheetah3-docs') +pkgver=3.3.0a1 +pkgrel=1 +pkgdesc='A Python powered template engine and code generator' +arch=('x86_64') +url='https://cheetahtemplate.org' +license=('MIT' 'custom:Public') # manpage released by Debian in public domain +makedepends=('git' 'python' 'python-setuptools' 'python-sphinx') +checkdepends=('python-markdown' 'python-pygments') +_commit='56b268e6c9b32703d6b4ffd4c5b33aae69b5fe2b' +source=( + "$pkgbase::git+https://github.com/CheetahTemplate3/cheetah3#commit=$_commit" + 'cheetah.1' +) +b2sums=('SKIP' + '59c0689df18640aea8e671cd267741d1bff4b3954147a34ac71c67ec8399c08460976ecabdce7c7b866bd895c8963b6f03059e496eb7dfa2710d99deba78503d') + +pkgver() { + cd "$pkgbase" + + git describe --tags | sed 's/^v//' +} + +build() { + cd "$pkgbase" + + python setup.py build + + # generate documentation + PYTHONPATH="$PWD:$PYTHONPATH" make -C docs html +} + +check() { + cd "$pkgbase" + + export PYTHONPATH="$PWD:$PYTHONPATH" + export PATH="$PWD/bin:$PATH" + python Cheetah/Tests/Test.py +} + +package_python-cheetah3() { + depends=('python') + optdepends=( + 'python-markdown: for markdown filter' + 'python-memcache: for caching' + 'python-pygments: for code highlight filter' + 'python-cheetah3-docs: documentation' + ) + + cd "$pkgbase" + + python setup.py install --root="$pkgdir" --optimize=1 + + # man pages + install -vDm644 -t "$pkgdir/usr/share/man/man1" "$srcdir/cheetah.1" + ln -sf cheetah.1.gz "$pkgdir/usr/share/man/man1/cheetah-compile.1.gz" + ln -sf cheetah.1.gz "$pkgdir/usr/share/man/man1/cheetah-analyze.1.gz" + + # license + install -vDm644 -t "$pkgdir/usr/share/licenses/$pkgbase" LICENSE +} + +package_python-cheetah3-docs() { + pkgdesc+=' (documentation)' + + cd "$pkgbase" + + # documentation + install -vDm644 -t "$pkgdir/usr/share/doc/$pkgbase" README.rst + cp -vr docs/_build/html "$pkgdir/usr/share/doc/$pkgbase" + + # license + install -vDm644 -t "$pkgdir/usr/share/licenses/$pkgname" LICENSE +} Added: python-cheetah3/trunk/cheetah.1 =================================================================== --- python-cheetah3/trunk/cheetah.1 (rev 0) +++ python-cheetah3/trunk/cheetah.1 2022-09-26 07:11:15 UTC (rev 1311442) @@ -0,0 +1,138 @@ +.\" Hey, EMACS: -*- nroff -*- +.\" First parameter, NAME, should be all caps +.\" Second parameter, SECTION, should be 1-8, maybe w/ subsection +.\" other parameters are allowed: see man(7), man(1) +.TH CHEETAH 1 "2005 Apr 04" +.\" Please adjust this date whenever revising the manpage. +.\" +.\" Some roff macros, for reference: +.\" .nh disable hyphenation +.\" .hy enable hyphenation +.\" .ad l left justify +.\" .ad b justify to both left and right margins +.\" .nf disable filling +.\" .fi enable filling +.\" .br insert line break +.\" .sp <n> insert n+1 empty lines +.\" for manpage-specific macros, see man(7) +.SH NAME +cheetah \- Python template command-line tool +.SH SYNOPSIS +.B cheetah, cheetah-compile +.PP +.B cheetah COMMAND +.RI [ options ] " FILE" ... +.br +.B cheetah-compile +.RI [ options ] " FILE" ... +.SH DESCRIPTION +This manual page documents briefly the +\fBcheetah\fP command-line tool. This manual page was written for the Debian +distribution because the original program does not have a manual page. +.PP +.\" TeX users may be more comfortable with the \fB<whatever>\fP and +.\" \fI<whatever>\fP escape sequences to invode bold face and italics, +.\" respectively. +\fBcheetah\fP is a Python-powered template engine and code generator. It can be +used as a standalone utility or it can be combined with other tools. Cheetah +has many potential uses, but web developers looking for a viable alternative to +ASP, JSP, PHP and PSP are expected to be its principle user group. +.PP +The \fBcheetah\fP command-line tool is the standalone utility portion of the +software suite. \fBcheetah-compile\fP is a convenience script that for the +"\fBcheetah compile ...\fP" command. The utility accepts a single command +possible options and a list of files. If \fBFILE\fP is a single "-", read +standard input and write standard output. +.SH COMMANDS +.\" cheetah compile [options] [FILES ...] : Compile template definitions +.\" cheetah fill [options] [FILES ...] : Fill template definitions +.\" cheetah help : Print this help message +.\" cheetah options : Print options help message +.\" cheetah test : Run Cheetah's regression tests +.\" cheetah version : Print Cheetah version number +The possible \fBcheetah\fP commands are listed below. You may abbreviate the +command to the first letter; e.g., 'h' == 'help'. +.TP +.B compile +Compile template definitions +.TP +.B fill +Fill template definitions +.TP +.B help +Print commands help message +.TP +.B options +Print options help message for compile and fill commands +.TP +.B test +Run regression tests +.TP +.B version +Print version number +.\".B +.SH OPTIONS +.\" --idir DIR, --odir DIR : input/output directories (default: current dir) +.\" --iext EXT, --oext EXT : input/output filename extensions +.\" (default for compile: tmpl/py, fill: tmpl/html) +.\" -R : recurse subdirectories looking for input files +.\" --debug : print lots of diagnostic output to standard error +.\" --env : put the environment in the searchList +.\" --flat : no destination subdirectories +.\" --nobackup : don't make backups +.\" --pickle FILE : unpickle FILE and put that object in the searchList +.\" --stdout, -p : output to standard output (pipe) +The options for +.B cheetah +apply to the +.B compile +and +.B fill +commands. A summary of options is included below. +.TP +.B \-\-idir DIR +Input directories(default: current dir) +.TP +.B \-\-odir ODIR +Output directories (default: current dir) +.TP +.B \-\-iext IEXT +Input extension. The default input extension for both the +\fBcompile\fP and \fBfill\fP commands is "\fBtmpl\fP". +.TP +.B \-\-oext OEXT +Output extension. The default output extension for the +\fBcompile\fP command is "\fBpy\fP". The default output extension for \fBfill\fP +is "\fBhtml\fB". +.TP +.B \-R +Recurse subdirectories looking for input files +.TP +.B \-\-debug +Print lots of diagnostic output to the standard error file descriptor +.TP +.B \-\-env +Print the environment in the searchList +.TP +.B \-\-flat +No destination subdirectories +.TP +.B \-\-nobackup +Do not make backups +.TP +.B \-\-pickle FILE +unpickle FILE and put that output in the searchList +.TP +.B \-\-stdout, \-p +Output to standard output file descriptor (pipe) +.SH SEE ALSO +.BR pydoc(1) +.br +The programs are documented fully on the project website +.IR http://cheetahtemplate.sourceforge.net. +You can also browse the Python library files and their docstring descriptions +by using the standard pydoc utility. +.SH AUTHOR +This manual page was written by Chad C. Walstrom <[email protected]>, +for the Debian project and is dedicated to the Public Domain. +
