dev-vcs/gitstats: remove old python2 versions

Bug: https://bugs.gentoo.org/735338
Package-Manager: Portage-3.0.8, Repoman-3.0.1
Signed-off-by: Göktürk Yüksek <gokturk@gentoo.org>
This commit is contained in:
Göktürk Yüksek 2020-11-24 17:23:33 -05:00
parent adb3311541
commit 42c388fe90
No known key found for this signature in database
GPG Key ID: 604B9FFDB7C65507
5 changed files with 0 additions and 118 deletions

View File

@ -1,3 +1 @@
DIST gitstats-0_pre131024.tar.xz 32104 BLAKE2B 87288f2e29fede41aaaf2ffdc69aa6993c753992a1c5494b0f16ae85fb7ccb8a6a2a83334e31fa2fea3d6169a6d3f236ac087f3080920ed223744e21ed2f01ad SHA512 a42c6ca37d39c24782c19a1157cc5aaf3a16e34c603c5fa3f91fcd5165e6f4788d5d75786b78f962ab81b3db66dd94f051dd929f02f4ffef845ec5b793feba53
DIST gitstats-0_pre20151223.tar.xz 32236 BLAKE2B f2d3e52f7fa3777cdf8854940a1180a6203a77d16cc1b6910158332fdbdfbcf8e8cf0de15fe57b75284bb3334893db6920cacc35db8971c9b2e95f6bf8839d93 SHA512 ea9ae5be4d2654621493eb87ba112cf99f1f940ba547f7cc1facc8ec042cc91c37c9120098e6788ba98876f7cf0bdda78c263174402b05a279748064c6323f82
DIST gitstats-0_pre20201124.tar.gz 37097 BLAKE2B 8ed3f7a157d3a1edbf6f880c491e8b4fec351a0dc3b7212e5bb0eb3e509ae4002fe407267da17bea775d154e38d8ca43eec00e504b614fd8a7d42b6151de43f2 SHA512 98c0a5a67d5daebf951f2e0568182ab65e1077026facc1eef38a35df8411b1356258034fea009c5a15b7e77d17240e02c5a565f0f39d497a45846d5a8cb570ae

View File

@ -1,11 +0,0 @@
--- gitstats 2016-03-24 10:57:18.000000000 -0300
+++ gitstats.mod 2016-03-24 10:57:11.355016439 -0300
@@ -321,7 +321,7 @@
# Collect revision statistics
# Outputs "<stamp> <date> <time> <timezone> <author> '<' <mail> '>'"
- lines = getpipeoutput(['git rev-list --pretty=format:"%%at %%ai %%aN <%%aE>" %s' % getcommitrange('HEAD'), 'grep -v ^commit']).split('\n')
+ lines = getpipeoutput(['git rev-list --pretty=format:"%%at %%ai %%aN <%%aE>" %s' % getcommitrange('HEAD'), 'grep -av ^commit | grep -ax \'.*\'']).split('\n')
for line in lines:
parts = line.split(' ', 4)
author = ''

View File

@ -1,11 +0,0 @@
--- a/gitstats 2016-04-01 09:46:31.000000000 -0300
+++ b/gitstats 2016-04-01 09:46:18.458667610 -0300
@@ -327,7 +327,7 @@
# Collect revision statistics
# Outputs "<stamp> <date> <time> <timezone> <author> '<' <mail> '>'"
- lines = getpipeoutput(['git rev-list --pretty=format:"%%at %%ai %%aN <%%aE>" %s' % getlogrange('HEAD'), 'grep -v ^commit']).split('\n')
+ lines = getpipeoutput(['git rev-list --pretty=format:"%%at %%ai %%aN <%%aE>" %s' % getlogrange('HEAD'), 'grep -av ^commit']).split('\n')
for line in lines:
parts = line.split(' ', 4)
author = ''

View File

@ -1,40 +0,0 @@
# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=5
PYTHON_COMPAT=( python2_7 )
inherit python-r1
DESCRIPTION="Statistics generator for git"
HOMEPAGE="http://gitstats.sourceforge.net/"
SRC_URI="https://dev.gentoo.org/~jlec/distfiles/${P}.tar.xz"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
DEPEND="${PYTHON_DEPS}"
RDEPEND="${DEPEND}
sci-visualization/gnuplot[gd]
dev-vcs/git"
src_prepare() {
sed \
-e "s:basedir = os.path.dirname(os.path.abspath(__file__)):basedir = '${EPREFIX}/usr/share/gitstats':g" \
-i gitstats || die "failed to fix static files path"
epatch "${FILESDIR}"/${P}-filter-invalid-unicode.patch
}
src_compile() {
:;
}
src_install() {
emake PREFIX="${D}"/usr VERSION="${PV}" install
dodoc doc/{README,*.txt}
python_replicate_script "${ED}"/usr/bin/${PN}
}

View File

@ -1,54 +0,0 @@
# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=6
PYTHON_COMPAT=( python2_7 )
inherit python-r1
if [[ ${PV} == 9999 ]]; then
inherit git-r3
KEYWORDS=""
EGIT_REPO_URI="https://github.com/hoxu/${PN}.git"
else
KEYWORDS="~amd64 ~x86"
SRC_URI="https://dev.gentoo.org/~np-hardass/distfiles/${PN}/${P}.tar.xz"
fi
DESCRIPTION="Statistics generator for git"
HOMEPAGE="http://gitstats.sourceforge.net/"
LICENSE="|| ( GPL-2 GPL-3 ) MIT"
SLOT="0"
IUSE=""
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
RDEPEND="
${PYTHON_DEPS}
sci-visualization/gnuplot[gd]
dev-vcs/git"
DEPEND="
${PYTHON_DEPS}
dev-lang/perl:*
"
DOCS=( doc/{AUTHOR,README,TODO.txt} )
src_prepare() {
sed \
-e "s:basedirs = \[binarypath, secondarypath, '/usr/share/gitstats'\]:basedirs = \['${EPREFIX}/usr/share/gitstats'\]:g" \
-i gitstats || die "failed to fix static files path"
eapply "${FILESDIR}"/${P}-grep-force-text.patch
default
}
src_compile() {
emake VERSION="${PV}" man
}
src_install() {
emake PREFIX="${ED}"usr VERSION="${PV}" install
doman doc/${PN}.1
einstalldocs
python_replicate_script "${ED}"usr/bin/${PN}
}