aboutsummaryrefslogtreecommitdiffstats
path: root/dns
diff options
context:
space:
mode:
authorolgeni <olgeni@FreeBSD.org>2015-07-01 16:24:09 +0800
committerolgeni <olgeni@FreeBSD.org>2015-07-01 16:24:09 +0800
commit740a2562bfa23f9dc36c5ac7307c810efe5ce906 (patch)
tree5085a306b868754b55435bd36fc75cee71f6c301 /dns
parentd3f39174a448aa06789d4a2de92996e467243694 (diff)
downloadfreebsd-ports-gnome-740a2562bfa23f9dc36c5ac7307c810efe5ce906.tar.gz
freebsd-ports-gnome-740a2562bfa23f9dc36c5ac7307c810efe5ce906.tar.zst
freebsd-ports-gnome-740a2562bfa23f9dc36c5ac7307c810efe5ce906.zip
Add dns/erlang-idna, an implementation of IDNA in pure Erlang.
Diffstat (limited to 'dns')
-rw-r--r--dns/Makefile1
-rw-r--r--dns/erlang-idna/Makefile31
-rw-r--r--dns/erlang-idna/distinfo2
-rw-r--r--dns/erlang-idna/pkg-descr3
-rw-r--r--dns/erlang-idna/pkg-plist13
5 files changed, 50 insertions, 0 deletions
diff --git a/dns/Makefile b/dns/Makefile
index 973ff8db55e8..dede0781ca58 100644
--- a/dns/Makefile
+++ b/dns/Makefile
@@ -50,6 +50,7 @@
SUBDIR += dnswall
SUBDIR += doc
SUBDIR += dualserver
+ SUBDIR += erlang-idna
SUBDIR += ez-ipupdate
SUBDIR += fastresolve
SUBDIR += firedns
diff --git a/dns/erlang-idna/Makefile b/dns/erlang-idna/Makefile
new file mode 100644
index 000000000000..ecface067f36
--- /dev/null
+++ b/dns/erlang-idna/Makefile
@@ -0,0 +1,31 @@
+# $FreeBSD$
+
+PORTNAME= idna
+PORTVERSION= 1.0.2
+CATEGORIES= dns
+PKGNAMEPREFIX= erlang-
+
+MAINTAINER= olgeni@FreeBSD.org
+COMMENT= IDNA implementation in pure Erlang
+
+LICENSE= MIT
+
+BUILD_DEPENDS= erl:${PORTSDIR}/lang/erlang
+RUN_DEPENDS:= ${BUILD_DEPENDS}
+
+PLIST_SUB= VERSION="${PORTVERSION}"
+
+USE_GITHUB= yes
+GH_ACCOUNT= benoitc
+GH_PROJECT= ${PKGNAMEPREFIX}${PORTNAME}
+
+do-install:
+ @${MKDIR} ${STAGEDIR}${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/README.md ${STAGEDIR}${DOCSDIR}
+ @${MKDIR} ${STAGEDIR}${PREFIX}/lib/erlang/lib/${PORTNAME}-${PORTVERSION}
+ @${MKDIR} ${STAGEDIR}${PREFIX}/lib/erlang/lib/${PORTNAME}-${PORTVERSION}/ebin
+ @${MKDIR} ${STAGEDIR}${PREFIX}/lib/erlang/lib/${PORTNAME}-${PORTVERSION}/src
+ ${INSTALL_DATA} ${WRKSRC}/ebin/* ${STAGEDIR}${PREFIX}/lib/erlang/lib/${PORTNAME}-${PORTVERSION}/ebin
+ ${INSTALL_DATA} ${WRKSRC}/src/* ${STAGEDIR}${PREFIX}/lib/erlang/lib/${PORTNAME}-${PORTVERSION}/src
+
+.include <bsd.port.mk>
diff --git a/dns/erlang-idna/distinfo b/dns/erlang-idna/distinfo
new file mode 100644
index 000000000000..af6cff0e6d3b
--- /dev/null
+++ b/dns/erlang-idna/distinfo
@@ -0,0 +1,2 @@
+SHA256 (benoitc-erlang-idna-1.0.2_GH0.tar.gz) = d87d7283245bdc1595ece8e79d7f13076fcbc02be6717319c67a79f0556adee9
+SIZE (benoitc-erlang-idna-1.0.2_GH0.tar.gz) = 127989
diff --git a/dns/erlang-idna/pkg-descr b/dns/erlang-idna/pkg-descr
new file mode 100644
index 000000000000..c2ef8f9ad345
--- /dev/null
+++ b/dns/erlang-idna/pkg-descr
@@ -0,0 +1,3 @@
+A pure Erlang IDNA implementation (see RFC3490 and RFC3492).
+
+WWW: https://github.com/benoitc/erlang-idna
diff --git a/dns/erlang-idna/pkg-plist b/dns/erlang-idna/pkg-plist
new file mode 100644
index 000000000000..ab405edde994
--- /dev/null
+++ b/dns/erlang-idna/pkg-plist
@@ -0,0 +1,13 @@
+lib/erlang/lib/idna-%%VERSION%%/ebin/idna.app
+lib/erlang/lib/idna-%%VERSION%%/ebin/idna.beam
+lib/erlang/lib/idna-%%VERSION%%/ebin/idna_ucs.beam
+lib/erlang/lib/idna-%%VERSION%%/ebin/idna_unicode.beam
+lib/erlang/lib/idna-%%VERSION%%/ebin/idna_unicode_data.beam
+lib/erlang/lib/idna-%%VERSION%%/ebin/punycode.beam
+lib/erlang/lib/idna-%%VERSION%%/src/idna.erl
+lib/erlang/lib/idna-%%VERSION%%/src/idna_ucs.erl
+lib/erlang/lib/idna-%%VERSION%%/src/idna_unicode.erl
+lib/erlang/lib/idna-%%VERSION%%/src/idna_unicode_data.erl
+lib/erlang/lib/idna-%%VERSION%%/src/idna_unicode_data.erl.src
+lib/erlang/lib/idna-%%VERSION%%/src/punycode.erl
+%%PORTDOCS%%%%DOCSDIR%%/README.md