Gentoo Archives: gentoo-commits

From: "Christian Ruppert (idl0r)" <idl0r@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in www-apps/trac: ChangeLog trac-0.12.2-r1.ebuild trac-0.12.2.ebuild
Date: Sat, 31 Dec 2011 20:18:01
Message-Id: 20111231201751.407572004B@flycatcher.gentoo.org
1 idl0r 11/12/31 20:17:51
2
3 Modified: ChangeLog
4 Added: trac-0.12.2-r1.ebuild
5 Removed: trac-0.12.2.ebuild
6 Log:
7 Revbump. Don't use deprecated start-stop-daemon options, bug 380607.
8
9 (Portage version: 2.1.10.41/cvs/Linux i686, RepoMan options: --force)
10
11 Revision Changes Path
12 1.122 www-apps/trac/ChangeLog
13
14 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-apps/trac/ChangeLog?rev=1.122&view=markup
15 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-apps/trac/ChangeLog?rev=1.122&content-type=text/plain
16 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-apps/trac/ChangeLog?r1=1.121&r2=1.122
17
18 Index: ChangeLog
19 ===================================================================
20 RCS file: /var/cvsroot/gentoo-x86/www-apps/trac/ChangeLog,v
21 retrieving revision 1.121
22 retrieving revision 1.122
23 diff -u -r1.121 -r1.122
24 --- ChangeLog 13 Dec 2011 12:35:09 -0000 1.121
25 +++ ChangeLog 31 Dec 2011 20:17:50 -0000 1.122
26 @@ -1,6 +1,12 @@
27 # ChangeLog for www-apps/trac
28 # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
29 -# $Header: /var/cvsroot/gentoo-x86/www-apps/trac/ChangeLog,v 1.121 2011/12/13 12:35:09 naota Exp $
30 +# $Header: /var/cvsroot/gentoo-x86/www-apps/trac/ChangeLog,v 1.122 2011/12/31 20:17:50 idl0r Exp $
31 +
32 +*trac-0.12.2-r1 (31 Dec 2011)
33 +
34 + 31 Dec 2011; Christian Ruppert <idl0r@g.o> -trac-0.12.2.ebuild,
35 + +trac-0.12.2-r1.ebuild, files/tracd.initd:
36 + Revbump. Don't use deprecated start-stop-daemon options, bug 380607.
37
38 13 Dec 2011; Naohiro Aota <naota@g.o> trac-0.12.2.ebuild:
39 Add ~x86-fbsd wrt #336211
40
41
42
43 1.1 www-apps/trac/trac-0.12.2-r1.ebuild
44
45 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-apps/trac/trac-0.12.2-r1.ebuild?rev=1.1&view=markup
46 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-apps/trac/trac-0.12.2-r1.ebuild?rev=1.1&content-type=text/plain
47
48 Index: trac-0.12.2-r1.ebuild
49 ===================================================================
50 # Copyright 1999-2011 Gentoo Foundation
51 # Distributed under the terms of the GNU General Public License v2
52 # $Header: /var/cvsroot/gentoo-x86/www-apps/trac/trac-0.12.2-r1.ebuild,v 1.1 2011/12/31 20:17:50 idl0r Exp $
53
54 EAPI="2"
55 PYTHON_DEPEND="2"
56 SUPPORT_PYTHON_ABIS="1"
57
58 inherit distutils eutils webapp
59
60 MY_PV=${PV/_beta/b}
61 MY_P=Trac-${MY_PV}
62 S=${WORKDIR}/${MY_P}
63
64 DESCRIPTION="Trac is a minimalistic web-based project management, wiki and bug/issue tracking system."
65 HOMEPAGE="http://trac.edgewall.com/"
66 LICENSE="BSD"
67 SRC_URI="http://ftp.edgewall.com/pub/trac/${MY_P}.tar.gz"
68
69 IUSE="cgi fastcgi i18n mysql postgres +sqlite subversion"
70
71 KEYWORDS="amd64 ppc ~ppc64 ~sparc x86 ~x86-fbsd"
72
73 # doing so because tools, python packages... overlap
74 SLOT="0"
75 WEBAPP_MANUAL_SLOT="yes"
76
77 RDEPEND="
78 dev-python/setuptools
79 dev-python/docutils
80 dev-python/genshi
81 dev-python/pygments
82 dev-python/pytz
83 i18n? ( >=dev-python/Babel-0.9.5 )
84 cgi? ( virtual/httpd-cgi )
85 fastcgi? ( virtual/httpd-fastcgi )
86 mysql? ( dev-python/mysql-python )
87 postgres? ( >=dev-python/psycopg-2 )
88 sqlite? (
89 >=dev-db/sqlite-3.3.4
90 || ( dev-lang/python:2.7[sqlite] dev-lang/python:2.6[sqlite] dev-lang/python:2.5[sqlite] >=dev-python/pysqlite-2.3.2 )
91 )
92 subversion? ( dev-vcs/subversion[python] )
93 !www-apps/trac-webadmin
94 "
95 DEPEND="${RDEPEND}"
96 RESTRICT_PYTHON_ABIS="3.*"
97
98 pkg_setup() {
99 python_pkg_setup
100 webapp_pkg_setup
101
102 if ! use mysql && ! use postgres && ! use sqlite; then
103 eerror "You must select at least one database backend, by enabling"
104 eerror "at least one of the 'mysql', 'postgres' or 'sqlite' USE flags."
105 die "no database backend selected"
106 fi
107
108 enewgroup tracd
109 enewuser tracd -1 -1 -1 tracd
110 }
111
112 src_test() {
113
114 testing() {
115 PYTHONPATH=. "$(PYTHON)" trac/test.py
116 }
117 python_execute_function testing
118
119 if use i18n; then
120 make check
121 fi
122
123 }
124
125 # the default src_compile just calls setup.py build
126 # currently, this switches i18n catalog compilation based on presence of Babel
127
128 src_install() {
129 webapp_src_preinst
130 distutils_src_install
131
132 # project environments might go in here
133 keepdir /var/lib/trac
134
135 # Use this as the egg-cache for tracd
136 dodir /var/lib/trac/egg-cache
137 keepdir /var/lib/trac/egg-cache
138 fowners tracd:tracd /var/lib/trac/egg-cache
139
140 # documentation
141 cp -r contrib "${D}"/usr/share/doc/${P}/
142
143 # tracd init script
144 newconfd "${FILESDIR}"/tracd.confd tracd
145 newinitd "${FILESDIR}"/tracd.initd tracd
146
147 if use cgi; then
148 cp cgi-bin/trac.cgi "${D}"/${MY_CGIBINDIR} || die
149 fi
150 if use fastcgi; then
151 cp cgi-bin/trac.fcgi "${D}"/${MY_CGIBINDIR} || die
152 fi
153
154 for lang in en; do
155 webapp_postinst_txt ${lang} "${FILESDIR}"/postinst-${lang}.txt
156 webapp_postupgrade_txt ${lang} "${FILESDIR}"/postupgrade-${lang}.txt
157 done
158
159 webapp_src_install
160 }
161
162 pkg_postinst() {
163 distutils_pkg_postinst
164 webapp_pkg_postinst
165 }