From nobody Tue Sep 17 17:29:42 2024 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 4X7TLG4Y0Sz5VhmV; Tue, 17 Sep 2024 17:29:42 +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 "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4X7TLG3yxCz53Ld; Tue, 17 Sep 2024 17:29:42 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1726594182; 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=9hjXtFTFQ8pqIXjdChzUXGjiiiz+dXYNmoApjhyT7UY=; b=GJNzeR5SrasR/xvCwJ982Ym3qunct+hQCf2/fh1Jvn+3jj5SmW3iUGBSQ12bcrJ8QhS7Ye x6CoKW3ogS4dATwZE0yqXMPXQ3jwk60SDwuStyaVxN4hgds7BTccgFpFCSK1P2stiKKaET W7d2mjgsvU8KFGc7DIObeLVweopbyCb0YY2whzuUUsCmwx+uwjYt4CjqDo9uAR9jVW5j6g bofAYSjnZ11scRYNZ7v+kxYBNjPaoAYlmqQo3lzd7vAiR4tu0SW1KY4OcwRYSKs1BcvE6N 6SH+FTNrO1qGRRsXryJpL65AO27KZuQ9YdnexP3nFusd+6wvN+j7HVvyYCB0Mg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1726594182; a=rsa-sha256; cv=none; b=eiXKWNyt3hwXHkx04x0PhxUzBkzLDZDAEGkXM5AE2oqmLEIr/2rvNbFTq0giJm4dEDQ5+B TSmC5Q4v0TnOx31O6Z0CAsjVfdjujCfoJVA+eBIhBeLWNRw5yTS0tgTXLUgwR+O5e3ANhi RU+mb+I613ENCNFBnscACg4I6TPvfjQolmrL4a1Fv8ih4N0iwKmOwxXKw5flsFtNoGCWHK dZ38TgYrm+KAtXAHqf61y2UWn+s3FCcfxnVbHmj8uERnFjRM5L7QQ36Oy+6wVnIeqovgno np/h8wR00ZoDFOCvQpnUxax6vON3d3jJQiKgdwVrhbhGCjR2tbr+cCDtdiV9EA== 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=1726594182; 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=9hjXtFTFQ8pqIXjdChzUXGjiiiz+dXYNmoApjhyT7UY=; b=E3sE1wcBgroXn0lHFRlS4JJUID8p2RisfiqwYzjEn3FRNJqPKJ5Ku1rRBIDfr0hC47eM8b JiAY9/3xF9aQfvMTunGQMQoZ9EC/Nk0Funi3PeKO7PNSqkGKriDk9RyvmhkgijXQZ2WVf2 3+qRq3dkHHAqm9IFnGKNvPTHgTPcF9aGKk5243vPHcrkHJ0MUjhSna0XE6Wr0UwdF1ANPi Oie7sxduRMcKXt4VN2qbQh37CGws471sLfe7HAayRV7nDVKk1TqZTBwBKP6UavM1Ih1Y3H DzdKY7e0hCkKAgaQzRIv3Tes8u80bwMY/nwxmuVcpnTRj0f6q9tTnIqCx/g4sg== 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 4X7TLG3STpznJw; Tue, 17 Sep 2024 17:29:42 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 48HHTgJx019172; Tue, 17 Sep 2024 17:29:42 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 48HHTgQl019169; Tue, 17 Sep 2024 17:29:42 GMT (envelope-from git) Date: Tue, 17 Sep 2024 17:29:42 GMT Message-Id: <202409171729.48HHTgQl019169@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Yuri Victorovich Subject: git: fd8eef851a1d - main - graphics/py-simplejpeg: New port: Simple package for fast JPEG encoding and decoding 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: X-BeenThere: dev-commits-ports-main@freebsd.org Sender: owner-dev-commits-ports-main@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: yuri X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: fd8eef851a1d73866993a69697dde17a6243de34 Auto-Submitted: auto-generated The branch main has been updated by yuri: URL: https://cgit.FreeBSD.org/ports/commit/?id=fd8eef851a1d73866993a69697dde17a6243de34 commit fd8eef851a1d73866993a69697dde17a6243de34 Author: Yuri Victorovich AuthorDate: 2024-09-17 15:14:12 +0000 Commit: Yuri Victorovich CommitDate: 2024-09-17 17:29:39 +0000 graphics/py-simplejpeg: New port: Simple package for fast JPEG encoding and decoding --- graphics/Makefile | 1 + graphics/py-simplejpeg/Makefile | 32 ++++++++++++++++++++ graphics/py-simplejpeg/distinfo | 3 ++ graphics/py-simplejpeg/files/patch-pyproject.toml | 16 ++++++++++ graphics/py-simplejpeg/files/patch-setup.py | 37 +++++++++++++++++++++++ graphics/py-simplejpeg/pkg-descr | 2 ++ 6 files changed, 91 insertions(+) diff --git a/graphics/Makefile b/graphics/Makefile index f67b23bc5d26..13b6645db286 100644 --- a/graphics/Makefile +++ b/graphics/Makefile @@ -991,6 +991,7 @@ SUBDIR += py-s2 SUBDIR += py-scikit-image SUBDIR += py-seqdiag + SUBDIR += py-simplejpeg SUBDIR += py-sorl-thumbnail SUBDIR += py-spectra SUBDIR += py-sqlalchemy-imageattach diff --git a/graphics/py-simplejpeg/Makefile b/graphics/py-simplejpeg/Makefile new file mode 100644 index 000000000000..b06da1ed1e81 --- /dev/null +++ b/graphics/py-simplejpeg/Makefile @@ -0,0 +1,32 @@ +PORTNAME= simplejpeg +DISTVERSION= 1.7.6 +CATEGORIES= graphics python +MASTER_SITES= PYPI +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= yuri@FreeBSD.org +COMMENT= Simple package for fast JPEG encoding and decoding +WWW= https://gitlab.com/jfolz/simplejpeg + +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/LICENSE + +BUILD_DEPENDS= ${PY_SETUPTOOLS} \ + cmake:devel/cmake-core \ + ${PYTHON_PKGNAMEPREFIX}cython3>0:lang/cython3@${PY_FLAVOR} \ + ${PYNUMPY} \ + ${PYTHON_PKGNAMEPREFIX}wheel>0:devel/py-wheel@${PY_FLAVOR} + +USES= python +USE_PYTHON= pep517 autoplist pytest + +TEST_ENV= ${MAKE_ENV} PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR} +TEST_WRKSRC= ${WRKSRC}/test + +post-extract: # force cythonization because pre-cythonized _jpeg.c fails to complile + @${RM} ${WRKSRC}/simplejpeg/_jpeg.c + +post-install: + @${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/simplejpeg/_jpeg${PYTHON_EXT_SUFFIX}.so + +.include diff --git a/graphics/py-simplejpeg/distinfo b/graphics/py-simplejpeg/distinfo new file mode 100644 index 000000000000..d31095353615 --- /dev/null +++ b/graphics/py-simplejpeg/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1726565663 +SHA256 (simplejpeg-1.7.6.tar.gz) = 89ea4784eaa09edd11b0caded9c40326c4872ba9232ff1705d5b732492e7aca8 +SIZE (simplejpeg-1.7.6.tar.gz) = 5793293 diff --git a/graphics/py-simplejpeg/files/patch-pyproject.toml b/graphics/py-simplejpeg/files/patch-pyproject.toml new file mode 100644 index 000000000000..eef10ae684eb --- /dev/null +++ b/graphics/py-simplejpeg/files/patch-pyproject.toml @@ -0,0 +1,16 @@ +--- pyproject.toml.orig 2024-09-17 16:08:16 UTC ++++ pyproject.toml +@@ -29,11 +29,10 @@ requires = [ + + [build-system] + requires = [ +- "setuptools>=74.1.1", ++ "setuptools", + "wheel", +- "cmake>=3.6.3", + "cython~=3.0.0", +- "numpy>=2.0.0", ++ "numpy", + ] + build-backend = "setuptools.build_meta" + diff --git a/graphics/py-simplejpeg/files/patch-setup.py b/graphics/py-simplejpeg/files/patch-setup.py new file mode 100644 index 000000000000..6b25aa003388 --- /dev/null +++ b/graphics/py-simplejpeg/files/patch-setup.py @@ -0,0 +1,37 @@ +--- setup.py.orig 2024-09-17 09:48:31 UTC ++++ setup.py +@@ -8,7 +8,6 @@ import subprocess + import sysconfig + import subprocess + +-from cmake import CMAKE_BIN_DIR + from setuptools import setup + from setuptools import find_packages + from setuptools import Extension +@@ -82,7 +81,7 @@ def make_type(): + + + def make_type(): +- if OS in ('linux', 'darwin'): ++ if OS in ('linux', 'darwin', 'freebsd'): + return 'Unix Makefiles' + elif OS == 'windows': + return 'NMake Makefiles' +@@ -152,7 +151,7 @@ class cmake_build_ext(build_ext): + os.chdir(build_dir) + config = 'Debug' if self.debug else 'Release' + env = dict(os.environ, **(env or {})) +- cmake = pt.join(CMAKE_BIN_DIR, 'cmake') ++ cmake = 'cmake' + subprocess.check_call([ + cmake, + '-G' + make_type(), '-Wno-dev', +@@ -172,7 +171,7 @@ def _staticlib(): + + + def _staticlib(): +- if OS in ('linux', 'darwin'): ++ if OS in ('linux', 'darwin', 'freebsd'): + return 'libturbojpeg.a' + elif OS == 'windows': + return 'turbojpeg-static.lib' diff --git a/graphics/py-simplejpeg/pkg-descr b/graphics/py-simplejpeg/pkg-descr new file mode 100644 index 000000000000..18eb7c2afe7b --- /dev/null +++ b/graphics/py-simplejpeg/pkg-descr @@ -0,0 +1,2 @@ +simplejpeg is a simple package based on recent versions of libturbojpeg for fast +JPEG encoding and decoding.