gentoo/dev-vcs/svn2git/svn2git-9999.ebuild
Sebastian Pipping dad537f300
dev-vcs/svn2git: 1.0.20 + Qt 6
Bug: https://bugs.gentoo.org/954153
Signed-off-by: Sebastian Pipping <sping@gentoo.org>
2025-04-28 15:05:27 +02:00

48 lines
1.0 KiB
Bash

# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit qmake-utils
[[ "${PV}" == "9999" ]] && inherit git-r3
DESCRIPTION="Tool for one-time conversion from svn to git"
HOMEPAGE="https://github.com/svn-all-fast-export/svn2git"
if [[ "${PV}" == "9999" ]]; then
EGIT_SUBMODULES=()
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"
# KEYWORDS way up
DEPEND="
dev-qt/qt5compat:6
dev-qt/qtbase:6
dev-vcs/subversion"
RDEPEND="${DEPEND}
dev-vcs/git"
DOCS=( README.md )
src_configure() {
local qmake_args=(
APR_INCLUDE=/usr/include/apr-1
PREFIX=/usr
SVN_INCLUDE=/usr/include/subversion-1
)
eqmake6 "${qmake_args[@]}" fast-export2.pro
}
src_install() {
einstalldocs
insinto /usr/share/${PN}/samples
doins samples/*.rules
dobin svn-all-fast-export
dosym svn-all-fast-export /usr/bin/svn2git
}