diff options
Diffstat (limited to 'dev-vcs/hg-fast-export')
-rw-r--r-- | dev-vcs/hg-fast-export/Manifest | 3 | ||||
-rw-r--r-- | dev-vcs/hg-fast-export/hg-fast-export-160914.ebuild | 40 | ||||
-rw-r--r-- | dev-vcs/hg-fast-export/metadata.xml | 12 |
3 files changed, 55 insertions, 0 deletions
diff --git a/dev-vcs/hg-fast-export/Manifest b/dev-vcs/hg-fast-export/Manifest new file mode 100644 index 000000000000..417ceec99ec4 --- /dev/null +++ b/dev-vcs/hg-fast-export/Manifest @@ -0,0 +1,3 @@ +DIST hg-fast-export-160914.tar.gz 11379 BLAKE2B b751fd954af7a69430459c27dc1948d82aa7abd71db48fcdb98bb0d1b8151910b3417723d2acac1192d26b7f8dde98739b24fd90833fae5d123408293a4c274a SHA512 9e57e7835cc50e8db5d2ebf840d60b4ce25ec19e9722e705eba1178cc41fde57129664de3e1fc157ce8352632c8d0b8be33109afa50b53e159793a8a2ed21fea +EBUILD hg-fast-export-160914.ebuild 920 BLAKE2B 3f7ab53844838196a6dfba6d94f0b19aa641647bb36864b3c268598d103b237c7d52ec1b211f0a3dd66086e5d3c07ecb33c1e85ae17a76de77350e428cc67f49 SHA512 ea94e0fec5cc405446ecb2fe591373007f1610f30555dba17849dc3d83c73b2820b4829e7e01716c7a90c7c3273ee3bbe1ba3bab33cdef8f39a88fd9ccd8cf33 +MISC metadata.xml 398 BLAKE2B 7a4b6ae1605b89afc842b2232ff12bf2863d1a2d6eb1fbcb995ec3b76257be86d30c18171ac2d98d056bbab4852f9673a404d892ced9345348f81bdba3f32b26 SHA512 e085ace0752eaf009dd9c86ffb5f1198d1feb44f3c46d219457e6871208b2ea96d3d58ab54d28c8ca02b5ca3b5b21ae0ae2c96aedb9926b747110740a296142c 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 +} diff --git a/dev-vcs/hg-fast-export/metadata.xml b/dev-vcs/hg-fast-export/metadata.xml new file mode 100644 index 000000000000..9886b5971a1e --- /dev/null +++ b/dev-vcs/hg-fast-export/metadata.xml @@ -0,0 +1,12 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>junghans@gentoo.org</email> + <name>Christoph Junghans</name> + </maintainer> + <upstream> + <remote-id type="github">frej/fast-export</remote-id> + <bugs-to>https://github.com/frej/fast-export/issues</bugs-to> + </upstream> +</pkgmetadata> |