From owner-svn-ports-head@freebsd.org Sun Jun 23 19:21:29 2019 Return-Path: Delivered-To: svn-ports-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id AE88A15D813D; Sun, 23 Jun 2019 19:21:29 +0000 (UTC) (envelope-from sunpoet@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4B33E6AC60; Sun, 23 Jun 2019 19:21:29 +0000 (UTC) (envelope-from sunpoet@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 8B0CC260A0; Sun, 23 Jun 2019 19:21:20 +0000 (UTC) (envelope-from sunpoet@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id x5NJLK4Y066201; Sun, 23 Jun 2019 19:21:20 GMT (envelope-from sunpoet@FreeBSD.org) Received: (from sunpoet@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id x5NJLJNR066198; Sun, 23 Jun 2019 19:21:19 GMT (envelope-from sunpoet@FreeBSD.org) Message-Id: <201906231921.x5NJLJNR066198@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: sunpoet set sender to sunpoet@FreeBSD.org using -f From: Sunpoet Po-Chuan Hsieh Date: Sun, 23 Jun 2019 19:21:19 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r504980 - in head/devel/p5-Locale-libintl: . files X-SVN-Group: ports-head X-SVN-Commit-Author: sunpoet X-SVN-Commit-Paths: in head/devel/p5-Locale-libintl: . files X-SVN-Commit-Revision: 504980 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: 4B33E6AC60 X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org X-Spamd-Result: default: False [-2.98 / 15.00]; local_wl_from(0.00)[FreeBSD.org]; NEURAL_HAM_MEDIUM(-1.00)[-0.999,0]; NEURAL_HAM_SHORT(-0.98)[-0.981,0]; ASN(0.00)[asn:11403, ipnet:2610:1c1:1::/48, country:US]; NEURAL_HAM_LONG(-1.00)[-1.000,0] X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 23 Jun 2019 19:21:30 -0000 Author: sunpoet Date: Sun Jun 23 19:21:19 2019 New Revision: 504980 URL: https://svnweb.freebsd.org/changeset/ports/504980 Log: Add NLS option PR: 238421 Submitted by: adamw Added: head/devel/p5-Locale-libintl/files/ head/devel/p5-Locale-libintl/files/extra-patch-Makefile.PL (contents, props changed) Modified: head/devel/p5-Locale-libintl/Makefile head/devel/p5-Locale-libintl/pkg-plist Modified: head/devel/p5-Locale-libintl/Makefile ============================================================================== --- head/devel/p5-Locale-libintl/Makefile Sun Jun 23 19:21:14 2019 (r504979) +++ head/devel/p5-Locale-libintl/Makefile Sun Jun 23 19:21:19 2019 (r504980) @@ -14,10 +14,16 @@ COMMENT= Internationalization library for Perl LICENSE= GPLv3+ LICENSE_FILE= ${WRKSRC}/COPYING -USES= gettext iconv:translit localbase perl5 +USES= iconv:translit localbase perl5 USE_PERL5= configure -post-install: +OPTIONS_DEFINE= NLS +OPTIONS_SUB= yes + +NLS_EXTRA_PATCHES_OFF= ${FILESDIR}/extra-patch-Makefile.PL +NLS_USES= gettext + +post-install-NLS-on: ${STRIP_CMD} ${STAGEDIR}${PREFIX}/${SITE_ARCH_REL}/auto/Locale/gettext_xs/gettext_xs.so .include Added: head/devel/p5-Locale-libintl/files/extra-patch-Makefile.PL ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/p5-Locale-libintl/files/extra-patch-Makefile.PL Sun Jun 23 19:21:19 2019 (r504980) @@ -0,0 +1,15 @@ +--- Makefile.PL.orig 2018-10-08 08:37:35 UTC ++++ Makefile.PL +@@ -94,12 +94,6 @@ EOF + + my $build_gettext_xs = ac_try_link $c, "Checking whether we can compile the XS version"; + unless ($build_gettext_xs) { +- $build_gettext_xs = ac_try_link $c, " Trying again with -lintl", "-lintl"; +-} +-unless ($build_gettext_xs) { +- $build_gettext_xs = ac_try_link $c, " Trying again with -lintl -liconv", "-lintl", "-liconv"; +-} +-unless ($build_gettext_xs) { + $build_gettext_xs = ac_try_link $c, " Trying again with -liconv", "-liconv"; + } + Modified: head/devel/p5-Locale-libintl/pkg-plist ============================================================================== --- head/devel/p5-Locale-libintl/pkg-plist Sun Jun 23 19:21:14 2019 (r504979) +++ head/devel/p5-Locale-libintl/pkg-plist Sun Jun 23 19:21:19 2019 (r504980) @@ -145,10 +145,10 @@ %%SITE_PERL%%/Locale/Util.pm %%SITE_PERL%%/Locale/gettext_dumb.pm %%SITE_PERL%%/Locale/gettext_pp.pm -%%SITE_PERL%%/Locale/gettext_xs.pm +%%NLS%%%%SITE_PERL%%/Locale/gettext_xs.pm %%SITE_PERL%%/Locale/gettext_xs.pod %%SITE_PERL%%/Locale/libintlFAQ.pod -%%SITE_ARCH%%/auto/Locale/gettext_xs/gettext_xs.so +%%NLS%%%%SITE_ARCH%%/auto/Locale/gettext_xs/gettext_xs.so %%PERL5_MAN3%%/Locale::Messages.3.gz %%PERL5_MAN3%%/Locale::Recode.3.gz %%PERL5_MAN3%%/Locale::Recode::_Aliases.3.gz