Gentoo Archives: gentoo-commits

From: "Robin H. Johnson" <robbat2@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-vcs/git-tools/, dev-vcs/git-tools/files/
Date: Thu, 28 Jan 2016 05:59:17
Message-Id: 1453960747.d81dce703c99623faaa78cd846c71fef51814f4c.robbat2@gentoo
1 commit: d81dce703c99623faaa78cd846c71fef51814f4c
2 Author: Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
3 AuthorDate: Thu Jan 28 05:58:58 2016 +0000
4 Commit: Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
5 CommitDate: Thu Jan 28 05:59:07 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d81dce70
7
8 dev-vcs/git-tools: py3 fixup and make repoman happy.
9
10 Package-Manager: portage-2.2.27
11
12 .../files/git-tools-2015_p20151225-py3.patch | 11 +++++
13 .../git-tools/git-tools-2015_p20151225-r2.ebuild | 48 ++++++++++++++++++++++
14 2 files changed, 59 insertions(+)
15
16 diff --git a/dev-vcs/git-tools/files/git-tools-2015_p20151225-py3.patch b/dev-vcs/git-tools/files/git-tools-2015_p20151225-py3.patch
17 new file mode 100644
18 index 0000000..a7f59e0
19 --- /dev/null
20 +++ b/dev-vcs/git-tools/files/git-tools-2015_p20151225-py3.patch
21 @@ -0,0 +1,11 @@
22 +--- a/git-restore-mtime 2016-01-27 14:05:09.000000000 -0800
23 ++++ b/git-restore-mtime 2016-01-27 21:51:17.000000000 -0800
24 +@@ -150,7 +150,7 @@
25 + ['--'] + args.pathspec,
26 + stdout=subprocess.PIPE)
27 + for line in gitobj.stdout:
28 +- lsfileslist.add(os.path.relpath(line.strip(), workdir))
29 ++ lsfileslist.add(os.path.relpath(line.strip().decode(), workdir))
30 +
31 + # List files matching user pathspec, relative to current directory
32 + # git commands always print paths relative to work tree root
33
34 diff --git a/dev-vcs/git-tools/git-tools-2015_p20151225-r2.ebuild b/dev-vcs/git-tools/git-tools-2015_p20151225-r2.ebuild
35 new file mode 100644
36 index 0000000..d05fd28
37 --- /dev/null
38 +++ b/dev-vcs/git-tools/git-tools-2015_p20151225-r2.ebuild
39 @@ -0,0 +1,48 @@
40 +# Copyright 1999-2016 Gentoo Foundation
41 +# Distributed under the terms of the GNU General Public License v2
42 +# $Id$
43 +
44 +EAPI=5
45 +PYTHON_COMPAT=( python2_7 python3_{1..5} )
46 +inherit python-r1
47 +
48 +DESCRIPTION="Assorted git-related scripts"
49 +HOMEPAGE="https://github.com/MestreLion/git-tools/"
50 +MY_PV="ff7a07daa6898fd0993180f64bd232aa4def6018"
51 +SRC_URI="https://github.com/MestreLion/${PN}/archive/${MY_PV}.tar.gz -> ${P}.tar.gz"
52 +
53 +LICENSE="GPL-3+"
54 +SLOT="0"
55 +KEYWORDS="~amd64 ~x86"
56 +IUSE=""
57 +
58 +DEPEND=""
59 +RDEPEND="
60 + >=dev-vcs/git-2.5
61 + >=app-shells/bash-4.0"
62 +
63 +MY_P=${PN}-${MY_PV}
64 +S=${WORKDIR}/${MY_P}
65 +
66 +src_prepare() {
67 + epatch "$FILESDIR"/git-tools-2015_p20151225-py3.patch
68 +}
69 +
70 +src_compile() {
71 + :;
72 +}
73 +
74 +src_install() {
75 + SCRIPTS_BASH="git-branches-rename git-clone-subset git-find-uncommited-repos git-rebase-theirs git-strip-merge"
76 + SCRIPTS_PYTHON="git-restore-mtime"
77 + dobin $SCRIPTS_BASH
78 + dobin $SCRIPTS_PYTHON
79 + for p in $SCRIPTS_PYTHON ; do
80 + python_replicate_script "${ED}"/usr/bin/$p
81 + done
82 + # Make it possible to use the tools as 'git $TOOLNAME'
83 + for i in $SCRIPTS_BASH $SCRIPTS_PYTHON ; do
84 + dosym /usr/bin/$i /usr/libexec/git-core/$i
85 + done
86 + dodoc README.md
87 +}