diff options
author | ryoon <ryoon@pkgsrc.org> | 2015-10-18 09:14:11 +0000 |
---|---|---|
committer | ryoon <ryoon@pkgsrc.org> | 2015-10-18 09:14:11 +0000 |
commit | 70a4228810b36fbc2209541c54be803c444ddd82 (patch) | |
tree | d121e7b41f31542416515cae6fa30a6ab446eb87 /textproc | |
parent | 7682cb0b3a6ec3fc379502ce7f0d51bd57c2e04d (diff) | |
download | pkgsrc-70a4228810b36fbc2209541c54be803c444ddd82.tar.gz |
Import multimarkdown-4.7.1 as textproc/multimarkdown.
MultiMarkdown, or MMD, is a tool to help turn minimally marked-up
plain text into well formatted documents, including HTML, PDF (by
way of LaTeX), OPML, or OpenDocument (specifically, Flat OpenDocument
or '.fodt', which can in turn be converted into RTF, Microsoft
Word, or virtually any other word-processing format).
MMD is a superset of the Markdown syntax, originally created by
John Gruber. It adds multiple syntax features (tables, footnotes,
and citations, to name a few), in addition to the various output
formats listed above (Markdown only creates HTML). Additionally,
it builds in "smart" typography for various languages (proper left-
and right-sided quotes, for example).
Diffstat (limited to 'textproc')
-rw-r--r-- | textproc/multimarkdown/DESCR | 12 | ||||
-rw-r--r-- | textproc/multimarkdown/Makefile | 31 | ||||
-rw-r--r-- | textproc/multimarkdown/PLIST | 10 | ||||
-rw-r--r-- | textproc/multimarkdown/distinfo | 7 | ||||
-rw-r--r-- | textproc/multimarkdown/patches/patch-scripts_mmd2pdf | 25 |
5 files changed, 85 insertions, 0 deletions
diff --git a/textproc/multimarkdown/DESCR b/textproc/multimarkdown/DESCR new file mode 100644 index 00000000000..dcf709ffb76 --- /dev/null +++ b/textproc/multimarkdown/DESCR @@ -0,0 +1,12 @@ +MultiMarkdown, or MMD, is a tool to help turn minimally marked-up +plain text into well formatted documents, including HTML, PDF (by +way of LaTeX), OPML, or OpenDocument (specifically, Flat OpenDocument +or '.fodt', which can in turn be converted into RTF, Microsoft +Word, or virtually any other word-processing format). + +MMD is a superset of the Markdown syntax, originally created by +John Gruber. It adds multiple syntax features (tables, footnotes, +and citations, to name a few), in addition to the various output +formats listed above (Markdown only creates HTML). Additionally, +it builds in "smart" typography for various languages (proper left- +and right-sided quotes, for example). diff --git a/textproc/multimarkdown/Makefile b/textproc/multimarkdown/Makefile new file mode 100644 index 00000000000..df258579d0e --- /dev/null +++ b/textproc/multimarkdown/Makefile @@ -0,0 +1,31 @@ +# $NetBSD: Makefile,v 1.1 2015/10/18 09:14:11 ryoon Exp $ + +DISTNAME= MultiMarkdown-4-4.7.1 +PKGNAME= ${DISTNAME:S/MultiMarkdown-4-/multimarkdown-/} +CATEGORIES= textproc +MASTER_SITES= ${MASTER_SITE_LOCAL} + +MAINTAINER= ryoon@NetBSD.org +HOMEPAGE= http://fletcherpenney.net/multimarkdown/ +COMMENT= MultiMarkdown (MMD) v4 written in C +LICENSE= gnu-gpl-v3 OR mit + +USE_TOOLS+= gmake perl + +MAKE_FLAGS+= prefix=${PREFIX} +BUILD_TARGET= ALL +INSTALL_TARGET= pkg-install pkg-install-scripts + +REPLACE_PERL= enumsToPerl.pl + +SUBST_CLASSES+= fix-paths +SUBST_STAGE.fix-paths= pre-configure +SUBST_MESSAGE.fix-paths= Fixing /usr/local paths. +SUBST_FILES.fix-paths= scripts/m* +SUBST_SED.fix-paths= -e 's,"/usr/local,"${PREFIX},g' + +post-patch: + cd ${WRKSRC} && \ + ${RM} scripts/markdown.bat scripts/mmd2pdf.orig + +.include "../../mk/bsd.pkg.mk" diff --git a/textproc/multimarkdown/PLIST b/textproc/multimarkdown/PLIST new file mode 100644 index 00000000000..8c2d653a870 --- /dev/null +++ b/textproc/multimarkdown/PLIST @@ -0,0 +1,10 @@ +@comment $NetBSD: PLIST,v 1.1 2015/10/18 09:14:11 ryoon Exp $ +bin/markdown +bin/mmd +bin/mmd2all +bin/mmd2odf +bin/mmd2opml +bin/mmd2pdf +bin/mmd2rtf +bin/mmd2tex +bin/multimarkdown diff --git a/textproc/multimarkdown/distinfo b/textproc/multimarkdown/distinfo new file mode 100644 index 00000000000..96bd95e909c --- /dev/null +++ b/textproc/multimarkdown/distinfo @@ -0,0 +1,7 @@ +$NetBSD: distinfo,v 1.1 2015/10/18 09:14:11 ryoon Exp $ + +SHA1 (MultiMarkdown-4-4.7.1.tar.gz) = 90a06cff838e598b9f1d30be0fe8f2d853ce8c59 +RMD160 (MultiMarkdown-4-4.7.1.tar.gz) = 24b8b3a6631dd2aac3ea648fd0bb5715101d0e09 +SHA512 (MultiMarkdown-4-4.7.1.tar.gz) = 0859e1b96f9321ab2ecf9f895ad6550bd36b48f8f77b1f403fdbef7d154e7a3e3e42ccd97d32e3002be773ba4d4cec166eba4f19903f4f084162ca61ec612d3b +Size (MultiMarkdown-4-4.7.1.tar.gz) = 759765 bytes +SHA1 (patch-scripts_mmd2pdf) = 234d96fc56a27bb1b69755b4097a3cf14cba1fd0 diff --git a/textproc/multimarkdown/patches/patch-scripts_mmd2pdf b/textproc/multimarkdown/patches/patch-scripts_mmd2pdf new file mode 100644 index 00000000000..2be09669c64 --- /dev/null +++ b/textproc/multimarkdown/patches/patch-scripts_mmd2pdf @@ -0,0 +1,25 @@ +$NetBSD: patch-scripts_mmd2pdf,v 1.1 2015/10/18 09:14:11 ryoon Exp $ + +* POSIX shell portability + https://github.com/fletcher/MultiMarkdown-4/pull/141 + +--- scripts/mmd2pdf.orig 2015-10-18 07:29:25.000000000 +0000 ++++ scripts/mmd2pdf +@@ -37,7 +37,7 @@ do + + xelatex "$file_name.tex" + +- if [ "$?" == "127" ] ++ if [ "$?" = "127" ] + then + echo "It doesn't appear that xelatex is installed properly." 1>&2 + echo "Be sure you have a working LaTeX installation." 1>&2 +@@ -53,7 +53,7 @@ do + # Use LaTeX + latexmk "$file_name.tex" + +- if [ "$?" == "127" ] ++ if [ "$?" = "127" ] + then + echo "It doesn't appear that latexmk is installed properly." 1>&2 + echo "Be sure you have a working LaTeX installation." 1>&2 |