From nobody Sun Nov 21 18:27:44 2021 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 9F2B8189BB4D; Sun, 21 Nov 2021 18:27:46 +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 4HxzR52HG7z3JQJ; Sun, 21 Nov 2021 18:27:44 +0000 (UTC) (envelope-from git@FreeBSD.org) 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 6762214336; Sun, 21 Nov 2021 18:27:44 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 1ALIRikg084032; Sun, 21 Nov 2021 18:27:44 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 1ALIRici084031; Sun, 21 Nov 2021 18:27:44 GMT (envelope-from git) Date: Sun, 21 Nov 2021 18:27:44 GMT Message-Id: <202111211827.1ALIRici084031@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: 89e5753e4dd8 - main - textproc/translate-toolkit: Unbreak this port 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: 89e5753e4dd8fb9aac76eb4a03b842ab1ae235dd Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by sunpoet: URL: https://cgit.FreeBSD.org/ports/commit/?id=89e5753e4dd8fb9aac76eb4a03b842ab1ae235dd commit 89e5753e4dd8fb9aac76eb4a03b842ab1ae235dd Author: Po-Chuan Hsieh AuthorDate: 2021-11-21 18:19:27 +0000 Commit: Po-Chuan Hsieh CommitDate: 2021-11-21 18:19:27 +0000 textproc/translate-toolkit: Unbreak this port --- textproc/translate-toolkit/Makefile | 2 - textproc/translate-toolkit/files/patch-revrt-rc | 118 ------------------------ 2 files changed, 120 deletions(-) diff --git a/textproc/translate-toolkit/Makefile b/textproc/translate-toolkit/Makefile index d9942f341049..0d8d7bbdec7e 100644 --- a/textproc/translate-toolkit/Makefile +++ b/textproc/translate-toolkit/Makefile @@ -11,8 +11,6 @@ COMMENT= Tools and API for translation and localization engineering LICENSE= GPLv2 LICENSE_FILE= ${WRKSRC}/COPYING -BROKEN= fails to build: ImportError: cannot import name 'commaSeparatedList' from 'pyparsing' - BUILD_DEPENDS= ${RUN_DEPENDS} RUN_DEPENDS= bash:shells/bash \ msghack:devel/gettext-msghack \ diff --git a/textproc/translate-toolkit/files/patch-revrt-rc b/textproc/translate-toolkit/files/patch-revrt-rc deleted file mode 100644 index 45cbd54df315..000000000000 --- a/textproc/translate-toolkit/files/patch-revrt-rc +++ /dev/null @@ -1,118 +0,0 @@ -Obtained from: https://github.com/translate/translate/commit/888091da38619af885c2350848f546a20f95ba39 - -Revert the change from pyparsing 2 to 3 - ---- translate/storage/rc.py.orig 2021-10-27 09:01:25 UTC -+++ translate/storage/rc.py -@@ -39,13 +39,13 @@ from pyparsing import ( - ZeroOrMore, - alphanums, - alphas, -- c_style_comment, -- delimited_list, -+ commaSeparatedList, -+ cStyleComment, -+ delimitedList, - nums, -- quoted_string, -- rest_of_line, -+ quotedString, -+ restOfLine, - ) --from pyparsing.common import pyparsing_common - - from translate.storage import base - -@@ -149,24 +149,24 @@ def rc_statement(): - :rtype: pyparsing.ParserElement - """ - -- one_line_comment = "//" + rest_of_line -+ one_line_comment = "//" + restOfLine - -- comments = c_style_comment ^ one_line_comment -+ comments = cStyleComment ^ one_line_comment - -- precompiler = Word("#", alphanums) + rest_of_line -+ precompiler = Word("#", alphanums) + restOfLine - - language_definition = ( - "LANGUAGE" -- + Word(alphas + "_").set_results_name("language") -- + Optional("," + Word(alphas + "_").set_results_name("sublanguage")) -+ + Word(alphas + "_").setResultsName("language") -+ + Optional("," + Word(alphas + "_").setResultsName("sublanguage")) - ) - -- block_start = (Keyword("{") | Keyword("BEGIN")).set_name("block_start") -- block_end = (Keyword("}") | Keyword("END")).set_name("block_end") -+ block_start = (Keyword("{") | Keyword("BEGIN")).setName("block_start") -+ block_end = (Keyword("}") | Keyword("END")).setName("block_end") - - reserved_words = block_start | block_end - -- name_id = ~reserved_words + Word(alphas, alphanums + "_").set_name("name_id") -+ name_id = ~reserved_words + Word(alphas, alphanums + "_").setName("name_id") - - numbers = Word(nums) - -@@ -175,25 +175,25 @@ def rc_statement(): - constant = Combine( - Optional(Keyword("NOT")) + (name_id | integerconstant), - adjacent=False, -- join_string=" ", -+ joinString=" ", - ) - -- combined_constants = delimited_list(constant, "|") -+ combined_constants = delimitedList(constant, "|") - -- concatenated_string = OneOrMore(quoted_string) -+ concatenated_string = OneOrMore(quotedString) - - block_options = Optional( -- SkipTo(Keyword("CAPTION"), fail_on=block_start)("pre_caption") -+ SkipTo(Keyword("CAPTION"), failOn=block_start)("pre_caption") - + Keyword("CAPTION") -- + quoted_string("caption") -+ + quotedString("caption") - ) + SkipTo(block_start)("post_caption") - - undefined_control = ( - Group( -- name_id.set_results_name("id_control") -- + delimited_list( -+ name_id.setResultsName("id_control") -+ + delimitedList( - concatenated_string ^ constant ^ numbers ^ Group(combined_constants) -- ).set_results_name("values_") -+ ).setResultsName("values_") - ) - | comments - ) -@@ -210,14 +210,14 @@ def rc_statement(): - string_table = Keyword("STRINGTABLE")("block_type") + block_options + block - - menu_item = Keyword("MENUITEM")("block_type") + ( -- pyparsing_common.comma_separated_list("values_") | Keyword("SEPARATOR") -+ commaSeparatedList("values_") | Keyword("SEPARATOR") - ) - - popup_block = Forward() - - popup_block <<= Group( - Keyword("POPUP")("block_type") -- + Optional(quoted_string("caption")) -+ + Optional(quotedString("caption")) - + block_start - + ZeroOrMore(Group(menu_item | popup_block))("elements") - + block_end -@@ -350,7 +350,7 @@ class rcfile(base.TranslationStore): - decoded = decoded.replace("\r", "") - - # Parse the strings into a structure. -- results = rc_statement().search_string(decoded) -+ results = rc_statement().searchString(decoded) - - processblocks = True -