diff options
author | minskim <minskim@pkgsrc.org> | 2007-06-15 01:05:05 +0000 |
---|---|---|
committer | minskim <minskim@pkgsrc.org> | 2007-06-15 01:05:05 +0000 |
commit | c4180627be57e25ab38b51a011aaca20192acf9a (patch) | |
tree | e4169fa69daf34fa97c868ac302bd452e2159e50 /textproc/ruby-maruku | |
parent | 48b49d77dcff9cd9513d8c5c74335ef14715b6dc (diff) | |
download | pkgsrc-c4180627be57e25ab38b51a011aaca20192acf9a.tar.gz |
Import ruby-maruku.
Maruku is a Markdown interpreter written in Ruby.
The other Ruby implementation of Markdown is Bluecloth. Maruku is
much different in philosophy from Bluecloth; the biggest difference is
that parsing is separated from rendering. In Maruku, an in-memory
representation of the Markdown document is created. Instead,
Bluecloth mantains the document in memory as a String at all times,
and does a series of gsub to transform to HTML.
Maruku is usually faster than Bluecloth. Bluecloth is faster for very
small documents. Bluecloth sometimes chokes on very big documents (it
is reported that the blame should be on Ruby's regexp implementation).
Diffstat (limited to 'textproc/ruby-maruku')
-rw-r--r-- | textproc/ruby-maruku/DESCR | 12 | ||||
-rw-r--r-- | textproc/ruby-maruku/Makefile | 25 | ||||
-rw-r--r-- | textproc/ruby-maruku/PLIST | 60 | ||||
-rw-r--r-- | textproc/ruby-maruku/distinfo | 5 |
4 files changed, 102 insertions, 0 deletions
diff --git a/textproc/ruby-maruku/DESCR b/textproc/ruby-maruku/DESCR new file mode 100644 index 00000000000..8ab2e87d204 --- /dev/null +++ b/textproc/ruby-maruku/DESCR @@ -0,0 +1,12 @@ +Maruku is a Markdown interpreter written in Ruby. + +The other Ruby implementation of Markdown is Bluecloth. Maruku is +much different in philosophy from Bluecloth; the biggest difference is +that parsing is separated from rendering. In Maruku, an in-memory +representation of the Markdown document is created. Instead, +Bluecloth mantains the document in memory as a String at all times, +and does a series of gsub to transform to HTML. + +Maruku is usually faster than Bluecloth. Bluecloth is faster for very +small documents. Bluecloth sometimes chokes on very big documents (it +is reported that the blame should be on Ruby's regexp implementation). diff --git a/textproc/ruby-maruku/Makefile b/textproc/ruby-maruku/Makefile new file mode 100644 index 00000000000..822cbae06b1 --- /dev/null +++ b/textproc/ruby-maruku/Makefile @@ -0,0 +1,25 @@ +# $NetBSD: Makefile,v 1.1.1.1 2007/06/15 01:05:05 minskim Exp $ + +DISTNAME= maruku-0.5.6 +CATEGORIES= textproc ruby +MASTER_SITES= http://rubyforge.org/frs/download.php/21120/ +EXTRACT_SUFX= .tgz + +MAINTAINER= minskim@NetBSD.org +HOMEPAGE= http://maruku.rubyforge.org/ +COMMENT= Markdown-superset interpreter + +NO_BUILD= yes +USE_LANGUAGES= # none + +REPLACE_RUBY= bin/* + +.include "../../lang/ruby/modules.mk" + +INSTALLATION_DIRS= bin + +do-install: + ${INSTALL_SCRIPT} ${WRKSRC}/bin/* ${PREFIX}/bin + cd ${WRKSRC}/lib && pax -rwppm . ${RUBY_SITELIBDIR} + +.include "../../mk/bsd.pkg.mk" diff --git a/textproc/ruby-maruku/PLIST b/textproc/ruby-maruku/PLIST new file mode 100644 index 00000000000..9d8a4901c32 --- /dev/null +++ b/textproc/ruby-maruku/PLIST @@ -0,0 +1,60 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2007/06/15 01:05:05 minskim Exp $ +bin/marudown +bin/maruku +bin/marutest +bin/marutex +${RUBY_SITELIBDIR}/maruku.rb +${RUBY_SITELIBDIR}/maruku/attributes.rb +${RUBY_SITELIBDIR}/maruku/defaults.rb +${RUBY_SITELIBDIR}/maruku/errors_management.rb +${RUBY_SITELIBDIR}/maruku/ext/math.rb +${RUBY_SITELIBDIR}/maruku/ext/math/elements.rb +${RUBY_SITELIBDIR}/maruku/ext/math/mathml_engines/blahtex.rb +${RUBY_SITELIBDIR}/maruku/ext/math/mathml_engines/itex2mml.rb +${RUBY_SITELIBDIR}/maruku/ext/math/mathml_engines/none.rb +${RUBY_SITELIBDIR}/maruku/ext/math/mathml_engines/ritex.rb +${RUBY_SITELIBDIR}/maruku/ext/math/parsing.rb +${RUBY_SITELIBDIR}/maruku/ext/math/to_html.rb +${RUBY_SITELIBDIR}/maruku/ext/math/to_latex.rb +${RUBY_SITELIBDIR}/maruku/helpers.rb +${RUBY_SITELIBDIR}/maruku/input/charsource.rb +${RUBY_SITELIBDIR}/maruku/input/extensions.rb +${RUBY_SITELIBDIR}/maruku/input/html_helper.rb +${RUBY_SITELIBDIR}/maruku/input/linesource.rb +${RUBY_SITELIBDIR}/maruku/input/parse_block.rb +${RUBY_SITELIBDIR}/maruku/input/parse_doc.rb +${RUBY_SITELIBDIR}/maruku/input/parse_span_better.rb +${RUBY_SITELIBDIR}/maruku/input/rubypants.rb +${RUBY_SITELIBDIR}/maruku/input/type_detection.rb +${RUBY_SITELIBDIR}/maruku/input_textile2/t2_parser.rb +${RUBY_SITELIBDIR}/maruku/maruku.rb +${RUBY_SITELIBDIR}/maruku/output/s5/fancy.rb +${RUBY_SITELIBDIR}/maruku/output/s5/to_s5.rb +${RUBY_SITELIBDIR}/maruku/output/to_html.rb +${RUBY_SITELIBDIR}/maruku/output/to_latex.rb +${RUBY_SITELIBDIR}/maruku/output/to_latex_entities.rb +${RUBY_SITELIBDIR}/maruku/output/to_latex_strings.rb +${RUBY_SITELIBDIR}/maruku/output/to_markdown.rb +${RUBY_SITELIBDIR}/maruku/output/to_s.rb +${RUBY_SITELIBDIR}/maruku/string_utils.rb +${RUBY_SITELIBDIR}/maruku/structures.rb +${RUBY_SITELIBDIR}/maruku/structures_inspect.rb +${RUBY_SITELIBDIR}/maruku/structures_iterators.rb +${RUBY_SITELIBDIR}/maruku/tests/benchmark.rb +${RUBY_SITELIBDIR}/maruku/tests/new_parser.rb +${RUBY_SITELIBDIR}/maruku/tests/tests.rb +${RUBY_SITELIBDIR}/maruku/textile2.rb +${RUBY_SITELIBDIR}/maruku/toc.rb +${RUBY_SITELIBDIR}/maruku/usage/example1.rb +${RUBY_SITELIBDIR}/maruku/version.rb +${RUBY_SITELIBDIR}/sort_prof.rb +@dirrm ${RUBY_SITELIBDIR}/maruku/usage +@dirrm ${RUBY_SITELIBDIR}/maruku/tests +@dirrm ${RUBY_SITELIBDIR}/maruku/output/s5 +@dirrm ${RUBY_SITELIBDIR}/maruku/output +@dirrm ${RUBY_SITELIBDIR}/maruku/input_textile2 +@dirrm ${RUBY_SITELIBDIR}/maruku/input +@dirrm ${RUBY_SITELIBDIR}/maruku/ext/math/mathml_engines +@dirrm ${RUBY_SITELIBDIR}/maruku/ext/math +@dirrm ${RUBY_SITELIBDIR}/maruku/ext +@dirrm ${RUBY_SITELIBDIR}/maruku diff --git a/textproc/ruby-maruku/distinfo b/textproc/ruby-maruku/distinfo new file mode 100644 index 00000000000..b3114377dfe --- /dev/null +++ b/textproc/ruby-maruku/distinfo @@ -0,0 +1,5 @@ +$NetBSD: distinfo,v 1.1.1.1 2007/06/15 01:05:05 minskim Exp $ + +SHA1 (maruku-0.5.6.tgz) = 464e52823eff128b7e6c3211c032959ac0e980f1 +RMD160 (maruku-0.5.6.tgz) = 0ac021003a10f9dac2ef5959499f5286a0ae01bb +Size (maruku-0.5.6.tgz) = 161463 bytes |