Import py-commonmark a Python parser for the CommonMark Markdown spec.
OK landry@
This commit is contained in:
parent
a703e3be1d
commit
42fd4dc702
32
textproc/py-commonmark/Makefile
Normal file
32
textproc/py-commonmark/Makefile
Normal file
@ -0,0 +1,32 @@
|
||||
# $OpenBSD: Makefile,v 1.1.1.1 2017/11/02 09:32:36 sebastia Exp $
|
||||
|
||||
COMMENT= parser for the CommonMark markdown spec
|
||||
|
||||
MODPY_EGG_VERSION= 0.7.4
|
||||
DISTNAME= CommonMark-${MODPY_EGG_VERSION}
|
||||
PKGNAME= py-commonmark-${MODPY_EGG_VERSION}
|
||||
CATEGORIES= textproc
|
||||
|
||||
MAINTAINER= Sebastian Reitenbach <sebastia@openbsd.org>
|
||||
|
||||
# BSD
|
||||
PERMIT_PACKAGE_CDROM= Yes
|
||||
|
||||
MODULES= lang/python
|
||||
MODPY_PI= Yes
|
||||
MODPY_SETUPTOOLS= Yes
|
||||
|
||||
FLAVORS= python3
|
||||
FLAVOR?=
|
||||
|
||||
RUN_DEPENDS= devel/py-future${MODPY_FLAVOR}
|
||||
TEST_DEPENDS= ${RUN_DEPENDS} \
|
||||
devel/flake8 \
|
||||
devel/py-hypothesis${MODPY_FLAVOR}
|
||||
|
||||
post-install:
|
||||
for i in ${PREFIX}/bin/*; do \
|
||||
mv $${i} $${i}${MODPY_BIN_SUFFIX} ;\
|
||||
done
|
||||
|
||||
.include <bsd.port.mk>
|
2
textproc/py-commonmark/distinfo
Normal file
2
textproc/py-commonmark/distinfo
Normal file
@ -0,0 +1,2 @@
|
||||
SHA256 (CommonMark-0.7.4.tar.gz) = JGeLcglDmN+WMS+5J+J0zK9RSPJeR6yp9/wGJpOudXc=
|
||||
SIZE (CommonMark-0.7.4.tar.gz) = 87841
|
@ -0,0 +1,25 @@
|
||||
$OpenBSD: patch-CommonMark_tests_run_spec_tests_py,v 1.1.1.1 2017/11/02 09:32:36 sebastia Exp $
|
||||
|
||||
The UTF chars break the test
|
||||
|
||||
Index: CommonMark/tests/run_spec_tests.py
|
||||
--- CommonMark/tests/run_spec_tests.py.orig
|
||||
+++ CommonMark/tests/run_spec_tests.py
|
||||
@@ -185,7 +185,7 @@ def main():
|
||||
passed += 1
|
||||
catStats[current_section][0] += 1
|
||||
if not args.f:
|
||||
- print(colors.OKGREEN + '✓' + colors.ENDC, end='')
|
||||
+ print(colors.OKGREEN + 'O' + colors.ENDC, end='')
|
||||
if args.d:
|
||||
dumpAST(ast)
|
||||
if args.p or args.d and not args.np:
|
||||
@@ -206,7 +206,7 @@ def main():
|
||||
print("Test #" + str(args.t.split(",")[i]), end='')
|
||||
else:
|
||||
print("Test #" + str(i+1), end='')
|
||||
- print(' ' + colors.FAIL + "✗" + colors.ENDC)
|
||||
+ print(' ' + colors.FAIL + "F" + colors.ENDC)
|
||||
if args.d:
|
||||
dumpAST(ast)
|
||||
if not args.np or args.f:
|
1
textproc/py-commonmark/pkg/DESCR
Normal file
1
textproc/py-commonmark/pkg/DESCR
Normal file
@ -0,0 +1 @@
|
||||
Python parser for the CommonMark Markdown spec.
|
51
textproc/py-commonmark/pkg/PLIST
Normal file
51
textproc/py-commonmark/pkg/PLIST
Normal file
@ -0,0 +1,51 @@
|
||||
@comment $OpenBSD: PLIST,v 1.1.1.1 2017/11/02 09:32:36 sebastia Exp $
|
||||
bin/cmark${MODPY_BIN_SUFFIX}
|
||||
lib/python${MODPY_VERSION}/site-packages/CommonMark/
|
||||
lib/python${MODPY_VERSION}/site-packages/CommonMark-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/
|
||||
lib/python${MODPY_VERSION}/site-packages/CommonMark-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/PKG-INFO
|
||||
lib/python${MODPY_VERSION}/site-packages/CommonMark-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/SOURCES.txt
|
||||
lib/python${MODPY_VERSION}/site-packages/CommonMark-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/dependency_links.txt
|
||||
lib/python${MODPY_VERSION}/site-packages/CommonMark-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/entry_points.txt
|
||||
lib/python${MODPY_VERSION}/site-packages/CommonMark-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/requires.txt
|
||||
lib/python${MODPY_VERSION}/site-packages/CommonMark-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/top_level.txt
|
||||
lib/python${MODPY_VERSION}/site-packages/CommonMark/__init__.py
|
||||
${MODPY_COMMENT}lib/python${MODPY_VERSION}/site-packages/CommonMark/${MODPY_PYCACHE}/
|
||||
lib/python${MODPY_VERSION}/site-packages/CommonMark/${MODPY_PYCACHE}__init__.${MODPY_PYC_MAGIC_TAG}pyc
|
||||
lib/python${MODPY_VERSION}/site-packages/CommonMark/${MODPY_PYCACHE}blocks.${MODPY_PYC_MAGIC_TAG}pyc
|
||||
lib/python${MODPY_VERSION}/site-packages/CommonMark/${MODPY_PYCACHE}cmark.${MODPY_PYC_MAGIC_TAG}pyc
|
||||
lib/python${MODPY_VERSION}/site-packages/CommonMark/${MODPY_PYCACHE}common.${MODPY_PYC_MAGIC_TAG}pyc
|
||||
lib/python${MODPY_VERSION}/site-packages/CommonMark/${MODPY_PYCACHE}dump.${MODPY_PYC_MAGIC_TAG}pyc
|
||||
lib/python${MODPY_VERSION}/site-packages/CommonMark/${MODPY_PYCACHE}entitytrans.${MODPY_PYC_MAGIC_TAG}pyc
|
||||
lib/python${MODPY_VERSION}/site-packages/CommonMark/${MODPY_PYCACHE}inlines.${MODPY_PYC_MAGIC_TAG}pyc
|
||||
lib/python${MODPY_VERSION}/site-packages/CommonMark/${MODPY_PYCACHE}main.${MODPY_PYC_MAGIC_TAG}pyc
|
||||
lib/python${MODPY_VERSION}/site-packages/CommonMark/${MODPY_PYCACHE}node.${MODPY_PYC_MAGIC_TAG}pyc
|
||||
lib/python${MODPY_VERSION}/site-packages/CommonMark/${MODPY_PYCACHE}utils.${MODPY_PYC_MAGIC_TAG}pyc
|
||||
lib/python${MODPY_VERSION}/site-packages/CommonMark/blocks.py
|
||||
lib/python${MODPY_VERSION}/site-packages/CommonMark/cmark.py
|
||||
lib/python${MODPY_VERSION}/site-packages/CommonMark/common.py
|
||||
lib/python${MODPY_VERSION}/site-packages/CommonMark/dump.py
|
||||
lib/python${MODPY_VERSION}/site-packages/CommonMark/entitytrans.py
|
||||
lib/python${MODPY_VERSION}/site-packages/CommonMark/inlines.py
|
||||
lib/python${MODPY_VERSION}/site-packages/CommonMark/main.py
|
||||
lib/python${MODPY_VERSION}/site-packages/CommonMark/node.py
|
||||
lib/python${MODPY_VERSION}/site-packages/CommonMark/render/
|
||||
lib/python${MODPY_VERSION}/site-packages/CommonMark/render/__init__.py
|
||||
${MODPY_COMMENT}lib/python${MODPY_VERSION}/site-packages/CommonMark/render/${MODPY_PYCACHE}/
|
||||
lib/python${MODPY_VERSION}/site-packages/CommonMark/render/${MODPY_PYCACHE}__init__.${MODPY_PYC_MAGIC_TAG}pyc
|
||||
lib/python${MODPY_VERSION}/site-packages/CommonMark/render/${MODPY_PYCACHE}html.${MODPY_PYC_MAGIC_TAG}pyc
|
||||
lib/python${MODPY_VERSION}/site-packages/CommonMark/render/${MODPY_PYCACHE}renderer.${MODPY_PYC_MAGIC_TAG}pyc
|
||||
lib/python${MODPY_VERSION}/site-packages/CommonMark/render/${MODPY_PYCACHE}rst.${MODPY_PYC_MAGIC_TAG}pyc
|
||||
lib/python${MODPY_VERSION}/site-packages/CommonMark/render/html.py
|
||||
lib/python${MODPY_VERSION}/site-packages/CommonMark/render/renderer.py
|
||||
lib/python${MODPY_VERSION}/site-packages/CommonMark/render/rst.py
|
||||
lib/python${MODPY_VERSION}/site-packages/CommonMark/tests/
|
||||
lib/python${MODPY_VERSION}/site-packages/CommonMark/tests/__init__.py
|
||||
${MODPY_COMMENT}lib/python${MODPY_VERSION}/site-packages/CommonMark/tests/${MODPY_PYCACHE}/
|
||||
lib/python${MODPY_VERSION}/site-packages/CommonMark/tests/${MODPY_PYCACHE}__init__.${MODPY_PYC_MAGIC_TAG}pyc
|
||||
lib/python${MODPY_VERSION}/site-packages/CommonMark/tests/${MODPY_PYCACHE}rst_tests.${MODPY_PYC_MAGIC_TAG}pyc
|
||||
lib/python${MODPY_VERSION}/site-packages/CommonMark/tests/${MODPY_PYCACHE}run_spec_tests.${MODPY_PYC_MAGIC_TAG}pyc
|
||||
lib/python${MODPY_VERSION}/site-packages/CommonMark/tests/${MODPY_PYCACHE}unit_tests.${MODPY_PYC_MAGIC_TAG}pyc
|
||||
lib/python${MODPY_VERSION}/site-packages/CommonMark/tests/rst_tests.py
|
||||
lib/python${MODPY_VERSION}/site-packages/CommonMark/tests/run_spec_tests.py
|
||||
lib/python${MODPY_VERSION}/site-packages/CommonMark/tests/unit_tests.py
|
||||
lib/python${MODPY_VERSION}/site-packages/CommonMark/utils.py
|
Loading…
Reference in New Issue
Block a user