From nobody Sat Aug 27 10:30:47 2022 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 4MFCdz3K0jz4b4YH; Sat, 27 Aug 2022 10:30:47 +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 4MFCdz2tpHz3x6R; Sat, 27 Aug 2022 10:30:47 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1661596247; 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=XlcEGE4nuka/Gxx1mhyPjGEom4DFPsvCd4djTCgp/FU=; b=tlIkt17xyDlgutSypaOTBKGT4cPuaFkpIssigbvoV24TUU8ShIGoeYrlDGpLlGDrsZTi27 +B4YM1FLkgXjEECtnZakE3o1ySniR91RaT2fB4i9rfCOVwVn9DtUdjF0saQkcRLkiTo2y3 6B3/98RDbDPriukM+vMACpSicBRh2eRgiNH7FyqR7PbHYIaP68WYyNKxSY5h0kzfk8Se2V atZc4kIiwPE8+av4M2wpq++0FG5h4F4aMhuf7IU9BhdW2IJB6+VEtHR+tfVap4ne158I+h EghHV/WmOwYh92l3Tl9Tk9ZVX3P8DmBpG9CNbsWvP1gkC/CyVF8MVlaYtRqALQ== 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 4MFCdz1r6bzjgF; Sat, 27 Aug 2022 10:30:47 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 27RAUl50047216; Sat, 27 Aug 2022 10:30:47 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 27RAUlpQ047215; Sat, 27 Aug 2022 10:30:47 GMT (envelope-from git) Date: Sat, 27 Aug 2022 10:30:47 GMT Message-Id: <202208271030.27RAUlpQ047215@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: 2b8486a5c333 - main - graphics/py-lerc: Add py-lerc 4.0.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: 2b8486a5c333215ecb74f745851d80f1ed1df884 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1661596247; 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=XlcEGE4nuka/Gxx1mhyPjGEom4DFPsvCd4djTCgp/FU=; b=VzQiSfnDaEP9kH2LJSiKwdXhOoA0fzHrLPODr10BkF14hPUlV+VQewCwmnG7UeVdp02AJ/ jM9HYk8FdebHc5TFBaJNHjAji9V5rA2R8bjxEFUr6hv+HD81sMMpKxtYk+pBl2+QChj53V m45whx22mTkZozGUI2UUUSl9Y3N4ThagCUt5RH1yprQCCgnjCjo+rylLWYhk0/KdahKjl+ l2CFJi76FS/5PLW1P+SUpeL/jPPcyypFR5lX7LgULY8z72FWuVAqjPL10/PF2krEXUBzSH ol2fvnTNFA9dO91qpC+wIH3Q/RtmjgOInhCm45oiv6zA7SIoJQQNh1yyZjmzsg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1661596247; a=rsa-sha256; cv=none; b=elG3l2vjxBotZRgkJcgHFjSsC56D/2uhQZG5KWuNi5uqPbVcHgm3zqjFJASiTcU66S6SlW zQMgRB3pzwX547SW4nhBWKJQ8kpd7dNmlAxiz+QQw9yBQrHY2Vyi/BehXYQRw8019sWQ57 d/gHzZ7+hD/2QZe2JDWe/wv+Rho/svWdDF0kgNwbaXkmVNZN95ZHV1AOJQIOKl1l3a0qbs cZYL1DLyjhF4b889d0uize8enieLFXJI7GsmwOQjcFiHgva3ay2uGbjvMsanrt2l7TiEmV 43pbr/3aEDa6DaVbLeBExyY4n8R7EQNmJ4HyFjEWxoGsgOrF4MNSyy1VBhnuJA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by sunpoet: URL: https://cgit.FreeBSD.org/ports/commit/?id=2b8486a5c333215ecb74f745851d80f1ed1df884 commit 2b8486a5c333215ecb74f745851d80f1ed1df884 Author: Po-Chuan Hsieh AuthorDate: 2022-08-27 10:10:30 +0000 Commit: Po-Chuan Hsieh CommitDate: 2022-08-27 10:10:30 +0000 graphics/py-lerc: Add py-lerc 4.0.0 LERC is an open-source image or raster format which supports rapid encoding and decoding for any pixel type (not just RGB or Byte). Users set the maximum compression error per pixel while encoding, so the precision of the original input image is preserved (within user defined error bounds). This port is the Python binding for LERC (Limited Error Raster Compression). WWW: https://esri.github.io/lerc/ WWW: https://github.com/Esri/lerc/tree/master/OtherLanguages/Python --- graphics/Makefile | 1 + graphics/py-lerc/Makefile | 28 ++++++++++++++++++++++++++++ graphics/py-lerc/distinfo | 3 +++ graphics/py-lerc/files/patch-setup.py | 13 +++++++++++++ graphics/py-lerc/pkg-descr | 9 +++++++++ 5 files changed, 54 insertions(+) diff --git a/graphics/Makefile b/graphics/Makefile index f0f352ce062e..fe6b20ecde5f 100644 --- a/graphics/Makefile +++ b/graphics/Makefile @@ -871,6 +871,7 @@ SUBDIR += py-imagesize SUBDIR += py-img2pdf SUBDIR += py-leather + SUBDIR += py-lerc SUBDIR += py-mapclassify SUBDIR += py-mayavi SUBDIR += py-mcomix diff --git a/graphics/py-lerc/Makefile b/graphics/py-lerc/Makefile new file mode 100644 index 000000000000..68b9844fb275 --- /dev/null +++ b/graphics/py-lerc/Makefile @@ -0,0 +1,28 @@ +PORTNAME= lerc +PORTVERSION= 4.0.0 +DISTVERSIONPREFIX= v +CATEGORIES= graphics python +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= sunpoet@FreeBSD.org +COMMENT= Python binding for LERC (Limited Error Raster Compression) + +LICENSE= APACHE20 +LICENSE_FILE= ${WRKSRC}/../../LICENSE + +LIB_DEPENDS= libLerc.so:graphics/lerc + +USES= python:3.6+ +USE_PYTHON= autoplist concurrent distutils + +WRKSRC_SUBDIR= OtherLanguages/Python + +GH_ACCOUNT= Esri +USE_GITHUB= yes + +# lib/libLerc.* are not available until configure phase +post-configure: + @${MKDIR} ${WRKSRC}/../../bin/FreeBSD/ + @${CP} ${LOCALBASE}/lib/libLerc.so.* ${WRKSRC}/../../bin/FreeBSD/ + +.include diff --git a/graphics/py-lerc/distinfo b/graphics/py-lerc/distinfo new file mode 100644 index 000000000000..dccfa1bda1e1 --- /dev/null +++ b/graphics/py-lerc/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1660576692 +SHA256 (Esri-lerc-v4.0.0_GH0.tar.gz) = 91431c2b16d0e3de6cbaea188603359f87caed08259a645fd5a3805784ee30a0 +SIZE (Esri-lerc-v4.0.0_GH0.tar.gz) = 4710408 diff --git a/graphics/py-lerc/files/patch-setup.py b/graphics/py-lerc/files/patch-setup.py new file mode 100644 index 000000000000..3f9a1926b396 --- /dev/null +++ b/graphics/py-lerc/files/patch-setup.py @@ -0,0 +1,13 @@ +--- setup.py.orig 2022-07-15 18:25:29 UTC ++++ setup.py +@@ -16,8 +16,8 @@ except Exception: + + # Using MANIFEST.in doesn't respect relative paths above the package root. + # Instead, inspect the location and copy in the binaries if newer. +-BINARY_TYPES = ["*.dll", "*.lib", "*.so*", "*.dylib"] +-PLATFORMS = ["Linux", "MacOS", "windows"] ++BINARY_TYPES = ["*.so*"] ++PLATFORMS = ["FreeBSD"] + for platform in PLATFORMS: + platform_dir = join("..", "..", "bin", platform) + for ext in BINARY_TYPES: diff --git a/graphics/py-lerc/pkg-descr b/graphics/py-lerc/pkg-descr new file mode 100644 index 000000000000..f308b5cd40d6 --- /dev/null +++ b/graphics/py-lerc/pkg-descr @@ -0,0 +1,9 @@ +LERC is an open-source image or raster format which supports rapid encoding and +decoding for any pixel type (not just RGB or Byte). Users set the maximum +compression error per pixel while encoding, so the precision of the original +input image is preserved (within user defined error bounds). + +This port is the Python binding for LERC (Limited Error Raster Compression). + +WWW: https://esri.github.io/lerc/ +WWW: https://github.com/Esri/lerc/tree/master/OtherLanguages/Python