Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 23 Jun 2019 19:21:19 +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: r504980 - in head/devel/p5-Locale-libintl: . files
Message-ID:  <201906231921.x5NJLJNR066198@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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 <bsd.port.mk>

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



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