Date: Sat, 10 Feb 2007 20:16:32 GMT From: John MacFarlane<jgm@berkeley.edu> To: freebsd-gnats-submit@FreeBSD.org Subject: ports/109028: New port: textproc/pandoc - A general markup converter Message-ID: <200702102016.l1AKGWmI055337@www.freebsd.org> Resent-Message-ID: <200702102020.l1AKKHGD020760@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 109028 >Category: ports >Synopsis: New port: textproc/pandoc - A general markup converter >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Sat Feb 10 20:20:16 GMT 2007 >Closed-Date: >Last-Modified: >Originator: John MacFarlane >Release: 6.2-RELEASE >Organization: >Environment: >Description: New port for Pandoc (http://sophos.berkeley.edu/macfarlane/pandoc/): Pandoc is a command-line tool for converting from one markup format to another. It can read markdown and (subsets of) reStructuredText, HTML, and LaTeX, and it can write markdown, reStructuredText, HTML, LaTeX, DocBook, RTF, and S5 HTML slide shows. Pandoc extends standard markdown syntax with footnotes, embedded LaTeX, and other features. A compatibility mode is provided for those who need a drop-in replacement for Markdown.pl. Included wrapper scripts make it easy to convert markdown documents to PDFs and to convert web pages to markdown documents. >How-To-Repeat: >Fix: See attached file pandoc-port.shar.txt Patch attached with submission follows: # This is a shell archive. Save it in a file, remove anything before # this line, and then unpack it by entering "sh file". Note, it may # create directories; files and directories will be owned by you and # have default permissions. # # This archive contains: # # pandoc/ # pandoc/Makefile # pandoc/distinfo # pandoc/pkg-descr # echo c - pandoc/ mkdir -p pandoc/ > /dev/null 2>&1 echo x - pandoc/Makefile sed 's/^X//' >pandoc/Makefile << 'END-of-pandoc/Makefile' X# New ports collection makefile for: pandoc X# Date created: 9 February 2007 X# Whom: John MacFarlane <jgm@berkeley.edu> X# X# $FreeBSD$ X# X XPORTNAME= pandoc XPORTVERSION= 0.3 XCATEGORIES= textproc haskell XMASTER_SITES= http://pandoc.googlecode.com/files/ XDISTNAME= pandoc-${PORTVERSION} X XMAINTAINER= jgm@berkeley.edu XCOMMENT= A general markup converter X XBUILD_DEPENDS= perl>=5.8:${PORTSDIR}/lang/perl5.8 \ X ghc>=6.4:${PORTSDIR}/lang/ghc X XMANCOMPRESSED= no XMAN1= pandoc.1 markdown2pdf.1 html2markdown.1 hsmarkdown.1 X XUSE_GMAKE= yes X XPLIST_FILES= bin/pandoc bin/markdown2pdf bin/html2markdown bin/hsmarkdown XPORTDOCS= BUGS README README.html XSCRIPTS= hsmarkdown html2markdown markdown2pdf X Xdo-install: X @${INSTALL_PROGRAM} ${WRKSRC}/dist/build/pandoc/pandoc ${PREFIX}/bin X.for script in ${SCRIPTS} X @${INSTALL_SCRIPT} ${WRKSRC}/${script} ${PREFIX}/bin X.endfor X.for man in ${MAN1} X @${INSTALL_MAN} ${WRKSRC}/man/man1/${man} ${PREFIX}/man/man1 X.endfor X.if !defined(NOPORTDOCS) X @${MKDIR} ${DOCSDIR} X.for doc in ${PORTDOCS} X @${INSTALL_DATA} ${WRKSRC}/${doc} ${DOCSDIR} X.endfor X.endif X X.include <bsd.port.mk> END-of-pandoc/Makefile echo x - pandoc/distinfo sed 's/^X//' >pandoc/distinfo << 'END-of-pandoc/distinfo' XMD5 (pandoc-0.3.tar.gz) = 08ea5da564b721bd3cd52eee316143a1 XSHA256 (pandoc-0.3.tar.gz) = b010436d325c8ec67e2f9c238474089f76c895bec3ef19ca13c82da5860a4b05 XSIZE (pandoc-0.3.tar.gz) = 243335 END-of-pandoc/distinfo echo x - pandoc/pkg-descr sed 's/^X//' >pandoc/pkg-descr << 'END-of-pandoc/pkg-descr' XPandoc is a command-line tool for converting from one markup format Xto another. It can read markdown and (subsets of) reStructuredText, XHTML, and LaTeX, and it can write markdown, reStructuredText, HTML, XLaTeX, DocBook, RTF, and S5 HTML slide shows. X XPandoc extends standard markdown syntax with footnotes, embedded LaTeX, Xand other features. A compatibility mode is provided for those who Xneed a drop-in replacement for Markdown.pl. Included wrapper scripts Xmake it easy to convert markdown documents to PDFs and to convert web Xpages to markdown documents. X XIn contrast to existing tools for converting markdown to HTML, which Xuse regex substitutions, pandoc has a modular design: it consists of a Xset of readers, which parse text in a given format and produce a native Xrepresentation of the document, and a set of writers, which convert Xthis native representation into a target format. Thus, adding an input Xor output format requires only adding a reader or writer. X XWWW: http://sophos.berkeley.edu/macfarlane/pandoc/ END-of-pandoc/pkg-descr exit >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200702102016.l1AKGWmI055337>