Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 11 Apr 2014 22:11:10 +0000 (UTC)
From:      Dmitry Sivachenko <demon@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r351053 - head/devel/py-country
Message-ID:  <201404112211.s3BMBAP3073744@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: demon
Date: Fri Apr 11 22:11:09 2014
New Revision: 351053
URL: http://svnweb.freebsd.org/changeset/ports/351053
QAT: https://qat.redports.org/buildarchive/r351053/

Log:
  Actually regen .mo from patched .po.

Modified:
  head/devel/py-country/Makefile

Modified: head/devel/py-country/Makefile
==============================================================================
--- head/devel/py-country/Makefile	Fri Apr 11 21:54:45 2014	(r351052)
+++ head/devel/py-country/Makefile	Fri Apr 11 22:11:09 2014	(r351053)
@@ -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>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201404112211.s3BMBAP3073744>