Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 116331
Collapse All | Expand All

(-)/usr/portage/dev-util/svk/svk-1.05.ebuild (-35 / +48 lines)
Lines 1-62 Link Here
1
# Copyright 1999-2005 Gentoo Foundation
1
# Copyright 1999-2005 Gentoo Foundation
2
# Distributed under the terms of the GNU General Public License v2
2
# Distributed under the terms of the GNU General Public License v2
3
# $Header: /var/cvsroot/gentoo-x86/dev-util/svk/svk-1.05.ebuild,v 1.1 2005/11/17 22:11:17 kang Exp $
3
# $Header$
4
4
5
inherit eutils perl-module
5
inherit perl-module bash-completion
6
7
MY_P=${P/svk/SVK}
8
S=${WORKDIR}/${MY_P}
6
9
7
MP=${P/svk/SVK}
8
DESCRIPTION="A decentralized version control system"
10
DESCRIPTION="A decentralized version control system"
9
SRC_URI="http://www.cpan.org/authors/id/C/CL/CLKAO/${MP}.tar.gz"
10
HOMEPAGE="http://svk.elixus.org/"
11
HOMEPAGE="http://svk.elixus.org/"
12
SRC_URI="mirror://cpan/authors/id/C/CL/CLKAO/${MY_P}.tar.gz"
13
LICENSE="|| ( Artistic GPL-2 )"
11
14
12
SLOT="0"
15
SLOT="0"
13
LICENSE="Artistic"
16
KEYWORDS="x86"
14
KEYWORDS="~amd64 ~ppc ~sparc ~x86"
17
RESTRICT="nomirror"
15
SRC_TEST="do"
16
IUSE="crypt"
17
S=${WORKDIR}/${MP}
18
18
19
DEPEND="${DEPEND}
19
IUSE="nls pager svn-mirror patch crypt"
20
	>=dev-lang/perl-5.8.7
20
DEPEND="dev-lang/perl
21
	>=dev-perl/SVN-Simple-0.27
21
	>=dev-util/subversion-1.0.7
22
	>=dev-perl/SVN-Mirror-0.66
23
	>=dev-perl/PerlIO-via-dynamic-0.11
24
	>=dev-perl/PerlIO-via-symlink-0.02
25
	>=dev-perl/Data-Hierarchy-0.21
26
	>=perl-core/File-Temp-0.14
27
	dev-perl/Algorithm-Annotate
22
	dev-perl/Algorithm-Annotate
28
	dev-perl/Algorithm-Diff
23
	dev-perl/Algorithm-Diff
29
	>=dev-perl/yaml-0.38
24
	>=dev-perl/yaml-0.38
30
	dev-perl/Regexp-Shellish
25
	dev-perl/Regexp-Shellish
26
	>=dev-perl/Data-Hierarchy-0.21
27
	>=perl-core/File-Temp-0.14
28
	dev-perl/Clone
31
	dev-perl/Pod-Escapes
29
	dev-perl/Pod-Escapes
32
	dev-perl/Pod-Simple
30
	dev-perl/Pod-Simple
33
	dev-perl/Clone
31
	>=dev-perl/PerlIO-via-dynamic-0.11
32
	>=dev-perl/PerlIO-via-symlink-0.02
34
	dev-perl/IO-Digest
33
	dev-perl/IO-Digest
35
	dev-perl/File-Type
34
	>=dev-perl/SVN-Simple-0.27
36
	dev-perl/TimeDate
35
	dev-perl/TimeDate
36
	dev-perl/File-Type
37
	dev-perl/URI
37
	dev-perl/URI
38
	>=dev-perl/PerlIO-eol-0.13
38
	>=dev-perl/PerlIO-eol-0.13
39
	>=dev-perl/locale-maketext-lexicon-0.42
40
	>=dev-perl/Locale-Maketext-Simple-0.12
41
	dev-perl/Compress-Zlib
42
	dev-perl/FreezeThaw
43
	>=dev-perl/Class-Autouse-1.15
39
	>=dev-perl/Class-Autouse-1.15
44
	dev-perl/IO-Pager
40
	>=perl-core/Getopt-Long-2.34
45
	dev-perl/Compress-Zlib
41
	>=perl-core/Encode-2.10
42
	nls? ( 
43
		>=dev-perl/locale-maketext-lexicon-0.42
44
		>=dev-perl/Locale-Maketext-Simple-0.12
45
	)
46
	pager? ( dev-perl/IO-Pager )
47
	svn-mirror? ( >=dev-perl/SVN-Mirror-0.66 )
48
	patch? (
49
		dev-perl/Compress-Zlib
50
		dev-perl/FreezeThaw
51
	)
46
	crypt? ( app-crypt/gnupg )"
52
	crypt? ( app-crypt/gnupg )"
47
53
48
src_unpack () {
54
pkg_setup() {
55
	if ! perl -MSVN::Core < /dev/null 2> /dev/null; then
56
		eerror "SVN::Core missing or outdated. Please emerge dev-util/subversion with the perl USE flag."
57
		die "Need Subversion compiled with Perl bindings"
58
	fi
59
}
60
61
src_compile() {
62
	export PERL_EXTUTILS_AUTOINSTALL="--skipdeps"
63
	perl-module_src_compile
64
}
49
65
50
	unpack ${A}
66
src_install() {
67
	perl-module_src_install
51
68
52
	if use crypt
69
	if use bash-completion; then
53
	then
70
		dobin contrib/svk-completion.pl
54
			ewarn Self-tests may cause the installation to fail with USE=crypt!
55
			einfo 'Try USE="-crypt" emerge -v svk if this happens.'
56
			ebeep 3
57
	else
58
			epatch ${FILESDIR}/svk-${PV}-nognupgtest.patch
59
			rm ${S}/t/72sign.t
60
71
72
		echo "complete -C ${DESTTREE}/bin/svk-completion.pl -o default svk" > svk-completion
73
		dobashcompletion svk-completion
61
	fi
74
	fi
62
}
75
}

Return to bug 116331