diff options
author | amdmi3 <amdmi3@FreeBSD.org> | 2015-05-26 08:12:10 +0800 |
---|---|---|
committer | amdmi3 <amdmi3@FreeBSD.org> | 2015-05-26 08:12:10 +0800 |
commit | 9368251339bf1763702f83814727b9ac0911c040 (patch) | |
tree | e485db4ec7e3610e8f7d1497f0c63a4c771d8e21 | |
parent | 7e79240c653485cf22ba864a032c8186ad5563bb (diff) | |
download | freebsd-ports-gnome-9368251339bf1763702f83814727b9ac0911c040.tar.gz freebsd-ports-gnome-9368251339bf1763702f83814727b9ac0911c040.tar.zst freebsd-ports-gnome-9368251339bf1763702f83814727b9ac0911c040.zip |
- Convert i18n support to option
- Drop @dirrm* from plist
- Add NO_ARCH
- Remove deprecated MAN1
-rw-r--r-- | www/bins/Makefile | 21 | ||||
-rw-r--r-- | www/bins/pkg-plist | 15 |
2 files changed, 6 insertions, 30 deletions
diff --git a/www/bins/Makefile b/www/bins/Makefile index 7c65d36fdfaa..829e9c18af59 100644 --- a/www/bins/Makefile +++ b/www/bins/Makefile @@ -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> diff --git a/www/bins/pkg-plist b/www/bins/pkg-plist index 09e99ac1a4b7..f4cf73c93aab 100644 --- a/www/bins/pkg-plist +++ b/www/bins/pkg-plist @@ -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%% |