Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 30 Dec 2016 19:20:08 +0000 (UTC)
From:      Sunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r430019 - in head/dns/libidn2: . files
Message-ID:  <201612301920.uBUJK8Am048230@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: sunpoet
Date: Fri Dec 30 19:20:08 2016
New Revision: 430019
URL: https://svnweb.freebsd.org/changeset/ports/430019

Log:
  - Update to 0.12
  
  Changes:	https://gitlab.com/jas/libidn2/blob/master/NEWS

Added:
  head/dns/libidn2/files/
  head/dns/libidn2/files/patch-src-idn2.c   (contents, props changed)
Modified:
  head/dns/libidn2/Makefile
  head/dns/libidn2/distinfo
  head/dns/libidn2/pkg-plist

Modified: head/dns/libidn2/Makefile
==============================================================================
--- head/dns/libidn2/Makefile	Fri Dec 30 19:20:04 2016	(r430018)
+++ head/dns/libidn2/Makefile	Fri Dec 30 19:20:08 2016	(r430019)
@@ -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 inte
 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>

Modified: head/dns/libidn2/distinfo
==============================================================================
--- head/dns/libidn2/distinfo	Fri Dec 30 19:20:04 2016	(r430018)
+++ head/dns/libidn2/distinfo	Fri Dec 30 19:20:08 2016	(r430019)
@@ -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

Added: head/dns/libidn2/files/patch-src-idn2.c
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/dns/libidn2/files/patch-src-idn2.c	Fri Dec 30 19:20:08 2016	(r430019)
@@ -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);
+ 

Modified: head/dns/libidn2/pkg-plist
==============================================================================
--- head/dns/libidn2/pkg-plist	Fri Dec 30 19:20:04 2016	(r430018)
+++ head/dns/libidn2/pkg-plist	Fri Dec 30 19:20:08 2016	(r430019)
@@ -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



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