# $Id: Portfile 86792 2011-11-04 14:13:46Z ryandesign@macports.org $ PortSystem 1.0 name multimarkdown set git_name peg-${name} set git_author fletcher version 3.2 revision 1 categories textproc license GPL-2+ MIT maintainers singingwolfboy openmaintainer description turn minimally marked-up plain text into well formatted documents long_description \ 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. 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). homepage http://fletcherpenney.net/multimarkdown/ platforms darwin fetch.type git git.url https://github.com/${git_author}/${git_name} git.branch ${version} configure { system "cd ${worksrcpath} && git submodule init" reinplace "s|git@github.com:|https://github.com/|" ${worksrcpath}/.git/config system "cd ${worksrcpath} && git submodule update" } variant universal {} build.args CC="${configure.cc} [get_canonical_archflags]" #use_configure no # "make docs" builds multimarkdown as a dependency build.target docs destroot { xinstall ${worksrcpath}/${name} ${destroot}${prefix}/bin/ # documentation xinstall -d ${destroot}${prefix}/share/doc delete ${worksrcpath}/documentation/.git move ${worksrcpath}/documentation ${destroot}${prefix}/share/doc/${name} } depends_lib path:lib/pkgconfig/glib-2.0.pc:glib2 port:gettext depends_build port:pkgconfig livecheck.type regex livecheck.url https://github.com/${git_author}/${git_name}/tags livecheck.regex {tarball/([0-9.]+)"}