svn commit: r387451 - head/www/bins
Dmitry Marakasov
amdmi3 at FreeBSD.org
Tue May 26 00:12:11 UTC 2015
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%%
- at dirrm %%DATADIR%%/templates.swigs
- at dirrm %%DATADIR%%/templates.satyap/static
- at dirrm %%DATADIR%%/templates.satyap
- at dirrm %%DATADIR%%/templates.petrus/static
- at dirrm %%DATADIR%%/templates.petrus
- at dirrm %%DATADIR%%/templates.mwolson/static
- at dirrm %%DATADIR%%/templates.mwolson
- at dirrm %%DATADIR%%/templates.martin/static
- at dirrm %%DATADIR%%/templates.martin
- at dirrm %%DATADIR%%/templates.marc/static
- at dirrm %%DATADIR%%/templates.marc
- at dirrm %%DATADIR%%/templates.joi/static
- at dirrm %%DATADIR%%/templates.joi
- at dirrm %%DATADIR%%
More information about the svn-ports-all
mailing list