Import markdown 1.5
A text-to-HTML conversion tool. From Will Maier <willmaier@ml1.net>
This commit is contained in:
parent
6f6b2ea1eb
commit
8aee0fab30
38
textproc/markdown/Makefile
Normal file
38
textproc/markdown/Makefile
Normal 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>
|
4
textproc/markdown/distinfo
Normal file
4
textproc/markdown/distinfo
Normal 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
|
15
textproc/markdown/files/setup.py
Normal file
15
textproc/markdown/files/setup.py
Normal 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",],
|
||||
|
||||
)
|
15
textproc/markdown/patches/patch-markdown_py
Normal file
15
textproc/markdown/patches/patch-markdown_py
Normal 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:
|
||||
|
5
textproc/markdown/pkg/DESCR
Normal file
5
textproc/markdown/pkg/DESCR
Normal 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.
|
4
textproc/markdown/pkg/PLIST
Normal file
4
textproc/markdown/pkg/PLIST
Normal 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
|
Loading…
Reference in New Issue
Block a user