diff options
author | junovitch <junovitch@FreeBSD.org> | 2015-09-10 08:45:25 +0800 |
---|---|---|
committer | junovitch <junovitch@FreeBSD.org> | 2015-09-10 08:45:25 +0800 |
commit | ca78adf37713bc1867815f3598f35b241864f7f9 (patch) | |
tree | 4c9b7b82a67f75c947df72379c9c1ac387ebbca0 /textproc/smi | |
parent | 6d376dbef96f95c23d4c507ca86993da06655351 (diff) | |
download | freebsd-ports-gnome-ca78adf37713bc1867815f3598f35b241864f7f9.tar.gz freebsd-ports-gnome-ca78adf37713bc1867815f3598f35b241864f7f9.tar.zst freebsd-ports-gnome-ca78adf37713bc1867815f3598f35b241864f7f9.zip |
New Port: textproc/smi
Smi is a Simple Markup Interpreter / filter for simplified Markup dialect.
smi can be fed text in Markdown, and return HTML output. smi can be fed
HTML, and return the markup translated to entities. I use smi as a filter
for devel/cgit to parse the README.md files, returning HTML output. I am
also using it to markup wiki pages, for a git backed wiki. The use cases
are limited only by your imagination.
WWW: http://BSDforge.com/projects/textproc/smi/
PR: 196224
Submitted by: Chris Hutchinson <portmaster@bsdforge.com>
Approved by: pgollucci (mentor)
Differential Revision: https://reviews.freebsd.org/D3569
Diffstat (limited to 'textproc/smi')
-rw-r--r-- | textproc/smi/Makefile | 34 | ||||
-rw-r--r-- | textproc/smi/distinfo | 2 | ||||
-rw-r--r-- | textproc/smi/pkg-descr | 8 |
3 files changed, 44 insertions, 0 deletions
diff --git a/textproc/smi/Makefile b/textproc/smi/Makefile new file mode 100644 index 000000000000..7225ece1c7b0 --- /dev/null +++ b/textproc/smi/Makefile @@ -0,0 +1,34 @@ +# Created by: Chris Hutchinson <portmaster@bsdforge.com> +# $FreeBSD$ + +PORTNAME= smi +PORTVERSION= 1.4 +CATEGORIES= textproc www +MASTER_SITES= http://bsdforge.com/projects/source/textproc/${PORTNAME}/ + +MAINTAINER= portmaster@bsdforge.com +COMMENT= Simple Markdown Interpreter / filter for simplified markup dialect + +LICENSE= MIT BSD2CLAUSE +LICENSE_COMB= multi +LICENSE_FILE= ${WRKSRC}/LICENSE + +PORTDOCS= README.md + +PLIST_FILES= bin/smi man/man1/smi.1.gz + +USES= tar:xz + +post-patch: + ${REINPLACE_CMD} -e 's|^CC = .*|CC = ${CC}|' \ + -e 's|^PREFIX = .*|PREFlX = ${PREFIX}|' \ + -e 's|^MANPREFIX = .*|MANPREFIX = ${MANPREFIX}|' \ + ${WRKSRC}/config.mk + +do-install: + ${INSTALL_PROGRAM} ${WRKSRC}/smi ${STAGEDIR}${PREFIX}/bin + ${INSTALL_MAN} ${WRKSRC}/smi.1 ${STAGEDIR}${MANPREFIX}/man/man1 + @${MKDIR} ${STAGEDIR}${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/${PORTDOCS} ${STAGEDIR}${DOCSDIR} + +.include <bsd.port.mk> diff --git a/textproc/smi/distinfo b/textproc/smi/distinfo new file mode 100644 index 000000000000..aa29c7a8df3a --- /dev/null +++ b/textproc/smi/distinfo @@ -0,0 +1,2 @@ +SHA256 (smi-1.4.tar.xz) = dca9315a926e12516526aa67827be42f2903189dc3c3e9efb2170ac06c2e4ba4 +SIZE (smi-1.4.tar.xz) = 7196 diff --git a/textproc/smi/pkg-descr b/textproc/smi/pkg-descr new file mode 100644 index 000000000000..06e230d3c23f --- /dev/null +++ b/textproc/smi/pkg-descr @@ -0,0 +1,8 @@ +Smi is a Simple Markup Interpreter / filter for simplified Markup dialect. +smi can be fed text in Markdown, and return HTML output. smi can be fed +HTML, and return the markup translated to entities. I use smi as a filter +for devel/cgit to parse the README.md files, returning HTML output. I am +also using it to markup wiki pages, for a git backed wiki. The use cases +are limited only by your imagination. + +WWW: http://BSDforge.com/projects/textproc/smi/ |