1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-02 01:20:54 +00:00

Add NLS option

PR:		238421
Submitted by:	adamw
This commit is contained in:
Sunpoet Po-Chuan Hsieh 2019-06-23 19:21:19 +00:00
parent ca99f7de7c
commit 2e0f0c254a
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=504980
3 changed files with 25 additions and 4 deletions

View File

@ -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>

View File

@ -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";
}

View File

@ -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