diff options
author | Robin H. Johnson <robbat2@gentoo.org> | 2016-01-27 21:58:58 -0800 |
---|---|---|
committer | Robin H. Johnson <robbat2@gentoo.org> | 2016-01-27 21:59:07 -0800 |
commit | d81dce703c99623faaa78cd846c71fef51814f4c (patch) | |
tree | f9bb721c9eb079c68f744f392c388bad9c9ec016 /dev-vcs/git-tools | |
parent | profiles: games-strategy/revenge-of-the-titans and games-simulation/qct are gone (diff) | |
download | gentoo-d81dce703c99623faaa78cd846c71fef51814f4c.tar.gz gentoo-d81dce703c99623faaa78cd846c71fef51814f4c.tar.bz2 gentoo-d81dce703c99623faaa78cd846c71fef51814f4c.zip |
dev-vcs/git-tools: py3 fixup and make repoman happy.
Package-Manager: portage-2.2.27
Diffstat (limited to 'dev-vcs/git-tools')
-rw-r--r-- | dev-vcs/git-tools/files/git-tools-2015_p20151225-py3.patch | 11 | ||||
-rw-r--r-- | dev-vcs/git-tools/git-tools-2015_p20151225-r2.ebuild | 48 |
2 files changed, 59 insertions, 0 deletions
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 new file mode 100644 index 000000000000..a7f59e0b04dc --- /dev/null +++ b/dev-vcs/git-tools/files/git-tools-2015_p20151225-py3.patch @@ -0,0 +1,11 @@ +--- a/git-restore-mtime 2016-01-27 14:05:09.000000000 -0800 ++++ b/git-restore-mtime 2016-01-27 21:51:17.000000000 -0800 +@@ -150,7 +150,7 @@ + ['--'] + args.pathspec, + stdout=subprocess.PIPE) + for line in gitobj.stdout: +- lsfileslist.add(os.path.relpath(line.strip(), workdir)) ++ lsfileslist.add(os.path.relpath(line.strip().decode(), workdir)) + + # List files matching user pathspec, relative to current directory + # git commands always print paths relative to work tree root diff --git a/dev-vcs/git-tools/git-tools-2015_p20151225-r2.ebuild b/dev-vcs/git-tools/git-tools-2015_p20151225-r2.ebuild new file mode 100644 index 000000000000..d05fd28df02c --- /dev/null +++ b/dev-vcs/git-tools/git-tools-2015_p20151225-r2.ebuild @@ -0,0 +1,48 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +PYTHON_COMPAT=( python2_7 python3_{1..5} ) +inherit python-r1 + +DESCRIPTION="Assorted git-related scripts" +HOMEPAGE="https://github.com/MestreLion/git-tools/" +MY_PV="ff7a07daa6898fd0993180f64bd232aa4def6018" +SRC_URI="https://github.com/MestreLion/${PN}/archive/${MY_PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="GPL-3+" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +DEPEND="" +RDEPEND=" + >=dev-vcs/git-2.5 + >=app-shells/bash-4.0" + +MY_P=${PN}-${MY_PV} +S=${WORKDIR}/${MY_P} + +src_prepare() { + epatch "$FILESDIR"/git-tools-2015_p20151225-py3.patch +} + +src_compile() { + :; +} + +src_install() { + SCRIPTS_BASH="git-branches-rename git-clone-subset git-find-uncommited-repos git-rebase-theirs git-strip-merge" + SCRIPTS_PYTHON="git-restore-mtime" + dobin $SCRIPTS_BASH + dobin $SCRIPTS_PYTHON + for p in $SCRIPTS_PYTHON ; do + python_replicate_script "${ED}"/usr/bin/$p + done + # Make it possible to use the tools as 'git $TOOLNAME' + for i in $SCRIPTS_BASH $SCRIPTS_PYTHON ; do + dosym /usr/bin/$i /usr/libexec/git-core/$i + done + dodoc README.md +} |