1 | # Copyright 1999-2010 Gentoo Foundation |
---|
2 | # Distributed under the terms of the GNU General Public License v2 |
---|
3 | # $Header: /var/cvsroot/gentoo-x86/www-apps/trac-webadmin/trac-webadmin-0.1.2.ebuild,v 1.4 2007/02/13 20:39:33 corsair Exp $ |
---|
4 | |
---|
5 | EAPI="2" |
---|
6 | PYTHON_DEPEND="2" |
---|
7 | SUPPORT_PYTHON_ABIS="1" |
---|
8 | RESTRICT_PYTHON_ABIS="3.*" |
---|
9 | |
---|
10 | inherit distutils subversion |
---|
11 | |
---|
12 | ESVN_REPO_URI="http://trac-hacks.org/svn/gitplugin/0.12/" |
---|
13 | DESCRIPTION="This is a plugin which enables GIT to be used instead of Subversion." |
---|
14 | HOMEPAGE="http://trac-hacks.org/wiki/GitPlugin" |
---|
15 | |
---|
16 | LICENSE="trac" |
---|
17 | KEYWORDS="~amd64 ~arm ~ppc64 ~x86" |
---|
18 | IUSE="" |
---|
19 | |
---|
20 | SLOT="0" |
---|
21 | |
---|
22 | DEPEND="dev-python/setuptools |
---|
23 | app-arch/unzip" |
---|
24 | RDEPEND=">=www-apps/trac-0.12 |
---|
25 | dev-vcs/git" |
---|
26 | |
---|
27 | src_install() { |
---|
28 | distutils_src_install |
---|
29 | rm -f "${D}"/usr/{README,COPYING} |
---|
30 | } |
---|
31 | |
---|
32 | pkg_postinst() { |
---|
33 | elog "To enable the GitPlugin plugin in your Trac environments, you have to add:" |
---|
34 | elog " [components]" |
---|
35 | elog " # for plugin version 0.11.0.1+" |
---|
36 | elog " tracext.git.* = enabled" |
---|
37 | elog "" |
---|
38 | elog " [trac]" |
---|
39 | elog " repository_dir = /var/git/Test.git" |
---|
40 | elog " repository_type = git" |
---|
41 | elog "" |
---|
42 | elog " ## the following is only for the 0.11 branch" |
---|
43 | elog " [git]" |
---|
44 | elog " ## let Trac cache meta-data via CachedRepository wrapper; default: false" |
---|
45 | elog " cached_repository = true" |
---|
46 | elog "" |
---|
47 | elog " ## disable automatic garbage collection for in-memory commit-tree cache; default: false" |
---|
48 | elog " persistent_cache = true" |
---|
49 | elog "" |
---|
50 | elog " ## length revision sha-sums should be tried to be abbreviated to (must be >= 4 and <= 40); default: 7" |
---|
51 | elog " shortrev_len = 6" |
---|
52 | elog "" |
---|
53 | elog " ## executable file name (optionally with path) of git binary; default: 'git'" |
---|
54 | elog " git_bin = /usr/src/git-dev/git" |
---|
55 | elog "" |
---|
56 | elog "to your trac.ini files." |
---|
57 | } |
---|