Import markdown 1.5

A text-to-HTML conversion tool.

From Will Maier <willmaier@ml1.net>
This commit is contained in:
alek 2006-10-09 16:01:25 +00:00
parent 6f6b2ea1eb
commit 8aee0fab30
6 changed files with 81 additions and 0 deletions

View File

@ -0,0 +1,38 @@
# $OpenBSD: Makefile,v 1.1.1.1 2006/10/09 16:01:25 alek Exp $
COMMENT= "text-to-HTML conversion tool"
DISTNAME= markdown-1-5.py
PKGNAME= markdown-1.5
CATEGORIES= textproc
HOMEPAGE= http://www.freewisdom.org/projects/python-markdown/
MAINTAINER= Will Maier <willmaier@ml1.net>
# GPL/BSD dual licensed
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
MODULES= lang/python
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=python-markdown/}
EXTRACT_SUFX=
WRKDIST= ${WRKDIR}/${PKGNAME}
do-extract:
@mkdir ${WRKDIST}
@sed -e "1s|!.*|!${MODPY_BIN}|" ${FULLDISTDIR}/${DISTNAME} \
> ${WRKDIST}/markdown.py
@cp ${FILESDIR}/setup.py ${WRKDIST}/.
do-regress:
@cd ${WRKSRC} && ${MODPY_BIN} markdown.py -test
post-install:
${INSTALL_SCRIPT} ${WRKSRC}/markdown.py ${PREFIX}/bin/markdown
.include <bsd.port.mk>

View File

@ -0,0 +1,4 @@
MD5 (markdown-1-5.py) = 30a49122985bed5bd2901e720d680a3f
RMD160 (markdown-1-5.py) = e91a34ade448f9df3075a014fc624c1e543bd3dc
SHA1 (markdown-1-5.py) = 15ced0a09b8ad398b4b867d9dbe4aede5ee343a8
SIZE (markdown-1-5.py) = 60323

View File

@ -0,0 +1,15 @@
# $OpenBSD: setup.py,v 1.1.1.1 2006/10/09 16:01:25 alek Exp $
from distutils.core import setup
setup(
name = 'markdown',
version = '1.5',
description = "Python implementation of Markdown.",
author = "Manfred Stienstra and Yuri takhteyev",
maintainer = "Yuri Takhteyev",
maintainer_email = "yuri [at] freewisdom.org",
url = "http://www.freewisdom.org/projects/python-markdown",
py_modules = ["markdown",],
)

View File

@ -0,0 +1,15 @@
$OpenBSD: patch-markdown_py,v 1.1.1.1 2006/10/09 16:01:25 alek Exp $
--- markdown.py.orig Wed Jun 7 10:48:55 2006
+++ markdown.py Wed Jun 7 10:48:47 2006
@@ -1658,9 +1658,9 @@ def get_vars(args):
USAGE = """
-\nUsing markdown.py:
+\nUsing markdown:
- python markdown.py [option] input_file_with_markdown.txt [output_file.html]
+ markdown [option] input_file_with_markdown.txt [output_file.html]
Options:

View File

@ -0,0 +1,5 @@
Markdown is two things: (1) a plain text formatting syntax; and (2) a
software tool that converts the plain text formatting to (X)HTML. The
formatting syntax is designed to be easy and intuitive for web authors
and resembles typical email formatting conventions. The resultant
(X)HTML is structurally valid.

View File

@ -0,0 +1,4 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2006/10/09 16:01:25 alek Exp $
bin/markdown
lib/python${MODPY_VERSION}/site-packages/markdown.py
lib/python${MODPY_VERSION}/site-packages/markdown.pyc