Commit: 3ad4de4962349eb02095cee29c47fecb829dba57 Parent: 0f59d8543a04a48e724059598f65db1d78ebf7fa Author: Randy Palamar Date: Thu, 12 May 2022 07:44:49 -0600 remove app-misc/anki from overlay Diffstat:
D | app-misc/anki/Manifest | | | 1 | - |
D | app-misc/anki/anki-2.1.16.ebuild | | | 93 | ------------------------------------------------------------------------------- |
D | app-misc/anki/files/anki-2.1.0_beta25-web-folder.patch | | | 11 | ----------- |
D | app-misc/anki/files/anki-2.1.15-mpv-args.patch | | | 14 | -------------- |
4 files changed, 0 insertions(+), 119 deletions(-)
diff --git a/app-misc/anki/Manifest b/app-misc/anki/Manifest @@ -1 +0,0 @@ -DIST anki-2.1.16.tar.gz 1222328 BLAKE2B ea8b85e1bd275500de3516d8fbb0cb92ad7086637ae5858a243715cdef1abc04061c92af40a296ad37604cdccad1cb407af338c18101fe2739fbc357f737817a SHA512 981b4da7a2a91432b561cb2cf19b7b21815e1cd5e8433a42a7df2a4c35a6c661f9e07dcf1c4eb6e90348898808d5ad265377aad5dfa93c2a7a19bb01af5d3316 diff --git a/app-misc/anki/anki-2.1.16.ebuild b/app-misc/anki/anki-2.1.16.ebuild @@ -1,93 +0,0 @@ -# Copyright 1999-2020 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -PYTHON_COMPAT=( python3_{7..9} ) -PYTHON_REQ_USE="sqlite" - -inherit desktop optfeature python-single-r1 xdg - -DESCRIPTION="A spaced-repetition memory training program (flash cards)" -HOMEPAGE="https://apps.ankiweb.net" -SRC_URI="https://github.com/ankitects/anki/archive/${PV}.tar.gz -> ${P}.tar.gz" - -LICENSE="AGPL-3+ BSD MIT GPL-3+ CC-BY-SA-3.0 Apache-2.0 CC-BY-2.5" -SLOT="0" -KEYWORDS="~amd64 ~x86" -IUSE="test" -RESTRICT="!test? ( test )" -REQUIRED_USE="${PYTHON_REQUIRED_USE}" - -RDEPEND="${PYTHON_DEPS} - $(python_gen_cond_dep ' - >=dev-python/PyQt5-5.12[gui,svg,widgets,${PYTHON_MULTI_USEDEP}] - >=dev-python/PyQtWebEngine-5.12[${PYTHON_MULTI_USEDEP}] - >=dev-python/httplib2-0.7.4[${PYTHON_MULTI_USEDEP}] - dev-python/beautifulsoup:4[${PYTHON_MULTI_USEDEP}] - dev-python/decorator[${PYTHON_MULTI_USEDEP}] - dev-python/jsonschema[${PYTHON_MULTI_USEDEP}] - dev-python/markdown[${PYTHON_MULTI_USEDEP}] - dev-python/requests[${PYTHON_MULTI_USEDEP}] - dev-python/send2trash[${PYTHON_MULTI_USEDEP}] - ') -" -BDEPEND="test? ( - ${RDEPEND} - $(python_gen_cond_dep ' - dev-python/nose[${PYTHON_MULTI_USEDEP}] - dev-python/mock[${PYTHON_MULTI_USEDEP}] - ') - ) -" - -PATCHES=( - "${FILESDIR}"/${PN}-2.1.15-mpv-args.patch - "${FILESDIR}"/${PN}-2.1.0_beta25-web-folder.patch -) - -src_prepare() { - default - sed -i -e "s/updates=True/updates=False/" \ - aqt/profiles.py || die -} - -src_compile() { - ./tools/build_ui.sh || die -} - -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 -} - -pkg_postinst() { - xdg_pkg_postinst - optfeature "LaTeX in cards" "app-text/texlive app-text/dvipng" - optfeature "Record sound" "dev-python/pyaudio media-sound/lame" - optfeature "Playback sound" media-video/mpv media-video/mplayer -} diff --git a/app-misc/anki/files/anki-2.1.0_beta25-web-folder.patch b/app-misc/anki/files/anki-2.1.0_beta25-web-folder.patch @@ -1,11 +0,0 @@ ---- anki-2.1.0beta25/aqt/mediasrv.py -+++ anki-2.1.0beta25/aqt/mediasrv.py -@@ -13,7 +13,7 @@ - # locate web folder in source/binary distribution - def _getExportFolder(): - # running from source? -- srcFolder = os.path.join(os.path.dirname(__file__), "..") -+ srcFolder = os.path.join(os.path.dirname(__file__), "..", "..", "..", "..", "share", "anki") - webInSrcFolder = os.path.abspath(os.path.join(srcFolder, "web")) - if os.path.exists(webInSrcFolder): - return webInSrcFolder diff --git a/app-misc/anki/files/anki-2.1.15-mpv-args.patch b/app-misc/anki/files/anki-2.1.15-mpv-args.patch @@ -1,14 +0,0 @@ ---- a/anki/mpv.py -+++ b/anki/mpv.py -@@ -104,9 +104,9 @@ class MPVBase: - """ - self.argv = [self.executable] - self.argv += self.default_argv -- self.argv += ["--input-ipc-server", self._sock_filename] -+ self.argv += ["--input-ipc-server="+self._sock_filename] - if self.window_id is not None: -- self.argv += ["--wid", str(self.window_id)] -+ self.argv += ["--wid="+str(self.window_id)] - - def _start_process(self): - """Start the mpv process.