From 1c3882eba2f7b755e6a2bae7de6988a761cada8d Mon Sep 17 00:00:00 2001 From: Johan van Selst Date: Mon, 9 Jul 2012 11:07:50 +0000 Subject: [PATCH] - Add patch to fix installation without NLS - Pester user about NLS and DOCS configuration options - Bump PORTREVISION Reported by: dougb --- textproc/texi2html/Makefile | 3 +++ textproc/texi2html/files/patch-texi2html.pl | 14 ++++++++++++++ 2 files changed, 17 insertions(+) create mode 100644 textproc/texi2html/files/patch-texi2html.pl diff --git a/textproc/texi2html/Makefile b/textproc/texi2html/Makefile index 63ce4bc53309..92241dbf7c81 100644 --- a/textproc/texi2html/Makefile +++ b/textproc/texi2html/Makefile @@ -7,6 +7,7 @@ PORTNAME= texi2html PORTVERSION= 5.0 +PORTREVISION= 1 PORTEPOCH= 1 CATEGORIES= textproc MASTER_SITES= SAVANNAH @@ -22,6 +23,8 @@ USE_BZIP2= yes USE_PERL5= yes USE_GMAKE= yes +OPTIONS_DEFINE= NLS DOCS + PROGRAM_PREFIX?= PLIST_SUB= PROGRAM_PREFIX=${PROGRAM_PREFIX} \ TEXINFODIR=share/texinfo diff --git a/textproc/texi2html/files/patch-texi2html.pl b/textproc/texi2html/files/patch-texi2html.pl new file mode 100644 index 000000000000..9631210cbf0b --- /dev/null +++ b/textproc/texi2html/files/patch-texi2html.pl @@ -0,0 +1,14 @@ +--- texi2html.pl 2012-07-09 10:54:41.000000000 +0200 ++++ /usr/local/bin/texi2html 2012-07-09 10:53:16.000000000 +0200 +@@ -1993,6 +1933,11 @@ + # Messages should be untranslated for tests. + Locale::Messages::bindtextdomain ($messages_textdomain, "$datadir/locale"); + } ++else ++{ ++ unshift @INC, "$pkgdatadir/lib/libintl-perl/lib"; ++ require Locale::Messages; ++} + + sub __($) + {