# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
PYTHON_COMPAT=( python3_{11..14} )
PYTHON_REQ_USE="sqlite"
inherit python-any-r1
MY_P="elliptic_curves-${PV}"
DESCRIPTION="Sage's elliptic curves databases"
HOMEPAGE="https://www.sagemath.org"
SRC_URI="mirror://sageupstream/elliptic_curves/${MY_P}.tar.bz2"
S="${WORKDIR}"/${MY_P}
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86 ~x64-macos"
DEPEND="${PYTHON_DEPS}"
src_prepare(){
# copy a slightly modified spkg-install. We used to have it in the tarball
# but when we changed to new style git spkg tarball we lost the file
cp "${FILESDIR}"/spkg-install.py .
default
}
src_install() {
SAGE_SHARE="${ED}/usr/share/sage" "${PYTHON}" spkg-install.py
}