Opened 16 years ago

Closed 15 years ago

#19517 closed submission (fixed)

New port: fmt-ptrn

Reported by: mike@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 1.7.1
Keywords: Cc:
Port: fmt-ptrn

Description

New is a template system, especially useful in conjunction with a simple text editor such as vi. The user maintains templates which may contain format strings. At run time, nf replaces the format strings in a template with appropriate values to create a new file.

For example, given the following template:

FILE: %(FILE) AUTHOR: %(FULLNAME) DATE: %(DATE)

Copyright (C) 1999 %(FULLNAME) %(EMAIL) All rights reserved.

nf will create:

FILE: foo.cpp AUTHOR: W. Michael Petullo DATE: 11 September 1999

Copyright (C) 1999 W. Michael Petullo new@… All rights reserved.

on my computer.

The program understands plaintext or gziped template files.

The fmt-ptrn system also provides a shared library which allows a programmer access to nf's functionality. The system was developed to be light and fast. Its only external dependencies are the C library, glib2 and zlib.

Attachments (1)

Portfile (535 bytes) - added by mike@… 16 years ago.
New portfile with dependencies.

Download all attachments as: .zip

Change History (3)

comment:1 Changed 16 years ago by blb@…

This needs glib2 installed for running, and uses pkg-config to find it right? If so it'll need a depends_build for pkgconfig and depends_lib for glib2.

Changed 16 years ago by mike@…

Attachment: Portfile added

New portfile with dependencies.

comment:2 Changed 15 years ago by jmroot (Joshua Root)

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.