From nobody Sun Sep 3 08:18:53 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 4Rdl655PRMz4s6c4; Sun, 3 Sep 2023 08:18:53 +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 4Rdl654zPPz3cZY; Sun, 3 Sep 2023 08:18:53 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1693729133; 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=Pl8C5x/+C+zFf9Z3oilSGa7HfcHqpBLpxeoJynIOBtE=; b=yRGjIEOBtRF3IYJ4ml29wSI72miPbINW0x4pcTbpgQ0Yt5AucU5thFPSTXXWqvhSmoP+M/ 5uZ7VkvjWinSywjfCVok6/ehnpRyJHPT1D9aPOO8jtcjkIgxQU69zotUHTIWg2CCEKSTbT YDe6i30vuRvC3wOVfcvqpzGz5E26AqZuGyCU4rxXrUrUU7bX0JtBbnlM3UYb/vNWCkxG8i WQ98o2cHuMxEVfwgxSPjOOVt91DWYYapZocdC7jpl4CPm1ucy9LvGDmccwh32WKxLVZZsw CZa3mJa5YnIP9nAFBT6zM8iJ6x9OHP2t8fOQycR/aZwfqNUFtU8nQS1U15V9UQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1693729133; a=rsa-sha256; cv=none; b=Fi/IT1RQ427p9eqsKFVd+GFLIMC5kMJuy4i34XrhZWkalOWh+JoHQ+lVpsgfwiV4Xl7rbY 5AgD/8xJCBFkuLZ3+Ecq/foN9sZHixC9x6wTBvzwRTRz72TjRgkzFF2FkHvAAzQLL/7sB4 7c4oZrsF+IvKpV8e0ZqImdt+7aji/THTkuoGOJpW17mF++Oj6bcNbbcZjY6ghCzD0fLqVi p0LIiUnUHEtuNqDGn8gOKLXLrEM8iFnhrGK0CuIAImXwcsBxBc+TN/xdsxTKg96Ln7Pi1M KPEHnFz3KeE5nfr75nyj+TuOSfMBIPVKuiUwKCf7BzwSoapRzC90eIzbWRj+pQ== 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=1693729133; 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=Pl8C5x/+C+zFf9Z3oilSGa7HfcHqpBLpxeoJynIOBtE=; b=cF6l26CCfDovkjXoKa4wmE+AoISltYt8zMCb1fyTaOB2y7MJC5EIVzWRMz+/SlzBZb+E7b xTQGk880nVmZyc6DkgQoDBWeQwrA8b8BcZFTNGsAhkzIQ7VWB6Izg6YGAtsCOh/o0b9EQt /5HcDYYoMP9hFgEODObp9tLIpOuSFBXTzf84s8RpCjSyOMhf7KeAMOzag7xP5R7AxFLBIS I9VhZo/7feNHFMJw+UwXs0eF28Tg4j9dUPYs1Rfa1TZC9Tg2EupcxDSKuZEIRRUL3B+FM1 Ft/9QZUpajDfn0JUpFrTc3jDhX+hPEgnB6C+z/XW0yZrV6vN4JyEZhN7mUn7Dg== 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 4Rdl653xjdz393; Sun, 3 Sep 2023 08:18:53 +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 3838IrXX082129; Sun, 3 Sep 2023 08:18:53 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 3838IrRv082126; Sun, 3 Sep 2023 08:18:53 GMT (envelope-from git) Date: Sun, 3 Sep 2023 08:18:53 GMT Message-Id: <202309030818.3838IrRv082126@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Kai Knoblich Subject: git: c27811bf4ead - main - textproc/py-readtime: 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: kai X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: c27811bf4ead028fbe0ab0ab931c5906564d81c8 Auto-Submitted: auto-generated The branch main has been updated by kai: URL: https://cgit.FreeBSD.org/ports/commit/?id=c27811bf4ead028fbe0ab0ab931c5906564d81c8 commit c27811bf4ead028fbe0ab0ab931c5906564d81c8 Author: Kai Knoblich AuthorDate: 2023-09-03 08:02:44 +0000 Commit: Kai Knoblich CommitDate: 2023-09-03 08:02:44 +0000 textproc/py-readtime: New port Calculates the time some text takes the average human to read, based on Medium's read time forumula. Medium's Help Center says: "Read time is based on the average reading speed of an adult (roughly 265 WPM). We take the total word count of a post and translate it into minutes, with an adjustment made for images. For posts in Chinese, Japanese and Korean, it's a function of number of characters (500 characters/min) with an adjustment made for images." Source: https://help.medium.com/hc/en-us/articles/214991667-Read-time --- textproc/Makefile | 1 + textproc/py-readtime/Makefile | 23 +++++++++++++++++++++++ textproc/py-readtime/distinfo | 3 +++ textproc/py-readtime/pkg-descr | 12 ++++++++++++ 4 files changed, 39 insertions(+) diff --git a/textproc/Makefile b/textproc/Makefile index 3bd507ddd7f5..880ac8115144 100644 --- a/textproc/Makefile +++ b/textproc/Makefile @@ -1525,6 +1525,7 @@ SUBDIR += py-qrcode SUBDIR += py-rdflib SUBDIR += py-readchar + SUBDIR += py-readtime SUBDIR += py-recommonmark SUBDIR += py-regex SUBDIR += py-reindent diff --git a/textproc/py-readtime/Makefile b/textproc/py-readtime/Makefile new file mode 100644 index 000000000000..2ba5d0b2b3b2 --- /dev/null +++ b/textproc/py-readtime/Makefile @@ -0,0 +1,23 @@ +PORTNAME= readtime +DISTVERSION= 3.0.0 +CATEGORIES= textproc python +MASTER_SITES= PYPI +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= kai@FreeBSD.org +COMMENT= Calculates the time some text takes the average human to read +WWW= https://github.com/alanhamlett/readtime + +LICENSE= BSD2CLAUSE +LICENSE_FILE= ${WRKSRC}/LICENSE + +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}beautifulsoup>=4.0.1:www/py-beautifulsoup@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}markdown2>=2.4.3:textproc/py-markdown2@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}pyquery>=1.2:devel/py-pyquery@${PY_FLAVOR} + +USES= python +USE_PYTHON= autoplist distutils + +NO_ARCH= yes + +.include diff --git a/textproc/py-readtime/distinfo b/textproc/py-readtime/distinfo new file mode 100644 index 000000000000..52a897adfe40 --- /dev/null +++ b/textproc/py-readtime/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1693484825 +SHA256 (readtime-3.0.0.tar.gz) = 76c5a0d773ad49858c53b42ba3a942f62fbe20cc8c6f07875797ac7dc30963a9 +SIZE (readtime-3.0.0.tar.gz) = 6271 diff --git a/textproc/py-readtime/pkg-descr b/textproc/py-readtime/pkg-descr new file mode 100644 index 000000000000..b6946a6fd286 --- /dev/null +++ b/textproc/py-readtime/pkg-descr @@ -0,0 +1,12 @@ +Calculates the time some text takes the average human to read, based on +Medium's read time forumula. + +Medium's Help Center says: + +"Read time is based on the average reading speed of an adult (roughly 265 WPM). + We take the total word count of a post and translate it into minutes, with an + adjustment made for images. For posts in Chinese, Japanese and Korean, it's a + function of number of characters (500 characters/min) with an adjustment made + for images." + +Source: https://help.medium.com/hc/en-us/articles/214991667-Read-time