git: 58df67cee573 - main - math/readstat: new port - ead (and write) data sets from SAS, Stata, and SPSS

From: Tobias C. Berner <tcberner_at_FreeBSD.org>
Date: Fri, 26 Aug 2022 13:48:51 UTC
The branch main has been updated by tcberner:

URL: https://cgit.FreeBSD.org/ports/commit/?id=58df67cee573cda430507ec9a02b46793bf4e4bb

commit 58df67cee573cda430507ec9a02b46793bf4e4bb
Author:     Tobias C. Berner <tcberner@FreeBSD.org>
AuthorDate: 2022-08-26 08:29:17 +0000
Commit:     Tobias C. Berner <tcberner@FreeBSD.org>
CommitDate: 2022-08-26 13:48:29 +0000

    math/readstat: new port - ead (and write) data sets from SAS, Stata, and SPSS
    
    Originally developed for Wizard, ReadStat is a command-line tool and
    MIT-licensed C library for reading files from popular stats packages. Supported
    data formats include:
    
     * SAS: SAS7BDAT (binary file) and XPORT (transport file)
     * Stata: DTA (binary file) versions 104-119
     * SPSS: POR (portable file), SAV (binary file), and ZSAV (compressed binary)
    
    Supported metadata formats include:
    
     * SAS: SAS7BCAT (catalog file) and .sas (command file)
     * Stata: .dct (dictionary file)
     * SPSS: .sps (command file)
    
    There is also write support for all the data formats, but not the metadata
    formats. The produced SAS7BDAT files still cannot be read by SAS, but feel free
    to contribute your binary-format expertise here.
    
    WWW: https://github.com/WizardMac/ReadStat
---
 math/Makefile           |  1 +
 math/readstat/Makefile  | 14 ++++++++++++++
 math/readstat/distinfo  |  3 +++
 math/readstat/pkg-descr | 19 +++++++++++++++++++
 math/readstat/pkg-plist |  8 ++++++++
 5 files changed, 45 insertions(+)

diff --git a/math/Makefile b/math/Makefile
index 34f6640e4e5a..9e44df632a50 100644
--- a/math/Makefile
+++ b/math/Makefile
@@ -1011,6 +1011,7 @@
     SUBDIR += randlib
     SUBDIR += rankwidth
     SUBDIR += rapid
+    SUBDIR += readstat
     SUBDIR += reduce
     SUBDIR += reduce-psl
     SUBDIR += reed-solomon
diff --git a/math/readstat/Makefile b/math/readstat/Makefile
new file mode 100644
index 000000000000..e31b78dd2ec1
--- /dev/null
+++ b/math/readstat/Makefile
@@ -0,0 +1,14 @@
+PORTNAME=	readstat
+DISTVERSION=	1.1.8
+CATEGORIES=	math kde
+MASTER_SITES=	https://github.com/WizardMac/ReadStat/releases/download/v${DISTVERSION}/
+
+MAINTAINER=	kde@FreeBSD.org
+COMMENT=	Read (and write) data sets from SAS, Stata, and SPSS
+
+LICENSE=	MIT
+
+USES=		libtool
+HAS_CONFIGURE=	yes
+
+.include <bsd.port.mk>
diff --git a/math/readstat/distinfo b/math/readstat/distinfo
new file mode 100644
index 000000000000..569b483c82ee
--- /dev/null
+++ b/math/readstat/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1661500384
+SHA256 (readstat-1.1.8.tar.gz) = b18a0d68059d9665491e53838b3ca89b06c3bdaa3b0a11d4ba87d830b743e178
+SIZE (readstat-1.1.8.tar.gz) = 615498
diff --git a/math/readstat/pkg-descr b/math/readstat/pkg-descr
new file mode 100644
index 000000000000..f71ef2df99f0
--- /dev/null
+++ b/math/readstat/pkg-descr
@@ -0,0 +1,19 @@
+Originally developed for Wizard, ReadStat is a command-line tool and
+MIT-licensed C library for reading files from popular stats packages. Supported
+data formats include:
+
+ * SAS: SAS7BDAT (binary file) and XPORT (transport file)
+ * Stata: DTA (binary file) versions 104-119
+ * SPSS: POR (portable file), SAV (binary file), and ZSAV (compressed binary)
+
+Supported metadata formats include:
+
+ * SAS: SAS7BCAT (catalog file) and .sas (command file)
+ * Stata: .dct (dictionary file)
+ * SPSS: .sps (command file)
+
+There is also write support for all the data formats, but not the metadata
+formats. The produced SAS7BDAT files still cannot be read by SAS, but feel free
+to contribute your binary-format expertise here.
+
+WWW: https://github.com/WizardMac/ReadStat
diff --git a/math/readstat/pkg-plist b/math/readstat/pkg-plist
new file mode 100644
index 000000000000..1f6f16cc8e26
--- /dev/null
+++ b/math/readstat/pkg-plist
@@ -0,0 +1,8 @@
+bin/extract_metadata
+bin/readstat
+include/readstat.h
+lib/libreadstat.so
+lib/libreadstat.so.1
+lib/libreadstat.so.1.1.8
+share/man/man1/extract_metadata.1.gz
+share/man/man1/readstat.1.gz