[Midnightbsd-cvs] mports [21929] trunk/textproc: add markdown
laffer1 at midnightbsd.org
laffer1 at midnightbsd.org
Wed Sep 28 22:59:08 EDT 2016
Revision: 21929
http://svnweb.midnightbsd.org/mports/?rev=21929
Author: laffer1
Date: 2016-09-28 22:59:08 -0400 (Wed, 28 Sep 2016)
Log Message:
-----------
add markdown
Modified Paths:
--------------
trunk/textproc/Makefile
Added Paths:
-----------
trunk/textproc/py-markdown/
trunk/textproc/py-markdown/Makefile
trunk/textproc/py-markdown/distinfo
trunk/textproc/py-markdown/files/
trunk/textproc/py-markdown/files/patch-issue453
trunk/textproc/py-markdown/files/patch-setup.py
trunk/textproc/py-markdown/pkg-descr
Modified: trunk/textproc/Makefile
===================================================================
--- trunk/textproc/Makefile 2016-09-29 02:57:45 UTC (rev 21928)
+++ trunk/textproc/Makefile 2016-09-29 02:59:08 UTC (rev 21929)
@@ -159,6 +159,7 @@
SUBDIR += py-alabaster
SUBDIR += py-docutils
SUBDIR += py-libxml2
+SUBDIR += py-markdown
SUBDIR += py-pygments
SUBDIR += py-pystemmer
SUBDIR += py-rdflib
@@ -179,6 +180,7 @@
SUBDIR += rasqal
SUBDIR += redland
SUBDIR += ruby-deplate
+SUBDIR += rubygem-asciidoctor
SUBDIR += scr2txt
SUBDIR += scrollkeeper
SUBDIR += sdocbook-xml
Added: trunk/textproc/py-markdown/Makefile
===================================================================
--- trunk/textproc/py-markdown/Makefile (rev 0)
+++ trunk/textproc/py-markdown/Makefile 2016-09-29 02:59:08 UTC (rev 21929)
@@ -0,0 +1,30 @@
+# $MidnightBSD$
+# $FreeBSD: head/textproc/py-markdown/Makefile 412349 2016-04-01 14:25:16Z mat $
+
+PORTNAME= markdown
+PORTVERSION= 2.6.5
+CATEGORIES= textproc python
+MASTER_SITES= CHEESESHOP
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+DISTNAME= Markdown-${PORTVERSION}
+
+MAINTAINER= ports at MidnightBSD.org
+COMMENT= Python implementation of Markdown
+
+LICENSE= bsd3
+LICENSE_FILE= ${WRKSRC}/LICENSE.md
+
+TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}nose>0:devel/py-nose \
+ ${PYTHON_PKGNAMEPREFIX}pytidylib>0:textproc/py-pytidylib \
+ ${PYTHON_PKGNAMEPREFIX}pygments>0:textproc/py-pygments \
+ ${PYTHON_PKGNAMEPREFIX}yaml>0:devel/py-yaml
+
+USES= python
+USE_PYTHON= distutils autoplist
+
+NO_ARCH= yes
+
+do-test:
+ @cd ${WRKSRC} && ${PYTHON_CMD} ${PYDISTUTILS_SETUP} test
+
+.include <bsd.port.mk>
Property changes on: trunk/textproc/py-markdown/Makefile
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/textproc/py-markdown/distinfo
===================================================================
--- trunk/textproc/py-markdown/distinfo (rev 0)
+++ trunk/textproc/py-markdown/distinfo 2016-09-29 02:59:08 UTC (rev 21929)
@@ -0,0 +1,2 @@
+SHA256 (Markdown-2.6.5.tar.gz) = 8d94cf6273606f76753fcb1324623792b3738c7612c2b180c85cc5e88642e560
+SIZE (Markdown-2.6.5.tar.gz) = 301781
Property changes on: trunk/textproc/py-markdown/distinfo
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/textproc/py-markdown/files/patch-issue453
===================================================================
--- trunk/textproc/py-markdown/files/patch-issue453 (rev 0)
+++ trunk/textproc/py-markdown/files/patch-issue453 2016-09-29 02:59:08 UTC (rev 21929)
@@ -0,0 +1,106 @@
+From 81b724cfec03634c0bcd88b1bccb5936872d04e2 Mon Sep 17 00:00:00 2001
+From: Waylan Limberg <waylan.limberg at icloud.com>
+Date: Thu, 28 Jan 2016 22:09:56 -0500
+Subject: [PATCH] Enabled pygments based tests.
+
+Added pygments to test-requirements and updated codehiliting tests to
+only test partial output as output differs depending on Pygments version.
+Fixes #453
+
+https://github.com/waylan/Python-Markdown/issues/453
+
+---
+ test-requirements.txt | 3 ++-
+ tests/test_extensions.py | 47 ++++++++++++-----------------------------------
+ 2 files changed, 14 insertions(+), 36 deletions(-)
+
+diff --git tests/test_extensions.py b/tests/test_extensions.py
+index 38f0be3..72ce212 100644
+--- tests/test_extensions.py
++++ tests/test_extensions.py
+@@ -134,12 +134,7 @@ def testLinenumsFalse(self):
+ md = markdown.Markdown(
+ extensions=[markdown.extensions.codehilite.CodeHiliteExtension(linenums=False)])
+ if self.has_pygments:
+- self.assertEqual(
+- md.convert(text),
+- '<div class="codehilite">'
+- '<pre><span class="c"># A Code Comment</span>\n'
+- '</pre></div>'
+- )
++ self.assertTrue(md.convert(text).startswith('<div class="codehilite"><pre><span'))
+ else:
+ self.assertEqual(
+ md.convert(text),
+@@ -187,12 +182,7 @@ def testLinenumsNoneWithColon(self):
+ extensions=[markdown.extensions.codehilite.CodeHiliteExtension(linenums=None)]
+ )
+ if self.has_pygments:
+- self.assertEqual(
+- md.convert(text),
+- '<div class="codehilite">'
+- '<pre><span class="c"># A Code Comment</span>\n'
+- '</pre></div>'
+- )
++ self.assertTrue(md.convert(text).startswith('<div class="codehilite"><pre><span'))
+ else:
+ self.assertEqual(
+ md.convert(text),
+@@ -202,19 +192,16 @@ def testLinenumsNoneWithColon(self):
+
+ def testHighlightLinesWithColon(self):
+ # Test with hl_lines delimited by single or double quotes.
+- text0 = '\t:::Python hl_lines="2"\n\t#line 1\n\t#line 2\n\t#line 3'
+- text1 = "\t:::Python hl_lines='2'\n\t#line 1\n\t#line 2\n\t#line 3"
++ text0 = '\t:::Python hl_lines="1"\n\t#line 1\n\t#line 2\n\t#line 3'
++ text1 = "\t:::Python hl_lines='1'\n\t#line 1\n\t#line 2\n\t#line 3"
+
+ for text in (text0, text1):
+ md = markdown.Markdown(extensions=['markdown.extensions.codehilite'])
+ if self.has_pygments:
+- self.assertEqual(
+- md.convert(text),
+- '<div class="codehilite"><pre>'
+- '<span class="c">#line 1</span>\n'
+- '<span class="hll"><span class="c">#line 2</span>\n</span>'
+- '<span class="c">#line 3</span>\n'
+- '</pre></div>'
++ self.assertTrue(
++ md.convert(text).startswith(
++ '<div class="codehilite"><pre><span class="hll"'
++ )
+ )
+ else:
+ self.assertEqual(
+@@ -333,13 +320,8 @@ def testFencedCodeWithHighlightLines(self):
+ )
+
+ if self.has_pygments:
+- self.assertEqual(
+- md.convert(text),
+- '<div class="codehilite"><pre>'
+- '<span class="hll">line 1\n</span>'
+- 'line 2\n'
+- '<span class="hll">line 3\n</span>'
+- '</pre></div>'
++ self.assertTrue(
++ md.convert(text).startswith('<div class="codehilite"><pre><span class="hll"')
+ )
+ else:
+ self.assertEqual(
+@@ -372,13 +354,8 @@ def testFencedLanguageAndHighlightLines(self):
+ ]
+ )
+ if self.has_pygments:
+- self.assertEqual(
+- md.convert(text),
+- '<div class="codehilite"><pre>'
+- '<span class="hll"><span class="c">#line 1</span>\n</span>'
+- '<span class="c">#line 2</span>\n'
+- '<span class="hll"><span class="c">#line 3</span>\n</span>'
+- '</pre></div>'
++ self.assertTrue(
++ md.convert(text).startswith('<div class="codehilite"><pre><span class="hll"')
+ )
+ else:
+ self.assertEqual(
Property changes on: trunk/textproc/py-markdown/files/patch-issue453
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/textproc/py-markdown/files/patch-setup.py
===================================================================
--- trunk/textproc/py-markdown/files/patch-setup.py (rev 0)
+++ trunk/textproc/py-markdown/files/patch-setup.py 2016-09-29 02:59:08 UTC (rev 21929)
@@ -0,0 +1,10 @@
+--- setup.py.orig 2016-02-20 06:59:25 UTC
++++ setup.py
+@@ -268,5 +268,6 @@ setup(
+ 'Topic :: Software Development :: Libraries :: Python Modules',
+ 'Topic :: Text Processing :: Filters',
+ 'Topic :: Text Processing :: Markup :: HTML'
+- ]
++ ],
++ test_suite='nose.collector',
+ )
Property changes on: trunk/textproc/py-markdown/files/patch-setup.py
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/textproc/py-markdown/pkg-descr
===================================================================
--- trunk/textproc/py-markdown/pkg-descr (rev 0)
+++ trunk/textproc/py-markdown/pkg-descr 2016-09-29 02:59:08 UTC (rev 21929)
@@ -0,0 +1,13 @@
+This is a Python implementation of John Gruber's Markdown. It is almost
+completely compliant with the reference implementation, though there are a
+few very minor differences.
+
+Features:
+
+ * International Input
+ * Extensions
+ * Output Formats
+ * "Safe Modes"
+ * Command Line Interface
+
+WWW: https://pythonhosted.org/Markdown/
Property changes on: trunk/textproc/py-markdown/pkg-descr
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
More information about the Midnightbsd-cvs
mailing list