pkgsrc-Bugs archive

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

pkg/50396: Update new version textproc/py-markdown-2.6.3



>Number:         50396
>Category:       pkg
>Synopsis:       Update new version textproc/py-markdown-2.6.3
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Nov 02 20:10:00 +0000 2015
>Originator:     Derouiche
>Release:        NetBSD 7.0
>Organization:
Algerian IT Security Group
>Environment:
NetBSD Dabiq.lan 7.0 NetBSD 7.0 i386
>Description:
update textproc/py-markdown-2.6.2 to 2.6.3

New patche (add Python suffix)
>How-To-Repeat:
n/a
>Fix:
diff -ruN PLIST.orig PLIST
--- PLIST.orig	2015-11-02 14:51:11.000000000 +0100
+++ PLIST	2015-11-02 20:56:31.000000000 +0100
@@ -1,5 +1,5 @@
-@comment $NetBSD: PLIST,v 1.5 2015/07/19 10:20:10 wiz Exp $
-bin/markdown_py
+@comment $NetBSD$
+bin/markdown_py2.7
 ${PYSITELIB}/${EGG_FILE}
 ${PYSITELIB}/markdown/__init__.py
 ${PYSITELIB}/markdown/__init__.pyc

diff -ruN Makefile.orig Makefile
--- Makefile.orig	2015-11-02 14:51:06.000000000 +0100
+++ Makefile	2015-11-02 20:57:36.000000000 +0100
@@ -1,16 +1,25 @@
-# $NetBSD: Makefile,v 1.8 2015/07/19 10:20:10 wiz Exp $
+# $NetBSD$
 
-DISTNAME=	Markdown-2.6.2
+DISTNAME=	Markdown-2.6.3
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME:tl}
 CATEGORIES=	textproc python
-MASTER_SITES=	http://pypi.python.org/packages/source/M/Markdown/
+MASTER_SITES=	https://pypi.python.org/packages/source/M/Markdown/
 
 MAINTAINER=	joerg%NetBSD.org@localhost
 HOMEPAGE=	http://pypi.python.org/pypi/Markdown
 COMMENT=	XHTML generator using a simple markup
 LICENSE=	modified-bsd
 
-PYTHON_SELF_CONFLICT=	yes
+WRKSRC=		${WRKDIR}/Markdown-2.6.3
+USE_LANGUAGES=	# none
+
+PLIST_SUBST+=	PYVERSSUFFIX=${PYVERSSUFFIX}
+
+post-extract:
+	${MV} ${WRKSRC}/bin/markdown_py ${WRKSRC}/bin/markdown_py${PYVERSSUFFIX}
+
+do-test:
+	${RUN} cd ${WRKSRC}; ${SETENV} ${TEST_ENV} ${PYTHONBIN} run-tests.py
 
 .include "../../lang/python/distutils.mk"
 .include "../../mk/bsd.pkg.mk"

diff -ruN distinfo.orig distinfo
--- distinfo.orig	2015-11-02 14:51:16.000000000 +0100
+++ distinfo	2015-11-02 20:54:19.000000000 +0100
@@ -1,5 +1,7 @@
 $NetBSD: distinfo,v 1.4 2015/07/19 10:20:10 wiz Exp $
 
-SHA1 (Markdown-2.6.2.tar.gz) = a988f811f1c73de4b49f610dee58a6b8132f5afe
-RMD160 (Markdown-2.6.2.tar.gz) = 5466f322ac0694d942d49588d12cc980f83e5dcf
-Size (Markdown-2.6.2.tar.gz) = 298231 bytes
+SHA1 (Markdown-2.6.3.tar.gz) = bb471f8b142dda09127494c6a1668707ab94ef81
+RMD160 (Markdown-2.6.3.tar.gz) = 07a54a3e96becb762560d35ea8323f53949d0136
+SHA512 (Markdown-2.6.3.tar.gz) = 29917d7112d84bc175cdab39fe1c57cc7c7efcef60cddde41905c8314caf86500eab50a1c93c5cde2cfcd82ce1214ab65367fc7d2111c9487596b9cae16882ee
+Size (Markdown-2.6.3.tar.gz) = 301441 bytes
+SHA1 (patch-setup.py) = 9c0f9b59466eab1dbb21bbf5f241648e98cdf236

cat patches/patch-setup.py 
$NetBSD$

--- setup.py.orig	2015-08-28 03:42:04.000000000 +0000
+++ setup.py
@@ -244,7 +244,7 @@ setup(
     maintainer_email='waylan.limberg [at] icloud.com',
     license='BSD License',
     packages=['markdown', 'markdown.extensions'],
-    scripts=['bin/%s' % SCRIPT_NAME],
+    scripts=['bin/%s' % SCRIPT_NAME+sys.version[0:3]],
     cmdclass={
         'install_scripts': md_install_scripts,
         'build_docs': build_docs,



Home | Main Index | Thread Index | Old Index