From nobody Mon Sep 11 15:16:41 2023 X-Original-To: dev-commits-ports-main@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 4Rkr0T2gH8z4sm8y; Mon, 11 Sep 2023 15:16:41 +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 4Rkr0T2FMzz3Wdp; Mon, 11 Sep 2023 15:16:41 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1694445401; 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=zUHbj+mwuzBmRQczMJaVyKbRfaKaUVOpgQz7FLQP0ms=; b=qIxGPc0yW8X60NvSCap5bzwe/sYPpzPGAOQoE+gTQaBXRBQiwIc8YsB1riUW7stCTjNuV5 U4N25ku5NcT5znAwHuVVJiKsOwjNOp12KA3CfuONdERXqppLQB/vqGAbIaVJZna83s96kS 4fc6vkred8fXsTkpFcZFydNoUuebdHVOItVGkgJQ3zVeG/BP3VgYidJXFFAM7YOUW5vNOd 1mRZeEQDQRN2zUWYUNIc6bI1fiS70ArI5zBGIUanZXopxDMPaDdRNGt02Z7aZdafCTVXJg gsRhH5Valbz82wdAJXLlClRDX6s2TM0F156ayAJ/trG9SVBt7AcXLp+mZD9aYg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1694445401; a=rsa-sha256; cv=none; b=kSU+voofQpYgdr7LivIZZNHY4pse8h+oJ0WBswiRMPTIDo+HCMA5dsk6R7bq5g7l3EGmQy vz3H+FTSk32IUynlWK4pjr8k6hMaPH3Ltsnyo1JvDl+R/clVbm1s0LBLVVaimUhFaydcsN t9ZncWdfiYxuxp0BSLzu1lEep7cMnSCr5HXSSLd4Gs+U+/YY6Z1fHB7xo6vYJLdIddO2jc VEZtKFPvWnfR3hhNM2183uVTOqm0CzvB/oAiTvq6lVJ7Hly8LzytcabSwyxNJrRorPdy2T dE79v/hqla04AE9A6nGOBKXEBbUkfmX+f/YiyQeuISQpWGM5RIQ7dj2QXtF21w== 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=1694445401; 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=zUHbj+mwuzBmRQczMJaVyKbRfaKaUVOpgQz7FLQP0ms=; b=ehxqkRZtbZ60u5oEG6Fj9Zwmemcnt7eRYCayvelOjWJkwGaDAqdn9uhyvkpe8fehk2PDmX SiugwM+zbYpbT6c2dAEuad1hEDhp970NfVO2o348SYnXVDVCrN0MtZE2uoI4psKrp5dLRV I5QhwwMkM6XsE5Vqijz2HyEZKUOS38vyPCFGzBz1shs/G4Lrf42WzfPUxBmKhzsoamz0RI 7aZ6wd4apT7apAmbF0XQaX4dE3bWX33qQUyluVsa0RUKVwzcnwiA9OHbXT0iQFDYHAwvBB 9B+qM+LapeT10nDmFh6bNVjFzu36wYLaFVKyJ2KUOUD0XbPBSWotg7wT/I0vuQ== 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 4Rkr0T1Jwpzv0r; Mon, 11 Sep 2023 15:16:41 +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 38BFGf5K024846; Mon, 11 Sep 2023 15:16:41 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 38BFGf4W024843; Mon, 11 Sep 2023 15:16:41 GMT (envelope-from git) Date: Mon, 11 Sep 2023 15:16:41 GMT Message-Id: <202309111516.38BFGf4W024843@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Joel Bodenmann Subject: git: 4b0d2e11183e - main - www/py-readability-lxml: Add new port List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-main@freebsd.org X-BeenThere: dev-commits-ports-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: jbo X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 4b0d2e11183ec9124b5f36436b2b79491816ff99 Auto-Submitted: auto-generated The branch main has been updated by jbo: URL: https://cgit.FreeBSD.org/ports/commit/?id=4b0d2e11183ec9124b5f36436b2b79491816ff99 commit 4b0d2e11183ec9124b5f36436b2b79491816ff99 Author: Martin Neubauer AuthorDate: 2023-09-11 11:49:00 +0000 Commit: Joel Bodenmann CommitDate: 2023-09-11 14:56:54 +0000 www/py-readability-lxml: Add new port Fast HTML to text parser (article readability tool). PR: 273553 Approved by: zirias (mentor) Differential Revision: https://reviews.freebsd.org/D41813 --- www/Makefile | 1 + www/py-readability-lxml/Makefile | 28 ++++++++++++++++++++++ www/py-readability-lxml/distinfo | 3 +++ .../files/patch-readability_compat_two.py | 11 +++++++++ www/py-readability-lxml/pkg-descr | 2 ++ 5 files changed, 45 insertions(+) diff --git a/www/Makefile b/www/Makefile index e80e38732953..bd973807ceb4 100644 --- a/www/Makefile +++ b/www/Makefile @@ -1787,6 +1787,7 @@ SUBDIR += py-qt5-webengine SUBDIR += py-qt6-webengine SUBDIR += py-quilt3 + SUBDIR += py-readability-lxml SUBDIR += py-recaptcha SUBDIR += py-requests SUBDIR += py-requests-aws4auth diff --git a/www/py-readability-lxml/Makefile b/www/py-readability-lxml/Makefile new file mode 100644 index 000000000000..b81041cc136b --- /dev/null +++ b/www/py-readability-lxml/Makefile @@ -0,0 +1,28 @@ +PORTNAME= readability-lxml +PORTVERSION= 0.8.1 +CATEGORIES= www python +MASTER_SITES= CHEESESHOP +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= m.ne@gmx.net +COMMENT= Fast HTML to text parser (article readability tool) +WWW= https://github.com/buriy/python-readability + +LICENSE= APACHE20 + +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}cssselect>0:www/py-cssselect@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}lxml>0:devel/py-lxml@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}timeout-decorator>0:devel/py-timeout-decorator@${PY_FLAVOR} + +USES= python +USE_PYTHON= autoplist distutils + +NO_ARCH= yes + +OPTIONS_DEFINE= CCHARDET + +CCHARDET_DESC= Use cchardet instead of chardet +CCHARDET_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}cchardet>0:textproc/py-cchardet@${PY_FLAVOR} +CCHARDET_RUN_DEPENDS_OFF= ${PYTHON_PKGNAMEPREFIX}chardet>0:textproc/py-chardet@${PY_FLAVOR} + +.include diff --git a/www/py-readability-lxml/distinfo b/www/py-readability-lxml/distinfo new file mode 100644 index 000000000000..bad18bd38808 --- /dev/null +++ b/www/py-readability-lxml/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1691368002 +SHA256 (readability-lxml-0.8.1.tar.gz) = e51fea56b5909aaf886d307d48e79e096293255afa567b7d08bca94d25b1a4e1 +SIZE (readability-lxml-0.8.1.tar.gz) = 15878 diff --git a/www/py-readability-lxml/files/patch-readability_compat_two.py b/www/py-readability-lxml/files/patch-readability_compat_two.py new file mode 100644 index 000000000000..faf554014211 --- /dev/null +++ b/www/py-readability-lxml/files/patch-readability_compat_two.py @@ -0,0 +1,11 @@ +Disable some python-2.x code with invalid syntax in python-3.x. + +--- readability/compat/two.py.orig 2020-07-03 23:38:42 UTC ++++ readability/compat/two.py +@@ -2,5 +2,5 @@ def raise_with_traceback(exc_type, traceback, *args, * + """ + Raise a new exception of type `exc_type` with an existing `traceback`. All + additional (keyword-)arguments are forwarded to `exc_type` +- """ + raise exc_type(*args, **kwargs), None, traceback ++ """ diff --git a/www/py-readability-lxml/pkg-descr b/www/py-readability-lxml/pkg-descr new file mode 100644 index 000000000000..e18a1660213f --- /dev/null +++ b/www/py-readability-lxml/pkg-descr @@ -0,0 +1,2 @@ +Fast HTML to text parser (article readability tool). +Given an HTML document, it pulls out the main body text and cleans it up.