aboutsummaryrefslogtreecommitdiff
path: root/games/anki
diff options
context:
space:
mode:
authorRusmir Dusko <nemysis@FreeBSD.org>2014-01-15 15:45:13 +0000
committerRusmir Dusko <nemysis@FreeBSD.org>2014-01-15 15:45:13 +0000
commit5ba0399099105b710ec20aaaf4d744c1f49c38e0 (patch)
tree2dc23fb4c091e749ac32833ab0ec575942a047cc /games/anki
parent1d9209f8e95dc58e44fc54b905b0fc9e0967b079 (diff)
downloadports-5ba0399099105b710ec20aaaf4d744c1f49c38e0.tar.gz
ports-5ba0399099105b710ec20aaaf4d744c1f49c38e0.zip
Notes
Diffstat (limited to 'games/anki')
-rw-r--r--games/anki/Makefile13
-rw-r--r--games/anki/distinfo4
-rw-r--r--games/anki/files/patch-anki__lang.py11
-rw-r--r--games/anki/files/patch-runanki10
4 files changed, 11 insertions, 27 deletions
diff --git a/games/anki/Makefile b/games/anki/Makefile
index 312a6ad38eac..71d3b63c59f1 100644
--- a/games/anki/Makefile
+++ b/games/anki/Makefile
@@ -2,8 +2,7 @@
# $FreeBSD$
PORTNAME= anki
-PORTVERSION= 2.0.19
-PORTREVISION= 1
+PORTVERSION= 2.0.20
CATEGORIES= games python
MASTER_SITES= http://ankisrs.net/download/mirror/
EXTRACT_SUFX= .tgz
@@ -37,9 +36,15 @@ NLS_USES= gettext:run
.include <bsd.port.options.mk>
post-patch:
- @${REINPLACE_CMD} \
- -e 's|^Categories=.*|Categories=Education;Languages;KDE;Qt;Game;|' \
+ @${REINPLACE_CMD} -e \
+ 's|^Categories=.*|Categories=Education;Languages;KDE;Qt;Game;|' \
${WRKSRC}/${PORTNAME}.desktop
+ @${REINPLACE_CMD} -e 's|/usr/bin/env python|${PYTHON_CMD}| ; \
+ s|/usr/share/anki|/usr/local/share/anki|' \
+ ${WRKSRC}/runanki
+ @${REINPLACE_CMD} -e \
+ 's|/usr/share/anki/locale|/usr/local/share/locale|' \
+ ${WRKSRC}/anki/lang.py
@${FIND} ${WRKSRC} -name "*.bak" -delete -or -name "*.orig" -delete
.if ! ${PORT_OPTIONS:MNLS}
diff --git a/games/anki/distinfo b/games/anki/distinfo
index 301b0bf63538..53792a0a838e 100644
--- a/games/anki/distinfo
+++ b/games/anki/distinfo
@@ -1,2 +1,2 @@
-SHA256 (python/anki-2.0.19.tgz) = 799a67d828b1e3b6ba9ef8372f7d2ce90d327b8bf8f25175e3d3dc5e0908f300
-SIZE (python/anki-2.0.19.tgz) = 3182134
+SHA256 (python/anki-2.0.20.tgz) = 155a8495e45d506b6af2184970ecacbb4647c02dc31804a75ba810adce2347f0
+SIZE (python/anki-2.0.20.tgz) = 3187458
diff --git a/games/anki/files/patch-anki__lang.py b/games/anki/files/patch-anki__lang.py
deleted file mode 100644
index 33fcbc323185..000000000000
--- a/games/anki/files/patch-anki__lang.py
+++ /dev/null
@@ -1,11 +0,0 @@
---- ./anki/lang.py.orig 2013-10-11 06:12:53.000000000 +0200
-+++ ./anki/lang.py 2013-12-12 21:03:11.000000000 +0100
-@@ -76,7 +76,7 @@
- if not os.path.isdir(dir):
- dir = os.path.join(os.path.dirname(sys.argv[0]), "locale")
- if not os.path.isdir(dir):
-- dir = "/usr/share/anki/locale"
-+ dir = "/usr/local/share/locale"
- return dir
-
- def setLang(lang, local=True):
diff --git a/games/anki/files/patch-runanki b/games/anki/files/patch-runanki
deleted file mode 100644
index dde2a7f24ce7..000000000000
--- a/games/anki/files/patch-runanki
+++ /dev/null
@@ -1,10 +0,0 @@
---- ./runanki.orig 2012-12-21 09:50:41.000000000 +0100
-+++ ./runanki 2013-12-12 21:03:11.000000000 +0100
-@@ -1,6 +1,6 @@
- #!/usr/bin/env python
-
- import sys
--sys.path.insert(0, "/usr/share/anki")
-+sys.path.insert(0, "/usr/local/share/anki")
- import aqt
- aqt.run()