diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 21:03:06 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 21:03:06 +0100 |
commit | 8376ef56580626e9c0f796d5b85b53a0a1c7d5f5 (patch) | |
tree | 7681bbd4e8b05407772df40a4bf04cbbc8afc3fa /dev-vcs/hg-fast-export/hg-fast-export-160914.ebuild | |
parent | 30a9caf154332f12ca60756e1b75d2f0e3e1822d (diff) |
gentoo resync : 14.07.2018
Diffstat (limited to 'dev-vcs/hg-fast-export/hg-fast-export-160914.ebuild')
-rw-r--r-- | dev-vcs/hg-fast-export/hg-fast-export-160914.ebuild | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/dev-vcs/hg-fast-export/hg-fast-export-160914.ebuild b/dev-vcs/hg-fast-export/hg-fast-export-160914.ebuild new file mode 100644 index 000000000000..60a39b304cf5 --- /dev/null +++ b/dev-vcs/hg-fast-export/hg-fast-export-160914.ebuild @@ -0,0 +1,40 @@ +# 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 vcs-snapshot + +DESCRIPTION="mercurial to git converter using git-fast-import" +HOMEPAGE="https://github.com/frej/fast-export" +SRC_URI="${HOMEPAGE}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~arm ~x86" +IUSE="" +REQUIRED_USE="${PYTHON_REQUIRED_USE}" + +DEPEND="${PYTHON_DEPS}" +RDEPEND="${DEPEND} + dev-vcs/git + dev-vcs/mercurial" + +src_prepare() { + default + sed -e '/^PYTHON/s/python/&2.7/' \ + -e '/^PYTHON/s/PYTHON:/E&/g' \ + -e "/^ROOT/s:=.*:='${EPREFIX}/usr/bin':" \ + -i "${PN}".sh hg-reset.sh || die +} + +src_install() { + default + newbin "${PN}".sh "${PN}" + newbin hg-reset.sh hg-reset + python_foreach_impl python_doexe "${PN}".py + python_foreach_impl python_doexe hg-reset.py + python_foreach_impl python_domodule hg2git.py +} |