forked from calculate/calculate-overlay
parent
3a36bf1b6a
commit
144bc2722d
@ -0,0 +1 @@
|
||||
DIST mnemosyne-2.9.tar.gz 16301782 BLAKE2B 4f0045f047e8b0550bb47d4c1abb89df40225b3d1b244c15dca21c8802b6b7345e3fae0224d6dcd2d7426ef50a0c66688a2c90af4cbc52775de3d4064bb5ddf1 SHA512 f1f36cba38e30de7d15f2761999357db07bd2a3231788398d5633a3b8f2efed8b5bb27b3ce0335ff468eb1bde4928e2b3e34aa312e449c8610b202a487ef8b83
|
@ -0,0 +1,15 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="project">
|
||||
<email>support@calculate.ru</email>
|
||||
<name>Mir Calculate</name>
|
||||
<description>Calculate Overlay</description>
|
||||
</maintainer>
|
||||
<longdescription lang="en">Efficient learning tool with powerful digital flash-cards.</longdescription>
|
||||
<upstream>
|
||||
<remote-id type="github">mnemosyne-proj/mnemosyne</remote-id>
|
||||
<changelog>https://github.com/mnemosyne-proj/mnemosyne/blob/master/ChangeLog</changelog>
|
||||
<bugs-to>https://github.com/mnemosyne-proj/mnemosyne/issues</bugs-to>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
@ -0,0 +1,61 @@
|
||||
# Copyright 1999-2023 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
PYTHON_COMPAT=( python3_{10..11} )
|
||||
DISTUTILS_USE_PEP517=setuptools
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="Efficient learning tool with powerful digital flash-cards"
|
||||
HOMEPAGE="https://mnemosyne-proj.org/"
|
||||
|
||||
SRC_URI="https://github.com/mnemosyne-proj/mnemosyne/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz"
|
||||
KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~riscv ~x86"
|
||||
|
||||
LICENSE="AGPL-3+ LGPL-3+"
|
||||
SLOT="0"
|
||||
IUSE="latex"
|
||||
|
||||
DEPEND="
|
||||
>=dev-python/PyQt5-5.6[gui,widgets,${PYTHON_USEDEP}]
|
||||
"
|
||||
RDEPEND="${DEPEND}
|
||||
dev-python/argon2-cffi[${PYTHON_USEDEP}]
|
||||
>=dev-python/cheroot-5.0.0[${PYTHON_USEDEP}]
|
||||
dev-python/matplotlib[${PYTHON_USEDEP}]
|
||||
dev-python/pillow[${PYTHON_USEDEP}]
|
||||
dev-python/pyopengl[${PYTHON_USEDEP}]
|
||||
>=dev-python/PyQtWebEngine-5.6[${PYTHON_USEDEP}]
|
||||
>=dev-python/webob-1.4.0[${PYTHON_USEDEP}]
|
||||
latex? (
|
||||
app-text/dvipng
|
||||
virtual/latex-base
|
||||
)
|
||||
"
|
||||
|
||||
distutils_enable_sphinx mnemosyne/libmnemosyne/docs
|
||||
distutils_enable_tests nose
|
||||
|
||||
python_compile() {
|
||||
emake -C mnemosyne/pyqt_ui
|
||||
$(cd mnemosyne/pyqt_ui && \
|
||||
pyrcc5 -o mnemosyne_rc.py mnemosyne.qrc || die "pyrcc5 failed")
|
||||
emake -C po update && emake -C po
|
||||
esetup.py build "${@}"
|
||||
|
||||
distutils_pep517_install "${BUILD_DIR}/install"
|
||||
}
|
||||
|
||||
python_test() {
|
||||
emake -C po ../mo/de/LC_MESSAGES/mnemosyne.mo
|
||||
${EPYTHON} -m nose -v --exe tests || die "Tests fail with ${EPYTHON}"
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
elog ""
|
||||
elog "The text-to-speech support would be disabled since gTTS is absent in Gentoo."
|
||||
elog ""
|
||||
elog "The Google translate support would be disabled since google_trans is absent in Gentoo."
|
||||
elog ""
|
||||
}
|
Loading…
Reference in new issue