1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-19 19:59:43 +00:00

New port: py-m2r.

M2R is a Python module and command line utility to convert documents
formatted with markdown that include embedded reST markups to valid
reST formatted documents.

PR:		217183
Submitted by:	John W. O'Brien <john@saltant.com>
This commit is contained in:
Dmitry Sivachenko 2017-02-18 07:28:02 +00:00
parent 42cb875104
commit c408fd25a1
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=434329
5 changed files with 53 additions and 0 deletions

View File

@ -1271,6 +1271,7 @@
SUBDIR += py-libxml2
SUBDIR += py-libxslt
SUBDIR += py-ltxml
SUBDIR += py-m2r
SUBDIR += py-mako
SUBDIR += py-markdown
SUBDIR += py-markdown2

34
textproc/py-m2r/Makefile Normal file
View File

@ -0,0 +1,34 @@
# Created by: John W. O'Brien <john@saltant.com>
# $FreeBSD$
PORTNAME= m2r
PORTVERSION= 0.1.5
CATEGORIES= textproc devel python
MASTER_SITES= CHEESESHOP
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
MAINTAINER= john@saltant.com
COMMENT= Convert markdown formatted file with reST markup to reST format
LICENSE= MIT
TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}coverage>0:devel/py-coverage \
${PYTHON_PKGNAMEPREFIX}sphinx>0:textproc/py-sphinx
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}mistune>0:textproc/py-mistune \
${PYTHON_PKGNAMEPREFIX}docutils>0:textproc/py-docutils
USES= python
USE_PYTHON= autoplist concurrent distutils
NO_ARCH= yes
.include <bsd.port.pre.mk>
.if ${PYTHON_REL} < 3300
TEST_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}mock>0:devel/py-mock
.endif
do-test:
@cd ${TEST_WRKSRC} && ${PYTHON_CMD} ${PYDISTUTILS_SETUP} test
.include <bsd.port.post.mk>

3
textproc/py-m2r/distinfo Normal file
View File

@ -0,0 +1,3 @@
TIMESTAMP = 1487344809
SHA256 (m2r-0.1.5.tar.gz) = 3448f770aed05ca10390d0917cd51836cbf82a2f095bc91507e6291cfab03223
SIZE (m2r-0.1.5.tar.gz) = 13202

View File

@ -0,0 +1,10 @@
--- setup.py.orig 2017-02-17 17:38:50 UTC
+++ setup.py
@@ -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",

View File

@ -0,0 +1,5 @@
M2R is a Python module and command line utility to convert documents
formatted with markdown that include embedded reST markups to valid
reST formatted documents.
WWW: https://github.com/miyakogi/m2r