UPDATE: education/anki to 2.0.45

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

UPDATE: education/anki to 2.0.45

Gleydson Soares-3
Hi,
please find below a diff that brings anki to the latest release (2.0.45).
works fine here,

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 00:36:57 -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 00:36:57 -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 | Threaded
Open this post in threaded view
|

Re: UPDATE: education/anki to 2.0.45

Stuart Henderson
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:


--- Makefile- Tue Jul 25 11:34:24 2017
+++ Makefile Tue Jul 25 11:34:48 2017
@@ -2,8 +2,8 @@
 
 COMMENT = spaced learning system
 
-DISTNAME = anki-2.0.45-source
-PKGNAME = ${DISTNAME:S/-source//}
+DISTNAME = anki-2.0.45
+EXTRACT_SUFX = -source.tgz
 
 CATEGORIES = education
 
@@ -16,8 +16,6 @@ PERMIT_PACKAGE_CDROM = Yes
 
 MASTER_SITES = https://apps.ankiweb.net/downloads/current/
 
-EXTRACT_SUFX = .tgz
-
 MODULES = lang/python
 
 MODPY_ADJ_FILES = anki/anki
@@ -33,8 +31,6 @@ RUN_DEPENDS = audio/py-audio \
 CONFIGURE_STYLE = none
 
 NO_TEST = Yes
-
-WRKDIST= ${WRKDIR}/${DISTNAME:S/-source//}
 
 do-build:
  ${MODPY_BIN} -mcompileall -q ${WRKSRC}

Reply | Threaded
Open this post in threaded view
|

Re: UPDATE: education/anki to 2.0.45

Nicola Tomasone
What about this?

--- Makefile Tue Jul 25 13:30:27 2017
+++ Makefile Tue Jul 25 13:36:34 2017
@@ -2,9 +2,14 @@
 
 COMMENT = spaced learning system
 
-DISTNAME = anki-2.0.45
-EXTRACT_SUFX = -source.tgz
+V = 2.0.45
 
+DISTNAME = anki-${V}
+
+PKGNAME = anki-${V}
+
+DISTFILES = anki-${V}-source${EXTRACT_SUFX}
+
 CATEGORIES = education
 
 HOMEPAGE = http://ankisrs.net/
@@ -15,6 +20,8 @@
 PERMIT_PACKAGE_CDROM = Yes
 
 MASTER_SITES = https://apps.ankiweb.net/downloads/current/
+
+EXTRACT_SUFX = .tgz
 
 MODULES = lang/python
 

Reply | Threaded
Open this post in threaded view
|

Re: UPDATE: education/anki to 2.0.45

Gleydson Soares-3
In reply to this post by Stuart Henderson

Stuart Henderson <[hidden email]> 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 | Threaded
Open this post in threaded view
|

Re: UPDATE: education/anki to 2.0.45

Gleydson Soares-3
I dont know how that previous diff slipped in :)
So here goes again,

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 13:41:06 -0000
@@ -2,7 +2,8 @@
 
 COMMENT = spaced learning system
 
-DISTNAME = anki-2.0.36
+DISTNAME = anki-2.0.45
+EXTRACT_SUFX = -source.tgz
 
 CATEGORIES = education
 
@@ -13,9 +14,7 @@ MAINTAINER = Federico G. Schwindt <fgsch
 # AGPL3
 PERMIT_PACKAGE_CDROM = Yes
 
-MASTER_SITES = http://ankisrs.net/download/mirror/
-
-EXTRACT_SUFX = .tgz
+MASTER_SITES = https://apps.ankiweb.net/downloads/current/
 
 MODULES = lang/python
 
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 13:41:06 -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