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.
In contrast to existing tools for converting markdown to HTML, which
use regex substitutions, pandoc has a modular design: it consists of a
set of readers, which parse text in a given format and produce a native
representation of the document, and a set of writers, which convert
this native representation into a target format. Thus, adding an input
or output format requires only adding a reader or writer.
WWW: http://sophos.berkeley.edu/macfarlane/pandoc/
PR: ports/109028
Submitted by: John MacFarlane <jgm at berkeley.edu>
Approved by: miwi (mentor)
2007-02-11 18:21:55 +01:00
|
|
|
# New ports collection makefile for: pandoc
|
|
|
|
# Date created: 9 February 2007
|
|
|
|
# Whom: John MacFarlane <jgm@berkeley.edu>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= pandoc
|
2011-05-09 07:28:57 +02:00
|
|
|
PORTVERSION= 1.8.1.1
|
2011-08-14 16:37:55 +02:00
|
|
|
PORTREVISION= 6
|
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.
In contrast to existing tools for converting markdown to HTML, which
use regex substitutions, pandoc has a modular design: it consists of a
set of readers, which parse text in a given format and produce a native
representation of the document, and a set of writers, which convert
this native representation into a target format. Thus, adding an input
or output format requires only adding a reader or writer.
WWW: http://sophos.berkeley.edu/macfarlane/pandoc/
PR: ports/109028
Submitted by: John MacFarlane <jgm at berkeley.edu>
Approved by: miwi (mentor)
2007-02-11 18:21:55 +01:00
|
|
|
CATEGORIES= textproc haskell
|
|
|
|
|
2010-01-30 20:52:54 +01:00
|
|
|
MAINTAINER= haskell@FreeBSD.org
|
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.
In contrast to existing tools for converting markdown to HTML, which
use regex substitutions, pandoc has a modular design: it consists of a
set of readers, which parse text in a given format and produce a native
representation of the document, and a set of writers, which convert
this native representation into a target format. Thus, adding an input
or output format requires only adding a reader or writer.
WWW: http://sophos.berkeley.edu/macfarlane/pandoc/
PR: ports/109028
Submitted by: John MacFarlane <jgm at berkeley.edu>
Approved by: miwi (mentor)
2007-02-11 18:21:55 +01:00
|
|
|
COMMENT= A general markup converter
|
|
|
|
|
2011-05-09 07:28:57 +02:00
|
|
|
LICENSE= GPLv2
|
|
|
|
FILE_LICENSE= COPYING
|
|
|
|
|
2010-05-12 18:33:59 +02:00
|
|
|
CABAL_SETUP= Setup.hs
|
2011-05-09 07:28:57 +02:00
|
|
|
USE_CABAL= citeproc-hs>=0.3.1 dlist>=0.4 HTTP>=4000.0.5 json>=0.4 \
|
|
|
|
mtl>=1.1 network>=2 pandoc-types>=1.8 parsec>=2.1 \
|
|
|
|
tagsoup>=0.12 texmath>=0.5 utf8-string>=0.3 \
|
|
|
|
xhtml>=3000.0 xml>=1.3.5 zip-archive>=0.1.1.7
|
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.
In contrast to existing tools for converting markdown to HTML, which
use regex substitutions, pandoc has a modular design: it consists of a
set of readers, which parse text in a given format and produce a native
representation of the document, and a set of writers, which convert
this native representation into a target format. Thus, adding an input
or output format requires only adding a reader or writer.
WWW: http://sophos.berkeley.edu/macfarlane/pandoc/
PR: ports/109028
Submitted by: John MacFarlane <jgm at berkeley.edu>
Approved by: miwi (mentor)
2007-02-11 18:21:55 +01:00
|
|
|
|
2010-05-16 00:20:35 +02:00
|
|
|
MAN1= pandoc.1 markdown2pdf.1
|
2011-05-09 07:28:57 +02:00
|
|
|
MAN5= pandoc_markdown.5
|
2010-01-30 20:52:54 +01:00
|
|
|
|
2010-05-12 18:33:59 +02:00
|
|
|
PORTDATA= *
|
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.
In contrast to existing tools for converting markdown to HTML, which
use regex substitutions, pandoc has a modular design: it consists of a
set of readers, which parse text in a given format and produce a native
representation of the document, and a set of writers, which convert
this native representation into a target format. Thus, adding an input
or output format requires only adding a reader or writer.
WWW: http://sophos.berkeley.edu/macfarlane/pandoc/
PR: ports/109028
Submitted by: John MacFarlane <jgm at berkeley.edu>
Approved by: miwi (mentor)
2007-02-11 18:21:55 +01:00
|
|
|
|
2010-05-16 00:20:35 +02:00
|
|
|
OPTIONS= HIGHLIGHTING "Compile in support for syntax highlighting" off \
|
|
|
|
EXECUTABLE "Build the pandoc executable" on \
|
|
|
|
WRAPPERS "Build the wrappers (markdown2pdf)" on \
|
|
|
|
LIBRARY "Build the pandoc library" on \
|
2011-05-09 07:28:57 +02:00
|
|
|
THREADED "Compile markdown2pdf with -threaded option" on
|
2008-12-21 16:14:00 +01:00
|
|
|
|
2010-05-23 00:41:50 +02:00
|
|
|
.include "${.CURDIR}/../../lang/ghc/bsd.cabal.options.mk"
|
2010-05-16 00:20:35 +02:00
|
|
|
.include <bsd.port.options.mk>
|
2008-12-21 16:14:00 +01:00
|
|
|
|
|
|
|
.if defined(WITH_HIGHLIGHTING)
|
2010-01-30 20:52:54 +01:00
|
|
|
CONFIGURE_ARGS+= --flags="highlighting"
|
2011-05-09 07:28:57 +02:00
|
|
|
USE_CABAL+= highlighting-kate
|
2010-05-16 00:20:35 +02:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --flags="-highlighting"
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_EXECUTABLE)
|
|
|
|
CONFIGURE_ARGS+= --flags="exectuable"
|
|
|
|
EXECUTABLE+= pandoc
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --flags="-executable"
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_WRAPPERS)
|
|
|
|
CONFIGURE_ARGS+= --flags="wrappers"
|
|
|
|
EXECUTABLE+= markdown2pdf
|
|
|
|
|
|
|
|
.if !defined(WITH_EXECUTABLE)
|
|
|
|
IGNORE= cannot be compiled since wrappers require an executable. Please (re)run 'make config' and choose EXECUTABLE
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --flags="-wrappers"
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_LIBRARY)
|
|
|
|
CONFIGURE_ARGS+= --flags="library"
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --flags="-library"
|
|
|
|
STANDALONE= yes
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if !defined(WITH_EXECUTABLE) && !defined(WITH_LIBRARY)
|
|
|
|
IGNORE= cannot be compiled in this configuration. Please (re)run 'make config' and choose either EXECUTABLE or LIBRARY or both
|
|
|
|
.endif
|
|
|
|
|
2011-05-09 07:28:57 +02:00
|
|
|
.if defined(WITH_THREADED)
|
|
|
|
CONFIGURE_ARGS+= --flags="threaded"
|
2010-05-16 00:20:35 +02:00
|
|
|
.else
|
2011-05-09 07:28:57 +02:00
|
|
|
CONFIGURE_ARGS+= --flags="-threaded"
|
2008-12-21 16:14:00 +01:00
|
|
|
.endif
|
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.
In contrast to existing tools for converting markdown to HTML, which
use regex substitutions, pandoc has a modular design: it consists of a
set of readers, which parse text in a given format and produce a native
representation of the document, and a set of writers, which convert
this native representation into a target format. Thus, adding an input
or output format requires only adding a reader or writer.
WWW: http://sophos.berkeley.edu/macfarlane/pandoc/
PR: ports/109028
Submitted by: John MacFarlane <jgm at berkeley.edu>
Approved by: miwi (mentor)
2007-02-11 18:21:55 +01:00
|
|
|
|
2010-05-12 18:33:59 +02:00
|
|
|
.include "${.CURDIR}/../../lang/ghc/bsd.cabal.mk"
|
2010-05-16 00:20:35 +02:00
|
|
|
.include <bsd.port.mk>
|