You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
54 lines
1.2 KiB
54 lines
1.2 KiB
7 years ago
|
# Copyright 1999-2018 Gentoo Foundation
|
||
7 years ago
|
# Distributed under the terms of the GNU General Public License v2
|
||
|
|
||
7 years ago
|
EAPI=6
|
||
7 years ago
|
|
||
7 years ago
|
inherit desktop qmake-utils
|
||
|
[[ "${PV}" == "9999" ]] && inherit git-r3
|
||
7 years ago
|
|
||
|
DESCRIPTION="Tool for one-time conversion from svn to git"
|
||
|
HOMEPAGE="https://github.com/svn-all-fast-export/svn2git"
|
||
7 years ago
|
if [[ "${PV}" == "9999" ]]; then
|
||
7 years ago
|
EGIT_REPO_URI="https://github.com/svn-all-fast-export/svn2git.git"
|
||
|
else
|
||
|
SRC_URI="https://github.com/svn-all-fast-export/svn2git/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
||
|
KEYWORDS="~amd64 ~x86"
|
||
|
fi
|
||
|
|
||
|
LICENSE="GPL-3"
|
||
|
SLOT="0"
|
||
|
IUSE=""
|
||
|
# KEYWORDS way up
|
||
|
|
||
7 years ago
|
DEPEND="
|
||
|
dev-qt/qtcore:5
|
||
|
dev-vcs/subversion"
|
||
7 years ago
|
RDEPEND="${DEPEND}
|
||
|
dev-vcs/git"
|
||
|
|
||
7 years ago
|
DOCS=( README.md )
|
||
|
|
||
|
PATCHES=( "${FILESDIR}"/${PN}-1.0.2.1-include-path.patch )
|
||
|
|
||
7 years ago
|
src_prepare() {
|
||
|
# Note: patching order matters
|
||
7 years ago
|
default
|
||
|
|
||
|
if [[ "${PV}" != "9999" ]]; then
|
||
|
eapply "${FILESDIR}"/${PN}-1.0.10-version.patch
|
||
7 years ago
|
export SVN_ALL_FAST_EXPORT_VERSION=${PVR} # for src_compile
|
||
|
fi
|
||
7 years ago
|
}
|
||
7 years ago
|
|
||
7 years ago
|
src_configure() {
|
||
|
eqmake5 fast-export2.pro
|
||
7 years ago
|
}
|
||
|
|
||
|
src_install() {
|
||
7 years ago
|
einstalldocs
|
||
7 years ago
|
insinto /usr/share/${PN}/samples
|
||
|
doins samples/*.rules || die 'doins failed'
|
||
|
dobin svn-all-fast-export || die 'dobin failed'
|
||
|
dosym svn-all-fast-export /usr/bin/svn2git || die 'dosym failed'
|
||
|
}
|