1 |
sping |
1.5 |
# Copyright 1999-2015 Gentoo Foundation |
2 |
sping |
1.1 |
# Distributed under the terms of the GNU General Public License v2 |
3 |
sping |
1.5 |
# $Header: /var/cvsroot/gentoo-x86/dev-vcs/svn2git/svn2git-0_pre20101101.ebuild,v 1.4 2014/08/10 21:23:56 slyfox Exp $ |
4 |
sping |
1.1 |
|
5 |
|
|
EAPI="2" |
6 |
|
|
|
7 |
|
|
inherit qt4-r2 |
8 |
|
|
[ "$PV" == "9999" ] && inherit git |
9 |
|
|
|
10 |
slyfox |
1.4 |
DESCRIPTION="Importer for one time conversion from svn to git" |
11 |
sping |
1.1 |
HOMEPAGE="http://gitorious.org/svn2git/svn2git" |
12 |
|
|
if [ "$PV" == "9999" ]; then |
13 |
|
|
EGIT_REPO_URI="git://gitorious.org/svn2git/svn2git.git" |
14 |
|
|
KEYWORDS="" |
15 |
|
|
else |
16 |
sping |
1.5 |
SRC_URI="https://www.hartwork.org/public/${P}.tar.gz" |
17 |
sping |
1.1 |
KEYWORDS="~amd64 ~x86" |
18 |
|
|
fi |
19 |
|
|
|
20 |
|
|
LICENSE="GPL-3" |
21 |
|
|
SLOT="0" |
22 |
|
|
IUSE="" |
23 |
|
|
# KEYWORDS way up |
24 |
|
|
|
25 |
|
|
DEPEND="dev-vcs/subversion |
26 |
hwoarang |
1.3 |
dev-qt/qtcore:4" |
27 |
sping |
1.1 |
RDEPEND="${DEPEND} |
28 |
|
|
dev-vcs/git" |
29 |
|
|
|
30 |
|
|
src_prepare() { |
31 |
|
|
sed -i 's|^\(APR_INCLUDE = /usr/include/apr-1\)\.0|\1|' "${S}"/src/src.pro |
32 |
|
|
qt4-r2_src_prepare |
33 |
|
|
} |
34 |
|
|
|
35 |
|
|
src_install() { |
36 |
|
|
insinto /usr/share/${PN}/samples |
37 |
|
|
doins samples/*.rules || die 'doins failed' |
38 |
|
|
dobin svn-all-fast-export || die 'dobin failed' |
39 |
|
|
dosym svn-all-fast-export /usr/bin/svn2git || die 'dosym failed' |
40 |
|
|
} |