summaryrefslogtreecommitdiff
path: root/misc/py-anki2/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'misc/py-anki2/Makefile')
-rw-r--r--misc/py-anki2/Makefile27
1 files changed, 14 insertions, 13 deletions
diff --git a/misc/py-anki2/Makefile b/misc/py-anki2/Makefile
index f3b5a578db9..3228f367ab4 100644
--- a/misc/py-anki2/Makefile
+++ b/misc/py-anki2/Makefile
@@ -1,8 +1,7 @@
-# $NetBSD: Makefile,v 1.3 2013/01/01 19:14:45 joerg Exp $
+# $NetBSD: Makefile,v 1.4 2013/01/21 14:35:22 wiz Exp $
-DISTNAME= anki-2.0.3
+DISTNAME= anki-2.0.5
PKGNAME= ${PYPKGPREFIX}-${DISTNAME:C/anki/anki2/}
-PKGREVISION= 2
CATEGORIES= misc x11
MASTER_SITES= http://ankisrs.net/download/mirror/
EXTRACT_SUFX= .tgz
@@ -16,34 +15,34 @@ 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
-DEPENDS+= ${PYPKGPREFIX}-beautifulsoup>=3.2:../../www/py-beautifulsoup
-DEPENDS+= ${PYPKGPREFIX}-httplib2-[0-9]*:../../www/py-httplib2
+# 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
+#DEPENDS+= ${PYPKGPREFIX}-beautifulsoup>=3.2:../../www/py-beautifulsoup
+#DEPENDS+= ${PYPKGPREFIX}-httplib2-[0-9]*:../../www/py-httplib2
# XXX: python portaudio
-DIST_SUBDIR= anki2-2.0.3v2
-
USE_PKGLOCALEDIR= yes
USE_LANGUAGES= # none
CONFLICTS+= ${PYPKGPREFIX}-libanki-[0-9]* ${PYPKGPREFIXP}-anki-[0-9]*
INSTALLATION_DIRS= bin ${PKGMANDIR}/man1 share/pixmaps share/applications
-REPLACE_PYTHON= anki
+REPLACE_PYTHON= anki/anki runanki
USE_TOOLS+= bash:run
-REPLACE_BASH= libanki/tools/tests.sh libanki/tools/translate.sh \
- tools/build_ui.sh tools/translate.sh
+REPLACE_BASH= tools/tests.sh tools/build_ui.sh
SUBST_CLASSES+= inst
SUBST_SED.inst+= -e 's,/usr/share/anki,${PREFIX}/share/anki,'
-SUBST_FILES.inst+= anki
+SUBST_FILES.inst+= anki/anki runanki
SUBST_STAGE.inst= pre-build
SUBST_MESSAGE.inst= Fixing installation path.
SUBST_CLASSES+= lame
SUBST_SED.lame+= -e 's,/usr/local,${PREFIX},'
-SUBST_FILES.lame+= libanki/anki/sound.py
+SUBST_FILES.lame+= anki/sound.py
SUBST_STAGE.lame= pre-build
SUBST_MESSAGE.lame= Fixing path to lame.
@@ -58,9 +57,11 @@ MAKE_FLAGS+= PREFIX=${PREFIX} DESTDIR=${DESTDIR}
post-extract:
${RM} -rf ${WRKSRC}/libanki/thirdparty
-# due to patch-Makefile
+# first due to patch-Makefile
+# second: linux shared libraries won't help in the general case
post-install:
rm ${DESTDIR}${PREFIX}/share/anki/Makefile.orig
+ rm ${DESTDIR}${PREFIX}/share/anki/thirdparty/py*/_portaudio.so
.include "../../lang/python/application.mk"
.include "../../sysutils/desktop-file-utils/desktopdb.mk"