portage-overlay

personal portage ebuild repository
git clone anongit@rnpnr.xyz:portage-overlay.git
Log | Files | Refs | Feed | README

Commit: 3599932f3917a80c0dbb55f2f1b2c18b645d5da0
Parent: abb30cc2e10b9520943983829bb30a1af8cd35de
Author: 0x766F6964
Date:   Wed, 30 Dec 2020 01:24:31 -0700

bump anki to 2.1.16

versions after this will require a rework

also the github releases don't include locale files
so the lines in the ebuild are commented for now

Diffstat:
Mapp-misc/anki/Manifest | 2+-
Dapp-misc/anki/anki-2.1.15.ebuild | 93-------------------------------------------------------------------------------
Aapp-misc/anki/anki-2.1.16.ebuild | 93+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Dapp-misc/anki/metadata.xml | 21---------------------
4 files changed, 94 insertions(+), 115 deletions(-)

diff --git a/app-misc/anki/Manifest b/app-misc/anki/Manifest @@ -1 +1 @@ -DIST anki-2.1.15.tgz 4269571 BLAKE2B 00b351f5ffacb363642e02bf806bcd7c0d9446c9815a75328e7fa37c848b271b135510de17cc012e8cc96d8a52a183a49de84b6f85f562a370255bd36c6f866e SHA512 f3acfa6ff62d43fa461efddd81a8570304ada53b97bd494fdbbe0a0439700d7a52aa62ead31cbaed731be0df96a6cc845a7cf92dcf65f3080dc63282fe5941c3 +DIST anki-2.1.16.tar.gz 1222328 BLAKE2B ea8b85e1bd275500de3516d8fbb0cb92ad7086637ae5858a243715cdef1abc04061c92af40a296ad37604cdccad1cb407af338c18101fe2739fbc357f737817a SHA512 981b4da7a2a91432b561cb2cf19b7b21815e1cd5e8433a42a7df2a4c35a6c661f9e07dcf1c4eb6e90348898808d5ad265377aad5dfa93c2a7a19bb01af5d3316 diff --git a/app-misc/anki/anki-2.1.15.ebuild b/app-misc/anki/anki-2.1.15.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,8} ) -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://apps.ankiweb.net/downloads/archive/${P}-source.tgz -> ${P}.tgz" - -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() { - :; -} - -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/anki-2.1.16.ebuild b/app-misc/anki/anki-2.1.16.ebuild @@ -0,0 +1,93 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{7,8} ) +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/metadata.xml b/app-misc/anki/metadata.xml @@ -1,21 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> -<pkgmetadata> - <maintainer type="person"> - <email>patrick@gentoo.org</email> - <name>Patrick Lauer</name> - </maintainer> - <longdescription lang="en"> - Anki is a program designed to help you remember facts - (such as words and phrases in a foreign language) as - quickly, easily and efficiently as possible. - </longdescription> - <use> - <flag name="recording"> - Enable support for audio recording - </flag> - <flag name="sound"> - Enable support for adding sound to cards - </flag> - </use> -</pkgmetadata>