summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Weber <xmw@gentoo.org>2017-12-18 13:37:38 +0100
committerMichael Weber <xmw@gentoo.org>2017-12-18 13:37:38 +0100
commitad529e3c9365ea33c83d1d6812a235b97475c2ee (patch)
tree403f9ead80407e1d8384fae249382c3309fcac01 /app-misc/anki
parentapp-misc/anki: Enable tests. (diff)
downloadgentoo-ad529e3c9365ea33c83d1d6812a235b97475c2ee.tar.gz
gentoo-ad529e3c9365ea33c83d1d6812a235b97475c2ee.tar.bz2
gentoo-ad529e3c9365ea33c83d1d6812a235b97475c2ee.zip
app-misc/anki: Version bump, rekeyword adm64 and x86.
Package-Manager: Portage-2.3.19, Repoman-2.3.6
Diffstat (limited to 'app-misc/anki')
-rw-r--r--app-misc/anki/Manifest1
-rw-r--r--app-misc/anki/anki-2.1.0_beta27.ebuild86
2 files changed, 87 insertions, 0 deletions
diff --git a/app-misc/anki/Manifest b/app-misc/anki/Manifest
index 0ae3257b74c0..8d8a7f5f6aec 100644
--- a/app-misc/anki/Manifest
+++ b/app-misc/anki/Manifest
@@ -7,3 +7,4 @@ DIST anki-2.0.41.tgz 3422038 BLAKE2B 43f816b47ec17381de192f71680b3df8a0dade74379
DIST anki-2.0.43.tgz 3422113 BLAKE2B 04bd8c028122dfd74fdeb92297da7bd7af04fc093e87bd156bc61558a328a8249115baf14a666eeb7a7ce7b29e2276d1ef03e028a916d178fa88080ad229aea2 SHA512 e50ee4cf6fd7be266b6d38682e28a06b51cc42a2667f35fbafa755152d47bbadb2fbd2baa771d13e73f39973a4102d626fbe7327a5de05efbc3700d7a2c9909c
DIST anki-2.0.47.tgz 3422231 BLAKE2B 192803df52a97cfe31f58914453836aa8dfd341572f812855e551faf9345506acce0176c0966c08e6b8ffac4f5ff36eb5eb76eac9ebc397ebe27e1fec0233e62 SHA512 5e4bbaac6d60506f43adfec1c4ff83285ac423405bfba57b566e7a9d632a22cf0f9ca7fe3eff3ce56c516a6cbb0112e5251319f11ba984d74bffd2c25e04c64a
DIST anki-2.1.0_beta25.tgz 4117303 BLAKE2B 0f7021c4da4efa918c285fa6bf85242e52999d0f340d4a882651cf1e2857ac015f6f99967d4a7fee6df92a2b3c4849eb838707b08abd04d534f4d21ce28eb749 SHA512 9ddf984c575df00fe9b7974f24166a0f18d63e904b3d9bd4370de506828a251efed0fb319f06dc23c6852aae46e552994c6633880603a6e746d4d242b9e627f8
+DIST anki-2.1.0_beta27.tgz 4127906 BLAKE2B b4f83cc30dc3e89f3ca17c03ba8dcfc9a487de43d8ac564d5dc83488e286c302816c8a8140aa764b596404194c5f3727218deec303ef201ccaef38b945d8b32d SHA512 50b4ece1361ecafdfe08dad04e9b622b1e8ba2224bfef7e4660c95f81cb8f525d892170548d741ff53bc19ff4c13863f488a71c31c8328511fea3203d2c345f1
diff --git a/app-misc/anki/anki-2.1.0_beta27.ebuild b/app-misc/anki/anki-2.1.0_beta27.ebuild
new file mode 100644
index 000000000000..470db2ae7ad8
--- /dev/null
+++ b/app-misc/anki/anki-2.1.0_beta27.ebuild
@@ -0,0 +1,86 @@
+# Copyright 1999-2017 Gentoo Foundation
+# 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"
+
+MY_P="${P/_/}"
+SRC_URI="https://apps.ankiweb.net/downloads/beta/${MY_P}-source.tgz -> ${P}.tgz"
+S="${WORKDIR}/${MY_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,webkit,${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
+ >=dev-python/pyaudio-0.2.4[${PYTHON_USEDEP}]
+ )
+ sound? ( media-video/mplayer )
+ 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:nosetests:${EPYTHON} ${EROOT}usr/bin/nosetests:" \
+ -i tools/tests.sh || die
+ ./tools/tests.sh || die
+}
+
+src_install() {
+ cp tools/runanki.system tools/anki
+ doicon ${PN}.png
+ domenu ${PN}.desktop
+ doman ${PN}.1
+
+ dodoc README.md README.development
+ python_domodule aqt anki
+ python_doscript tools/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
+}