public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Patrice Clement" <monsieurp@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: app-vim/vimoutliner/
Date: Sun, 21 Jun 2020 14:58:10 +0000 (UTC)	[thread overview]
Message-ID: <1592751471.f1448b354ef4d5204520103ab87b6334ca8bba51.monsieurp@gentoo> (raw)

commit:     f1448b354ef4d5204520103ab87b6334ca8bba51
Author:     Patrice Clement <monsieurp <AT> gentoo <DOT> org>
AuthorDate: Sun Jun 21 12:45:44 2020 +0000
Commit:     Patrice Clement <monsieurp <AT> gentoo <DOT> org>
CommitDate: Sun Jun 21 14:57:51 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f1448b35

app-vim/vimoutliner: add back Python 3 support.

Closes: https://bugs.gentoo.org/708392
Package-Manager: Portage-2.3.99, Repoman-2.3.22
Signed-off-by: Patrice Clement <monsieurp <AT> gentoo.org>

 .../vimoutliner-0.4.0_p20180301-r2.ebuild          | 22 +++++++++++++---------
 1 file changed, 13 insertions(+), 9 deletions(-)

diff --git a/app-vim/vimoutliner/vimoutliner-0.4.0_p20180301-r2.ebuild b/app-vim/vimoutliner/vimoutliner-0.4.0_p20180301-r2.ebuild
index e35b5c0b147..67a530a89de 100644
--- a/app-vim/vimoutliner/vimoutliner-0.4.0_p20180301-r2.ebuild
+++ b/app-vim/vimoutliner/vimoutliner-0.4.0_p20180301-r2.ebuild
@@ -3,7 +3,7 @@
 
 EAPI=6
 
-PYTHON_COMPAT=( python2_7 )
+PYTHON_COMPAT=( python{3_6,3_7,3_8} )
 
 inherit python-single-r1 vim-plugin vcs-snapshot
 
@@ -22,16 +22,19 @@ REQUIRED_USE="${PYTHON_REQUIRED_USE}"
 VIM_PLUGIN_HELPFILES="vimoutliner"
 VIM_PLUGIN_MESSAGES="filetype"
 
-RDEPEND="${PYTHON_DEPS}
-	$(python_gen_cond_dep '
-		dev-python/autopep8[${PYTHON_MULTI_USEDEP}]
-	')"
-DEPEND="${RDEPEND}"
+RDEPEND="
+	${PYTHON_DEPS}
+	$(python_gen_cond_dep 'dev-python/autopep8[${PYTHON_MULTI_USEDEP}]')
+"
+
+DEPEND="
+	${RDEPEND}"
 
 src_prepare() {
 	default
 
-	sed -i -e '1s:^:#!/usr/bin/python\n:' vimoutliner/scripts/otl2latex/otl2latex.py || die
+	sed -e '1s:^:#!/usr/bin/python\n:' \
+		-i "${S}"/vimoutliner/scripts/otl2latex/otl2latex.py || die
 	find "${S}" -type f -exec chmod a+r {} \; || die
 }
 
@@ -39,7 +42,8 @@ src_compile() {
 	local pyscript _pyscript
 	for pyscript in $(find "${S}" -type f -name \*.py); do
 		_pyscript=$(basename "${pyscript}")
-		[ ${_pyscript} == "otl.py" ] && continue
-		python_fix_shebang -q "${pyscript}"
+		[[ ${_pyscript} == "otl.py" ]] && continue
+		2to3 -w -n --no-diffs "${pyscript}" >& /dev/null || die
+		python_fix_shebang -f -q "${pyscript}"
 	done
 }


             reply	other threads:[~2020-06-21 14:58 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-06-21 14:58 Patrice Clement [this message]
  -- strict thread matches above, loose matches on Subject: below --
2022-06-10 18:08 [gentoo-commits] repo/gentoo:master commit in: app-vim/vimoutliner/ Matt Turner
2021-05-25 16:05 Michał Górny
2021-01-01  1:47 Sam James
2021-01-01  1:46 Sam James
2020-11-21 21:56 Sergei Trofimovich
2020-06-21 14:58 Patrice Clement
2020-06-01  0:18 Matt Turner
2020-05-15 17:33 Sergei Trofimovich
2020-05-07 13:18 Michał Górny
2020-05-06  6:41 Sergei Trofimovich
2020-05-03 21:55 Sergei Trofimovich
2020-02-09 16:18 Michał Górny
2019-08-29 11:39 David Seifert
2019-07-22  9:25 Michał Górny
2018-05-30 21:29 Patrice Clement
2017-05-29 23:25 Patrice Clement
2017-05-29 23:25 Patrice Clement
2016-12-21 23:52 Patrice Clement
2016-12-07 22:48 Patrice Clement

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1592751471.f1448b354ef4d5204520103ab87b6334ca8bba51.monsieurp@gentoo \
    --to=monsieurp@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox