Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 5 Mar 2018 09:10:38 +0000 (UTC)
From:      Yuri Victorovich <yuri@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r463633 - head/games/anki
Message-ID:  <201803050910.w259AcXQ038908@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: yuri
Date: Mon Mar  5 09:10:37 2018
New Revision: 463633
URL: https://svnweb.freebsd.org/changeset/ports/463633

Log:
  games/anki: Update to 2.0.47
  
  Maintainer's timeout expired: trebbu@googlemail.com
  freebsd_ports@k-worx.org takes maintainership.
  
  Port changes:
  * Updated MASTER_SITES/added DISTNAME
  * Added to SHEBANG_FILES
  * Updated patches
  
  PR:		225487
  Submitted by:	owk <freebsd_ports@k-worx.org>
  Approved by:	tcberner (mentor, implicit)

Modified:
  head/games/anki/Makefile
  head/games/anki/distinfo

Modified: head/games/anki/Makefile
==============================================================================
--- head/games/anki/Makefile	Mon Mar  5 09:08:18 2018	(r463632)
+++ head/games/anki/Makefile	Mon Mar  5 09:10:37 2018	(r463633)
@@ -2,13 +2,13 @@
 # $FreeBSD$
 
 PORTNAME=	anki
-PORTVERSION=	2.0.36
-PORTREVISION=	3
+DISTVERSION=	2.0.47
 CATEGORIES=	games python
-MASTER_SITES=	http://ankisrs.net/download/mirror/
+MASTER_SITES=	https://apps.ankiweb.net/downloads/current/
+DISTNAME=	anki-${PORTVERSION}-source
 DIST_SUBDIR=	python
 
-MAINTAINER=	trebbu@googlemail.com
+MAINTAINER=	freebsd_ports@k-worx.org
 COMMENT=	Flashcard trainer with spaced repetition
 
 LICENSE=	AGPLv3+
@@ -19,26 +19,30 @@ RUN_DEPENDS=	lame:audio/lame \
 		${PYTHON_PKGNAMEPREFIX}pyaudio>0:audio/py-pyaudio@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}sqlalchemy10>0:databases/py-sqlalchemy10@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}sqlite3>0:databases/py-sqlite3@${PY_FLAVOR} \
-		${PYTHON_PKGNAMEPREFIX}beautifulsoup32>=0:www/py-beautifulsoup32@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}beautifulsoup32>0:www/py-beautifulsoup32@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}httplib2>0:www/py-httplib2@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}send2trash>0:deskutils/py-send2trash@${PY_FLAVOR}
 
 USES=		desktop-file-utils pyqt:4 python:2.7 shared-mime-info shebangfix tar:tgz
-SHEBANG_FILES=	tools/build_ui.sh tools/tests.sh
+SHEBANG_FILES=	tools/build_ui.sh tools/tests.sh anki/anki runanki
 USE_PYQT=	network_run webkit_run
 USE_QT4=	network_run webkit_run
+NO_ARCH=	yes
+
 OPTIONS_DEFINE=	NLS
 OPTIONS_SUB=	yes
 NLS_USES=	gettext-runtime gettext-tools
 
-NO_ARCH=	yes
+WRKSRC=		${WRKDIR}/anki-${PORTVERSION}
 
 post-patch:
-	@${REINPLACE_CMD} -e 's|/usr/bin/env python|${PYTHON_CMD}|; \
-		s|/usr/share/anki|${DATADIR}|' \
-		${WRKSRC}/runanki
-	@${REINPLACE_CMD} -e \
-		's|/usr/share/anki/locale|${PREFIX}/share/locale|' \
+	@${REINPLACE_CMD} -i '' 's|/usr/share/anki|${DATADIR}|' \
+	       	${WRKSRC}/runanki
+	@${REINPLACE_CMD} -i '' 's|"qt_" + lang, dir|"qt_" + lang, "${DATADIR}/locale"|' \
+	       	${WRKSRC}/aqt/__init__.py
+	@${REINPLACE_CMD} -i '' \
+		's|/usr/share/anki/locale|${PREFIX}/share/locale|; \
+		s|/usr/local/share/anki/bin/locale|${PREFIX}/share/locale|' \
 		${WRKSRC}/anki/lang.py
 
 post-patch-NLS-off:

Modified: head/games/anki/distinfo
==============================================================================
--- head/games/anki/distinfo	Mon Mar  5 09:08:18 2018	(r463632)
+++ head/games/anki/distinfo	Mon Mar  5 09:10:37 2018	(r463633)
@@ -1,3 +1,3 @@
-TIMESTAMP = 1471544056
-SHA256 (python/anki-2.0.36.tgz) = fb208230cdc50ea02d53f521cf03926c627fff7cf731b7d29dc733d3ab04171c
-SIZE (python/anki-2.0.36.tgz) = 3410538
+TIMESTAMP = 1516974386
+SHA256 (python/anki-2.0.47-source.tgz) = fbb5356d642a94a2cb2fb7f949e6db7c8acbe322f38a18c0603ff88f5bd4eb18
+SIZE (python/anki-2.0.47-source.tgz) = 3422231



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