Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 482034 | Differences between
and this patch

Collapse All | Expand All

(-)www-apps/trac/trac-1.0.1.ebuild (-36 / +39 lines)
Lines 1-16 Link Here
1
# Copyright 1999-2013 Gentoo Foundation
1
# Copyright 1999-2013 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/www-apps/trac/trac-1.0.1.ebuild,v 1.5 2013/05/03 13:30:51 ago Exp $
3
# $Header: $
4
4
5
EAPI="4"
5
EAPI=5
6
PYTHON_DEPEND="2"
7
SUPPORT_PYTHON_ABIS="1"
8
RESTRICT_PYTHON_ABIS="3.* *-jython"
9
6
10
inherit distutils eutils user webapp
7
PYTHON_COMPAT=( python{2_6,2_7} )
8
DISTUTILS_SINGLE_IMPL=Yes
11
9
12
MY_PV=${PV/_beta/b}
10
inherit distutils-r1 eutils user webapp
13
MY_P=Trac-${MY_PV}
11
12
MY_PV="${PV/_beta/b}"
13
MY_P="Trac-${MY_PV}"
14
14
15
DESCRIPTION="Trac is a minimalistic web-based project management, wiki and bug/issue tracking system."
15
DESCRIPTION="Trac is a minimalistic web-based project management, wiki and bug/issue tracking system."
16
HOMEPAGE="http://trac.edgewall.com/ http://pypi.python.org/pypi/Trac"
16
HOMEPAGE="http://trac.edgewall.com/ http://pypi.python.org/pypi/Trac"
Lines 18-52 SRC_URI="http://ftp.edgewall.com/pub/tra Link Here
18
18
19
LICENSE="BSD"
19
LICENSE="BSD"
20
SLOT="0"
20
SLOT="0"
21
KEYWORDS="amd64 ppc ~ppc64 ~sparc x86 ~x86-fbsd"
21
KEYWORDS="~amd64 ~ppc ~x86 ~x86-fbsd"
22
IUSE="cgi fastcgi i18n mysql postgres +sqlite subversion"
22
IUSE="cgi fastcgi i18n mysql postgres +sqlite subversion test"
23
REQUIRED_USE="|| ( mysql postgres sqlite )"
23
REQUIRED_USE="|| ( mysql postgres sqlite )"
24
24
25
RDEPEND="
25
RDEPEND="
26
	dev-python/setuptools
26
	dev-python/setuptools:0
27
	dev-python/docutils
27
	dev-python/docutils:0
28
	dev-python/genshi
28
	dev-python/genshi:0
29
	dev-python/pygments
29
	dev-python/pygments:0
30
	dev-python/pytz
30
	dev-python/pytz:0
31
	i18n? ( >=dev-python/Babel-0.9.5 )
31
	i18n? ( >=dev-python/Babel-0.9.5:0[${PYTHON_USEDEP}] )
32
	cgi? ( virtual/httpd-cgi )
32
	cgi? ( virtual/httpd-cgi:0 )
33
	fastcgi? ( virtual/httpd-fastcgi )
33
	fastcgi? ( virtual/httpd-fastcgi:0 )
34
	mysql? ( dev-python/mysql-python )
34
	mysql? ( dev-python/mysql-python:0[${PYTHON_USEDEP}] )
35
	postgres? ( >=dev-python/psycopg-2 )
35
	postgres? ( dev-python/psycopg:2[${PYTHON_USEDEP}] )
36
	sqlite? (
36
	sqlite? (
37
		>=dev-db/sqlite-3.3.4
37
		>=dev-db/sqlite-3.3.4:3
38
		|| ( dev-lang/python:2.7[sqlite] dev-lang/python:2.6[sqlite] dev-lang/python:2.5[sqlite] >=dev-python/pysqlite-2.3.2 )
38
		|| ( dev-lang/python:2.7[sqlite] dev-lang/python:2.6[sqlite] )
39
	)
39
	)
40
	subversion? ( dev-vcs/subversion[python] )
40
	subversion? ( dev-vcs/subversion:0[python,${PYTHON_USEDEP}] )
41
	"
41
	"
42
DEPEND="${RDEPEND}"
42
DEPEND="${RDEPEND}
43
	test? (
44
		dev-python/twill:0[${PYTHON_USEDEP}]
45
		dev-python/lxml:0[${PYTHON_USEDEP}]
46
		dev-python/configobj:0[${PYTHON_USEDEP}]
47
	)"
43
48
44
S="${WORKDIR}/${MY_P}"
49
S="${WORKDIR}/${MY_P}"
45
50
46
WEBAPP_MANUAL_SLOT="yes"
51
WEBAPP_MANUAL_SLOT="yes"
47
52
48
pkg_setup() {
53
pkg_setup() {
49
	python_pkg_setup
54
	python-single-r1_pkg_setup
50
	webapp_pkg_setup
55
	webapp_pkg_setup
51
56
52
	enewgroup tracd
57
	enewgroup tracd
Lines 57-79 src_prepare() { Link Here
57
	epatch "${FILESDIR}/${PV}-git-identity.patch"
62
	epatch "${FILESDIR}/${PV}-git-identity.patch"
58
}
63
}
59
64
60
src_test() {
65
python_test() {
61
	testing() {
66
	einfo "Running ${PYTHON} trac/test.py -v"
62
		PYTHONPATH=. "$(PYTHON)" trac/test.py
67
	PYTHONPATH=. "${PYTHON}" trac/test.py -v || die
63
	}
64
	python_execute_function testing
65
68
66
	if use i18n; then
69
	if use i18n; then
67
		make check
70
		emake check
68
	fi
71
	fi
69
}
72
}
70
73
71
# the default src_compile just calls setup.py build
74
# the default src_compile just calls setup.py build
72
# currently, this switches i18n catalog compilation based on presence of Babel
75
# currently, this switches i18n catalog compilation based on presence of Babel
73
74
src_install() {
76
src_install() {
75
	webapp_src_preinst
77
	webapp_src_preinst
76
	distutils_src_install
78
	distutils-r1_src_install
77
79
78
	# project environments might go in here
80
	# project environments might go in here
79
	keepdir /var/lib/trac
81
	keepdir /var/lib/trac
Lines 91-100 src_install() { Link Here
91
	newinitd "${FILESDIR}"/tracd.initd tracd
93
	newinitd "${FILESDIR}"/tracd.initd tracd
92
94
93
	if use cgi; then
95
	if use cgi; then
94
		cp contrib/cgi-bin/trac.cgi "${ED}${MY_CGIBINDIR}" || die
96
		python_scriptinto "${MY_CGIBINDIR}"
97
		python_doscript contrib/cgi-bin/trac.cgi
95
	fi
98
	fi
96
	if use fastcgi; then
99
	if use fastcgi; then
97
		cp contrib/cgi-bin/trac.fcgi "${ED}${MY_CGIBINDIR}" || die
100
		python_scriptinto "${MY_CGIBINDIR}"
101
		python_doscript contrib/cgi-bin/trac.fcgi
98
	fi
102
	fi
99
103
100
	for lang in en; do
104
	for lang in en; do
Lines 106-111 src_install() { Link Here
106
}
110
}
107
111
108
pkg_postinst() {
112
pkg_postinst() {
109
	distutils_pkg_postinst
110
	webapp_pkg_postinst
113
	webapp_pkg_postinst
111
}
114
}

Return to bug 482034