summaryrefslogtreecommitdiff
path: root/misc/py-anki2
diff options
context:
space:
mode:
authorwiz <wiz>2014-10-20 10:22:19 +0000
committerwiz <wiz>2014-10-20 10:22:19 +0000
commita190ae9bbf10bcb6e107a1cd91bd79cf0ec14719 (patch)
tree50c832ab10ac9f6f975d44a22661efba7972f3ef /misc/py-anki2
parent6aa3a8b4c81acbbde649fbe482519a9ff2afd379 (diff)
downloadpkgsrc-a190ae9bbf10bcb6e107a1cd91bd79cf0ec14719.tar.gz
Update to 2.0.31. Split off not always needed dependencies
(lame, mplayer, portaudio) into options and default them to off. Changes in 2.0.31 Fix a problem where large regular syncs sometimes timed out. Changes in 2.0.30 If youâre using the alternate build on an older Mac, this upgrade is necessary to keep syncing. Disable embedded fonts on OSX to prevent crashes. The Browse screen on OSX now deletes cards when you press Fn+Del, not Del. Fix a syncing bug triggered by importing apkgs with custom deck options. Fix saved searches not being synced (thanks to Houssam). Fix "check database" not saving changes after fixing an AnkiDroid problem.
Diffstat (limited to 'misc/py-anki2')
-rw-r--r--misc/py-anki2/Makefile9
-rw-r--r--misc/py-anki2/distinfo8
-rw-r--r--misc/py-anki2/options.mk18
3 files changed, 26 insertions, 9 deletions
diff --git a/misc/py-anki2/Makefile b/misc/py-anki2/Makefile
index c906563020b..c0063c6b6b8 100644
--- a/misc/py-anki2/Makefile
+++ b/misc/py-anki2/Makefile
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.24 2014/10/01 11:41:11 wiz Exp $
+# $NetBSD: Makefile,v 1.25 2014/10/20 10:22:19 wiz Exp $
-DISTNAME= anki-2.0.29
+DISTNAME= anki-2.0.31
PKGNAME= ${PYPKGPREFIX}-${DISTNAME:C/anki/anki2/}
CATEGORIES= misc x11
MASTER_SITES= http://ankisrs.net/download/mirror/
@@ -12,9 +12,6 @@ COMMENT= Flashcard learning program (v2)
LICENSE= gnu-gpl-v3
DEPENDS+= ${PYPKGPREFIX}-qt4>=4.4:../../x11/py-qt4
-DEPENDS+= lame-[0-9]*:../../audio/lame
-DEPENDS+= mplayer-[0-9]*:../../multimedia/mplayer
-DEPENDS+= portaudio-devel-[0-9]*:../../audio/portaudio-devel
# Actually, these hurt more than they help.
# anki comes with its own version of the two, and if the pkgsrc versions
# are newer, it might break
@@ -25,6 +22,8 @@ DEPENDS+= portaudio-devel-[0-9]*:../../audio/portaudio-devel
PYTHON_VERSIONS_INCOMPATIBLE= 33 34 34 # not yet ported as of 2.0.21
+.include "options.mk"
+
USE_PKGLOCALEDIR= yes
USE_LANGUAGES= # none
CONFLICTS+= ${PYPKGPREFIX}-libanki-[0-9]* ${PYPKGPREFIXP}-anki-[0-9]*
diff --git a/misc/py-anki2/distinfo b/misc/py-anki2/distinfo
index 09e728b97a4..bb82056c490 100644
--- a/misc/py-anki2/distinfo
+++ b/misc/py-anki2/distinfo
@@ -1,6 +1,6 @@
-$NetBSD: distinfo,v 1.21 2014/10/01 11:41:11 wiz Exp $
+$NetBSD: distinfo,v 1.22 2014/10/20 10:22:19 wiz Exp $
-SHA1 (anki-2.0.29.tgz) = 347b5954c423129aa97675d1bd3ff1e9f87b81f6
-RMD160 (anki-2.0.29.tgz) = 470975b9babfd0441321a736710444b2fb303140
-Size (anki-2.0.29.tgz) = 3324323 bytes
+SHA1 (anki-2.0.31.tgz) = d5b10afc268e95f02acd9abc603c3b6a07f6c446
+RMD160 (anki-2.0.31.tgz) = 58b8d36f23b97f7e3a5d791c857c408bdf48a450
+Size (anki-2.0.31.tgz) = 3329290 bytes
SHA1 (patch-Makefile) = 7148ed542b1f1be4e75274a82fda4863bf40f861
diff --git a/misc/py-anki2/options.mk b/misc/py-anki2/options.mk
new file mode 100644
index 00000000000..e346dc5d898
--- /dev/null
+++ b/misc/py-anki2/options.mk
@@ -0,0 +1,18 @@
+# $NetBSD: options.mk,v 1.1 2014/10/20 10:22:19 wiz Exp $
+
+PKG_OPTIONS_VAR= PKG_OPTIONS.py-anki2
+PKG_SUPPORTED_OPTIONS= lame mplayer portaudio
+
+.include "../../mk/bsd.options.mk"
+
+.if !empty(PKG_OPTIONS:Mlame)
+DEPENDS+= lame-[0-9]*:../../audio/lame
+.endif
+
+.if !empty(PKG_OPTIONS:Mmplayer)
+DEPENDS+= mplayer-[0-9]*:../../multimedia/mplayer
+.endif
+
+.if !empty(PKG_OPTIONS:Mportaudio)
+DEPENDS+= portaudio-devel-[0-9]*:../../audio/portaudio-devel
+.endif