pkgsrc-Changes archive

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

CVS commit: pkgsrc/devel/apenwarr-redo



Module Name:    pkgsrc
Committed By:   schmonz
Date:           Mon Mar 30 08:02:22 UTC 2020

Modified Files:
        pkgsrc/devel/apenwarr-redo: Makefile distinfo
Added Files:
        pkgsrc/devel/apenwarr-redo/patches: patch-docs_md2man.py
            patch-redo_whichpython.do

Log Message:
Update to 0.42a. From the changelog:

- Add compatibility to Python 3 (and retain Python 2)
    - Remove python<3.0 restriction in setup.py
    - Make compatible to BeautifulSoup4
    - Accept octal representations of Python 2 (0nnn) and Python 3 (0onnn)
    - Prevent iterator being changed while iterating
    - Python 2/3 compatible treatment of max(n, None)
    - Prevent "Exception ... ignored" in `redo-log ... | head`
    - Distinguish byte (python2 str type) and unicode strings (python 3 str type)
    - Set file descriptor as inheritable for all pythons >=3.4
    - Unify print function usage for Python 2 and 3 via __future__ import
    - Run 2to3 utility
    - Remove python interpreter selection
- GettingStarted.md: Add -E option to sudo to preserve environment
- docs/cookbook/c: missing quote char.


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 pkgsrc/devel/apenwarr-redo/Makefile
cvs rdiff -u -r1.4 -r1.5 pkgsrc/devel/apenwarr-redo/distinfo
cvs rdiff -u -r0 -r1.1 \
    pkgsrc/devel/apenwarr-redo/patches/patch-docs_md2man.py \
    pkgsrc/devel/apenwarr-redo/patches/patch-redo_whichpython.do

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/devel/apenwarr-redo/Makefile
diff -u pkgsrc/devel/apenwarr-redo/Makefile:1.2 pkgsrc/devel/apenwarr-redo/Makefile:1.3
--- pkgsrc/devel/apenwarr-redo/Makefile:1.2     Sat Nov  9 15:00:55 2019
+++ pkgsrc/devel/apenwarr-redo/Makefile Mon Mar 30 08:02:22 2020
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.2 2019/11/09 15:00:55 schmonz Exp $
+# $NetBSD: Makefile,v 1.3 2020/03/30 08:02:22 schmonz Exp $
 
-DISTNAME=      redo-0.42
+DISTNAME=      redo-0.42a
 PKGNAME=       apenwarr-${DISTNAME}
 CATEGORIES=    devel
 MASTER_SITES=  -https://codeload.github.com/apenwarr/redo/tar.gz/${DISTNAME}
@@ -12,9 +12,7 @@ LICENSE=      apache-2.0
 
 CONFLICTS+=    jdebp-redo-[0-9]*
 
-PYTHON_VERSIONS_ACCEPTED=      27
-
-BUILD_DEPENDS+=        ${PYPKGPREFIX}-beautifulsoup-[0-9]*:../../www/py-beautifulsoup
+BUILD_DEPENDS+=        ${PYPKGPREFIX}-beautifulsoup4-[0-9]*:../../www/py-beautifulsoup4
 BUILD_DEPENDS+=        ${PYPKGPREFIX}-markdown-[0-9]*:../../textproc/py-markdown
 
 DEPENDS+=      dash-[0-9]*:../../shells/dash
@@ -23,7 +21,13 @@ DEPENDS+=    ${PYPKGPREFIX}-sqlite3-[0-9]*:
 
 WRKSRC=                ${WRKDIR}/redo-${DISTNAME}
 
+SUBST_CLASSES+=                paths
+SUBST_STAGE.paths=     do-configure
+SUBST_FILES.paths=     redo/whichpython.do
+SUBST_VARS.paths=      PYTHONBIN
+
 INSTALL_ENV+=  MANDIR=${DESTDIR}${PREFIX}/${PKGMANDIR}
 
 .include "../../lang/python/application.mk"
+.include "../../lang/python/extension.mk"
 .include "../../mk/bsd.pkg.mk"

Index: pkgsrc/devel/apenwarr-redo/distinfo
diff -u pkgsrc/devel/apenwarr-redo/distinfo:1.4 pkgsrc/devel/apenwarr-redo/distinfo:1.5
--- pkgsrc/devel/apenwarr-redo/distinfo:1.4     Sat Nov  9 15:00:55 2019
+++ pkgsrc/devel/apenwarr-redo/distinfo Mon Mar 30 08:02:22 2020
@@ -1,10 +1,12 @@
-$NetBSD: distinfo,v 1.4 2019/11/09 15:00:55 schmonz Exp $
+$NetBSD: distinfo,v 1.5 2020/03/30 08:02:22 schmonz Exp $
 
-SHA1 (redo-0.42.tar.gz) = 86ccb48dd5356b6b2a595b270ca6ab845c9e51d1
-RMD160 (redo-0.42.tar.gz) = 176deeb21453759b315fc584c51078c8b26821d9
-SHA512 (redo-0.42.tar.gz) = 41b8417136f98d12edf3c62f027f2459ae3fb92f6c5464553d79c3a52344de57220a5c64b565118da0a99c1544eaa153a468ffcdcfbf7193c76c896bcd40e900
-Size (redo-0.42.tar.gz) = 194344 bytes
+SHA1 (redo-0.42a.tar.gz) = 5720e2fa9d7fc5bd1d36fcb9477c771f5fe1c229
+RMD160 (redo-0.42a.tar.gz) = 4c7fdfee85b036b827e33a04837fb49127d168a8
+SHA512 (redo-0.42a.tar.gz) = 8473bd8168c8e70b59a573560f8f725c8538061ee15eabeb63e467a363fa6869aa8088e8ce324726da4e2f7115e2ddf72cbb657703e9090f4f93c05f42bb67cb
+Size (redo-0.42a.tar.gz) = 195053 bytes
 SHA1 (patch-bin_all.do) = 761d24a832fa8067b6123fc02918460f579ffb5a
 SHA1 (patch-do) = 75b461b94d83f6145d161355aec59633bcad2c20
+SHA1 (patch-docs_md2man.py) = 7b2c08665a9777f713c584025b91e2b95c349eb9
 SHA1 (patch-redo_sh.do) = d6223596c83744d19f23d0026a321fc89102569d
+SHA1 (patch-redo_whichpython.do) = aadf1ccc48743980abc40840121a423bb07eb9dc
 SHA1 (patch-t_shelltest.od) = ca86299da6ae30b44a0e10cfe1a6ef30299dd0bc

Added files:

Index: pkgsrc/devel/apenwarr-redo/patches/patch-docs_md2man.py
diff -u /dev/null pkgsrc/devel/apenwarr-redo/patches/patch-docs_md2man.py:1.1
--- /dev/null   Mon Mar 30 08:02:22 2020
+++ pkgsrc/devel/apenwarr-redo/patches/patch-docs_md2man.py     Mon Mar 30 08:02:22 2020
@@ -0,0 +1,20 @@
+$NetBSD: patch-docs_md2man.py,v 1.1 2020/03/30 08:02:22 schmonz Exp $
+
+Avoid finding older BeautifulSoup.
+
+--- docs/md2man.py.orig        2020-03-04 20:00:34.000000000 +0000
++++ docs/md2man.py
+@@ -1,11 +1,7 @@
+ from __future__ import print_function
+ import sys, os, markdown, re
+-try:
+-    from BeautifulSoup import BeautifulSoup
+-    bsver = 3
+-except ModuleNotFoundError:
+-    from bs4 import BeautifulSoup
+-    bsver = 4
++from bs4 import BeautifulSoup
++bsver = 4
+ 
+ def _split_lines(s):
+     return re.findall(r'([^\n]*\n?)', s)
Index: pkgsrc/devel/apenwarr-redo/patches/patch-redo_whichpython.do
diff -u /dev/null pkgsrc/devel/apenwarr-redo/patches/patch-redo_whichpython.do:1.1
--- /dev/null   Mon Mar 30 08:02:22 2020
+++ pkgsrc/devel/apenwarr-redo/patches/patch-redo_whichpython.do        Mon Mar 30 08:02:22 2020
@@ -0,0 +1,14 @@
+$NetBSD: patch-redo_whichpython.do,v 1.1 2020/03/30 08:02:22 schmonz Exp $
+
+Avoid finding pkg_alternatives(8) wrapper, or really any interpreter
+besides the one explicitly depended on.
+
+--- redo/whichpython.do.orig   2020-03-04 20:00:34.000000000 +0000
++++ redo/whichpython.do
+@@ -1,5 +1,5 @@
+ exec >&2
+-for py in intentionally-missing python python3 python2 python2.7; do
++for py in intentionally-missing @PYTHONBIN@; do
+       echo "Trying: $py"
+       cmd=$(command -v "$py" || true)
+       out=$($cmd -c 'print("success")' 2>/dev/null) || true



Home | Main Index | Thread Index | Old Index