public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "罗百科" <patrick@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: app-misc/anki/
Date: Thu, 20 Jun 2019 13:26:47 +0000 (UTC)	[thread overview]
Message-ID: <1561037195.993ef0de780a19cc7f973407032ada2054b38108.patrick@gentoo> (raw)

commit:     993ef0de780a19cc7f973407032ada2054b38108
Author:     Patrick Lauer <patrick <AT> gentoo <DOT> org>
AuthorDate: Thu Jun 20 13:17:45 2019 +0000
Commit:     罗百科 <patrick <AT> gentoo <DOT> org>
CommitDate: Thu Jun 20 13:26:35 2019 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=993ef0de

app-misc/anki: Bump

Fix #652000

Package-Manager: Portage-2.3.67, Repoman-2.3.15
Signed-off-by: Patrick Lauer <patrick <AT> gentoo.org>

 app-misc/anki/Manifest           |  1 +
 app-misc/anki/anki-2.1.13.ebuild | 85 ++++++++++++++++++++++++++++++++++++++++
 2 files changed, 86 insertions(+)

diff --git a/app-misc/anki/Manifest b/app-misc/anki/Manifest
index 28261ed76b8..2f3e3983b2e 100644
--- a/app-misc/anki/Manifest
+++ b/app-misc/anki/Manifest
@@ -1,2 +1,3 @@
 DIST anki-2.1.0_beta25.tgz 4117303 BLAKE2B 0f7021c4da4efa918c285fa6bf85242e52999d0f340d4a882651cf1e2857ac015f6f99967d4a7fee6df92a2b3c4849eb838707b08abd04d534f4d21ce28eb749 SHA512 9ddf984c575df00fe9b7974f24166a0f18d63e904b3d9bd4370de506828a251efed0fb319f06dc23c6852aae46e552994c6633880603a6e746d4d242b9e627f8
 DIST anki-2.1.0_beta27.tgz 4127906 BLAKE2B b4f83cc30dc3e89f3ca17c03ba8dcfc9a487de43d8ac564d5dc83488e286c302816c8a8140aa764b596404194c5f3727218deec303ef201ccaef38b945d8b32d SHA512 50b4ece1361ecafdfe08dad04e9b622b1e8ba2224bfef7e4660c95f81cb8f525d892170548d741ff53bc19ff4c13863f488a71c31c8328511fea3203d2c345f1
+DIST anki-2.1.13.tgz 4248906 BLAKE2B 82a2a9a556cbf3596af22a73a2865815561cdd408b249443fc7e144734fdc2b62317120db71475afd7b0d4027f19e53c47437132028ef78b158ec3624f54a33f SHA512 921ef48b16c0c8c83b85523aa0a5b828210b210cd51fa471f57e9aa6777a1aced30c7e24084ef0c2f14c9d846a19091923d13faaff7ed9075860fc23f8ba1cd3

diff --git a/app-misc/anki/anki-2.1.13.ebuild b/app-misc/anki/anki-2.1.13.ebuild
new file mode 100644
index 00000000000..bb38a02500c
--- /dev/null
+++ b/app-misc/anki/anki-2.1.13.ebuild
@@ -0,0 +1,85 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+PYTHON_COMPAT=( python3_6 )
+PYTHON_REQ_USE="sqlite"
+
+inherit eutils python-single-r1 xdg
+
+DESCRIPTION="A spaced-repetition memory training program (flash cards)"
+HOMEPAGE="https://apps.ankiweb.net"
+SRC_URI="https://apps.ankiweb.net/downloads/current/${P}-source.tgz -> ${P}.tgz"
+
+S="${WORKDIR}/${P}"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="latex +recording +sound test"
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+RDEPEND="${PYTHON_DEPS}
+	dev-python/PyQt5[gui,svg,webengine,widgets,${PYTHON_USEDEP}]
+	>=dev-python/httplib2-0.7.4[${PYTHON_USEDEP}]
+	dev-python/beautifulsoup:4[${PYTHON_USEDEP}]
+	dev-python/decorator[${PYTHON_USEDEP}]
+	dev-python/markdown[${PYTHON_USEDEP}]
+	dev-python/requests[${PYTHON_USEDEP}]
+	dev-python/send2trash[${PYTHON_USEDEP}]
+	recording? ( media-sound/lame )
+	sound? ( media-video/mpv )
+	latex? (
+		app-text/texlive
+		app-text/dvipng
+	)
+"
+DEPEND="${RDEPEND}
+	test? ( dev-python/nose[${PYTHON_USEDEP}] )
+"
+
+PATCHES=( "${FILESDIR}"/${PN}-2.1.0_beta25-web-folder.patch )
+
+pkg_setup() {
+	python-single-r1_pkg_setup
+}
+
+src_prepare() {
+	default
+	sed -i -e "s/updates=True/updates=False/" \
+		aqt/profiles.py || die
+}
+
+src_compile() {
+	:;
+}
+
+src_test() {
+	sed -e "s:nose=nosetests$:nose=\"${EPYTHON} ${EROOT}usr/bin/nosetests\":" \
+		-i tools/tests.sh || die
+	sed -e "s:nose=nosetests3$:nose=\"${EPYTHON} ${EROOT}usr/bin/nosetests3\":" \
+		-i tools/tests.sh || die
+	sed -e "s:which nosetests3:which ${EROOT}usr/bin/nosetests3:" \
+		-i tools/tests.sh || die
+	./tools/tests.sh || die
+}
+
+src_install() {
+	doicon ${PN}.png
+	domenu ${PN}.desktop
+	doman ${PN}.1
+
+	dodoc README.md README.development
+	python_domodule aqt anki
+	python_newscript runanki anki
+
+	# Localization files go into the anki directory:
+	python_moduleinto anki
+	python_domodule locale
+
+	# not sure if this is correct, but
+	# site-packages/aqt/mediasrv.py wants the directory
+	insinto /usr/share/anki
+	doins -r web
+}


             reply	other threads:[~2019-06-20 13:26 UTC|newest]

Thread overview: 33+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-06-20 13:26 罗百科 [this message]
  -- strict thread matches above, loose matches on Subject: below --
2024-08-19 19:04 [gentoo-commits] repo/gentoo:master commit in: app-misc/anki/ Joonas Niilola
2024-08-19 19:04 Joonas Niilola
2024-08-19 19:04 Joonas Niilola
2024-05-15  9:56 Florian Schmaus
2024-05-15  9:56 Florian Schmaus
2024-05-15  9:56 Florian Schmaus
2024-03-21  2:50 Sam James
2024-01-21 10:00 Sam James
2022-06-02  7:52 Michał Górny
2021-06-01  0:04 Sam James
2021-04-12 22:50 Sam James
2021-02-02 22:08 Sam James
2021-01-01  0:47 Michał Górny
2020-02-16 22:13 Andreas Sturmlechner
2020-02-09 16:11 Michał Górny
2019-11-17 18:51 Davide Pesavento
2018-03-01 12:55 Andreas Sturmlechner
2017-12-19  0:20 Andreas Sturmlechner
2017-12-18 12:37 Michael Weber
2017-12-14 15:32 Michael Weber
2017-11-18 14:01 Patrick Lauer
2017-09-23  6:31 Patrick Lauer
2017-04-22 13:52 Michał Górny
2017-04-20  7:59 David Seifert
2017-03-08  1:23 Mike Frysinger
2017-01-29 17:07 Patrick Lauer
2016-04-19 10:06 Patrick Lauer
2016-04-11 10:13 Patrick Lauer
2016-03-31  6:18 Patrick Lauer
2016-01-02 18:53 Agostino Sarubbo
2015-12-12  5:15 Thomas Kahle
2015-12-12  5:15 Thomas Kahle

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1561037195.993ef0de780a19cc7f973407032ada2054b38108.patrick@gentoo \
    --to=patrick@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox