From nobody Wed Feb 21 15:17:32 2024 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 4Tg0JF39FPz59drc; Wed, 21 Feb 2024 15:17:33 +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 4Tg0JF18MFz4tnt; Wed, 21 Feb 2024 15:17:33 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708528653; 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=TYqv/HVj1d2yEqrwgIzuU2v7PsrHuE46/wfNRscRL1c=; b=GOHQBLm8nlIJSTMeVFYPp6K223UcCea39wFhTfsim/lX8wwxo0ZibFsBpXAtAMIJOJ3+s8 xWnzs+kudHHfQve4Mu74mJi6Bx5IIK7oCDazzE5H66q4WhDFVP4I0fVvD6nk9vfnhOFGsp whcwdevP13oNKXRjDabm7gPaphCMPDEUZkrWIzM4M/5M7F0qKmNwVyAam0IIi/PB0C971F zLmSgTcpppGPCooBWobsa447lLkgmPT7KNEXGzjacFCr/nrpBh330RZAvCuJP0mKWU0axA 4vhe2rWm3qEdwyaDy6Wjx3uEMRlGahdr8F2EhVLyARKb2BPfajMRGQnNSCYcNA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708528653; 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=TYqv/HVj1d2yEqrwgIzuU2v7PsrHuE46/wfNRscRL1c=; b=HggcA4nQqCogDCzKSbm8WiSkW+ty4sROqclSao9XWJ9FVYzgqAt19fY2ASlgQ2AgpkHr0r L8gujcVNGHmV95FxQQS6BOpKPWu6F7GtAISjW28dxVlTD9xYJPrgnGTsvYjj2LkesE15GA I/e2NCdmvwmZUkrPU/l5uUm8wCvoQpOXS74sZGBp69fleS1/TG0plbTAaK1mXdV/ncubKc UvURMlEQq+M3jg9Sxdcwf+QVKaFg1GscHdSBGYBskgtSxCOzTGfx+ZExu3MxKK6quqzcl2 Vqj4z6HuRkWrUdZ6XWIolI4fhO/yurr8PILnPvkym9uxdF6FvwszhofHb4YyxA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1708528653; a=rsa-sha256; cv=none; b=EcvaPN7WbhG/bL32lwXSrpImmgi2owQEuXEMUF2Lt5MEh3zczvxj+tu/+pyEqjV4jLp3Eo 7ee193xq3QX1xI31bxBmWViHFbgWXAqwtGzgb8vVTLnj7bwDzKbJ9p6J7l/S+YYynCOjWh x4rNatrKxHssaN8n8oUG6gLlRd2BhDY5xuJCS+GwGvddo0LiniiD+yzaRMlk7wrAzaqK5G YcIO//fN5lH1P0IfqreEL+GBM1xQzT9DegQsPAxLHzW37xmG+2Csy5EeuKF4FHaY6MRlWp CEBZiGRvUI0n5vAAnTDus9Qz8RavIjKhezSs4FMJx5MkkS1oVC/8LPQ+yR8tMQ== 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 4Tg0JF0GNlz16wZ; Wed, 21 Feb 2024 15:17:33 +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 41LFHWQg012853; Wed, 21 Feb 2024 15:17:32 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41LFHWto012850; Wed, 21 Feb 2024 15:17:32 GMT (envelope-from git) Date: Wed, 21 Feb 2024 15:17:32 GMT Message-Id: <202402211517.41LFHWto012850@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: 8433ea805d59 - main - x11-fonts/py-gfsubsets: Add py-gfsubsets 2024.2.5 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: 8433ea805d592c329c7cd3ffa5429b63c561aab1 Auto-Submitted: auto-generated The branch main has been updated by sunpoet: URL: https://cgit.FreeBSD.org/ports/commit/?id=8433ea805d592c329c7cd3ffa5429b63c561aab1 commit 8433ea805d592c329c7cd3ffa5429b63c561aab1 Author: Po-Chuan Hsieh AuthorDate: 2024-02-21 14:13:48 +0000 Commit: Po-Chuan Hsieh CommitDate: 2024-02-21 15:06:11 +0000 x11-fonts/py-gfsubsets: Add py-gfsubsets 2024.2.5 This is the collection of nam files (codepoint subsets) that are used to subset fonts before serving on the Google Fonts CSS API. The Python module gfsubsets provides an interface to these subset definitions. It exports the following functions: - CodepointsInFont(filename): Lists the Unicode codepoints supported by the font - ListSubsets(): Returns the name of all defined subsets. - SubsetsForCodepoint(cp): Returns the names of all subsets including the codepoint. - SubsetForCodepoint(cp): Returns the name of the "most relevant" subset including the codepoint. - CodepointsInSubset(subset): Returns a set of codepoints included in the subset. - SubsetsInFont(filename, min_pct, ext_min_pct): Returns the name of subsets "well" supported by a font. --- x11-fonts/Makefile | 1 + x11-fonts/py-gfsubsets/Makefile | 23 +++++++++++++++++++++++ x11-fonts/py-gfsubsets/distinfo | 3 +++ x11-fonts/py-gfsubsets/files/patch-pyproject.toml | 9 +++++++++ x11-fonts/py-gfsubsets/pkg-descr | 15 +++++++++++++++ 5 files changed, 51 insertions(+) diff --git a/x11-fonts/Makefile b/x11-fonts/Makefile index e34986bf6483..a3f390fda88d 100644 --- a/x11-fonts/Makefile +++ b/x11-fonts/Makefile @@ -243,6 +243,7 @@ SUBDIR += py-fontfeatures SUBDIR += py-fontmake SUBDIR += py-gflanguages + SUBDIR += py-gfsubsets SUBDIR += py-glyphsLib SUBDIR += py-opentype-sanitizer SUBDIR += py-opentypespec diff --git a/x11-fonts/py-gfsubsets/Makefile b/x11-fonts/py-gfsubsets/Makefile new file mode 100644 index 000000000000..393a503fe365 --- /dev/null +++ b/x11-fonts/py-gfsubsets/Makefile @@ -0,0 +1,23 @@ +PORTNAME= gfsubsets +PORTVERSION= 2024.2.5 +CATEGORIES= x11-fonts python +MASTER_SITES= PYPI +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= sunpoet@FreeBSD.org +COMMENT= Codepoint definitions for the Google Fonts subsetter +WWW= https://github.com/googlefonts/nam-files + +LICENSE= APACHE20 +LICENSE_FILE= ${WRKSRC}/LICENSE + +BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}setuptools>=61.0:devel/py-setuptools@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}setuptools_scm>=6.0:devel/py-setuptools_scm@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}wheel>=0:devel/py-wheel@${PY_FLAVOR} + +USES= python:3.9+ +USE_PYTHON= autoplist concurrent pep517 + +NO_ARCH= yes + +.include diff --git a/x11-fonts/py-gfsubsets/distinfo b/x11-fonts/py-gfsubsets/distinfo new file mode 100644 index 000000000000..19b7af04aed1 --- /dev/null +++ b/x11-fonts/py-gfsubsets/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1708448864 +SHA256 (gfsubsets-2024.2.5.tar.gz) = 83d4312dadc1d4c313b3e8e68f80b2272499454d33a0535875b399c078ca3da4 +SIZE (gfsubsets-2024.2.5.tar.gz) = 1369868 diff --git a/x11-fonts/py-gfsubsets/files/patch-pyproject.toml b/x11-fonts/py-gfsubsets/files/patch-pyproject.toml new file mode 100644 index 000000000000..94611a76ae8d --- /dev/null +++ b/x11-fonts/py-gfsubsets/files/patch-pyproject.toml @@ -0,0 +1,9 @@ +--- pyproject.toml.orig 2024-02-05 09:16:01 UTC ++++ pyproject.toml +@@ -1,5 +1,5 @@ + [build-system] +-requires = ["setuptools >= 61.0", "setuptools-scm>=8.0"] ++requires = ["setuptools >= 61.0", "setuptools-scm>=6.0"] + build-backend = "setuptools.build_meta" + + [tool.setuptools_scm] diff --git a/x11-fonts/py-gfsubsets/pkg-descr b/x11-fonts/py-gfsubsets/pkg-descr new file mode 100644 index 000000000000..98d4a9069c36 --- /dev/null +++ b/x11-fonts/py-gfsubsets/pkg-descr @@ -0,0 +1,15 @@ +This is the collection of nam files (codepoint subsets) that are used to subset +fonts before serving on the Google Fonts CSS API. + +The Python module gfsubsets provides an interface to these subset definitions. +It exports the following functions: +- CodepointsInFont(filename): Lists the Unicode codepoints supported by the font +- ListSubsets(): Returns the name of all defined subsets. +- SubsetsForCodepoint(cp): Returns the names of all subsets including the + codepoint. +- SubsetForCodepoint(cp): Returns the name of the "most relevant" subset + including the codepoint. +- CodepointsInSubset(subset): Returns a set of codepoints included in the + subset. +- SubsetsInFont(filename, min_pct, ext_min_pct): Returns the name of subsets + "well" supported by a font.