diff options
author | Johan van Selst <johans@FreeBSD.org> | 2009-12-27 23:26:17 +0000 |
---|---|---|
committer | Johan van Selst <johans@FreeBSD.org> | 2009-12-27 23:26:17 +0000 |
commit | 36c08e3156f29a8e28b465e873eaa5412561a590 (patch) | |
tree | 8ab4b09cd4722f87aa8dfcc8c4363b3477247d09 | |
parent | 50ad588962591b0cb324b6e44ef7718012624100 (diff) | |
download | ports-36c08e3156f29a8e28b465e873eaa5412561a590.tar.gz ports-36c08e3156f29a8e28b465e873eaa5412561a590.zip |
- Enable NLS
- Claim maintainership
Notes
Notes:
svn path=/head/; revision=246769
-rw-r--r-- | textproc/flex/Makefile | 22 | ||||
-rw-r--r-- | textproc/flex/pkg-plist | 21 |
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 |