diff options
author | Jakov Smolic <jakov.smolic@sartura.hr> | 2021-02-22 20:47:17 +0100 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2021-02-22 22:19:29 +0000 |
commit | b876de3bb992662b6916ecb03539d651e1f76c96 (patch) | |
tree | ffbb4d70c7f5b35a9f2d68136f6105574ee495fa /app-portage/g-octave | |
parent | app-text/pdfminer: Port to python 3.{8,9} (diff) | |
download | gentoo-b876de3bb992662b6916ecb03539d651e1f76c96.tar.gz gentoo-b876de3bb992662b6916ecb03539d651e1f76c96.tar.bz2 gentoo-b876de3bb992662b6916ecb03539d651e1f76c96.zip |
app-portage/g-octave: Port to python 3.{8,9}
Signed-off-by: Jakov Smolic <jakov.smolic@sartura.hr>
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'app-portage/g-octave')
-rw-r--r-- | app-portage/g-octave/g-octave-0.4.1-r7.ebuild | 21 |
1 files changed, 8 insertions, 13 deletions
diff --git a/app-portage/g-octave/g-octave-0.4.1-r7.ebuild b/app-portage/g-octave/g-octave-0.4.1-r7.ebuild index b3e0f8d8643c..d787f7309a5d 100644 --- a/app-portage/g-octave/g-octave-0.4.1-r7.ebuild +++ b/app-portage/g-octave/g-octave-0.4.1-r7.ebuild @@ -1,19 +1,17 @@ -# Copyright 1999-2020 Gentoo Authors +# Copyright 1999-2021 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 -PYTHON_COMPAT=( python3_7 ) +PYTHON_COMPAT=( python3_{7..9} ) DISTUTILS_USE_SETUPTOOLS=no +inherit distutils-r1 DB_COMMIT="bdf02cbf0a8d017c6c1bddeffd6f03d5d90695ed" DB_DIR="rafaelmartins-${PN}-db-${DB_COMMIT:0:7}" -inherit distutils-r1 eutils - DESCRIPTION="A tool that generates and installs ebuilds for Octave-Forge" HOMEPAGE="https://github.com/rafaelmartins/g-octave" - SRC_URI="https://github.com/downloads/rafaelmartins/${PN}/${P}.tar.gz https://github.com/rafaelmartins/${PN}-db/archive/${DB_COMMIT}.tar.gz -> ${PN}-db-${DB_COMMIT:0:7}.tar.gz @@ -22,23 +20,20 @@ SRC_URI="https://github.com/downloads/rafaelmartins/${PN}/${P}.tar.gz LICENSE="GPL-2" SLOT="0" KEYWORDS="~amd64 ~x86" -IUSE="doc test" -RESTRICT="!test? ( test )" +IUSE="doc" -DEPEND="doc? ( >=dev-python/sphinx-1.0 )" +BDEPEND="doc? ( >=dev-python/sphinx-1.0 )" RDEPEND="sys-apps/portage" python_prepare_all() { - eapply "${WORKDIR}/${PN}-patches-${PVR}" + eapply "${WORKDIR}"/${PN}-patches-${PVR} sed -i -e 's/^has_fetch.*$/has_fetch = False/' scripts/g-octave \ || die 'failed to patch the g-octave main script' distutils-r1_python_prepare_all } python_compile_all() { - if use doc; then - emake -C docs html - fi + use doc && emake -C docs html } python_install_all() { @@ -49,7 +44,7 @@ python_install_all() { HTML_DOCS+=( docs/_build/sphinx ) fi insinto /usr/share/g-octave - doins "${DISTDIR}/${PN}-db-${DB_COMMIT:0:7}.tar.gz" + doins "${DISTDIR}"/${PN}-db-${DB_COMMIT:0:7}.tar.gz distutils-r1_python_install_all } |