Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 26 May 2015 00:12:10 +0000 (UTC)
From:      Dmitry Marakasov <amdmi3@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r387451 - head/www/bins
Message-ID:  <201505260012.t4Q0CAjx059316@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: amdmi3
Date: Tue May 26 00:12:10 2015
New Revision: 387451
URL: https://svnweb.freebsd.org/changeset/ports/387451

Log:
  - Convert i18n support to option
  - Drop @dirrm* from plist
  - Add NO_ARCH
  - Remove deprecated MAN1

Modified:
  head/www/bins/Makefile
  head/www/bins/pkg-plist

Modified: head/www/bins/Makefile
==============================================================================
--- head/www/bins/Makefile	Tue May 26 00:06:46 2015	(r387450)
+++ head/www/bins/Makefile	Tue May 26 00:12:10 2015	(r387451)
@@ -3,7 +3,7 @@
 
 PORTNAME=	bins
 PORTVERSION=	1.1.29
-PORTREVISION=	4
+PORTREVISION=	5
 CATEGORIES=	www
 MASTER_SITES=	http://download.gna.org/bins/
 
@@ -29,15 +29,16 @@ RUN_DEPENDS=	\
 USES=		tar:bzip2 perl5
 USE_PERL5=	run
 NO_BUILD=	yes
+NO_ARCH=	yes
 
 # additional scripts
 BINS_SCRIPTS=	tools/bins_txt2xml
 # doc file extension
 DOC_EXTS=	html sgml xml
 
-MAN1=	bins-edit-gui.1 bins.1 bins_edit.1
-
-OPTIONS_DEFINE=	DOCS
+OPTIONS_DEFINE=	DOCS I18N
+OPTIONS_DEFAULT=I18N
+I18N_DESC=	Enable internationalization support
 
 post-patch::
 # perl PREFIX safeness
@@ -67,8 +68,6 @@ post-install:
 ## default for either pointyhat or unattended builds
 ##
 .if defined(PACKAGE_BUILDING) || defined(BATCH)
-WITH_I18N=	yes
-
 post-patch::
 	${REINPLACE_CMD} -e 's,read dummy,,' ${WRKSRC}/install.sh
 .endif
@@ -76,16 +75,8 @@ post-patch::
 EXTRA_PATCHES+=	${FILESDIR}/extra-patch-install.sh
 
 # localization support
-.if defined(WITH_I18N)
+.if ${PORT_OPTIONS:MI18N}
 RUN_DEPENDS+=	p5-Locale-gettext>=0:${PORTSDIR}/devel/p5-Locale-gettext
 .endif
 
-pre-everything::
-.if !defined(WITH_I18N)
-	@${ECHO_MSG} '===>'
-	@${ECHO_MSG} '===> Define WITH_I18N to enable localization support.'
-	@${ECHO_MSG} '===> Support for languages other than english.'
-.endif
-	@${ECHO_MSG} '===>'
-
 .include <bsd.port.post.mk>

Modified: head/www/bins/pkg-plist
==============================================================================
--- head/www/bins/pkg-plist	Tue May 26 00:06:46 2015	(r387450)
+++ head/www/bins/pkg-plist	Tue May 26 00:12:10 2015	(r387451)
@@ -412,18 +412,3 @@ share/locale/nl/LC_MESSAGES/bins.mo
 share/locale/pl/LC_MESSAGES/bins.mo
 share/locale/ru/LC_MESSAGES/bins.mo
 share/locale/zh_TW/LC_MESSAGES/bins.mo
-%%PORTDOCS%%@dirrm %%DOCSDIR%%
-@dirrm %%DATADIR%%/templates.swigs
-@dirrm %%DATADIR%%/templates.satyap/static
-@dirrm %%DATADIR%%/templates.satyap
-@dirrm %%DATADIR%%/templates.petrus/static
-@dirrm %%DATADIR%%/templates.petrus
-@dirrm %%DATADIR%%/templates.mwolson/static
-@dirrm %%DATADIR%%/templates.mwolson
-@dirrm %%DATADIR%%/templates.martin/static
-@dirrm %%DATADIR%%/templates.martin
-@dirrm %%DATADIR%%/templates.marc/static
-@dirrm %%DATADIR%%/templates.marc
-@dirrm %%DATADIR%%/templates.joi/static
-@dirrm %%DATADIR%%/templates.joi
-@dirrm %%DATADIR%%



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201505260012.t4Q0CAjx059316>