aboutsummaryrefslogtreecommitdiffstats
path: root/devel
diff options
context:
space:
mode:
authorsunpoet <sunpoet@FreeBSD.org>2015-07-07 01:46:21 +0800
committersunpoet <sunpoet@FreeBSD.org>2015-07-07 01:46:21 +0800
commit5e6cbaeb528b4a3d7fb91bde3fa5ad312fb146f6 (patch)
tree76dedcb72f13f5ad8f02629d357e946399718e10 /devel
parentd7dbfee8aad6d34ae9356ef6de45826dd88f0c17 (diff)
downloadfreebsd-ports-gnome-5e6cbaeb528b4a3d7fb91bde3fa5ad312fb146f6.tar.gz
freebsd-ports-gnome-5e6cbaeb528b4a3d7fb91bde3fa5ad312fb146f6.tar.zst
freebsd-ports-gnome-5e6cbaeb528b4a3d7fb91bde3fa5ad312fb146f6.zip
- Add NO_ARCH
- Convert to new option target helper
Diffstat (limited to 'devel')
-rw-r--r--devel/bpython/Makefile7
1 files changed, 3 insertions, 4 deletions
diff --git a/devel/bpython/Makefile b/devel/bpython/Makefile
index 9935ed951f99..b16e01d15995 100644
--- a/devel/bpython/Makefile
+++ b/devel/bpython/Makefile
@@ -23,6 +23,7 @@ RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}curtsies>=0.1.18:${PORTSDIR}/devel/py-curtsi
OPTIONS_DEFINE= EXAMPLES NLS
OPTIONS_SUB= yes
+NO_ARCH= yes
USE_PYTHON= autoplist distutils
USES= python
@@ -30,8 +31,6 @@ PORTEXAMPLES= light.theme sample.theme
NLS_USES= gettext
-.include <bsd.port.options.mk>
-
post-patch:
@${REINPLACE_CMD} -e '/build\/man\/bpython/d; /data\/bpython.desktop/d' ${WRKSRC}/setup.py
@@ -41,13 +40,13 @@ post-install:
${INSTALL_DATA} ${WRKSRC}/data/bpython.desktop ${STAGEDIR}${DESKTOPDIR}/
${MKDIR} ${STAGEDIR}${EXAMPLESDIR}/
cd ${WRKSRC}/ && ${INSTALL_DATA} ${PORTEXAMPLES} ${STAGEDIR}${EXAMPLESDIR}/
-.if ${PORT_OPTIONS:MNLS}
+
+post-install-NLS-on:
.for lang in it_IT nl_NL
${MKDIR} ${STAGEDIR}${PREFIX}/share/locale/${lang}/LC_MESSAGES/
.endfor
.for lang in de es_ES it_IT nl_NL
${INSTALL_DATA} ${WRKSRC}/bpython/translations/${lang}/LC_MESSAGES/bpython.mo ${STAGEDIR}${PREFIX}/share/locale/${lang}/LC_MESSAGES/
.endfor
-.endif
.include <bsd.port.mk>