summaryrefslogtreecommitdiff
path: root/devel
diff options
context:
space:
mode:
authorDmitry Sivachenko <demon@FreeBSD.org>2014-04-11 22:11:09 +0000
committerDmitry Sivachenko <demon@FreeBSD.org>2014-04-11 22:11:09 +0000
commit5dcbeebf67bbb262ba591d78123038cd6123cde0 (patch)
tree3ab32ead8358f837c046bc1c46eb3611b11fcd1d /devel
parent- Support staging (diff)
Actually regen .mo from patched .po.
Notes
Notes: svn path=/head/; revision=351053
Diffstat (limited to 'devel')
-rw-r--r--devel/py-country/Makefile7
1 files changed, 7 insertions, 0 deletions
diff --git a/devel/py-country/Makefile b/devel/py-country/Makefile
index 6fc671ed305b..26dd7143362e 100644
--- a/devel/py-country/Makefile
+++ b/devel/py-country/Makefile
@@ -12,8 +12,15 @@ DISTNAME= pycountry-${PORTVERSION}
MAINTAINER= demon@FreeBSD.org
COMMENT= Python API for ISO country, subdivision, language and currency
+USES= gettext:build
USE_PYTHON= yes
USE_PYDISTUTILS= yes
PYDISTUTILS_AUTOPLIST= yes
+post-patch:
+ ${RM} ${WRKSRC}/src/pycountry/locales/tr/LC_MESSAGES/iso639.po.orig
+
+pre-build:
+ ${LOCALBASE}/bin/msgfmt ${WRKSRC}/src/pycountry/locales/tr/LC_MESSAGES/iso639.po -o ${WRKSRC}/src/pycountry/locales/tr/LC_MESSAGES/iso639.mo
+
.include <bsd.port.mk>