pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/www/py-landslide py-landslide: updated to 1.1.6



details:   https://anonhg.NetBSD.org/pkgsrc/rev/ecfebf68cd3a
branches:  trunk
changeset: 335848:ecfebf68cd3a
user:      adam <adam%pkgsrc.org@localhost>
date:      Tue Jul 02 04:19:59 2019 +0000

description:
py-landslide: updated to 1.1.6

v1.1.6
Fix packaging again

v1.1.5
Fix packaging

v1.1.4
Setup Travis CI
Update Python versions in setup.py
Pin dependency versions to fix markdown issue

diffstat:

 www/py-landslide/ALTERNATIVES                          |   2 +-
 www/py-landslide/Makefile                              |  32 +++++++++---------
 www/py-landslide/PLIST                                 |   5 +--
 www/py-landslide/distinfo                              |  13 +++---
 www/py-landslide/patches/patch-landslide_parser.py     |  16 +++++++++
 www/py-landslide/patches/patch-setup.py                |  23 ++++++++++++
 www/py-landslide/patches/patch-src_landslide_parser.py |  17 ---------
 7 files changed, 64 insertions(+), 44 deletions(-)

diffs (160 lines):

diff -r 64d6001eaea4 -r ecfebf68cd3a www/py-landslide/ALTERNATIVES
--- a/www/py-landslide/ALTERNATIVES     Tue Jul 02 04:10:52 2019 +0000
+++ b/www/py-landslide/ALTERNATIVES     Tue Jul 02 04:19:59 2019 +0000
@@ -1,1 +1,1 @@
-bin/landslide @PREFIX@/bin/landslide
+bin/landslide @PREFIX@/bin/landslide-@PYVERSSUFFIX@
diff -r 64d6001eaea4 -r ecfebf68cd3a www/py-landslide/Makefile
--- a/www/py-landslide/Makefile Tue Jul 02 04:10:52 2019 +0000
+++ b/www/py-landslide/Makefile Tue Jul 02 04:19:59 2019 +0000
@@ -1,29 +1,29 @@
-# $NetBSD: Makefile,v 1.3 2019/05/11 22:07:01 kamil Exp $
+# $NetBSD: Makefile,v 1.4 2019/07/02 04:19:59 adam Exp $
 
-GITHUB_PROJECT=        landslide
-DISTNAME=      landslide-1.1.3
-PKGREVISION=   1
+DISTNAME=      landslide-1.1.6
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME}
-CATEGORIES=    www
-MASTER_SITES=  ${MASTER_SITE_GITHUB:=adamzap/}
-GITHUB_TAG=    v${PKGVERSION_NOREV}
+CATEGORIES=    www python
+MASTER_SITES=  ${MASTER_SITE_PYPI:=l/landslide/}
 
 MAINTAINER=    pkgsrc-users%NetBSD.org@localhost
-HOMEPAGE=      https://github.com/adamzap/landslide/
+HOMEPAGE=      https://github.com/adamzap/landslide
 COMMENT=       Generate HTML5 slideshows from markdown, ReST, or textile
 LICENSE=       apache-2.0
 
-DEPENDS+=      ${PYPKGPREFIX}-jinja2-[0-9]*:../../textproc/py-jinja2
-DEPENDS+=      ${PYPKGPREFIX}-pygments-[0-9]*:../../textproc/py-pygments
-DEPENDS+=      ${PYPKGPREFIX}-markdown-[0-9]*:../../textproc/py-markdown
-DEPENDS+=      ${PYPKGPREFIX}-docutils-[0-9]*:../../textproc/py-docutils
-DEPENDS+=      ${PYPKGPREFIX}-textile-[0-9]*:../../textproc/py-textile
-DEPENDS+=      ${PYPKGPREFIX}-six-[0-9]*:../../lang/py-six
+DEPENDS+=      ${PYPKGPREFIX}-docutils>=0.14:../../textproc/py-docutils
+DEPENDS+=      ${PYPKGPREFIX}-jinja2>=2.10:../../textproc/py-jinja2
+DEPENDS+=      ${PYPKGPREFIX}-markdown>=2.6.11:../../textproc/py-markdown
+DEPENDS+=      ${PYPKGPREFIX}-pygments>=2.2.0:../../textproc/py-pygments
+DEPENDS+=      ${PYPKGPREFIX}-six>=1.11.0:../../lang/py-six
+
+USE_LANGUAGES= # none
 
 post-install:
-       ${MV} ${DESTDIR}${PREFIX}/bin/landslide \
-               ${DESTDIR}${PREFIX}/bin/landslide-${PYVERSSUFFIX}
+       cd ${DESTDIR}${PREFIX}/bin && \
+       ${MV} landslide landslide-${PYVERSSUFFIX} || ${TRUE}
 
+do-test:
+       cd ${WRKSRC} && ${PYTHONBIN} tests.py
 
 .include "../../lang/python/distutils.mk"
 .include "../../mk/bsd.pkg.mk"
diff -r 64d6001eaea4 -r ecfebf68cd3a www/py-landslide/PLIST
--- a/www/py-landslide/PLIST    Tue Jul 02 04:10:52 2019 +0000
+++ b/www/py-landslide/PLIST    Tue Jul 02 04:19:59 2019 +0000
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.1 2017/02/25 14:53:49 kamil Exp $
+@comment $NetBSD: PLIST,v 1.2 2019/07/02 04:19:59 adam Exp $
 bin/landslide-${PYVERSSUFFIX}
 ${PYSITELIB}/${EGG_FILE}/PKG-INFO
 ${PYSITELIB}/${EGG_FILE}/SOURCES.txt
@@ -28,9 +28,6 @@
 ${PYSITELIB}/landslide/rst.py
 ${PYSITELIB}/landslide/rst.pyc
 ${PYSITELIB}/landslide/rst.pyo
-${PYSITELIB}/landslide/tests.py
-${PYSITELIB}/landslide/tests.pyc
-${PYSITELIB}/landslide/tests.pyo
 ${PYSITELIB}/landslide/themes/default/base.html
 ${PYSITELIB}/landslide/themes/default/css/print.css
 ${PYSITELIB}/landslide/themes/default/css/screen.css
diff -r 64d6001eaea4 -r ecfebf68cd3a www/py-landslide/distinfo
--- a/www/py-landslide/distinfo Tue Jul 02 04:10:52 2019 +0000
+++ b/www/py-landslide/distinfo Tue Jul 02 04:19:59 2019 +0000
@@ -1,7 +1,8 @@
-$NetBSD: distinfo,v 1.2 2019/05/11 22:07:01 kamil Exp $
+$NetBSD: distinfo,v 1.3 2019/07/02 04:19:59 adam Exp $
 
-SHA1 (landslide-1.1.3.tar.gz) = 07e5adbe9c0264a66c348a92aebea1d64f2baea2
-RMD160 (landslide-1.1.3.tar.gz) = 03eb20ea51997234a50b0aac0995f8b3ec286bd7
-SHA512 (landslide-1.1.3.tar.gz) = ba46dca4a93630ef700b2d5a6e1871d5ffbeb9943c165a00874ed9d931693c4b8d824658105792ca05e4d17d017066d4075b04c2a82d565749ee21670f8dc240
-Size (landslide-1.1.3.tar.gz) = 150998 bytes
-SHA1 (patch-src_landslide_parser.py) = 918b96e85298c2631422f7ce099ca4b05436ce14
+SHA1 (landslide-1.1.6.tar.gz) = a714a0bdff7b049fa2d610c7595e2ab003de2fbf
+RMD160 (landslide-1.1.6.tar.gz) = 3a0b9e717b352e93480aa8162b0fd7857b14718f
+SHA512 (landslide-1.1.6.tar.gz) = 944d958432ac3564bf292aa354d7b4122d060d4bcb49445531a01041407886e24fd80fabacf52d18d8c2915c703e8935c76899182b2cf967b19abf6f505f881e
+Size (landslide-1.1.6.tar.gz) = 148250 bytes
+SHA1 (patch-landslide_parser.py) = 0ada02373749cde3d953e17dbaa791a0008ea28e
+SHA1 (patch-setup.py) = 94b7fcc7039b80a1b912c82a24132c1f5571f4f8
diff -r 64d6001eaea4 -r ecfebf68cd3a www/py-landslide/patches/patch-landslide_parser.py
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/www/py-landslide/patches/patch-landslide_parser.py        Tue Jul 02 04:19:59 2019 +0000
@@ -0,0 +1,16 @@
+$NetBSD: patch-landslide_parser.py,v 1.1 2019/07/02 04:19:59 adam Exp $
+
+Fix for py-markdown >= 3.0.0
+https://github.com/adamzap/landslide/pull/211
+
+--- landslide/parser.py.orig   2015-03-12 03:47:59.000000000 +0000
++++ landslide/parser.py
+@@ -58,7 +58,7 @@ class Parser(object):
+             if text.startswith(u'\ufeff'):  # check for unicode BOM
+                 text = text[1:]
+ 
+-            return markdown.markdown(text, self.md_extensions)
++            return markdown.markdown(text, extensions=self.md_extensions)
+         elif self.format == 'restructuredtext':
+             try:
+                 from landslide.rst import html_body
diff -r 64d6001eaea4 -r ecfebf68cd3a www/py-landslide/patches/patch-setup.py
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/www/py-landslide/patches/patch-setup.py   Tue Jul 02 04:19:59 2019 +0000
@@ -0,0 +1,23 @@
+$NetBSD: patch-setup.py,v 1.1 2019/07/02 04:19:59 adam Exp $
+
+Relax dependencies.
+
+--- setup.py.orig      2019-07-02 04:14:10.000000000 +0000
++++ setup.py
+@@ -23,11 +23,11 @@ setup(
+         'textile'
+     ],
+     install_requires=[
+-        'Jinja2==2.10',
+-        'Markdown==2.6.11',
+-        'Pygments==2.2.0',
+-        'docutils==0.14',
+-        'six==1.11.0'
++        'Jinja2>=2.10',
++        'Markdown>=2.6.11',
++        'Pygments>=2.2.0',
++        'docutils>=0.14',
++        'six>=1.11.0'
+     ],
+     classifiers=[
+         'Programming Language :: Python',
diff -r 64d6001eaea4 -r ecfebf68cd3a www/py-landslide/patches/patch-src_landslide_parser.py
--- a/www/py-landslide/patches/patch-src_landslide_parser.py    Tue Jul 02 04:10:52 2019 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,17 +0,0 @@
-$NetBSD: patch-src_landslide_parser.py,v 1.1 2019/05/11 22:09:21 kamil Exp $
-
-Cherry pick support for `markdown` v3.0+
-
- - https://github.com/adamzap/landslide/commit/e4005a418f851314ce272fbc8cb5f5e3100568ed
-
---- src/landslide/parser.py.orig       2015-03-12 03:47:59.000000000 +0000
-+++ src/landslide/parser.py
-@@ -58,7 +58,7 @@ class Parser(object):
-             if text.startswith(u'\ufeff'):  # check for unicode BOM
-                 text = text[1:]
- 
--            return markdown.markdown(text, self.md_extensions)
-+            return markdown.markdown(text, extensions=self.md_extensions)
-         elif self.format == 'restructuredtext':
-             try:
-                 from landslide.rst import html_body



Home | Main Index | Thread Index | Old Index