commit:     a5646b8ed7f4741c0bfa7512aef38d5e72392907
Author:     Marcin Woźniak <y0rune <AT> aol <DOT> com>
AuthorDate: Sun Feb  9 12:26:48 2020 +0000
Commit:     Benda XU <heroxbd <AT> gentoo <DOT> org>
CommitDate: Mon Feb 10 00:13:50 2020 +0000
URL:        https://gitweb.gentoo.org/proj/sci.git/commit/?id=a5646b8e

dev-tex/pythontex: bump to 0.17 and drop old.

  Bump to EAPI=7.

Closes: https://github.com/gentoo/sci/pull/940
Closes: https://bugs.gentoo.org/708832

Package-Manager: Portage-2.3.85, Repoman-2.3.18

Signed-off-by: Marcin Woźniak <y0rune <AT> aol.com>
Signed-off-by: Benda Xu <heroxbd <AT> gentoo.org>

 dev-tex/pythontex/metadata.xml                     |  2 +-
 dev-tex/pythontex/pythontex-0.14-r1.ebuild         | 55 ----------------------
 ...pythontex-0.15.ebuild => pythontex-0.17.ebuild} | 12 ++---
 dev-tex/pythontex/pythontex-9999.ebuild            | 12 ++---
 4 files changed, 9 insertions(+), 72 deletions(-)

diff --git a/dev-tex/pythontex/metadata.xml b/dev-tex/pythontex/metadata.xml
index 02c7c504c..419fac610 100644
--- a/dev-tex/pythontex/metadata.xml
+++ b/dev-tex/pythontex/metadata.xml
@@ -6,7 +6,7 @@
                <name>Gentoo Science Project</name>
        </maintainer>
        <use>
-               <flag name="highlighting">PLEASE FIX MY DESCRIPTION</flag>
+               <flag name="highlighting">enable code highlight</flag>
        </use>
        <upstream>
                <remote-id type="github">gpoore/pythontex</remote-id>

diff --git a/dev-tex/pythontex/pythontex-0.14-r1.ebuild 
b/dev-tex/pythontex/pythontex-0.14-r1.ebuild
deleted file mode 100644
index 63645e881..000000000
--- a/dev-tex/pythontex/pythontex-0.14-r1.ebuild
+++ /dev/null
@@ -1,55 +0,0 @@
-# Copyright 1999-2015 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=5
-
-PYTHON_COMPAT=( python2_7 python3_{3,4} )
-
-inherit latex-package python-r1
-
-DESCRIPTION="Fast Access to Python from within LaTeX"
-HOMEPAGE="https://github.com/gpoore/pythontex";
-SRC_URI="https://github.com/gpoore/pythontex/archive/v${PV}.tar.gz -> 
${P}.tar.gz"
-
-SLOT="0"
-LICENSE="LPPL-1.3 BSD"
-KEYWORDS="~amd64"
-IUSE="highlighting"
-
-REQUIRED_USE="${PYTHON_REQUIRED_USE}"
-
-DEPEND="${PYTHON_DEPS}
-       dev-texlive/texlive-latex"
-RDEPEND="${DEPEND}
-       dev-texlive/texlive-latex
-       highlighting? ( dev-python/pygments[${PYTHON_USEDEP}] )"
-
-TEXMF=/usr/share/texmf-site
-
-src_compile() {
-       cd ${PN} || die
-       ebegin "Compiling ${PN}"
-       rm ${PN}.sty || die
-       VARTEXFONTS="${T}/fonts" latex ${PN}.ins extra || die
-       eend
-}
-
-src_install() {
-       dodoc ${PN}/README "${S}"/*rst ${PN}_quickstart/*
-
-       cd ${PN} || die
-
-       installation() {
-               if python_is_python3; then
-                       python_domodule {de,}${PN}3.py
-               else
-                       python_domodule {de,}${PN}2.py
-               fi
-               python_domodule ${PN}_{engines,utils}.py
-               python_doscript {de,}${PN}.py syncpdb.py
-               python_optimize
-       }
-       python_foreach_impl installation
-
-       latex-package_src_doinstall dtx ins sty
-}

diff --git a/dev-tex/pythontex/pythontex-0.15.ebuild 
b/dev-tex/pythontex/pythontex-0.17.ebuild
similarity index 83%
rename from dev-tex/pythontex/pythontex-0.15.ebuild
rename to dev-tex/pythontex/pythontex-0.17.ebuild
index 6526b9fc6..06e33d11a 100644
--- a/dev-tex/pythontex/pythontex-0.15.ebuild
+++ b/dev-tex/pythontex/pythontex-0.17.ebuild
@@ -1,9 +1,9 @@
-# Copyright 1999-2017 Gentoo Foundation
+# Copyright 1999-2020 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI=6
+EAPI=7
 
-PYTHON_COMPAT=( python2_7 python3_{4,5} )
+PYTHON_COMPAT=( python3_{6,7} )
 
 inherit latex-package python-r1
 
@@ -40,11 +40,7 @@ src_install() {
        cd ${PN} || die
 
        installation() {
-               if python_is_python3; then
-                       python_domodule {de,}${PN}3.py
-               else
-                       python_domodule {de,}${PN}2.py
-               fi
+               python_domodule {de,}${PN}3.py
                python_domodule ${PN}_{engines,utils}.py
                python_doscript {de,}${PN}.py syncpdb.py
                python_optimize

diff --git a/dev-tex/pythontex/pythontex-9999.ebuild 
b/dev-tex/pythontex/pythontex-9999.ebuild
index b5bc2fd02..9866a0fdb 100644
--- a/dev-tex/pythontex/pythontex-9999.ebuild
+++ b/dev-tex/pythontex/pythontex-9999.ebuild
@@ -1,9 +1,9 @@
-# Copyright 1999-2015 Gentoo Foundation
+# Copyright 1999-2020 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI=5
+EAPI=7
 
-PYTHON_COMPAT=( python2_7 python3_{3,4} )
+PYTHON_COMPAT=( python3_{6,7} )
 
 inherit latex-package python-r1 git-r3
 
@@ -41,11 +41,7 @@ src_install() {
        cd ${PN} || die
 
        installation() {
-               if python_is_python3; then
-                       python_domodule {de,}${PN}3.py
-               else
-                       python_domodule {de,}${PN}2.py
-               fi
+               python_domodule {de,}${PN}3.py
                python_domodule ${PN}_{engines,utils}.py
                python_doscript {de,}${PN}.py syncpdb.py
                python_optimize

Reply via email to