Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 12 Dec 2013 11:44:25 +0000 (UTC)
From:      Rusmir Dusko <nemysis@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r336258 - head/games/anki
Message-ID:  <201312121144.rBCBiPTu078772@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: nemysis
Date: Thu Dec 12 11:44:25 2013
New Revision: 336258
URL: http://svnweb.freebsd.org/changeset/ports/336258

Log:
  - Update to 2.0.19
  - Fix NLS, add Option
  - Break lines around 80 characters
  
  Reviewed by:	Horia Racoviceanu <horia@racoviceanu.com>
  Approved by:	pawel / wg (mentors, implicit)

Modified:
  head/games/anki/Makefile
  head/games/anki/distinfo
  head/games/anki/pkg-plist

Modified: head/games/anki/Makefile
==============================================================================
--- head/games/anki/Makefile	Thu Dec 12 11:27:53 2013	(r336257)
+++ head/games/anki/Makefile	Thu Dec 12 11:44:25 2013	(r336258)
@@ -2,7 +2,7 @@
 # $FreeBSD$
 
 PORTNAME=	anki
-PORTVERSION=	2.0.18
+PORTVERSION=	2.0.19
 CATEGORIES=	games python
 MASTER_SITES=	http://ankisrs.net/download/mirror/
 EXTRACT_SUFX=	.tgz
@@ -24,15 +24,26 @@ RUN_DEPENDS=	lame:${PORTSDIR}/audio/lame
 		${PYTHON_PKGNAMEPREFIX}qt4-webkit>=4.4:${PORTSDIR}/www/py-qt4-webkit \
 		${PYTHON_PKGNAMEPREFIX}send2trash>0:${PORTSDIR}/deskutils/py-send2trash
 
-USES=		desktop-file-utils gettext:run shared-mime-info
-USE_PYTHON=	-2.7
+USES=		desktop-file-utils shared-mime-info
+USE_PYTHON=	2.7
 USE_QT4=	network_run webkit_run
 
+OPTIONS_DEFINE=	NLS
+OPTIONS_SUB=	yes
+
+NLS_USES=	gettext:run
+
+.include <bsd.port.options.mk>
+
 post-patch:
 	@${REINPLACE_CMD} -e 's|/usr/share/|${PREFIX}/share/|' \
 		${WRKSRC}/runanki
-	@${REINPLACE_CMD} -e 's|^Categories=.*|Categories=Education;Languages;KDE;Qt;Game;|' \
+	@${REINPLACE_CMD} -e 's|/usr/share/anki/locale|${PREFIX}/share/locale/|' \
+		${WRKSRC}/anki/lang.py
+	@${REINPLACE_CMD} \
+		-e 's|^Categories=.*|Categories=Education;Languages;KDE;Qt;Game;|' \
 		${WRKSRC}/${PORTNAME}.desktop
+	@${FIND} ${WRKSRC} -name "*.bak" -delete
 
 do-build:
 	@${PYTHON_CMD} -m compileall ${WRKSRC}
@@ -40,16 +51,31 @@ do-build:
 
 do-install:
 	${INSTALL_SCRIPT} ${WRKSRC}/runanki ${STAGEDIR}${PREFIX}/bin/${PORTNAME}
-.for i in anki aqt designer locale oldanki tests tools
-	@(cd ${WRKSRC} && ${COPYTREE_SHARE} ${i} ${STAGEDIR}${DATADIR})
+
+.for d in anki aqt designer oldanki tests tools
+	@(cd ${WRKSRC} && ${COPYTREE_SHARE} ${d} ${STAGEDIR}${DATADIR})
 .endfor
 
+	@${MKDIR} ${STAGEDIR}${DATADIR}/locale
+	${INSTALL_DATA} ${WRKSRC}/locale/qt* ${STAGEDIR}${DATADIR}/locale/
+
+.if ${PORT_OPTIONS:MNLS}
+.  for f in af ar az bg bn ca cs da de el en_GB eo es et eu fa fi fr gl gu he \
+	hu it ja km ko lt lv mn mr ms nb nl no oc pl pt pt_BR ro ru sk sl sr \
+	sv th tlh tr uk vi wo zh_CN zh_HK zh_TW
+	${MKDIR} ${STAGEDIR}${PREFIX}/share/locale/${f}/LC_MESSAGES && \
+		${INSTALL_DATA} ${WRKSRC}/locale/${f}/LC_MESSAGES/${PORTNAME}.mo \
+	${STAGEDIR}${PREFIX}/share/locale/${f}/LC_MESSAGES/${PORTNAME}.mo
+.  endfor
+.endif
+
 	${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.1 ${STAGEDIR}${MAN1PREFIX}/man/man1/
 	@${MKDIR} ${STAGEDIR}${DESKTOPDIR}
 	${INSTALL_DATA} ${WRKSRC}/${PORTNAME}.desktop ${STAGEDIR}${DESKTOPDIR}
 	@${MKDIR} ${STAGEDIR}${PREFIX}/share/mime/packages/
 	${INSTALL_DATA} ${WRKSRC}/${PORTNAME}.xml \
 		${STAGEDIR}${PREFIX}/share/mime/packages/
+
 .for p in *.png *.xpm
 	${INSTALL_DATA} ${WRKSRC}/${p} \
 		${STAGEDIR}${PREFIX}/share/pixmaps/

Modified: head/games/anki/distinfo
==============================================================================
--- head/games/anki/distinfo	Thu Dec 12 11:27:53 2013	(r336257)
+++ head/games/anki/distinfo	Thu Dec 12 11:44:25 2013	(r336258)
@@ -1,2 +1,2 @@
-SHA256 (python/anki-2.0.18.tgz) = 12946cd52f3938183f161829636ab430004564d1ccbf165c01f09ff7d650f4c2
-SIZE (python/anki-2.0.18.tgz) = 3179157
+SHA256 (python/anki-2.0.19.tgz) = 799a67d828b1e3b6ba9ef8372f7d2ce90d327b8bf8f25175e3d3dc5e0908f300
+SIZE (python/anki-2.0.19.tgz) = 3182134

Modified: head/games/anki/pkg-plist
==============================================================================
--- head/games/anki/pkg-plist	Thu Dec 12 11:27:53 2013	(r336257)
+++ head/games/anki/pkg-plist	Thu Dec 12 11:44:25 2013	(r336258)
@@ -512,45 +512,6 @@ man/man1/anki.1.gz
 %%DATADIR%%/designer/studydeck.ui
 %%DATADIR%%/designer/taglimit.ui
 %%DATADIR%%/designer/template.ui
-%%DATADIR%%/locale/af/LC_MESSAGES/anki.mo
-%%DATADIR%%/locale/ar/LC_MESSAGES/anki.mo
-%%DATADIR%%/locale/az/LC_MESSAGES/anki.mo
-%%DATADIR%%/locale/bg/LC_MESSAGES/anki.mo
-%%DATADIR%%/locale/bn/LC_MESSAGES/anki.mo
-%%DATADIR%%/locale/ca/LC_MESSAGES/anki.mo
-%%DATADIR%%/locale/cs/LC_MESSAGES/anki.mo
-%%DATADIR%%/locale/da/LC_MESSAGES/anki.mo
-%%DATADIR%%/locale/de/LC_MESSAGES/anki.mo
-%%DATADIR%%/locale/el/LC_MESSAGES/anki.mo
-%%DATADIR%%/locale/en_GB/LC_MESSAGES/anki.mo
-%%DATADIR%%/locale/eo/LC_MESSAGES/anki.mo
-%%DATADIR%%/locale/es/LC_MESSAGES/anki.mo
-%%DATADIR%%/locale/et/LC_MESSAGES/anki.mo
-%%DATADIR%%/locale/eu/LC_MESSAGES/anki.mo
-%%DATADIR%%/locale/fa/LC_MESSAGES/anki.mo
-%%DATADIR%%/locale/fi/LC_MESSAGES/anki.mo
-%%DATADIR%%/locale/fr/LC_MESSAGES/anki.mo
-%%DATADIR%%/locale/gl/LC_MESSAGES/anki.mo
-%%DATADIR%%/locale/gu/LC_MESSAGES/anki.mo
-%%DATADIR%%/locale/he/LC_MESSAGES/anki.mo
-%%DATADIR%%/locale/hr/LC_MESSAGES/anki.mo
-%%DATADIR%%/locale/hu/LC_MESSAGES/anki.mo
-%%DATADIR%%/locale/it/LC_MESSAGES/anki.mo
-%%DATADIR%%/locale/ja/LC_MESSAGES/anki.mo
-%%DATADIR%%/locale/km/LC_MESSAGES/anki.mo
-%%DATADIR%%/locale/ko/LC_MESSAGES/anki.mo
-%%DATADIR%%/locale/lt/LC_MESSAGES/anki.mo
-%%DATADIR%%/locale/lv/LC_MESSAGES/anki.mo
-%%DATADIR%%/locale/mn/LC_MESSAGES/anki.mo
-%%DATADIR%%/locale/mr/LC_MESSAGES/anki.mo
-%%DATADIR%%/locale/ms/LC_MESSAGES/anki.mo
-%%DATADIR%%/locale/nb/LC_MESSAGES/anki.mo
-%%DATADIR%%/locale/nl/LC_MESSAGES/anki.mo
-%%DATADIR%%/locale/no/LC_MESSAGES/anki.mo
-%%DATADIR%%/locale/oc/LC_MESSAGES/anki.mo
-%%DATADIR%%/locale/pl/LC_MESSAGES/anki.mo
-%%DATADIR%%/locale/pt/LC_MESSAGES/anki.mo
-%%DATADIR%%/locale/pt_BR/LC_MESSAGES/anki.mo
 %%DATADIR%%/locale/qt_ar.qm
 %%DATADIR%%/locale/qt_cs.qm
 %%DATADIR%%/locale/qt_da.qm
@@ -573,21 +534,6 @@ man/man1/anki.1.gz
 %%DATADIR%%/locale/qt_uk.qm
 %%DATADIR%%/locale/qt_zh_CN.qm
 %%DATADIR%%/locale/qt_zh_TW.qm
-%%DATADIR%%/locale/ro/LC_MESSAGES/anki.mo
-%%DATADIR%%/locale/ru/LC_MESSAGES/anki.mo
-%%DATADIR%%/locale/sk/LC_MESSAGES/anki.mo
-%%DATADIR%%/locale/sl/LC_MESSAGES/anki.mo
-%%DATADIR%%/locale/sr/LC_MESSAGES/anki.mo
-%%DATADIR%%/locale/sv/LC_MESSAGES/anki.mo
-%%DATADIR%%/locale/th/LC_MESSAGES/anki.mo
-%%DATADIR%%/locale/tlh/LC_MESSAGES/anki.mo
-%%DATADIR%%/locale/tr/LC_MESSAGES/anki.mo
-%%DATADIR%%/locale/uk/LC_MESSAGES/anki.mo
-%%DATADIR%%/locale/vi/LC_MESSAGES/anki.mo
-%%DATADIR%%/locale/wo/LC_MESSAGES/anki.mo
-%%DATADIR%%/locale/zh_CN/LC_MESSAGES/anki.mo
-%%DATADIR%%/locale/zh_HK/LC_MESSAGES/anki.mo
-%%DATADIR%%/locale/zh_TW/LC_MESSAGES/anki.mo
 %%DATADIR%%/oldanki/README
 %%DATADIR%%/oldanki/__init__.py
 %%DATADIR%%/oldanki/__init__.pyc
@@ -738,124 +684,79 @@ man/man1/anki.1.gz
 %%DATADIR%%/tools/build_ui.sh
 %%DATADIR%%/tools/tests.sh
 share/applications/anki.desktop
+%%NLS%%share/locale/af/LC_MESSAGES/anki.mo
+%%NLS%%share/locale/ar/LC_MESSAGES/anki.mo
+%%NLS%%share/locale/az/LC_MESSAGES/anki.mo
+%%NLS%%share/locale/bg/LC_MESSAGES/anki.mo
+%%NLS%%share/locale/bn/LC_MESSAGES/anki.mo
+%%NLS%%share/locale/ca/LC_MESSAGES/anki.mo
+%%NLS%%share/locale/cs/LC_MESSAGES/anki.mo
+%%NLS%%share/locale/da/LC_MESSAGES/anki.mo
+%%NLS%%share/locale/de/LC_MESSAGES/anki.mo
+%%NLS%%share/locale/el/LC_MESSAGES/anki.mo
+%%NLS%%share/locale/en_GB/LC_MESSAGES/anki.mo
+%%NLS%%share/locale/eo/LC_MESSAGES/anki.mo
+%%NLS%%share/locale/es/LC_MESSAGES/anki.mo
+%%NLS%%share/locale/et/LC_MESSAGES/anki.mo
+%%NLS%%share/locale/eu/LC_MESSAGES/anki.mo
+%%NLS%%share/locale/fa/LC_MESSAGES/anki.mo
+%%NLS%%share/locale/fi/LC_MESSAGES/anki.mo
+%%NLS%%share/locale/fr/LC_MESSAGES/anki.mo
+%%NLS%%share/locale/gl/LC_MESSAGES/anki.mo
+%%NLS%%share/locale/gu/LC_MESSAGES/anki.mo
+%%NLS%%share/locale/he/LC_MESSAGES/anki.mo
+%%NLS%%share/locale/hu/LC_MESSAGES/anki.mo
+%%NLS%%share/locale/it/LC_MESSAGES/anki.mo
+%%NLS%%share/locale/ja/LC_MESSAGES/anki.mo
+%%NLS%%share/locale/km/LC_MESSAGES/anki.mo
+%%NLS%%share/locale/ko/LC_MESSAGES/anki.mo
+%%NLS%%share/locale/lt/LC_MESSAGES/anki.mo
+%%NLS%%share/locale/lv/LC_MESSAGES/anki.mo
+%%NLS%%share/locale/mn/LC_MESSAGES/anki.mo
+%%NLS%%share/locale/mr/LC_MESSAGES/anki.mo
+%%NLS%%share/locale/ms/LC_MESSAGES/anki.mo
+%%NLS%%share/locale/nb/LC_MESSAGES/anki.mo
+%%NLS%%share/locale/nl/LC_MESSAGES/anki.mo
+%%NLS%%share/locale/no/LC_MESSAGES/anki.mo
+%%NLS%%share/locale/oc/LC_MESSAGES/anki.mo
+%%NLS%%share/locale/pl/LC_MESSAGES/anki.mo
+%%NLS%%share/locale/pt/LC_MESSAGES/anki.mo
+%%NLS%%share/locale/pt_BR/LC_MESSAGES/anki.mo
+%%NLS%%share/locale/ro/LC_MESSAGES/anki.mo
+%%NLS%%share/locale/ru/LC_MESSAGES/anki.mo
+%%NLS%%share/locale/sk/LC_MESSAGES/anki.mo
+%%NLS%%share/locale/sl/LC_MESSAGES/anki.mo
+%%NLS%%share/locale/sr/LC_MESSAGES/anki.mo
+%%NLS%%share/locale/sv/LC_MESSAGES/anki.mo
+%%NLS%%share/locale/th/LC_MESSAGES/anki.mo
+%%NLS%%share/locale/tlh/LC_MESSAGES/anki.mo
+%%NLS%%share/locale/tr/LC_MESSAGES/anki.mo
+%%NLS%%share/locale/uk/LC_MESSAGES/anki.mo
+%%NLS%%share/locale/vi/LC_MESSAGES/anki.mo
+%%NLS%%share/locale/wo/LC_MESSAGES/anki.mo
+%%NLS%%share/locale/zh_CN/LC_MESSAGES/anki.mo
+%%NLS%%share/locale/zh_HK/LC_MESSAGES/anki.mo
+%%NLS%%share/locale/zh_TW/LC_MESSAGES/anki.mo
 share/mime/packages/anki.xml
 share/pixmaps/anki.png
 share/pixmaps/anki.xpm
-@dirrmtry share/mime/packages
-@dirrmtry share/mime
+%%NLS%%@dirrmtry share/locale/zh_HK/LC_MESSAGES
+%%NLS%%@dirrmtry share/locale/zh_HK
+%%NLS%%@dirrmtry share/locale/wo/LC_MESSAGES
+%%NLS%%@dirrmtry share/locale/wo
+%%NLS%%@dirrmtry share/locale/tlh/LC_MESSAGES
+%%NLS%%@dirrmtry share/locale/tlh
+%%NLS%%@dirrmtry share/locale/oc/LC_MESSAGES
+%%NLS%%@dirrmtry share/locale/oc
+%%NLS%%@dirrmtry share/locale/mr/LC_MESSAGES
+%%NLS%%@dirrmtry share/locale/mr
+%%NLS%%@dirrmtry share/locale/km/LC_MESSAGES
+%%NLS%%@dirrmtry share/locale/km
 @dirrm %%DATADIR%%/tools
 @dirrm %%DATADIR%%/tests/support
 @dirrm %%DATADIR%%/tests
 @dirrm %%DATADIR%%/oldanki/template
 @dirrm %%DATADIR%%/oldanki
-@dirrm %%DATADIR%%/locale/zh_TW/LC_MESSAGES
-@dirrm %%DATADIR%%/locale/zh_TW
-@dirrm %%DATADIR%%/locale/zh_HK/LC_MESSAGES
-@dirrm %%DATADIR%%/locale/zh_HK
-@dirrm %%DATADIR%%/locale/zh_CN/LC_MESSAGES
-@dirrm %%DATADIR%%/locale/zh_CN
-@dirrm %%DATADIR%%/locale/wo/LC_MESSAGES
-@dirrm %%DATADIR%%/locale/wo
-@dirrm %%DATADIR%%/locale/vi/LC_MESSAGES
-@dirrm %%DATADIR%%/locale/vi
-@dirrm %%DATADIR%%/locale/uk/LC_MESSAGES
-@dirrm %%DATADIR%%/locale/uk
-@dirrm %%DATADIR%%/locale/tr/LC_MESSAGES
-@dirrm %%DATADIR%%/locale/tr
-@dirrm %%DATADIR%%/locale/tlh/LC_MESSAGES
-@dirrm %%DATADIR%%/locale/tlh
-@dirrm %%DATADIR%%/locale/th/LC_MESSAGES
-@dirrm %%DATADIR%%/locale/th
-@dirrm %%DATADIR%%/locale/sv/LC_MESSAGES
-@dirrm %%DATADIR%%/locale/sv
-@dirrm %%DATADIR%%/locale/sr/LC_MESSAGES
-@dirrm %%DATADIR%%/locale/sr
-@dirrm %%DATADIR%%/locale/sl/LC_MESSAGES
-@dirrm %%DATADIR%%/locale/sl
-@dirrm %%DATADIR%%/locale/sk/LC_MESSAGES
-@dirrm %%DATADIR%%/locale/sk
-@dirrm %%DATADIR%%/locale/ru/LC_MESSAGES
-@dirrm %%DATADIR%%/locale/ru
-@dirrm %%DATADIR%%/locale/ro/LC_MESSAGES
-@dirrm %%DATADIR%%/locale/ro
-@dirrm %%DATADIR%%/locale/pt_BR/LC_MESSAGES
-@dirrm %%DATADIR%%/locale/pt_BR
-@dirrm %%DATADIR%%/locale/pt/LC_MESSAGES
-@dirrm %%DATADIR%%/locale/pt
-@dirrm %%DATADIR%%/locale/pl/LC_MESSAGES
-@dirrm %%DATADIR%%/locale/pl
-@dirrm %%DATADIR%%/locale/oc/LC_MESSAGES
-@dirrm %%DATADIR%%/locale/oc
-@dirrm %%DATADIR%%/locale/no/LC_MESSAGES
-@dirrm %%DATADIR%%/locale/no
-@dirrm %%DATADIR%%/locale/nl/LC_MESSAGES
-@dirrm %%DATADIR%%/locale/nl
-@dirrm %%DATADIR%%/locale/nb/LC_MESSAGES
-@dirrm %%DATADIR%%/locale/nb
-@dirrm %%DATADIR%%/locale/ms/LC_MESSAGES
-@dirrm %%DATADIR%%/locale/ms
-@dirrm %%DATADIR%%/locale/mr/LC_MESSAGES
-@dirrm %%DATADIR%%/locale/mr
-@dirrm %%DATADIR%%/locale/mn/LC_MESSAGES
-@dirrm %%DATADIR%%/locale/mn
-@dirrm %%DATADIR%%/locale/lv/LC_MESSAGES
-@dirrm %%DATADIR%%/locale/lv
-@dirrm %%DATADIR%%/locale/lt/LC_MESSAGES
-@dirrm %%DATADIR%%/locale/lt
-@dirrm %%DATADIR%%/locale/ko/LC_MESSAGES
-@dirrm %%DATADIR%%/locale/ko
-@dirrm %%DATADIR%%/locale/km/LC_MESSAGES
-@dirrm %%DATADIR%%/locale/km
-@dirrm %%DATADIR%%/locale/ja/LC_MESSAGES
-@dirrm %%DATADIR%%/locale/ja
-@dirrm %%DATADIR%%/locale/it/LC_MESSAGES
-@dirrm %%DATADIR%%/locale/it
-@dirrm %%DATADIR%%/locale/hu/LC_MESSAGES
-@dirrm %%DATADIR%%/locale/hu
-@dirrm %%DATADIR%%/locale/hr/LC_MESSAGES
-@dirrm %%DATADIR%%/locale/hr
-@dirrm %%DATADIR%%/locale/he/LC_MESSAGES
-@dirrm %%DATADIR%%/locale/he
-@dirrm %%DATADIR%%/locale/gu/LC_MESSAGES
-@dirrm %%DATADIR%%/locale/gu
-@dirrm %%DATADIR%%/locale/gl/LC_MESSAGES
-@dirrm %%DATADIR%%/locale/gl
-@dirrm %%DATADIR%%/locale/fr/LC_MESSAGES
-@dirrm %%DATADIR%%/locale/fr
-@dirrm %%DATADIR%%/locale/fi/LC_MESSAGES
-@dirrm %%DATADIR%%/locale/fi
-@dirrm %%DATADIR%%/locale/fa/LC_MESSAGES
-@dirrm %%DATADIR%%/locale/fa
-@dirrm %%DATADIR%%/locale/eu/LC_MESSAGES
-@dirrm %%DATADIR%%/locale/eu
-@dirrm %%DATADIR%%/locale/et/LC_MESSAGES
-@dirrm %%DATADIR%%/locale/et
-@dirrm %%DATADIR%%/locale/es/LC_MESSAGES
-@dirrm %%DATADIR%%/locale/es
-@dirrm %%DATADIR%%/locale/eo/LC_MESSAGES
-@dirrm %%DATADIR%%/locale/eo
-@dirrm %%DATADIR%%/locale/en_GB/LC_MESSAGES
-@dirrm %%DATADIR%%/locale/en_GB
-@dirrm %%DATADIR%%/locale/el/LC_MESSAGES
-@dirrm %%DATADIR%%/locale/el
-@dirrm %%DATADIR%%/locale/de/LC_MESSAGES
-@dirrm %%DATADIR%%/locale/de
-@dirrm %%DATADIR%%/locale/da/LC_MESSAGES
-@dirrm %%DATADIR%%/locale/da
-@dirrm %%DATADIR%%/locale/cs/LC_MESSAGES
-@dirrm %%DATADIR%%/locale/cs
-@dirrm %%DATADIR%%/locale/ca/LC_MESSAGES
-@dirrm %%DATADIR%%/locale/ca
-@dirrm %%DATADIR%%/locale/bn/LC_MESSAGES
-@dirrm %%DATADIR%%/locale/bn
-@dirrm %%DATADIR%%/locale/bg/LC_MESSAGES
-@dirrm %%DATADIR%%/locale/bg
-@dirrm %%DATADIR%%/locale/az/LC_MESSAGES
-@dirrm %%DATADIR%%/locale/az
-@dirrm %%DATADIR%%/locale/ar/LC_MESSAGES
-@dirrm %%DATADIR%%/locale/ar
-@dirrm %%DATADIR%%/locale/af/LC_MESSAGES
-@dirrm %%DATADIR%%/locale/af
 @dirrm %%DATADIR%%/locale
 @dirrm %%DATADIR%%/designer/icons
 @dirrm %%DATADIR%%/designer



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