diff --git a/textproc/discount/DESCR b/textproc/discount/DESCR new file mode 100644 index 000000000000..8633d174cf56 --- /dev/null +++ b/textproc/discount/DESCR @@ -0,0 +1,14 @@ +Markdown is a text-to-HTML conversion tool for web writers. Markdown +allows you to write using an easy-to-read, easy-to-write plain text +format, then convert it to structurally valid XHTML (or HTML). + +The overriding design goal for Markdown's formatting syntax is to make +it as readable as possible. The idea is that a Markdown-formatted +document should be publishable as-is, as plain text, without looking +like it's been marked up with tags or formatting instructions. While +Markdown's syntax has been influenced by several existing text-to-HTML +filters, the single biggest source of inspiration for Markdown's +syntax is the format of plain text email. + +Original Markdown implementation is written in Perl. Discount provides a +Markdown CLI tool and a library, written in C. diff --git a/textproc/discount/Makefile b/textproc/discount/Makefile new file mode 100644 index 000000000000..f98edfdae52b --- /dev/null +++ b/textproc/discount/Makefile @@ -0,0 +1,25 @@ +# $NetBSD: Makefile,v 1.1 2013/04/04 09:40:23 wiz Exp $ +# + +DISTNAME= discount-2.1.6 +CATEGORIES= textproc +MASTER_SITES= http://www.pell.portland.or.us/~orc/Code/discount/ +EXTRACT_SUFX= .tar.bz2 + +MAINTAINER= zecrazytux@zecrazytux.net +HOMEPAGE= http://www.pell.portland.or.us/~orc/Code/discount/ +COMMENT= Markdown C implementation +LICENSE= modified-bsd + +HAS_CONFIGURE= YES +CONFIGURE_SCRIPT= ./configure.sh +CONFIGURE_ARGS= --prefix=${PREFIX} +CONFIGURE_ARGS+= --execdir=${PREFIX}/bin +CONFIGURE_ARGS+= --libdir=${PREFIX}/lib +CONFIGURE_ARGS+= --mandir=${PREFIX}/${PKGMANDIR} +CONFIGURE_ARGS+= --enable-all-features + +INSTALL_TARGET= install.everything +TEST_TARGET= test + +.include "../../mk/bsd.pkg.mk" diff --git a/textproc/discount/PLIST b/textproc/discount/PLIST new file mode 100644 index 000000000000..ec48fac8687b --- /dev/null +++ b/textproc/discount/PLIST @@ -0,0 +1,29 @@ +@comment $NetBSD: PLIST,v 1.1 2013/04/04 09:40:23 wiz Exp $ +bin/makepage +bin/markdown +bin/mkd2html +bin/theme +include/mkdio.h +lib/libmarkdown.a +man/man1/makepage.1 +man/man1/markdown.1 +man/man1/mkd2html.1 +man/man1/theme.1 +man/man3/markdown.3 +man/man3/mkd-callbacks.3 +man/man3/mkd-functions.3 +man/man3/mkd-line.3 +man/man3/mkd_cleanup.3 +man/man3/mkd_compile.3 +man/man3/mkd_css.3 +man/man3/mkd_doc_author.3 +man/man3/mkd_doc_date.3 +man/man3/mkd_doc_title.3 +man/man3/mkd_generatecss.3 +man/man3/mkd_generatehtml.3 +man/man3/mkd_generateline.3 +man/man3/mkd_in.3 +man/man3/mkd_line.3 +man/man3/mkd_string.3 +man/man7/markdown.7 +man/man7/mkd-extensions.7 diff --git a/textproc/discount/buildlink3.mk b/textproc/discount/buildlink3.mk new file mode 100644 index 000000000000..7ce874b1eefb --- /dev/null +++ b/textproc/discount/buildlink3.mk @@ -0,0 +1,12 @@ +# $NetBSD: buildlink3.mk,v 1.1 2013/04/04 09:40:23 wiz Exp $ + +BUILDLINK_TREE+= discount + +.if !defined(DISCOUNT_BUILDLINK3_MK) +DISCOUNT_BUILDLINK3_MK:= + +BUILDLINK_API_DEPENDS.discount+= discount>=2.1.6 +BUILDLINK_PKGSRCDIR.discount?= ../../textproc/discount +.endif # DISCOUNT_BUILDLINK3_MK + +BUILDLINK_TREE+= -discount diff --git a/textproc/discount/distinfo b/textproc/discount/distinfo new file mode 100644 index 000000000000..5066af6a14dc --- /dev/null +++ b/textproc/discount/distinfo @@ -0,0 +1,5 @@ +$NetBSD: distinfo,v 1.1 2013/04/04 09:40:23 wiz Exp $ + +SHA1 (discount-2.1.6.tar.bz2) = a7461731613d0e2f88dd19af9feb860c191e8234 +RMD160 (discount-2.1.6.tar.bz2) = 1cddc71a87e56ba0138e8ca9774c402236a91a7d +Size (discount-2.1.6.tar.bz2) = 83823 bytes