Import py-m2r-0.1.5, bite my shiny metal ***
M2R converts a markdown file including reST markups to a valid reST format. From Pavel Korovin, ok sthen@
This commit is contained in:
parent
3cda241b4a
commit
a31012722a
40
textproc/py-m2r/Makefile
Normal file
40
textproc/py-m2r/Makefile
Normal file
@ -0,0 +1,40 @@
|
||||
# $OpenBSD: Makefile,v 1.1.1.1 2017/05/06 09:51:45 landry Exp $
|
||||
|
||||
COMMENT = markdown to reStructuredText converter
|
||||
|
||||
MODPY_EGG_VERSION = 0.1.5
|
||||
|
||||
DISTNAME = m2r-${MODPY_EGG_VERSION}
|
||||
PKGNAME = py-${DISTNAME}
|
||||
|
||||
CATEGORIES = devel textproc
|
||||
|
||||
HOMEPAGE = https://github.com/miyakogi/m2r
|
||||
|
||||
# MIT
|
||||
PERMIT_PACKAGE_CDROM = Yes
|
||||
|
||||
MODPY_PI = Yes
|
||||
MODULES = lang/python
|
||||
MODPY_SETUPTOOLS = Yes
|
||||
|
||||
RUN_DEPENDS = textproc/py-mistune${MODPY_FLAVOR} \
|
||||
textproc/py-docutils${MODPY_FLAVOR}
|
||||
|
||||
TEST_DEPENDS = ${RUN_DEPENDS} \
|
||||
devel/py-test${MODPY_FLAVOR}
|
||||
|
||||
FLAVORS = python3
|
||||
FLAVOR ?=
|
||||
|
||||
.if ! ${FLAVOR:Mpython3}
|
||||
TEST_DEPENDS += devel/py-mock${MODPY_FLAVOR}
|
||||
.endif
|
||||
|
||||
post-install:
|
||||
mv ${PREFIX}/bin/m2r{,${MODPY_BIN_SUFFIX}}
|
||||
|
||||
do-test:
|
||||
cd ${WRKSRC} && ${MODPY_BIN} -m pytest
|
||||
|
||||
.include <bsd.port.mk>
|
2
textproc/py-m2r/distinfo
Normal file
2
textproc/py-m2r/distinfo
Normal file
@ -0,0 +1,2 @@
|
||||
SHA256 (m2r-0.1.5.tar.gz) = NEj3cK7QXKEDkNCRfNUYNsv4Ki8JW8kVB+YpHPqwMiM=
|
||||
SIZE (m2r-0.1.5.tar.gz) = 13202
|
11
textproc/py-m2r/patches/patch-setup_py
Normal file
11
textproc/py-m2r/patches/patch-setup_py
Normal file
@ -0,0 +1,11 @@
|
||||
$OpenBSD: patch-setup_py,v 1.1.1.1 2017/05/06 09:51:45 landry Exp $
|
||||
--- setup.py.orig Tue Apr 18 23:10:49 2017
|
||||
+++ setup.py Tue Apr 18 23:11:00 2017
|
||||
@@ -27,7 +27,6 @@ setup(
|
||||
author_email='miyako.dev@gmail.com',
|
||||
url='https://github.com/miyakogi/m2r',
|
||||
py_modules=['m2r'],
|
||||
- packages=['tests'],
|
||||
entry_points={'console_scripts': 'm2r = m2r:main'},
|
||||
include_package_data=True,
|
||||
license="MIT",
|
9
textproc/py-m2r/patches/patch-tests_test_md
Normal file
9
textproc/py-m2r/patches/patch-tests_test_md
Normal file
@ -0,0 +1,9 @@
|
||||
$OpenBSD: patch-tests_test_md,v 1.1.1.1 2017/05/06 09:51:45 landry Exp $
|
||||
--- tests/test.md.orig Wed Apr 19 11:20:53 2017
|
||||
+++ tests/test.md Wed Apr 19 11:20:26 2017
|
||||
@@ -0,0 +1,5 @@
|
||||
+# Title
|
||||
+
|
||||
+## SubTitle
|
||||
+
|
||||
+__content__
|
12
textproc/py-m2r/patches/patch-tests_test_rst
Normal file
12
textproc/py-m2r/patches/patch-tests_test_rst
Normal file
@ -0,0 +1,12 @@
|
||||
$OpenBSD: patch-tests_test_rst,v 1.1.1.1 2017/05/06 09:51:45 landry Exp $
|
||||
--- tests/test.rst.orig Wed Apr 19 11:20:09 2017
|
||||
+++ tests/test.rst Wed Apr 19 11:20:05 2017
|
||||
@@ -0,0 +1,8 @@
|
||||
+
|
||||
+Title
|
||||
+=====
|
||||
+
|
||||
+SubTitle
|
||||
+--------
|
||||
+
|
||||
+**content**
|
17
textproc/py-m2r/pkg/DESCR
Normal file
17
textproc/py-m2r/pkg/DESCR
Normal file
@ -0,0 +1,17 @@
|
||||
M2R converts a markdown file including reST markups to a valid reST format.
|
||||
|
||||
Features:
|
||||
* Basic markdown and some extensions
|
||||
o inline/block-level raw html
|
||||
o fenced-code block
|
||||
o tables
|
||||
o footnotes ([^1])
|
||||
* Inline- and Block-level reST markups
|
||||
o single- and multi-line directives (.. directive::)
|
||||
o inline-roles (:code:`print(1)` ...)
|
||||
o ref-link (see `ref`_)
|
||||
o footnotes ([#fn]_)
|
||||
o math extension inspired by recommonmark
|
||||
* Sphinx extension
|
||||
o add markdown support for sphinx
|
||||
o mdinclude directive to include markdown from md or reST files
|
12
textproc/py-m2r/pkg/PLIST
Normal file
12
textproc/py-m2r/pkg/PLIST
Normal file
@ -0,0 +1,12 @@
|
||||
@comment $OpenBSD: PLIST,v 1.1.1.1 2017/05/06 09:51:45 landry Exp $
|
||||
bin/m2r${MODPY_BIN_SUFFIX}
|
||||
lib/python${MODPY_VERSION}/site-packages/${MODPY_PYCACHE}m2r.${MODPY_PYC_MAGIC_TAG}pyc
|
||||
lib/python${MODPY_VERSION}/site-packages/m2r-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/
|
||||
lib/python${MODPY_VERSION}/site-packages/m2r-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/PKG-INFO
|
||||
lib/python${MODPY_VERSION}/site-packages/m2r-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/SOURCES.txt
|
||||
lib/python${MODPY_VERSION}/site-packages/m2r-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/dependency_links.txt
|
||||
lib/python${MODPY_VERSION}/site-packages/m2r-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/entry_points.txt
|
||||
lib/python${MODPY_VERSION}/site-packages/m2r-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/not-zip-safe
|
||||
lib/python${MODPY_VERSION}/site-packages/m2r-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/requires.txt
|
||||
lib/python${MODPY_VERSION}/site-packages/m2r-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/top_level.txt
|
||||
lib/python${MODPY_VERSION}/site-packages/m2r.py
|
Loading…
x
Reference in New Issue
Block a user