From nobody Sat Sep 30 23:33:39 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 4Ryk781vK7z4vyV0; Sat, 30 Sep 2023 23:33:40 +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 4Ryk781SzGz4Cwb; Sat, 30 Sep 2023 23:33:40 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1696116820; 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=rtVOOdAezPdMHpLl/cE5oMlDemAaQ6Hp9uPxfzfnrLQ=; b=DnSI8BMaBIBWrC+BkeeaFnLOCRYGGZPbcqrPBHc9QToH/pJdntBePYGkl93ybAoxLIixm5 9bu4PnizllQErq9j18NGukK66AlBPAEx4tdTcZZ/DS1Cb2Uxp782qX2/iJ8Mh+oJP31Ihv GdjdU6wp9xJIs17P3+GEWu++uuYxh6qnOMxehkwvJy/T/qvTw0cE70UXJ6ZGTB+Eu325G9 vui9jMd64nYR/3CnFjnUnxHNqpIiUEYjGaLuLJrUw3uurOcjI/0oHUpup/EmjiLj6RN0lK Vy8uYgRBEx/GNKoqBYBP6oDKhtV159QSIfvpJY9TQxtaId2rD8k6ueTDpovE1w== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1696116820; a=rsa-sha256; cv=none; b=JlVT6I3YT4aO9VL7ccToNw2EErpkYWxFd9ke2Rbm58f65htK84o36pGdbIrBHCBL5p8J7U QZAcdLH+MH9Pv6j14878hnd6ySZmbwaDmgXyKEodZ5FdkvyDMvlI81AQFRV5M0jOaI4z/b ZR4zR82S0d7EcgGFE2ytDNPW/nEoGWVLVOAPD7d4RgkDdBY6HXrMBYoez6+YyzVCLOAnZV IFs/Ie3TUl4Tnb+gTGUQprgBYMQiY4IxnR64Vjv+Zfwjs+lMJ3EhuggLwBZLh0vbBpgxMx hybBT4iJ+6y0A9kp+KWnqa7rwvOQL31lNktiX3i1hyV/yDVeJ+42ZF79gywqSw== 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=1696116820; 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=rtVOOdAezPdMHpLl/cE5oMlDemAaQ6Hp9uPxfzfnrLQ=; b=vtC1SvGM+JxepyMKgh3dNKFTP4TC5Cpgj8rmqmknQLpWAyv/OhQBX9zrhgjB91HGvlgRL0 m0RWcdFIrQoclVSwPoFvvJam5qxfk4aAmc+Y3f76Rz8rqZM8uBj1NAg+iFLzZTvDcr/vtH 9UtWbI1MkP/H8VTLNEDT+ZBRXSTqTZbckyHpR3/BWyCGkwmhEgVa6e/TTTh8Mc2yUlCW22 j2CCJ9zJ+J1YDicF9sA1YWnBsne3xGTqxqyfzrFPvyAk2Z7i4jlxJH3jQfJ6PAybFqGiO8 fSJiEJwGoOFvnw3h0ugOqtJBD7u1cKmVENfm8DzdELE0IPyRJnRkFsKFZVbcSQ== 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 4Ryk780FVxz16Q9; Sat, 30 Sep 2023 23:33:40 +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 38UNXdrP008527; Sat, 30 Sep 2023 23:33:39 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 38UNXdUi008524; Sat, 30 Sep 2023 23:33:39 GMT (envelope-from git) Date: Sat, 30 Sep 2023 23:33:39 GMT Message-Id: <202309302333.38UNXdUi008524@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: 5e673607f9d8 - main - graphics/py-pillow-heif: Add py-pillow-heif 0.13.0 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: 5e673607f9d83fa60e72b7b16ce1d79894cd971c Auto-Submitted: auto-generated The branch main has been updated by sunpoet: URL: https://cgit.FreeBSD.org/ports/commit/?id=5e673607f9d83fa60e72b7b16ce1d79894cd971c commit 5e673607f9d83fa60e72b7b16ce1d79894cd971c Author: Po-Chuan Hsieh AuthorDate: 2023-09-30 23:26:33 +0000 Commit: Po-Chuan Hsieh CommitDate: 2023-09-30 23:26:33 +0000 graphics/py-pillow-heif: Add py-pillow-heif 0.13.0 Python bindings to libheif for working with HEIF images and plugin for Pillow. Features: - Decoding of 8, 10, 12 bit HEIC and AVIF files. - Encoding of 8, 10, 12 bit HEIC and AVIF files. - EXIF, XMP, IPTC read & write support. - Support of multiple images in one file and a PrimaryImage attribute. - Adding & removing thumbnails. - Reading of Depth Images. - Adding HEIF support to Pillow in one line of code as a plugin. --- graphics/Makefile | 1 + graphics/py-pillow-heif/Makefile | 28 ++++++++++++++++++++++ graphics/py-pillow-heif/distinfo | 3 +++ graphics/py-pillow-heif/files/patch-pyproject.toml | 10 ++++++++ graphics/py-pillow-heif/files/patch-setup.py | 9 +++++++ graphics/py-pillow-heif/pkg-descr | 10 ++++++++ 6 files changed, 61 insertions(+) diff --git a/graphics/Makefile b/graphics/Makefile index d4f82d7ba9e8..8b22d6ad2ad0 100644 --- a/graphics/Makefile +++ b/graphics/Makefile @@ -917,6 +917,7 @@ SUBDIR += py-photocollage SUBDIR += py-piexif SUBDIR += py-pillow + SUBDIR += py-pillow-heif SUBDIR += py-pivy SUBDIR += py-plotly SUBDIR += py-png diff --git a/graphics/py-pillow-heif/Makefile b/graphics/py-pillow-heif/Makefile new file mode 100644 index 000000000000..52d788016ec1 --- /dev/null +++ b/graphics/py-pillow-heif/Makefile @@ -0,0 +1,28 @@ +PORTNAME= pillow-heif +PORTVERSION= 0.13.0 +CATEGORIES= graphics python +MASTER_SITES= PYPI +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} +DISTNAME= pillow_heif-${PORTVERSION} + +MAINTAINER= sunpoet@FreeBSD.org +COMMENT= Python interface for libheif library +WWW= https://github.com/bigcat88/pillow_heif + +LICENSE= BSD3CLAUSE +LICENSE_FILE= ${WRKSRC}/LICENSE.txt + +BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}setuptools>=61:devel/py-setuptools@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}wheel>=0:devel/py-wheel@${PY_FLAVOR} +LIB_DEPENDS= libheif.so:graphics/libheif +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pillow>=9.1.1:graphics/py-pillow@${PY_FLAVOR} + +USES= localbase python +USE_PYTHON= autoplist concurrent pep517 + +LDFLAGS+= -lheif + +post-install: + ${FIND} ${STAGEDIR}${PYTHON_SITELIBDIR} -name '*.so' -exec ${STRIP_CMD} {} + + +.include diff --git a/graphics/py-pillow-heif/distinfo b/graphics/py-pillow-heif/distinfo new file mode 100644 index 000000000000..5f8031c6e241 --- /dev/null +++ b/graphics/py-pillow-heif/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1696048422 +SHA256 (pillow_heif-0.13.0.tar.gz) = be337495d0be5accf4d6ea6614f61293c40c86dc8d3e5e6eb63661f90f472362 +SIZE (pillow_heif-0.13.0.tar.gz) = 14891825 diff --git a/graphics/py-pillow-heif/files/patch-pyproject.toml b/graphics/py-pillow-heif/files/patch-pyproject.toml new file mode 100644 index 000000000000..732bb191a5f9 --- /dev/null +++ b/graphics/py-pillow-heif/files/patch-pyproject.toml @@ -0,0 +1,10 @@ +--- pyproject.toml.orig 2023-08-09 12:11:06 UTC ++++ pyproject.toml +@@ -1,6 +1,6 @@ + [build-system] + requires = [ +- "setuptools>=67.8", ++ "setuptools>=61", + "wheel", + ] + diff --git a/graphics/py-pillow-heif/files/patch-setup.py b/graphics/py-pillow-heif/files/patch-setup.py new file mode 100644 index 000000000000..bc5bfc34ffb2 --- /dev/null +++ b/graphics/py-pillow-heif/files/patch-setup.py @@ -0,0 +1,9 @@ +--- setup.py.orig 2023-08-09 12:11:06 UTC ++++ setup.py +@@ -142,6 +142,5 @@ if getenv("READTHEDOCS", "False") == "True": + else: + setup( + version=get_version(), +- cmdclass={"build_ext": PillowHeifBuildExt}, + ext_modules=[Extension("_pillow_heif", ["pillow_heif/_pillow_heif.c"])], + ) diff --git a/graphics/py-pillow-heif/pkg-descr b/graphics/py-pillow-heif/pkg-descr new file mode 100644 index 000000000000..f1bc6fc8c111 --- /dev/null +++ b/graphics/py-pillow-heif/pkg-descr @@ -0,0 +1,10 @@ +Python bindings to libheif for working with HEIF images and plugin for Pillow. + +Features: +- Decoding of 8, 10, 12 bit HEIC and AVIF files. +- Encoding of 8, 10, 12 bit HEIC and AVIF files. +- EXIF, XMP, IPTC read & write support. +- Support of multiple images in one file and a PrimaryImage attribute. +- Adding & removing thumbnails. +- Reading of Depth Images. +- Adding HEIF support to Pillow in one line of code as a plugin.