Import devel/py-mistune.

A markdown parser for Python.

OK sthen@, thanks.
This commit is contained in:
edd 2015-10-22 19:49:09 +00:00
parent f54496119e
commit dc38424203
5 changed files with 58 additions and 0 deletions

View File

@ -0,0 +1,25 @@
# $OpenBSD: Makefile,v 1.1.1.1 2015/10/22 19:49:09 edd Exp $
COMMENT = markdown parser for Python
MODPY_EGG_VERSION = 0.7.1
DISTNAME = mistune-${MODPY_EGG_VERSION}
PKGNAME = py-${DISTNAME}
CATEGORIES = textproc
HOMEPAGE = https://github.com/lepture/mistune
TEST_DEPENDS += devel/py-nose
# BSD
PERMIT_PACKAGE_CDROM = Yes
MODULES = lang/python
MODPY_PI = Yes
MODPY_SETUPTOOLS = Yes
do-test:
cd ${WRKSRC} && ${LOCALBASE}/bin/nosetests
.include <bsd.port.mk>

View File

@ -0,0 +1,2 @@
SHA256 (mistune-0.7.1.tar.gz) = YHbe33aDSJJ9mR9DceWnmcagFYsWCR3wjuhe4jHZKac=
SIZE (mistune-0.7.1.tar.gz) = 48371

View File

@ -0,0 +1,20 @@
$OpenBSD: patch-setup_py,v 1.1.1.1 2015/10/22 19:49:09 edd Exp $
Disable cython for now. Will make it easier to port to Python3 on OpenBSD.
--- setup.py.orig Mon Oct 19 21:50:54 2015
+++ setup.py Mon Oct 19 21:51:12 2015
@@ -13,11 +13,8 @@ from setuptools import setup, Extension
cmdclass = {}
-try:
- from Cython.Distutils import build_ext
-except ImportError:
- have_cython = False
-else:
+have_cython = False
+if False:
have_cython = True
import sys

View File

@ -0,0 +1,2 @@
The fastest markdown parser in pure Python with renderer features,
inspired by marked.

View File

@ -0,0 +1,9 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2015/10/22 19:49:09 edd Exp $
lib/python${MODPY_VERSION}/site-packages/mistune-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/
lib/python${MODPY_VERSION}/site-packages/mistune-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/PKG-INFO
lib/python${MODPY_VERSION}/site-packages/mistune-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/SOURCES.txt
lib/python${MODPY_VERSION}/site-packages/mistune-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/dependency_links.txt
lib/python${MODPY_VERSION}/site-packages/mistune-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/not-zip-safe
lib/python${MODPY_VERSION}/site-packages/mistune-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/top_level.txt
lib/python${MODPY_VERSION}/site-packages/mistune.py
lib/python${MODPY_VERSION}/site-packages/mistune.pyc