aboutsummaryrefslogtreecommitdiffstats
path: root/textproc
diff options
context:
space:
mode:
authorjohans <johans@FreeBSD.org>2009-12-28 07:26:17 +0800
committerjohans <johans@FreeBSD.org>2009-12-28 07:26:17 +0800
commitf3e42ff49c99d3f77532c193100ac2c09950e726 (patch)
treec1fdf39a75000006c2f95fe104d8e3d185580f69 /textproc
parentb74b06fde6d8b776d454e714a590dc999948ab8a (diff)
downloadfreebsd-ports-gnome-f3e42ff49c99d3f77532c193100ac2c09950e726.tar.gz
freebsd-ports-gnome-f3e42ff49c99d3f77532c193100ac2c09950e726.tar.zst
freebsd-ports-gnome-f3e42ff49c99d3f77532c193100ac2c09950e726.zip
- Enable NLS
- Claim maintainership
Diffstat (limited to 'textproc')
-rw-r--r--textproc/flex/Makefile22
-rw-r--r--textproc/flex/pkg-plist21
2 files changed, 35 insertions, 8 deletions
diff --git a/textproc/flex/Makefile b/textproc/flex/Makefile
index e07c8b6782be..580d4c222770 100644
--- a/textproc/flex/Makefile
+++ b/textproc/flex/Makefile
@@ -7,11 +7,11 @@
PORTNAME= flex
PORTVERSION= 2.5.35
-PORTREVISION= 2
+PORTREVISION= 3
CATEGORIES= textproc
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTNAME}-${PORTVERSION}
-MAINTAINER= ports@FreeBSD.org
+MAINTAINER= johans@stack.nl
COMMENT= Fast lexical analyzer generator
BUILD_DEPENDS= help2man:${PORTSDIR}/misc/help2man \
@@ -21,17 +21,23 @@ USE_BISON= build
USE_BZIP2= yes
GNU_CONFIGURE= yes
# install flex header to its own dir to avoid conflict with system flex.
-CONFIGURE_ARGS= --disable-nls --includedir=${PREFIX}/include/flex
+CONFIGURE_ARGS= --includedir=${PREFIX}/include/flex
USE_GMAKE= yes
MAN1= flex.1
INFO= flex
-PLIST_FILES= bin/flex include/flex/FlexLexer.h lib/libfl.a lib/libfl_pic.a
-PLIST_DIRS= include/flex
+
+.if !defined(WITHOUT_NLS)
+USE_ICONV= yes
+USE_GETTEXT= yes
+PLIST_SUB+= NLS=""
+.else
+CONFIGURE_ARGS+=--disable-nls
+PLIST_SUB+= NLS="@comment "
+.endif
post-patch: .SILENT
- ${REINPLACE_CMD} \
- -e 's/po //;s/tests//' ${WRKSRC}/Makefile.in
- ${REINPLACE_CMD} 's/@MAKEINFO@/& --no-split/g' \
+ ${REINPLACE_CMD} -e 's/tests//' ${WRKSRC}/Makefile.in
+ ${REINPLACE_CMD} -e 's/@MAKEINFO@/& --no-split/g' \
${WRKSRC}/doc/Makefile.in
${RM} -f ${WRKSRC}/doc/*.info*
diff --git a/textproc/flex/pkg-plist b/textproc/flex/pkg-plist
new file mode 100644
index 000000000000..ce89fea5ef49
--- /dev/null
+++ b/textproc/flex/pkg-plist
@@ -0,0 +1,21 @@
+bin/flex
+include/flex/FlexLexer.h
+lib/libfl.a
+lib/libfl_pic.a
+%%NLS%%share/locale/ca/LC_MESSAGES/flex.mo
+%%NLS%%share/locale/da/LC_MESSAGES/flex.mo
+%%NLS%%share/locale/de/LC_MESSAGES/flex.mo
+%%NLS%%share/locale/es/LC_MESSAGES/flex.mo
+%%NLS%%share/locale/fr/LC_MESSAGES/flex.mo
+%%NLS%%share/locale/ga/LC_MESSAGES/flex.mo
+%%NLS%%share/locale/ko/LC_MESSAGES/flex.mo
+%%NLS%%share/locale/nl/LC_MESSAGES/flex.mo
+%%NLS%%share/locale/pl/LC_MESSAGES/flex.mo
+%%NLS%%share/locale/pt_BR/LC_MESSAGES/flex.mo
+%%NLS%%share/locale/ro/LC_MESSAGES/flex.mo
+%%NLS%%share/locale/ru/LC_MESSAGES/flex.mo
+%%NLS%%share/locale/sv/LC_MESSAGES/flex.mo
+%%NLS%%share/locale/tr/LC_MESSAGES/flex.mo
+%%NLS%%share/locale/vi/LC_MESSAGES/flex.mo
+%%NLS%%share/locale/zh_CN/LC_MESSAGES/flex.mo
+@dirrm include/flex