aboutsummaryrefslogtreecommitdiff
path: root/dns
diff options
context:
space:
mode:
authorSunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>2016-12-30 19:20:08 +0000
committerSunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>2016-12-30 19:20:08 +0000
commitbfffffcd0cbea8a90f5c9dc640948be331d80570 (patch)
treeb61cd489f929099db64e1d8e85ac4a543216027e /dns
parent9c0c1fb587ff8491572ad94bee27333f19cde0a3 (diff)
downloadports-bfffffcd0cbea8a90f5c9dc640948be331d80570.tar.gz
ports-bfffffcd0cbea8a90f5c9dc640948be331d80570.zip
- Update to 0.12
Notes
Notes: svn path=/head/; revision=430019
Diffstat (limited to 'dns')
-rw-r--r--dns/libidn2/Makefile32
-rw-r--r--dns/libidn2/distinfo14
-rw-r--r--dns/libidn2/files/patch-src-idn2.c29
-rw-r--r--dns/libidn2/pkg-plist4
4 files changed, 69 insertions, 10 deletions
diff --git a/dns/libidn2/Makefile b/dns/libidn2/Makefile
index ba78b48fba53..0d4783d2a5d4 100644
--- a/dns/libidn2/Makefile
+++ b/dns/libidn2/Makefile
@@ -2,9 +2,19 @@
# $FreeBSD$
PORTNAME= libidn2
-PORTVERSION= 0.11
+PORTVERSION= 0.12
CATEGORIES= dns
-MASTER_SITES= GNU_ALPHA/libidn
+MASTER_SITES= GNU_ALPHA/libidn \
+ https://ftp.iana.org/assignments/idna-tables-6.3.0/:idna_table \
+ http://www.unicode.org/Public/6.3.0/ucd/:nfcqc \
+ http://www.unicode.org/Public/idna/6.3.0/:test,tr64map \
+ LOCAL/sunpoet/${PORTNAME}
+DISTFILES= ${PORTNAME}-${PORTVERSION}${EXTRACT_SUFX} \
+ idna-tables-6.3.0.txt:idna_table \
+ DerivedNormalizationProps.txt:nfcqc \
+ IdnaTest.txt:test \
+ IdnaMappingTable.txt:tr64map
+EXTRACT_ONLY= ${PORTNAME}-${PORTVERSION}${EXTRACT_SUFX}
MAINTAINER= sunpoet@FreeBSD.org
COMMENT= Implementation of IDNA2008 internationalized domain names
@@ -12,12 +22,26 @@ COMMENT= Implementation of IDNA2008 internationalized domain names
LICENSE= GPLv3
LICENSE_FILE= ${WRKSRC}/COPYING
+BUILD_DEPENDS= help2man:misc/help2man
+LIB_DEPENDS= libunistring.so:devel/libunistring
+
+CONFIGURE_ARGS= --disable-nls \
+ --with-libunistring-prefix=${LOCALBASE}
GNU_CONFIGURE= yes
INSTALL_TARGET= install-strip
-USES= charsetfix gmake iconv libtool localbase shebangfix
USE_LDCONFIG= yes
+USE_PERL5= build
+USES= charsetfix gmake iconv libtool localbase perl5 shebangfix
INFO= libidn2
-PLIST_SUB= PORTVERSION=${PORTVERSION}
+
+SHEBANG_FILES= gen-tables-from-iana.pl tests/gen-utc-test.pl
+
+post-patch:
+ @cd ${DISTDIR}/ && ${CP} idna-tables-6.3.0.txt IdnaMappingTable.txt DerivedNormalizationProps.txt ${WRKSRC}/
+ @cd ${DISTDIR}/ && ${CP} IdnaTest.txt ${WRKSRC}/tests/
+
+post-install:
+ @${RM} ${STAGEDIR}${PREFIX}/bin/idn2_noinstall
.include <bsd.port.mk>
diff --git a/dns/libidn2/distinfo b/dns/libidn2/distinfo
index 0a44e5905e66..c76a9f82a2e9 100644
--- a/dns/libidn2/distinfo
+++ b/dns/libidn2/distinfo
@@ -1,3 +1,11 @@
-TIMESTAMP = 1479474854
-SHA256 (libidn2-0.11.tar.gz) = 5d397bdc258b372b8a25c8fb5240430d6fae28f9d790d3670f4b6012fa87bfff
-SIZE (libidn2-0.11.tar.gz) = 1563669
+TIMESTAMP = 1483036483
+SHA256 (libidn2-0.12.tar.gz) = 5aac6a35546a472b218a1b1257b39e5e829fda489152f6c793064afc5a2f2956
+SIZE (libidn2-0.12.tar.gz) = 1223699
+SHA256 (idna-tables-6.3.0.txt) = ac67b5bf7c2de2d3b6e11fa7bf0d7ba54e6457788aec1ebde48739ee084822b7
+SIZE (idna-tables-6.3.0.txt) = 162415
+SHA256 (DerivedNormalizationProps.txt) = c5e867ae043fe5d1cf713150d859356bfdcdba291c39f584af0bfb943f1a9743
+SIZE (DerivedNormalizationProps.txt) = 783470
+SHA256 (IdnaTest.txt) = f56af7d031fddd8264cd95086e360375e3a09e680c8e2d947be469bfa4f4097d
+SIZE (IdnaTest.txt) = 422220
+SHA256 (IdnaMappingTable.txt) = 84c8f25d2b58531dada678cbfb779c0fb04b1aac42c7744a63fb59784e974775
+SIZE (IdnaMappingTable.txt) = 742564
diff --git a/dns/libidn2/files/patch-src-idn2.c b/dns/libidn2/files/patch-src-idn2.c
new file mode 100644
index 000000000000..1447e61d430e
--- /dev/null
+++ b/dns/libidn2/files/patch-src-idn2.c
@@ -0,0 +1,29 @@
+--- src/idn2.c.orig 2016-12-26 21:00:11 UTC
++++ src/idn2.c
+@@ -31,7 +31,7 @@
+ #include <unistr.h>
+
+ /* Gnulib headers. */
+-#include "error.h"
++#include "err.h"
+ #include "gettext.h"
+ #define _(String) dgettext (PACKAGE, String)
+ #include "progname.h"
+@@ -167,7 +167,7 @@ process_input (char *readbuf, int flags)
+ free (output);
+ }
+ else
+- error (EXIT_FAILURE, 0, "%s: %s",
++ errc (EXIT_FAILURE, 0, "%s: %s",
+ args_info.register_given ? "register" : "lookup",
+ idn2_strerror (rc));
+ }
+@@ -228,7 +228,7 @@ main (int argc, char *argv[])
+ }
+
+ if (ferror (stdin))
+- error (EXIT_FAILURE, errno, "%s", _("input error"));
++ errc (EXIT_FAILURE, errno, "%s", _("input error"));
+
+ cmdline_parser_free (&args_info);
+
diff --git a/dns/libidn2/pkg-plist b/dns/libidn2/pkg-plist
index 0cd679a7c9c1..20b5f92088dc 100644
--- a/dns/libidn2/pkg-plist
+++ b/dns/libidn2/pkg-plist
@@ -1,11 +1,9 @@
bin/idn2
-bin/lookup
-bin/register
include/idn2.h
lib/libidn2.a
lib/libidn2.so
lib/libidn2.so.0
-lib/libidn2.so.0.%%PORTVERSION%%
+lib/libidn2.so.0.1.0
man/man1/idn2.1.gz
man/man3/idn2_check_version.3.gz
man/man3/idn2_free.3.gz