Tuesday, June 15, 2021

回复: textproc/py-colored: Update to 1.4.2

Index: textproc/py-colored/Makefile
===================================================================
RCS file: /cvs/ports/textproc/py-colored/Makefile,v
retrieving revision 1.5
diff -u -p -r1.5 Makefile
--- textproc/py-colored/Makefile 3 Jul 2020 21:13:13 -0000 1.5
+++ textproc/py-colored/Makefile 15 Jun 2021 07:56:23 -0000
@@ -2,10 +2,9 @@

COMMENT = simple library for color and formatting in terminal

-MODPY_EGG_VERSION = 1.3.93
+MODPY_EGG_VERSION = 1.4.2
DISTNAME = colored-${MODPY_EGG_VERSION}
PKGNAME = py-${DISTNAME}
-REVISION = 1

CATEGORIES = textproc

@@ -14,9 +13,10 @@ PERMIT_PACKAGE = Yes

MODULES = lang/python
MODPY_PI = Yes
+MODPY_SETUPTOOLS = Yes

FLAVORS = python3
-FLAVOR ?=
+FLAVOR ?= python3

TEST_DEPENDS = ${FULLPKGNAME}:${FULLPKGPATH}

Index: textproc/py-colored/distinfo
===================================================================
RCS file: /cvs/ports/textproc/py-colored/distinfo,v
retrieving revision 1.2
diff -u -p -r1.2 distinfo
--- textproc/py-colored/distinfo 20 Apr 2019 15:40:23 -0000 1.2
+++ textproc/py-colored/distinfo 15 Jun 2021 07:56:23 -0000
@@ -1,2 +1,2 @@
-SHA256 (colored-1.3.93.tar.gz) = gpbqmQ4/a3gi9E7sIUCLEm37nBwDEwa4WeP31GzCcHU=
-SIZE (colored-1.3.93.tar.gz) = 24384
+SHA256 (colored-1.4.2.tar.gz) = BW+sCdnjmzQpbnYYiX7RuMJ0+YQjdwwpgNgp/WcJVe0=
+SIZE (colored-1.4.2.tar.gz) = 56694
Index: textproc/py-colored/pkg/PLIST
===================================================================
RCS file: /cvs/ports/textproc/py-colored/pkg/PLIST,v
retrieving revision 1.1.1.1
diff -u -p -r1.1.1.1 PLIST
--- textproc/py-colored/pkg/PLIST 31 Dec 2017 01:52:09 -0000 1.1.1.1
+++ textproc/py-colored/pkg/PLIST 15 Jun 2021 07:56:23 -0000
@@ -1,6 +1,11 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2017/12/31 01:52:09 sthen Exp $
+@pkgpath textproc/py-colored
lib/python${MODPY_VERSION}/site-packages/colored/
-lib/python${MODPY_VERSION}/site-packages/colored-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info
+lib/python${MODPY_VERSION}/site-packages/colored-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/
+lib/python${MODPY_VERSION}/site-packages/colored-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/PKG-INFO
+lib/python${MODPY_VERSION}/site-packages/colored-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/SOURCES.txt
+lib/python${MODPY_VERSION}/site-packages/colored-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/dependency_links.txt
+lib/python${MODPY_VERSION}/site-packages/colored-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/top_level.txt
lib/python${MODPY_VERSION}/site-packages/colored/__init__.py
${MODPY_COMMENT}lib/python${MODPY_VERSION}/site-packages/colored/${MODPY_PYCACHE}/
lib/python${MODPY_VERSION}/site-packages/colored/${MODPY_PYCACHE}__init__.${MODPY_PYC_MAGIC_TAG}pyc
Index: devel/quirks/files/Quirks.pm
===================================================================
RCS file: /cvs/ports/devel/quirks/files/Quirks.pm,v
retrieving revision 1.1284
diff -u -p -r1.1284 Quirks.pm
--- devel/quirks/files/Quirks.pm 15 Jun 2021 06:55:21 -0000 1.1284
+++ devel/quirks/files/Quirks.pm 15 Jun 2021 07:56:24 -0000
@@ -469,6 +469,7 @@ my $stem_extensions = {
'py-libarchive-c' => 'py3-libarchive-c',
'py-minimalmodbus' => 'py3-minimalmodbus',
'baresip-gtk2' => 'baresip-gtk',
+ 'py-colored' => 'py3-colored',
};

my $obsolete_reason = {};
Here is the revised patch, which tested on -current system, and
add "@pkgpath category/py-whatever" to PLIST, add a devel/quirks
entry.

wen

________________________________________
发件人: Stuart Henderson <stu@spacehopper.org>
发送时间: 2021年6月14日 20:57
收件人: wen heping
抄送: ports@openbsd.org
主题: Re: textproc/py-colored: Update to 1.4.2

On 2021/06/14 09:50, wen heping wrote:
> Hi, ports@:
>
>
> Here is a patch for textproc/py-colored:
> i) Update to 1.4.2
> ii) Switch to python3, no other ports depends on py2-colored.

When switching a port from py2+3 to py3-only, these are needed:

- use "FLAVOR = python3" (no ?=)

- add "@pkgpath category/py-whatever" to PLIST, and add a devel/quirks
entry for py-whatever -> py3-whatever, so that old installed py2 packages
are updated

- (doesn't apply for py-colored, but check for MODPY_BIN_SUFFIX uses
that can be removed, and add @conflict with the old py2 version if
there are any files present after doing that)

No comments:

Post a Comment