Stuart Henderson <s...@spacehopper.org> writes:
> On 2017/07/24 22:32, Gleydson Soares wrote:
> > Hi,
> > please find below a diff that brings anki to the latest release (2.0.45).
> > works fine here,
> 
> It's a bit cleaner if you apply this on top, otherwise ok with me:

sure. thanks.

Index: Makefile
===================================================================
RCS file: /cvs/ports/education/anki/Makefile,v
retrieving revision 1.12
diff -u -p -r1.12 Makefile
--- Makefile    8 Jul 2016 10:32:34 -0000       1.12
+++ Makefile    25 Jul 2017 12:03:27 -0000
@@ -2,7 +2,8 @@
 
 COMMENT        =       spaced learning system
 
-DISTNAME =     anki-2.0.36
+DISTNAME =     anki-2.0.45-source
+PKGNAME =      ${DISTNAME:S/-source//}
 
 CATEGORIES =   education
 
@@ -13,7 +14,7 @@ MAINTAINER =  Federico G. Schwindt <fgsch
 # AGPL3
 PERMIT_PACKAGE_CDROM = Yes
 
-MASTER_SITES = http://ankisrs.net/download/mirror/
+MASTER_SITES = https://apps.ankiweb.net/downloads/current/
 
 EXTRACT_SUFX = .tgz
 
@@ -32,6 +33,8 @@ RUN_DEPENDS = audio/py-audio \
 CONFIGURE_STYLE        = none
 
 NO_TEST =      Yes
+
+WRKDIST=       ${WRKDIR}/${DISTNAME:S/-source//}
 
 do-build:
        ${MODPY_BIN} -mcompileall -q ${WRKSRC}
Index: distinfo
===================================================================
RCS file: /cvs/ports/education/anki/distinfo,v
retrieving revision 1.10
diff -u -p -r1.10 distinfo
--- distinfo    8 Jul 2016 10:32:34 -0000       1.10
+++ distinfo    25 Jul 2017 12:03:27 -0000
@@ -1,2 +1,2 @@
-SHA256 (anki-2.0.36.tgz) = +yCCMM3FDqAtU/UhzwOSbGJ//3z3MbfSnccz06sEFxw=
-SIZE (anki-2.0.36.tgz) = 3410538
+SHA256 (anki-2.0.45-source.tgz) = PFRpNgeiBsX3DsxR6U3+xBUWAm8++ZMhNq7UNUprmYo=
+SIZE (anki-2.0.45-source.tgz) = 3421960

Reply via email to