Import devel/py-mistune.
A markdown parser for Python. OK sthen@, thanks.
This commit is contained in:
parent
f54496119e
commit
dc38424203
25
textproc/py-mistune/Makefile
Normal file
25
textproc/py-mistune/Makefile
Normal 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>
|
2
textproc/py-mistune/distinfo
Normal file
2
textproc/py-mistune/distinfo
Normal file
@ -0,0 +1,2 @@
|
||||
SHA256 (mistune-0.7.1.tar.gz) = YHbe33aDSJJ9mR9DceWnmcagFYsWCR3wjuhe4jHZKac=
|
||||
SIZE (mistune-0.7.1.tar.gz) = 48371
|
20
textproc/py-mistune/patches/patch-setup_py
Normal file
20
textproc/py-mistune/patches/patch-setup_py
Normal 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
|
||||
|
2
textproc/py-mistune/pkg/DESCR
Normal file
2
textproc/py-mistune/pkg/DESCR
Normal file
@ -0,0 +1,2 @@
|
||||
The fastest markdown parser in pure Python with renderer features,
|
||||
inspired by marked.
|
9
textproc/py-mistune/pkg/PLIST
Normal file
9
textproc/py-mistune/pkg/PLIST
Normal 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
|
Loading…
Reference in New Issue
Block a user