Gentoo Archives: gentoo-commits

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