| 1 |
# Copyright 1999-2011 Gentoo Foundation
|
| 2 |
# Distributed under the terms of the GNU General Public License v2
|
| 3 |
# $Header: /var/cvsroot/gentoo-x86/dev-vcs/cvs2svn/cvs2svn-1.5.0.ebuild,v 1.2 2010/06/22 18:43:49 arfrever Exp $
|
| 4 |
|
| 5 |
EAPI="2"
|
| 6 |
PYTHON_DEPEND="2"
|
| 7 |
SUPPORT_PYTHON_ABIS="1"
|
| 8 |
RESTRICT_PYTHON_ABIS="3.* *-jython"
|
| 9 |
|
| 10 |
inherit distutils
|
| 11 |
|
| 12 |
FILEVER="34574"
|
| 13 |
|
| 14 |
DESCRIPTION="Convert a CVS repository to a Subversion repository"
|
| 15 |
HOMEPAGE="http://cvs2svn.tigris.org/"
|
| 16 |
SRC_URI="http://cvs2svn.tigris.org/files/documents/1462/${FILEVER}/${P}.tar.gz"
|
| 17 |
|
| 18 |
LICENSE="GPL-2"
|
| 19 |
SLOT="0"
|
| 20 |
KEYWORDS="alpha amd64 ia64 ~ppc x86"
|
| 21 |
IUSE=""
|
| 22 |
|
| 23 |
DEPEND=">=dev-vcs/subversion-1.0.9"
|
| 24 |
RDEPEND="${DEPEND}
|
| 25 |
dev-vcs/rcs"
|
| 26 |
|
| 27 |
PYTHON_MODNAME="cvs2svn_lib cvs2svn_rcsparse"
|
| 28 |
|
| 29 |
src_prepare() {
|
| 30 |
distutils_src_prepare
|
| 31 |
python_convert_shebangs -r 2 .
|
| 32 |
}
|
| 33 |
|
| 34 |
src_install() {
|
| 35 |
distutils_src_install
|
| 36 |
insinto "/usr/share/${PN}"
|
| 37 |
doins -r contrib cvs2svn-example.options {profile-repos,show-db,verify-cvs2svn}.py
|
| 38 |
doman cvs2svn.1
|
| 39 |
}
|
| 40 |
|
| 41 |
pkg_postinst() {
|
| 42 |
distutils_pkg_postinst
|
| 43 |
elog "Additional scripts and examples have been installed to:"
|
| 44 |
elog " ${ROOT}usr/share/${PN}/"
|
| 45 |
}
|
| 46 |
|
| 47 |
src_test() {
|
| 48 |
# Need this because subversion is localized, but the tests aren't
|
| 49 |
export LC_ALL=C
|
| 50 |
|
| 51 |
testing() {
|
| 52 |
"$(PYTHON)" run-tests.py
|
| 53 |
}
|
| 54 |
python_execute_function testing
|
| 55 |
}
|