BSD Ports

textproc/ctpl 0.3.5 FreeBSD

C Template (Parser) Library

System
FreeBSD
Repository
FreeBSD ports
Maintainer
[email protected]
License
GPLv3+
Categories
textproc, devel
Package size
105.2 KiB, 789.9 KiB installed

Description

CTPL is a template library written in C. It allows fast and easy parsing of templates from many sources (including in-memory data and local and remote streaming, thanks to GIO) and fine control over template parsing environment.

CTPL depends on the following libraries:

  • GLib :: General purpose C utility library
  • GIO :: GLib's I/O abstraction library

* Advantages

  • It is a library, then it can be easily used from programs;
  • Separated lexer and parser;
  • It is written in portable C;
  • Simple syntax;
  • Fast and strict parsing;
  • Possible in-memory parsing, allowing non-file data parsing and avoiding I/O-latency, through GIO's GMemoryInputStream and GMemoryOutputStream.

* Disadvantages

  • Since the input is first completely loaded as a token tree in memory -- which is also one of the advantages -- , it may consume a little more memory than the input template size.

In the other systems

SystemPortVersion
FreeBSDtextproc/ctpl0.3.5
DragonFlytextproc/ctpl0.3.4_1

Install

Binary package:

pkg install ctpl

From the ports tree:

cd /usr/ports/textproc/ctpl/ && make install clean

To depend on this port in another port's Makefile:

RUN_DEPENDS=	ctpl>0:textproc/ctpl
LIB_DEPENDS=	libctpl.so:textproc/ctpl

Packages

The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.

Repositoryaarch64amd64armv6armv7i386
FreeBSD:14:latest0.3.50.3.50.3.40.3.50.3.5
FreeBSD:14:quarterly0.3.50.3.5n/a0.3.50.3.5
FreeBSD:15:latest0.3.50.3.5n/a0.3.50.3.5
FreeBSD:15:quarterly0.3.50.3.5n/an/an/a
FreeBSD:16:latest0.3.50.3.5n/an/an/a
FreeBSD:16:quarterlyn/an/an/an/an/a

Dependencies

As this port's Makefile names them.

Build 1

The full lists below include those, and their dependencies in turn.

Build dependencies 40
Run dependencies 15

Configuration

Options name: textproc_ctpl

OptionDefaultDescription
DOCSoffBuild and/or install documentation
NLSoffNative Language Support
USES
autoreconf gettext-tools gmake gnome libtool pathfix pkgconfig
Service scripts
none

Files

Manual pages 1
  • ctpl(1)
pkg-plist 53
  • bin/ctpl
  • include/ctpl/ctpl-environ.h
  • include/ctpl/ctpl-eval.h
  • include/ctpl/ctpl-input-stream.h
  • include/ctpl/ctpl-io.h
  • include/ctpl/ctpl-lexer-expr.h
  • include/ctpl/ctpl-lexer.h
  • include/ctpl/ctpl-output-stream.h
  • include/ctpl/ctpl-parser.h
  • include/ctpl/ctpl-token.h
  • include/ctpl/ctpl-value.h
  • include/ctpl/ctpl-version.h
  • include/ctpl/ctpl.h
  • lib/libctpl.a
  • lib/libctpl.so
  • lib/libctpl.so.2
  • lib/libctpl.so.2.3.0
  • libdata/pkgconfig/ctpl.pc
  • share/gtk-doc/html/ctpl/annotation-glossary.html
  • share/gtk-doc/html/ctpl/api-index-0-2.html
  • share/gtk-doc/html/ctpl/api-index-0-3.html
  • share/gtk-doc/html/ctpl/api-index-deprecated.html
  • share/gtk-doc/html/ctpl/api-index-full.html
  • share/gtk-doc/html/ctpl/ch01.html
  • share/gtk-doc/html/ctpl/ch01s02.html
  • share/gtk-doc/html/ctpl/ch01s03.html
  • share/gtk-doc/html/ctpl/ch01s05.html
  • share/gtk-doc/html/ctpl/ch02.html
  • share/gtk-doc/html/ctpl/ctpl-CtplEnviron.html
  • share/gtk-doc/html/ctpl/ctpl-CtplEval.html
  • share/gtk-doc/html/ctpl/ctpl-CtplInputStream.html
  • share/gtk-doc/html/ctpl/ctpl-CtplLexer.html
  • share/gtk-doc/html/ctpl/ctpl-CtplLexerExpr.html
  • share/gtk-doc/html/ctpl/ctpl-CtplOutputStream.html
  • share/gtk-doc/html/ctpl/ctpl-CtplParser.html
  • share/gtk-doc/html/ctpl/ctpl-CtplToken.html
  • share/gtk-doc/html/ctpl/ctpl-CtplValue.html
  • share/gtk-doc/html/ctpl/ctpl-Generic-IO.html
  • share/gtk-doc/html/ctpl/ctpl-Version-information.html
  • share/gtk-doc/html/ctpl/ctpl.devhelp2
  • share/gtk-doc/html/ctpl/environment-description-syntax.html
  • share/gtk-doc/html/ctpl/home.png
  • share/gtk-doc/html/ctpl/index.html
  • share/gtk-doc/html/ctpl/left-insensitive.png
  • share/gtk-doc/html/ctpl/left.png
  • share/gtk-doc/html/ctpl/right-insensitive.png
  • share/gtk-doc/html/ctpl/right.png
  • share/gtk-doc/html/ctpl/style.css
  • share/gtk-doc/html/ctpl/up-insensitive.png
  • share/gtk-doc/html/ctpl/up.png
  • share/locale/fr/LC_MESSAGES/ctpl.mo
  • share/locale/it/LC_MESSAGES/ctpl.mo
  • share/man/man1/ctpl.1.gz
distinfo 1
FileSizeSHA256
ctpl-0.3.5.tar.gz201721ae60c79316c6dc3a2935d906b8a911ce4188e8638b6e9b65fc6c04a5ca6bcdda
Master sites 1
  • https://git.tuxfamily.org/ctpl/ctpl.git/snapshot/

Commit history 0

No commits in the history this site was built from.