freebsd-ports/games/anki/Makefile
Kai Knoblich e221f174d4 games/anki: Update to 2.1.14
Changelog:

* Fix a bug in the V2 scheduler that would cause partially learnt cards
  removed from filtered decks to revert to an earlier state.
* Fix a bug in the handling of relearning cards when switching back to the
  V1 scheduler.
* Fix lost space when pasting indented text.
* Limit image height relative to window height, not document height.
* Fix deck list being re-rendered unnecessarily.
* Remove the unable to connect to local port message.

https://apps.ankiweb.net/docs/changes.html#changes-in-2.1.14
2019-06-29 12:27:12 +00:00

64 lines
1.9 KiB
Makefile

# Created by: Andrew Pantyukhin <infofarmer@FreeBSD.org>
# $FreeBSD$
PORTNAME= anki
DISTVERSION= 2.1.14
CATEGORIES= games python
MASTER_SITES= https://apps.ankiweb.net/downloads/current/
DISTNAME= anki-${PORTVERSION}-source
DIST_SUBDIR= python
MAINTAINER= kai@FreeBSD.org
COMMENT= Flashcard trainer with spaced repetition
LICENSE= AGPLv3+
LICENSE_FILE= ${WRKSRC}/LICENSE
RUN_DEPENDS= lame:audio/lame \
${PYTHON_PKGNAMEPREFIX}pyaudio>0:audio/py-pyaudio@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}sqlite3>0:databases/py-sqlite3@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}decorator>0:devel/py-decorator@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}jsonschema>0:devel/py-jsonschema@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}send2trash>0:deskutils/py-send2trash@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}distro>0:sysutils/py-distro@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}markdown>0:textproc/py-markdown@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}beautifulsoup>0:www/py-beautifulsoup@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}requests>0:www/py-requests@${PY_FLAVOR}
USES= desktop-file-utils pyqt:5 python:3.6+ shebangfix tar:tgz
USE_PYQT= core_run gui_run printsupport_run sip_run webengine_run widgets_run
NO_ARCH= yes
SHEBANG_FILES= tools/runanki.system.in
WRKSRC= ${WRKDIR}/anki-${PORTVERSION}
OPTIONS_DEFINE= NLS
OPTIONS_DEFAULT= MPV
OPTIONS_GROUP= PLAYER
OPTIONS_GROUP_PLAYER= MPLAYER MPV
OPTIONS_SUB= yes
MPV_DESC= mpv media player support
MPLAYER_RUN_DEPENDS= mplayer:multimedia/mplayer
MPV_RUN_DEPENDS= mpv:multimedia/mpv
NLS_USES= gettext-runtime gettext-tools
post-patch:
@${REINPLACE_CMD} -i '' \
's|%%PREFIX%%|${PREFIX}|' \
${WRKSRC}/anki/lang.py
post-patch-NLS-off:
@${REINPLACE_CMD} -i '' '/locale/s/^/#/' \
${WRKSRC}/Makefile
do-build:
@${PYTHON_CMD} -m compileall ${WRKSRC}
@${PYTHON_CMD} -O -m compileall ${WRKSRC}
post-install:
${INSTALL_SCRIPT} ${WRKSRC}/tools/runanki.system ${STAGEDIR}${PREFIX}/bin/anki
.include <bsd.port.mk>