From nobody Thu Oct 05 02:01:51 2023 X-Original-To: dev-commits-ports-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4S1FDH5cslz4vp0k; Thu, 5 Oct 2023 02:01:51 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4S1FDH44mGz3Gv0; Thu, 5 Oct 2023 02:01:51 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1696471311; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=m9oklRv27/I62dQ2AdqDfTfeDC8I0Cne6Ntd0HsFHnY=; b=yUqbeG/UJpqknlsgXO7q50OpNTfYuIR56XdLv5yfcxybbR5V+baEi7e28gSbuQFAP53KRX xe36QOrIOfQIRxbwn++/g2cowC38z1TnLhULqkst+AUl/3y4EhK5MxWwo2sGVvOznuW2RT W/koPjCHcgmtlcqrOySeVslUC2hJvs4/ZlVrgkbLGHz0WHnXLA6rTFReiDFYETUGxAULW0 eCAihd/q0qmEVXcRofOXwXqojyE+kNOk0RrkPaNnCGeasS/P/7rO9x/sNcwpMNJAJfe+oD zEpCj7a8PI07Ip3Qz4u92eRTkqJah30+eigrIwYueHNUFlAAxfVo3Nk1kGbc3Q== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1696471311; a=rsa-sha256; cv=none; b=X+3PCxwd905g54MAHd7Dasrwcf2AD/6LshhT90lT8hX4pjZ/p3wlJRQUfH1eQB7c5hm57E 4ota2p+jz4DM7i2LYCJYSNt8yghUi1SND9RjKpVM+4bqeF5Ghux1d75uteWgXu0TmoqRw3 2A/7tk35V9knpYlEbQTAKGQB4q/juR2E5S/RRa/Wk3kXf1J9/r9iaxEvd9bk7ylnrVronf dxEjAi5LDUYGLVHi7MZmcMyrrbndp2OSOOgId/iJ4RHi6fhoxu2cnbvCpWzmcrkXmBlQaz dUEg133eRhH6nBWLeDFypkbvZKJE5ZdUMFqXD4n6FU9vn6jL5Jx8HD5U4g6MHQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1696471311; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=m9oklRv27/I62dQ2AdqDfTfeDC8I0Cne6Ntd0HsFHnY=; b=dIwjRIm+JKL0Lzku91g/WELOwEZhIsCeYlXrPvc/Y1QJah2TfI/qC1JNA+4CQN8xDFFWFv 75GYBOQs1JoqD3U48mokAqMIhtjCbSgHNygHKnZTNaaxodqAJpHk2P6psxeO90Ta29Ov5O GOWyluZ7MgMDtWnsuk9Yf3ELWB2yGwe32O9xuqHmBtQKvJ+8yP2PzQIqaTVnjGWpWDFDVv BE1DdBVftkk0bkhMlWr6LjWM8AcTlHQS2OmWX1Ha8yf3c6f7LNQUDj0n2xREwNm1UNL3Ll cQ+gMrQLjbW+jWcwUErmXYWc5uNJc/MjnXwDunN+5GyZ1l19ij1GOeuUPMQLMw== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4S1FDH32yfz12Cl; Thu, 5 Oct 2023 02:01:51 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 39521pA1056435; Thu, 5 Oct 2023 02:01:51 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 39521p8q056432; Thu, 5 Oct 2023 02:01:51 GMT (envelope-from git) Date: Thu, 5 Oct 2023 02:01:51 GMT Message-Id: <202310050201.39521p8q056432@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Po-Chuan Hsieh Subject: git: 19ffa2050341 - main - devel/py-pyicu: Update to 2.11 List-Id: Commit messages for all branches of the ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-all@freebsd.org X-BeenThere: dev-commits-ports-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: sunpoet X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 19ffa2050341f9ab2a0136b9f553b096cd30a9ec Auto-Submitted: auto-generated The branch main has been updated by sunpoet: URL: https://cgit.FreeBSD.org/ports/commit/?id=19ffa2050341f9ab2a0136b9f553b096cd30a9ec commit 19ffa2050341f9ab2a0136b9f553b096cd30a9ec Author: Po-Chuan Hsieh AuthorDate: 2023-10-05 01:56:33 +0000 Commit: Po-Chuan Hsieh CommitDate: 2023-10-05 02:00:21 +0000 devel/py-pyicu: Update to 2.11 - Update WWW - Clean up Makefile - Strip shared library - Take maintainership Changes: https://gitlab.pyicu.org/main/pyicu/-/blob/main/CHANGES --- devel/py-pyicu/Makefile | 25 ++++------- devel/py-pyicu/distinfo | 6 +-- devel/py-pyicu/files/patch-icu68 | 97 ---------------------------------------- 3 files changed, 11 insertions(+), 117 deletions(-) diff --git a/devel/py-pyicu/Makefile b/devel/py-pyicu/Makefile index 13d1842068ab..bc1afe30fda8 100644 --- a/devel/py-pyicu/Makefile +++ b/devel/py-pyicu/Makefile @@ -1,32 +1,23 @@ PORTNAME= pyicu -PORTVERSION= 2.4.3 -PORTREVISION= 6 +PORTVERSION= 2.11 CATEGORIES= devel python MASTER_SITES= PYPI PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} DISTNAME= PyICU-${PORTVERSION} -MAINTAINER= ports@FreeBSD.org -COMMENT= Python extension wrapping IBM's ICU C++ API #' -WWW= https://pypi.org/project/PyICU/ +MAINTAINER= sunpoet@FreeBSD.org +COMMENT= Python extension wrapping the ICU C++ API +WWW= https://gitlab.pyicu.org/main/pyicu LICENSE= MIT LICENSE_FILE= ${WRKSRC}/LICENSE LIB_DEPENDS= libicudata.so:devel/icu -USES= compiler:c++11-lang python -USE_CXXSTD= c++11 -USE_PYTHON= distutils autoplist +USES= compiler:c++11-lang pkgconfig python +USE_PYTHON= autoplist concurrent distutils -MAKE_ENV= PYICU_INCLUDES="${LOCALBASE}/include" \ - PYICU_CFLAGS="${CXXFLAGS:ts:}" \ - PYICU_LFLAGS="-L${LOCALBASE}/lib" -CFLAGS+= -w -DPYICU_VER=\"${PORTVERSION}\" - -pre-configure: - @if [ ! -e ${LOCALBASE}/lib/libicule.so ]; then \ - ${REINPLACE_CMD} "s/, 'icule'//" ${WRKSRC}/${PYSETUP}; \ - fi +post-install: + ${FIND} ${STAGEDIR}${PYTHON_SITELIBDIR} -name '*.so' -exec ${STRIP_CMD} {} + .include diff --git a/devel/py-pyicu/distinfo b/devel/py-pyicu/distinfo index 419b197d6e06..6a27b880de9d 100644 --- a/devel/py-pyicu/distinfo +++ b/devel/py-pyicu/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1588020299 -SHA256 (PyICU-2.4.3.tar.gz) = c0ca7741ad0e8b20781578a876dac0357b982b7762ccc2aae116f0b18ce1ab1c -SIZE (PyICU-2.4.3.tar.gz) = 219819 +TIMESTAMP = 1696432936 +SHA256 (PyICU-2.11.tar.gz) = 3ab531264cfe9132b3d2ac5d708da9a4649d25f6e6813730ac88cf040a08a844 +SIZE (PyICU-2.11.tar.gz) = 257899 diff --git a/devel/py-pyicu/files/patch-icu68 b/devel/py-pyicu/files/patch-icu68 deleted file mode 100644 index d49d4a776b94..000000000000 --- a/devel/py-pyicu/files/patch-icu68 +++ /dev/null @@ -1,97 +0,0 @@ -Regressed by https://github.com/unicode-org/icu/commit/0101e2632c34 -Fixed by https://github.com/ovalhub/pyicu/commit/b42d6a754729 - -measureunit.cpp:466:5: error: unknown type name 'NoUnit' - NoUnit *object; - ^ -measureunit.cpp:480:45: error: unexpected namespace name 'NoUnit': expected expression -DECLARE_TYPE(NoUnit, t_nounit, MeasureUnit, NoUnit, - ^ -measureunit.cpp:480:1: error: use of undeclared identifier 'object' -DECLARE_TYPE(NoUnit, t_nounit, MeasureUnit, NoUnit, -^ -./macros.h:199:33: note: expanded from macro 'DECLARE_TYPE' -PyObject *wrap_##name(icuClass *object, int flags) \ - ^ -measureunit.cpp:480:1: error: expected '(' for function-style cast or type construction -DECLARE_TYPE(NoUnit, t_nounit, MeasureUnit, NoUnit, -^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -./macros.h:199:45: note: expanded from macro 'DECLARE_TYPE' -PyObject *wrap_##name(icuClass *object, int flags) \ - ~~~ ^ -measureunit.cpp:480:1: error: expected ';' after top level declarator -./macros.h:199:75: note: expanded from macro 'DECLARE_TYPE' -PyObject *wrap_##name(icuClass *object, int flags) \ - ^ -measureunit.cpp:956:23: error: unexpected namespace name 'NoUnit': expected expression - return wrap_NoUnit((NoUnit *) NoUnit::base().clone(), T_OWNED); - ^ -measureunit.cpp:956:31: error: expected expression - return wrap_NoUnit((NoUnit *) NoUnit::base().clone(), T_OWNED); - ^ -measureunit.cpp:961:25: error: unexpected namespace name 'NoUnit': expected expression - return wrap_NoUnit((NoUnit *) NoUnit::percent().clone(), T_OWNED); - ^ -measureunit.cpp:961:33: error: expected expression - return wrap_NoUnit((NoUnit *) NoUnit::percent().clone(), T_OWNED); - ^ -measureunit.cpp:966:25: error: unexpected namespace name 'NoUnit': expected expression - return wrap_NoUnit((NoUnit *) NoUnit::permille().clone(), T_OWNED); - ^ -measureunit.cpp:966:33: error: expected expression - return wrap_NoUnit((NoUnit *) NoUnit::permille().clone(), T_OWNED); - ^ -measureunit.cpp:1193:19: error: unexpected namespace name 'NoUnit': expected expression - REGISTER_TYPE(NoUnit, m); - ^ - ---- measureunit.cpp.orig 2019-10-03 17:11:03 UTC -+++ measureunit.cpp -@@ -463,7 +463,7 @@ DECLARE_TYPE(Measure, t_measure, UObject, Measure, abs - - class t_nounit : public _wrapper { - public: -- NoUnit *object; -+ MeasureUnit *object; - }; - - static PyObject *t_nounit_base(PyTypeObject *type); -@@ -477,7 +477,7 @@ static PyMethodDef t_nounit_methods[] = { - { NULL, NULL, 0, NULL } - }; - --DECLARE_TYPE(NoUnit, t_nounit, MeasureUnit, NoUnit, -+DECLARE_TYPE(NoUnit, t_nounit, MeasureUnit, MeasureUnit, - abstract_init, NULL); - - #endif -@@ -953,17 +953,17 @@ DEFINE_RICHCMP(Measure, t_measure); - - static PyObject *t_nounit_base(PyTypeObject *type) - { -- return wrap_NoUnit((NoUnit *) NoUnit::base().clone(), T_OWNED); -+ return wrap_NoUnit((MeasureUnit *) NoUnit::base().clone(), T_OWNED); - } - - static PyObject *t_nounit_percent(PyTypeObject *type) - { -- return wrap_NoUnit((NoUnit *) NoUnit::percent().clone(), T_OWNED); -+ return wrap_NoUnit((MeasureUnit *) NoUnit::percent().clone(), T_OWNED); - } - - static PyObject *t_nounit_permille(PyTypeObject *type) - { -- return wrap_NoUnit((NoUnit *) NoUnit::permille().clone(), T_OWNED); -+ return wrap_NoUnit((MeasureUnit *) NoUnit::permille().clone(), T_OWNED); - } - - #endif -@@ -1190,7 +1190,7 @@ void _init_measureunit(PyObject *m) - INSTALL_TYPE(MeasureUnit, m); - INSTALL_TYPE(Measure, m); - #if U_ICU_VERSION_HEX >= VERSION_HEX(60, 0, 0) -- REGISTER_TYPE(NoUnit, m); -+ INSTALL_STRUCT(NoUnit, m); - #endif - REGISTER_TYPE(CurrencyUnit, m); - REGISTER_TYPE(CurrencyAmount, m);