From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 86616139083 for ; Mon, 18 Dec 2017 12:37:55 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id B79A6E0F95; Mon, 18 Dec 2017 12:37:54 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 831C4E0F95 for ; Mon, 18 Dec 2017 12:37:54 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 30AE133BEF1 for ; Mon, 18 Dec 2017 12:37:53 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id B003FAE85 for ; Mon, 18 Dec 2017 12:37:51 +0000 (UTC) From: "Michael Weber" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Michael Weber" Message-ID: <1513600658.ad529e3c9365ea33c83d1d6812a235b97475c2ee.xmw@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: app-misc/anki/ X-VCS-Repository: repo/gentoo X-VCS-Files: app-misc/anki/Manifest app-misc/anki/anki-2.1.0_beta27.ebuild X-VCS-Directories: app-misc/anki/ X-VCS-Committer: xmw X-VCS-Committer-Name: Michael Weber X-VCS-Revision: ad529e3c9365ea33c83d1d6812a235b97475c2ee X-VCS-Branch: master Date: Mon, 18 Dec 2017 12:37:51 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 3c23456b-2909-4488-b1c8-c9d2a46128cb X-Archives-Hash: 49a5730f24b3a34ca27977e448f4665a commit: ad529e3c9365ea33c83d1d6812a235b97475c2ee Author: Michael Weber gentoo org> AuthorDate: Mon Dec 18 12:37:38 2017 +0000 Commit: Michael Weber gentoo org> CommitDate: Mon Dec 18 12:37:38 2017 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ad529e3c app-misc/anki: Version bump, rekeyword adm64 and x86. Package-Manager: Portage-2.3.19, Repoman-2.3.6 app-misc/anki/Manifest | 1 + app-misc/anki/anki-2.1.0_beta27.ebuild | 86 ++++++++++++++++++++++++++++++++++ 2 files changed, 87 insertions(+) diff --git a/app-misc/anki/Manifest b/app-misc/anki/Manifest index 0ae3257b74c..8d8a7f5f6ae 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 00000000000..470db2ae7ad --- /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 +}