Finish converting textproc from WITHOUT_NLS to PORT_OPTIONS:MNLS

This commit is contained in:
Baptiste Daroussin 2013-05-06 09:26:23 +00:00
parent 227631a78f
commit 1d878a9f8a
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=317494
9 changed files with 42 additions and 51 deletions

View file

@ -1,9 +1,5 @@
# New ports collection makefile for: ibus-kmfl
# Date created: 4 June 2010
# Whom: Nikola Lecic <nikola.lecic@anthesphoria.net>
#
# Created by: Nikola Lecic <nikola.lecic@anthesphoria.net>
# $FreeBSD$
#
PORTNAME= ibus-kmfl
PORTVERSION= 1.0.3
@ -21,14 +17,17 @@ LIB_DEPENDS= ibus-1.0:${PORTSDIR}/textproc/ibus \
kmflcomp.0:${PORTSDIR}/textproc/kmflcomp
RUN_DEPENDS= kmflcomp:${PORTSDIR}/textproc/kmflcomp
USE_GNOME= glib20 pkgconfig
USES= pkgconfig
USE_GNOME= glib20
USE_GMAKE= yes
GNU_CONFIGURE= yes
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
.if !defined(WITHOUT_NLS)
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MNLS}
USES+= gettext
PLIST_SUB+= NLS=""
.else

View file

@ -1,9 +1,5 @@
# New ports collection makefile for: ibus-m17n
# Date created: 3 September 2009
# Whom: Nikola Lecic <nikola.lecic@anthesphoria.net>
#
# Created by: Nikola Lecic <nikola.lecic@anthesphoria.net>
# $FreeBSD$
#
PORTNAME= ibus-m17n
PORTVERSION= 1.3.3
@ -24,7 +20,9 @@ PROJECTHOST= ibus
USE_GMAKE= yes
GNU_CONFIGURE= yes
.if !defined(WITHOUT_NLS)
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MNLS}
USES+= gettext
PLIST_SUB+= NLS=""
.else

View file

@ -23,7 +23,9 @@ USE_GMAKE= yes
PROJECTHOST= ibus
.if !defined(WITHOUT_NLS)
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MNLS}
USES+= gettext
PLIST_SUB+= NLS=""
.else

View file

@ -1,9 +1,5 @@
# New ports collection makefile for: m17n-contrib
# Date created: 5 October 2008
# Whom: Nikola Lecic <nikola.lecic@anthesphoria.net>
#
# Created by: Nikola Lecic <nikola.lecic@anthesphoria.net>
# $FreeBSD$
#
PORTNAME= m17n-contrib
PORTVERSION= 1.1.13
@ -20,7 +16,9 @@ RUN_DEPENDS= m17n-db>=1.6.3:${PORTSDIR}/devel/m17n-db
USE_GMAKE= yes
GNU_CONFIGURE= yes
.if !defined(WITHOUT_NLS)
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MNLS}
USES+= gettext
PLIST_SUB+= NLS=""
.else

View file

@ -1,9 +1,5 @@
# New ports collection makefile for: m17n-im-config
# Date created: 1 October 2008
# Whom: Nikola Lecic <nikola.lecic@anthesphoria.net>
#
# Created by: Nikola Lecic <nikola.lecic@anthesphoria.net>
# $FreeBSD$
#
PORTNAME= m17n-im-config
PORTVERSION= 0.9.0
@ -32,7 +28,9 @@ DESKTOP_ENTRIES="M17N-IM Configuration" \
"Settings;" \
true
.if !defined(WITHOUT_NLS)
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MNLS}
USES+= gettext
PLIST_SUB+= NLS=""
.else

View file

@ -1,9 +1,5 @@
# New ports collection makefile for: OpenSP
# Date created: Jan 6, 2003
# Whom: kuriyama
#
# Created by: kuriyama
# $FreeBSD$
#
PORTNAME= OpenSP
PORTVERSION= 1.5.2
@ -25,12 +21,14 @@ CONFIGURE_ARGS= --enable-default-catalog=${PREFIX}/share/sgml/catalog \
LDFLAGS+= -L${LOCALBASE}/lib
CFLAGS+= -I${LOCALBASE}/include
.if defined(WITHOUT_NLS)
CONFIGURE_ARGS+=--disable-nls
PLIST_SUB+= NLS="@comment "
.else
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MNLS}
USES+= gettext
PLIST_SUB+= NLS=""
.else
CONFIGURE_ARGS+=--disable-nls
PLIST_SUB+= NLS="@comment "
.endif
#MAN1= onsgmls.1 osgmlnorm.1 ospam.1 ospent.1 osx.1
@ -44,7 +42,7 @@ PLIST_SUB+= NLS=""
CPPFLAGS:= -O ${CFLAGS:N-O*:N-m*}
post-install:
.if !defined(NOPORTDOCS)
.if ${PORT_OPTIONS:MDOCS}
@${MKDIR} ${DOCSDIR}
@${CAT} ${PLIST} | \
${SED} ${PLIST_SUB:S/$/!g/:S/^/ -e s!%%/:S/=/%%!/} | \

View file

@ -1,9 +1,5 @@
# New ports collection makefile for: scim-input-pad
# Date created: 2005/05/06
# Whom: chinsan <chinsan@mail2000.com.tw>
#
# Created by: chinsan <chinsan@mail2000.com.tw>
# $FreeBSD$
#
PORTNAME= scim-input-pad
PORTVERSION= 0.1.3.1
@ -32,7 +28,9 @@ DESKTOP_ENTRIES="SCIM Input Pad" \
DOCS= ChangeLog README
.if !defined(WITHOUT_NLS)
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MNLS}
USES+= gettext
USE_GNOME= intlhack
PLIST_SUB+= NLS=""
@ -47,7 +45,7 @@ post-patch:
@${REINPLACE_CMD} -E 's|^_NAME|NAME|g' ${WRKSRC}/data/*.pad.in
post-install:
.if !defined(NOPORTDOCS)
.if ${PORT_OPTIONS:MDOCS}
${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${DOCS:S|^|${WRKSRC}/|} ${DOCSDIR}
.endif

View file

@ -17,7 +17,9 @@ USE_GNOME= glib20
USES= pkgconfig iconv
SUB_FILES= pkg-message
.if !defined(WITHOUT_NLS)
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MNLS}
USES+= gettext
PLIST_SUB+= NLS=""
CPPFLAGS+= -I${LOCALBASE}/include
@ -47,7 +49,7 @@ post-patch:
${WRKSRC}/src/sdcv.cpp
@${REINPLACE_CMD} -e 's,@mandir@/uk,@mandir@,' \
${WRKSRC}/doc/uk/Makefile.in
.if !defined(WITHOUT_NLS)
.if ${PORT_OPTIONS:MNLS}
@${REINPLACE_CMD} -e 's,@USE_NLS@,yes,g' ${WRKSRC}/po/Makefile.in.in
@${REINPLACE_CMD} -e 's, getopt.h,,g; s,@USE_NLS@,yes,g' \
${WRKSRC}/src/Makefile.in

View file

@ -1,9 +1,5 @@
# New ports collection makefile for: wdiff
# Date created: Sep 15, 1997
# Whom: Yoshiro MIHIRA <sanpei@yy.cs.keio.ac.jp>
#
# Created by: Yoshiro MIHIRA <sanpei@yy.cs.keio.ac.jp>
# $FreeBSD$
#
PORTNAME= wdiff
PORTVERSION= 1.2.1
@ -20,7 +16,9 @@ GNU_CONFIGURE= yes
MAN1= wdiff.1
INFO= wdiff
.if !defined(WITHOUT_NLS)
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MNLS}
USES+= gettext
CFLAGS+= -I${LOCALBASE}/include
PLIST_SUB+= NLS=""