Gentoo Archives: gentoo-commits

From: "Gunnar Wrobel (wrobel)" <wrobel@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in www-apps/trac: ChangeLog trac-0.11.1-r1.ebuild
Date: Wed, 10 Sep 2008 07:50:34
Message-Id: E1KdKT8-0002s1-Qd@stork.gentoo.org
1 wrobel 08/09/10 07:50:30
2
3 Modified: ChangeLog
4 Added: trac-0.11.1-r1.ebuild
5 Log:
6 Added trac-0.11.1-r1 that should fix #236509.
7 (Portage version: 2.1.4.4)
8
9 Revision Changes Path
10 1.79 www-apps/trac/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-apps/trac/ChangeLog?rev=1.79&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-apps/trac/ChangeLog?rev=1.79&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-apps/trac/ChangeLog?r1=1.78&r2=1.79
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/www-apps/trac/ChangeLog,v
19 retrieving revision 1.78
20 retrieving revision 1.79
21 diff -u -r1.78 -r1.79
22 --- ChangeLog 23 Aug 2008 04:57:20 -0000 1.78
23 +++ ChangeLog 10 Sep 2008 07:50:30 -0000 1.79
24 @@ -1,6 +1,12 @@
25 # ChangeLog for www-apps/trac
26 # Copyright 2000-2008 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/www-apps/trac/ChangeLog,v 1.78 2008/08/23 04:57:20 cardoe Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/www-apps/trac/ChangeLog,v 1.79 2008/09/10 07:50:30 wrobel Exp $
29 +
30 +*trac-0.11.1-r1 (10 Sep 2008)
31 +
32 + 10 Sep 2008; wrobel@g.o +files/tracd.initd.2,
33 + +trac-0.11.1-r1.ebuild:
34 + Added trac-0.11.1-r1 that should fix #236509.
35
36 23 Aug 2008; Doug Goldstein <cardoe@g.o> metadata.xml:
37 add GLEP 56 USE flag desc from use.local.desc
38
39
40
41 1.1 www-apps/trac/trac-0.11.1-r1.ebuild
42
43 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-apps/trac/trac-0.11.1-r1.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-apps/trac/trac-0.11.1-r1.ebuild?rev=1.1&content-type=text/plain
45
46 Index: trac-0.11.1-r1.ebuild
47 ===================================================================
48 # Copyright 1999-2008 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/www-apps/trac/trac-0.11.1-r1.ebuild,v 1.1 2008/09/10 07:50:30 wrobel Exp $
51
52 inherit distutils webapp
53
54 MY_PV=${PV/_beta/b}
55 MY_P=Trac-${MY_PV}
56 S=${WORKDIR}/${MY_P}
57
58 DESCRIPTION="Trac is a minimalistic web-based project management, wiki and bug/issue tracking system."
59 HOMEPAGE="http://trac.edgewall.com/"
60 LICENSE="trac"
61 SRC_URI="http://ftp.edgewall.com/pub/trac/${MY_P}.tar.gz"
62
63 IUSE="cgi fastcgi mysql postgres sqlite subversion"
64
65 KEYWORDS="~amd64 ~ppc64 ~sparc ~x86"
66
67 # doing so because tools, python packages... overlap
68 SLOT="0"
69 WEBAPP_MANUAL_SLOT="yes"
70
71 DEPEND="
72 ${DEPEND}
73 dev-python/setuptools
74 "
75
76 RDEPEND="
77 ${RDEPEND}
78 >=dev-python/genshi-0.5
79 dev-python/pygments
80 >=dev-python/docutils-0.3.9
81 dev-python/pytz
82 cgi? (
83 virtual/httpd-cgi
84 )
85 fastcgi? (
86 virtual/httpd-fastcgi
87 )
88 mysql? (
89 >=dev-python/mysql-python-1.2.1
90 >=virtual/mysql-4.1
91 )
92 postgres? (
93 >=dev-python/psycopg-2
94 )
95 sqlite? (
96 >=dev-db/sqlite-3.3.4
97 || (
98 >=dev-lang/python-2.5
99 >=dev-python/pysqlite-2.3.2
100 )
101 )
102 subversion? (
103 >=dev-util/subversion-1.4.2
104 )
105 !www-apps/trac-webadmin
106 "
107
108 # The following function should be added to eutils.eclass (see bug #143572):
109
110 # Generate an standard error message for missing USE flags
111 # in existing packages, and die.
112 #
113 # Usage: built_with_use_die <category/package> <functionality> [<USE flag>]
114 # ex: built_with_use_die dev-util/subversion python
115 # or: built_with_use_die www-servers/apache LDAP ldap
116 #
117 # Typical usage:
118 # if ! built_with_use dev-util/subversion python ; then
119 # built_with_use_die dev-util/subversion python
120 # fi
121 #
122 # Note: when <USE flag> is not specified, <functionality> is used for the USE flag name.
123 built_with_use_die() {
124 local package=$1
125 local func=$2
126 local use_flag=$3
127
128 [[ -z ${use_flag} ]] && use_flag=${func}
129
130 eerror "Your ${package} package has been built without"
131 eerror "${func} support, please enable the '${use_flag}' USE flag and"
132 eerror "re-emerge ${package}."
133 elog "You can enable this USE flag either globally in /etc/make.conf,"
134 elog "or just for specific packages in /etc/portage/package.use."
135 die "${package} missing ${func} support"
136 }
137
138 pkg_setup() {
139 webapp_pkg_setup
140
141 if ! use mysql && ! use postgres && ! use sqlite ; then
142 eerror "You must select at least one database backend, by enabling"
143 eerror "at least one of the 'mysql', 'postgres' or 'sqlite' USE flags."
144 die "no database backend selected"
145 fi
146
147 # python has built-in sqlite support starting from 2.5
148 if use sqlite && \
149 has_version ">=dev-lang/python-2.5" && \
150 ! has_version ">=dev-python/pysqlite-2.3" && \
151 ! built_with_use dev-lang/python sqlite ; then
152 eerror "To use the sqlite database backend, you must either:"
153 eerror "- build dev-lang/python with sqlite support, using the 'sqlite'"
154 eerror " USE flag, or"
155 eerror "- emerge dev-python/pysqlite"
156 die "missing python sqlite support"
157 fi
158
159 if use subversion && \
160 ! built_with_use dev-util/subversion python ; then
161 built_with_use_die dev-util/subversion python
162 fi
163
164 enewgroup tracd
165 enewuser tracd -1 -1 -1 tracd
166 }
167
168 src_install() {
169 webapp_src_preinst
170 distutils_src_install
171
172 # project environments might go in here
173 keepdir /var/lib/trac
174
175 # Use this as the egg-cache for tracd
176 dodir /var/lib/trac/egg-cache
177 keepdir /var/lib/trac/egg-cache
178
179 # documentation
180 cp -r contrib "${D}"/usr/share/doc/${P}/
181
182 # tracd init script
183 newconfd "${FILESDIR}"/tracd.confd tracd
184 newinitd "${FILESDIR}"/tracd.initd.2 tracd
185
186 if use cgi ; then
187 cp cgi-bin/trac.cgi "${D}"/${MY_CGIBINDIR} || die
188 fi
189 if use fastcgi ; then
190 cp cgi-bin/trac.fcgi "${D}"/${MY_CGIBINDIR} || die
191 fi
192
193 for lang in en; do
194 webapp_postinst_txt ${lang} "${FILESDIR}"/postinst-${lang}.txt
195 webapp_postupgrade_txt ${lang} "${FILESDIR}"/postupgrade-${lang}.txt
196 done
197
198 webapp_src_install
199 }