Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 20 Jul 2023 17:43:04 GMT
From:      Muhammad Moinur Rahman <bofh@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 432d465db104 - main - databases/postgresql-idn New port
Message-ID:  <202307201743.36KHh4Pw036331@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by bofh:

URL: https://cgit.FreeBSD.org/ports/commit/?id=432d465db104638da8c59175c72949cfcd145b23

commit 432d465db104638da8c59175c72949cfcd145b23
Author:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2023-07-20 11:48:17 +0000
Commit:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2023-07-20 17:42:32 +0000

    databases/postgresql-idn New port
    
    At a fundamental level, this extension grants access to a number of
    functions provided by the libidn and libidn2 libraries. Not all of the
    functions provided by these libraries are exposed.
    
    Whenever possible, the code will transform the encoding of the data in
    the database to UTF-8 before further processing.
    
    WWW: https://github.com/dyninc/postgresql-idn
    
    Sponsored by:   Bounce Commerce
---
 databases/Makefile                 |  1 +
 databases/postgresql-idn/Makefile  | 41 ++++++++++++++++++++++++++++++++++++++
 databases/postgresql-idn/distinfo  |  3 +++
 databases/postgresql-idn/pkg-descr |  6 ++++++
 4 files changed, 51 insertions(+)

diff --git a/databases/Makefile b/databases/Makefile
index 1e3bd886e531..b3cf3b7b7c56 100644
--- a/databases/Makefile
+++ b/databases/Makefile
@@ -652,6 +652,7 @@
     SUBDIR += postgis32
     SUBDIR += postgis33
     SUBDIR += postgresql-cstore_fdw
+    SUBDIR += postgresql-idn
     SUBDIR += postgresql-jdbc
     SUBDIR += postgresql-libpgeasy
     SUBDIR += postgresql-libpqxx
diff --git a/databases/postgresql-idn/Makefile b/databases/postgresql-idn/Makefile
new file mode 100644
index 000000000000..0bee9a4b11cb
--- /dev/null
+++ b/databases/postgresql-idn/Makefile
@@ -0,0 +1,41 @@
+PORTNAME=	idn
+PORTVERSION=	0.2
+CATEGORIES=	databases
+PKGNAMEPREFIX=	postgresql${PGSQL_VER:S/.//}-
+
+MAINTAINER=	bofh@FreeBSD.org
+COMMENT=	PostgreSQL extension for libidn2
+WWW=		https://github.com/dyninc/postgresql-idn
+
+LICENSE=	BSD3CLAUSE
+LICENSE_FILE=	${WRKSRC}/COPYRIGHT
+
+LIB_DEPENDS=	libidn.so:dns/libidn \
+		libidn2.so:dns/libidn2
+
+USES=		gmake pgsql
+WANT_PGSQL=	server
+USE_GITHUB=	yes
+GH_ACCOUNT=	dyninc
+GH_PROJECT=	postgresql-idn
+GH_TAGNAME=	d4ffaec
+
+BUILD_WRKSRC=	${WRKSRC}/sources
+
+PLIST_FILES=	\
+		lib/postgresql/idn.so \
+		share/postgresql/extension/idn.control \
+		share/postgresql/extension/idn--0.2.sql
+
+post-patch:
+	@${REINPLACE_CMD} -e 's|CreateTemplateTupleDesc(3, false)|CreateTemplateTupleDesc(3)|g' \
+		${BUILD_WRKSRC}/idn.c
+
+do-install:
+	${MKDIR} ${STAGEDIR}${PREFIX}/lib/postgresql
+	${MKDIR} ${STAGEDIR}${PREFIX}/share/postgresql/extension
+	${INSTALL_LIB} ${BUILD_WRKSRC}/idn.so ${STAGEDIR}${PREFIX}/lib/postgresql/idn.so
+	${INSTALL_DATA} ${BUILD_WRKSRC}/idn--0.2.sql ${STAGEDIR}${PREFIX}/share/postgresql/extension
+	${INSTALL_DATA} ${BUILD_WRKSRC}/idn.control ${STAGEDIR}${PREFIX}/share/postgresql/extension
+
+.include <bsd.port.mk>
diff --git a/databases/postgresql-idn/distinfo b/databases/postgresql-idn/distinfo
new file mode 100644
index 000000000000..3a8be0534f32
--- /dev/null
+++ b/databases/postgresql-idn/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1689853106
+SHA256 (dyninc-postgresql-idn-0.2-d4ffaec_GH0.tar.gz) = 77648e741c96ae186dcd4ce835cada228877864e390e1854c5099277337a0b06
+SIZE (dyninc-postgresql-idn-0.2-d4ffaec_GH0.tar.gz) = 14784
diff --git a/databases/postgresql-idn/pkg-descr b/databases/postgresql-idn/pkg-descr
new file mode 100644
index 000000000000..a3aca8a8234f
--- /dev/null
+++ b/databases/postgresql-idn/pkg-descr
@@ -0,0 +1,6 @@
+At a fundamental level, this extension grants access to a number of
+functions provided by the libidn and libidn2 libraries. Not all of the
+functions provided by these libraries are exposed.
+
+Whenever possible, the code will transform the encoding of the data in
+the database to UTF-8 before further processing.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202307201743.36KHh4Pw036331>