From nobody Sun Sep 08 18:41:59 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 4X1zMr0LFfz5VSpH; Sun, 08 Sep 2024 18:42:00 +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 4X1zMq2npnz4pCg; Sun, 8 Sep 2024 18:41:59 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1725820919; 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=8yUWhlFbKEzshvqbQP7r8V1elQZYBmdaQTBJmotexi4=; b=Rybv6q3DeyLNmz8//Ag3glI/9KL1j2rl6m21JxnUyGF2AzdUwZOiR8b6fz4BGtoI6BObD7 VOKcHmUZGkR3ahLKxTd1VnqMFx4HiGdLpPb83V1/nASHSNDmaul0p4KL3sOighOPEQjVIY 3mM8ESFFBR31/Y+bja57Ztx1sA3p3lxo31utPpGkC6u1SK/8UfTgKMifiMO5aZ2lTJyzcT AtJv3KLomy1W8N11tiUttvgDUJcmO2fsALLzf/z6Ej/K321SYuEfMlbVNiJXLtB9v/OjKb ew1kV4puE2KzLgLd/PjpM+p1GDP1MD8E8uPT6ukH1sm38uP00OKv2vKPTuCmwA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1725820919; a=rsa-sha256; cv=none; b=DDDZdy+aZ7TWwsU5zQmCGpwBJHHtqZk8odo+2XZ9eX1l/e9QmZ0TqV3FeZ1U+e6dE/A1kd NYUCPqUxJf7X7qmxBCihuXi8bI2nTsUSiqUXRf0AgOrK9e/ZnsX7syBg6AYaEeBIJRyHfM pkGRuNvu7PuhQC5qO6IQSPIQwphH+UcCGw1yjqbNb/xjKaGuw0VPevVBbYFePi6ai58T1N zSCad/wfoVKuFIP70aHVPEAflO1Oc/BnAAAWlKUJPsJG4rHPIIZ5cMiNX6o0UdorBNseMX /j/MWCYWM0owAn5+w4eNn0kMZHhlAUIFqmzhnelJgO2oR57HVX3UoS2yP5zdGw== 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=1725820919; 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=8yUWhlFbKEzshvqbQP7r8V1elQZYBmdaQTBJmotexi4=; b=HMIMHgxH7LwipxsB5dhJ4V+cb6dZnPMiGCOdM5Lh68Fcd7cXc8ZHWcLp23YZgNM8Ds/cHv gSGsCUjil0I3rvyLYFu3wSMaGXPh6gYsP7OOoUWDVZ40wLjeV4wT2FNvc3uZAKNERCLefj zqdMfLxSC3zsdZt0Y8ffvzvprK8oVoDFZBazYFWnQ5qsGnDkUzklM7NmCj9EKiU4vrD+xU 7+usVbc18MtymC0RutPtlS9CCA7dndb7A2b4RGV46/KL5wtRP5GMHt49DPtthWO3DdjgAq 31BCcz3BQVpE4HtODS6fgONIFCTD5NToiLF9BDNo65ZnNmVSQetMgixLJgXfLg== 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 4X1zMq2PTNzWCn; Sun, 8 Sep 2024 18:41:59 +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 488Ifxaa033255; Sun, 8 Sep 2024 18:41:59 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 488Ifxw3033252; Sun, 8 Sep 2024 18:41:59 GMT (envelope-from git) Date: Sun, 8 Sep 2024 18:41:59 GMT Message-Id: <202409081841.488Ifxw3033252@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: 739135b628ee - main - astro/py-fitsio: Add py-fitsio 1.2.4 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: X-BeenThere: dev-commits-ports-all@freebsd.org Sender: owner-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: 739135b628eef9a3e7ff1ed5223905467c316f12 Auto-Submitted: auto-generated The branch main has been updated by sunpoet: URL: https://cgit.FreeBSD.org/ports/commit/?id=739135b628eef9a3e7ff1ed5223905467c316f12 commit 739135b628eef9a3e7ff1ed5223905467c316f12 Author: Po-Chuan Hsieh AuthorDate: 2024-09-08 17:47:22 +0000 Commit: Po-Chuan Hsieh CommitDate: 2024-09-08 18:36:53 +0000 astro/py-fitsio: Add py-fitsio 1.2.4 fitsio is a python extension written in c and python. Data are read into numerical python arrays. Some Features: - Read from and write to image, binary, and ascii table extensions. - Read arbitrary subsets of table columns and rows without loading all the data to memory. - Read image subsets without reading the whole image. Write subsets to existing images. - Write and read variable length table columns. - Read images and tables using slice notation similar to numpy arrays. This is like a more powerful memmap, since it is column-aware for tables. - Append rows to an existing table. Delete row sets and row ranges. Resize tables, or insert rows. - Query the columns and rows in a table. - Read and write header keywords. - Read and write images in tile-compressed format (RICE,GZIP,PLIO,HCOMPRESS). - Read/write gzip files directly. Read unix compress (.Z,.zip) and bzip2 (.bz2) files. - TDIM information is used to return array columns in the correct shape. - Write and read string table columns, including array columns of arbitrary shape. - Read and write complex, bool (logical), unsigned integer, signed bytes types. - Write checksums into the header and verify them. - Insert new columns into tables in-place. - Iterate over rows in a table. Data are buffered for efficiency. - python 3 support, including python 3 strings --- astro/Makefile | 1 + astro/py-fitsio/Makefile | 35 +++++++++++++++++++++++++++++++++++ astro/py-fitsio/distinfo | 3 +++ astro/py-fitsio/pkg-descr | 27 +++++++++++++++++++++++++++ 4 files changed, 66 insertions(+) diff --git a/astro/Makefile b/astro/Makefile index 6b8556b1ccfb..85dc5da594c3 100644 --- a/astro/Makefile +++ b/astro/Makefile @@ -88,6 +88,7 @@ SUBDIR += py-astropy-helpers SUBDIR += py-ephem SUBDIR += py-extension-helpers + SUBDIR += py-fitsio SUBDIR += py-horoscopegenerator SUBDIR += py-indiweb SUBDIR += py-jplephem diff --git a/astro/py-fitsio/Makefile b/astro/py-fitsio/Makefile new file mode 100644 index 000000000000..65bd0d5e0665 --- /dev/null +++ b/astro/py-fitsio/Makefile @@ -0,0 +1,35 @@ +PORTNAME= fitsio +PORTVERSION= 1.2.4 +CATEGORIES= astro python +MASTER_SITES= PYPI +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= sunpoet@FreeBSD.org +COMMENT= Full featured python library to read from and write to FITS files +WWW= https://github.com/esheldon/fitsio + +LICENSE= GPLv2 +LICENSE_FILE= ${WRKSRC}/LICENSE.txt + +BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}numpy>=0,1:math/py-numpy@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}setuptools>=0:devel/py-setuptools@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}wheel>=0:devel/py-wheel@${PY_FLAVOR} +LIB_DEPENDS= libcfitsio.so:astro/cfitsio +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}numpy>=0,1:math/py-numpy@${PY_FLAVOR} + +USES= python +USE_PYTHON= autoplist concurrent pep517 + +MAKE_ENV= FITSIO_USE_SYSTEM_FITSIO=yes \ + FITSIO_SYSTEM_FITSIO_INCLUDEDIR=${LOCALBASE}/include \ + FITSIO_SYSTEM_FITSIO_LIBDIR=${LOCALBASE}/lib + +# Clean up bundled libraries +post-patch: + @${RM} -r ${WRKSRC}/cfitsio-*/ + @${RM} -r ${WRKSRC}/zlib/ + +post-install: + ${FIND} ${STAGEDIR}${PYTHON_SITELIBDIR} -name '*.so' -exec ${STRIP_CMD} {} + + +.include diff --git a/astro/py-fitsio/distinfo b/astro/py-fitsio/distinfo new file mode 100644 index 000000000000..0871af8f7ac8 --- /dev/null +++ b/astro/py-fitsio/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1725559527 +SHA256 (fitsio-1.2.4.tar.gz) = d57fe347c7657dc1f78c7969a55ecb4fddb717ae1c66d9d22046c171203ff678 +SIZE (fitsio-1.2.4.tar.gz) = 4533680 diff --git a/astro/py-fitsio/pkg-descr b/astro/py-fitsio/pkg-descr new file mode 100644 index 000000000000..87d01278d530 --- /dev/null +++ b/astro/py-fitsio/pkg-descr @@ -0,0 +1,27 @@ +fitsio is a python extension written in c and python. Data are read into +numerical python arrays. + +Some Features: +- Read from and write to image, binary, and ascii table extensions. +- Read arbitrary subsets of table columns and rows without loading all the data + to memory. +- Read image subsets without reading the whole image. Write subsets to existing + images. +- Write and read variable length table columns. +- Read images and tables using slice notation similar to numpy arrays. This is + like a more powerful memmap, since it is column-aware for tables. +- Append rows to an existing table. Delete row sets and row ranges. Resize + tables, or insert rows. +- Query the columns and rows in a table. +- Read and write header keywords. +- Read and write images in tile-compressed format (RICE,GZIP,PLIO,HCOMPRESS). +- Read/write gzip files directly. Read unix compress (.Z,.zip) and bzip2 (.bz2) + files. +- TDIM information is used to return array columns in the correct shape. +- Write and read string table columns, including array columns of arbitrary + shape. +- Read and write complex, bool (logical), unsigned integer, signed bytes types. +- Write checksums into the header and verify them. +- Insert new columns into tables in-place. +- Iterate over rows in a table. Data are buffered for efficiency. +- python 3 support, including python 3 strings