- Convert i18n support to option

- Drop @dirrm* from plist
- Add NO_ARCH
- Remove deprecated MAN1
This commit is contained in:
Dmitry Marakasov 2015-05-26 00:12:10 +00:00
parent 966c2de8a6
commit e771371e20
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=387451
2 changed files with 6 additions and 30 deletions

View File

@ -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>

View File

@ -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%%