aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwg <wg@FreeBSD.org>2013-07-14 00:09:29 +0800
committerwg <wg@FreeBSD.org>2013-07-14 00:09:29 +0800
commitc3843a510f771451189badbc320f1bd5989ef061 (patch)
tree5acd6479d3bc1ca1e0865e9bfe0ecee44a2e73af
parenta3e998a054eac609b17a08396114227534085a0e (diff)
downloadfreebsd-ports-gnome-c3843a510f771451189badbc320f1bd5989ef061.tar.gz
freebsd-ports-gnome-c3843a510f771451189badbc320f1bd5989ef061.tar.zst
freebsd-ports-gnome-c3843a510f771451189badbc320f1bd5989ef061.zip
games/anki: update to 2.0.11
- Update to 2.0.11 - USES desktop-file-utils and shared-mime-info PR: ports/179106 Submitted by: nemysis <nemysis gmx.ch> (maintainer)
-rw-r--r--games/anki/Makefile14
-rw-r--r--games/anki/distinfo4
-rw-r--r--games/anki/pkg-plist10
3 files changed, 13 insertions, 15 deletions
diff --git a/games/anki/Makefile b/games/anki/Makefile
index ab1e672b185c..bfb213c07365 100644
--- a/games/anki/Makefile
+++ b/games/anki/Makefile
@@ -2,7 +2,7 @@
# $FreeBSD$
PORTNAME= anki
-PORTVERSION= 2.0.8
+PORTVERSION= 2.0.11
CATEGORIES= games python
MASTER_SITES= http://ankisrs.net/download/mirror/
EXTRACT_SUFX= .tgz
@@ -13,25 +13,26 @@ COMMENT= Flashcard trainer with spaced repetition
LICENSE= AGPLv3 # (or later)
-BUILD_DEPENDS= update-mime-database:${PORTSDIR}/misc/shared-mime-info
-RUN_DEPENDS:= ${BUILD_DEPENDS} \
- ${PYTHON_PKGNAMEPREFIX}pyaudio>0:${PORTSDIR}/audio/py-pyaudio \
+RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pyaudio>0:${PORTSDIR}/audio/py-pyaudio \
${PYTHON_PKGNAMEPREFIX}sqlalchemy>0:${PORTSDIR}/databases/py-sqlalchemy \
${PYTHON_PKGNAMEPREFIX}sqlite3>0:${PORTSDIR}/databases/py-sqlite3 \
${PYTHON_PKGNAMEPREFIX}qt4-network>=4.4:${PORTSDIR}/net/py-qt4-network \
${PYTHON_PKGNAMEPREFIX}beautifulsoup>=3.2:${PORTSDIR}/www/py-beautifulsoup32 \
${PYTHON_PKGNAMEPREFIX}httplib2>0:${PORTSDIR}/www/py-httplib2 \
- ${PYTHON_PKGNAMEPREFIX}qt4-webkit>=4.4:${PORTSDIR}/www/py-qt4-webkit
+ ${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
USE_QT4= network_run webkit_run
-USES= gettext:run
MAN1= ${PORTNAME}.1
post-patch:
@${REINPLACE_CMD} -e 's|/usr/share/|${PREFIX}/share/|' \
${WRKSRC}/runanki
+ @${REINPLACE_CMD} -e 's|^Categories=.*|Categories=Education;Languages;KDE;Qt;Game;|' \
+ ${WRKSRC}/${PORTNAME}.desktop
do-build:
@${PYTHON_CMD} -m compileall ${WRKSRC}
@@ -56,6 +57,5 @@ post-install:
${INSTALL_DATA} ${WRKSRC}/${p} \
${PREFIX}/share/pixmaps
.endfor
- @-update-mime-database ${PREFIX}/share/mime
.include <bsd.port.mk>
diff --git a/games/anki/distinfo b/games/anki/distinfo
index f282d44b136f..aa7b9708f174 100644
--- a/games/anki/distinfo
+++ b/games/anki/distinfo
@@ -1,2 +1,2 @@
-SHA256 (python/anki-2.0.8.tgz) = dd670b02bf6b5c98dcfa9e1606ac00f6e1046f8debb5812e0f383ffe4778b868
-SIZE (python/anki-2.0.8.tgz) = 2924821
+SHA256 (python/anki-2.0.11.tgz) = 86e149e4c55ab0b02c617fe22a760c4127b128781f13c60589499f37912c8296
+SIZE (python/anki-2.0.11.tgz) = 2993290
diff --git a/games/anki/pkg-plist b/games/anki/pkg-plist
index 215781e65be9..156f9c8ea1a7 100644
--- a/games/anki/pkg-plist
+++ b/games/anki/pkg-plist
@@ -55,6 +55,9 @@ bin/anki
%%DATADIR%%/anki/importing/noteimp.py
%%DATADIR%%/anki/importing/noteimp.pyc
%%DATADIR%%/anki/importing/noteimp.pyo
+%%DATADIR%%/anki/importing/pauker.py
+%%DATADIR%%/anki/importing/pauker.pyc
+%%DATADIR%%/anki/importing/pauker.pyo
%%DATADIR%%/anki/importing/supermemo_xml.py
%%DATADIR%%/anki/importing/supermemo_xml.pyc
%%DATADIR%%/anki/importing/supermemo_xml.pyo
@@ -673,8 +676,8 @@ bin/anki
%%DATADIR%%/tests/support/invalid-ords.anki
%%DATADIR%%/tests/support/media.apkg
%%DATADIR%%/tests/support/mnemo.db
-%%DATADIR%%/tests/support/suspended12.anki
%%DATADIR%%/tests/support/supermemo1.xml
+%%DATADIR%%/tests/support/suspended12.anki
%%DATADIR%%/tests/support/text-2fields.txt
%%DATADIR%%/tests/support/text-tags.txt
%%DATADIR%%/tests/support/text-update.txt
@@ -727,13 +730,10 @@ bin/anki
%%DATADIR%%/tools/build_ui.sh
%%DATADIR%%/tools/tests.sh
share/applications/anki.desktop
-share/mime/application/x-anki.xml
-share/mime/application/x-apkg.xml
share/mime/packages/anki.xml
share/pixmaps/anki.png
share/pixmaps/anki.xpm
@dirrmtry share/mime/packages
-@dirrmtry share/mime/application
@dirrmtry share/mime
@dirrmtry share/applications
@dirrm %%DATADIR%%/tools
@@ -848,5 +848,3 @@ share/pixmaps/anki.xpm
@dirrm %%DATADIR%%/anki/importing
@dirrm %%DATADIR%%/anki
@dirrm %%DATADIR%%
-@exec %%LOCALBASE%%/bin/update-mime-database %D/share/mime > /dev/null || /usr/bin/true
-@unexec %%LOCALBASE%%/bin/update-mime-database %D/share/mime > /dev/null || /usr/bin/true