Gentoo Archives: gentoo-commits

From: "Arfrever Frehtes Taifersar Arahesis (arfrever)" <arfrever@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in www-apps/viewvc: ChangeLog viewvc-1.1.11.ebuild
Date: Wed, 18 May 2011 20:04:52
Message-Id: 20110518200432.721B220054@flycatcher.gentoo.org
1 arfrever 11/05/18 20:04:32
2
3 Modified: ChangeLog
4 Added: viewvc-1.1.11.ebuild
5 Log:
6 Version bump.
7
8 (Portage version: 2.2.0_alpha34_p1/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.73 www-apps/viewvc/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-apps/viewvc/ChangeLog?rev=1.73&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-apps/viewvc/ChangeLog?rev=1.73&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-apps/viewvc/ChangeLog?r1=1.72&r2=1.73
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/www-apps/viewvc/ChangeLog,v
20 retrieving revision 1.72
21 retrieving revision 1.73
22 diff -u -r1.72 -r1.73
23 --- ChangeLog 26 Mar 2011 20:53:34 -0000 1.72
24 +++ ChangeLog 18 May 2011 20:04:32 -0000 1.73
25 @@ -1,6 +1,12 @@
26 # ChangeLog for www-apps/viewvc
27 # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/www-apps/viewvc/ChangeLog,v 1.72 2011/03/26 20:53:34 arfrever Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/www-apps/viewvc/ChangeLog,v 1.73 2011/05/18 20:04:32 arfrever Exp $
30 +
31 +*viewvc-1.1.11 (18 May 2011)
32 +
33 + 18 May 2011; Arfrever Frehtes Taifersar Arahesis <arfrever@g.o>
34 + +viewvc-1.1.11.ebuild:
35 + Version bump.
36
37 *viewvc-1.1.10 (26 Mar 2011)
38
39
40
41
42 1.1 www-apps/viewvc/viewvc-1.1.11.ebuild
43
44 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-apps/viewvc/viewvc-1.1.11.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-apps/viewvc/viewvc-1.1.11.ebuild?rev=1.1&content-type=text/plain
46
47 Index: viewvc-1.1.11.ebuild
48 ===================================================================
49 # Copyright 1999-2011 Gentoo Foundation
50 # Distributed under the terms of the GNU General Public License v2
51 # $Header: /var/cvsroot/gentoo-x86/www-apps/viewvc/viewvc-1.1.11.ebuild,v 1.1 2011/05/18 20:04:32 arfrever Exp $
52
53 EAPI="3"
54 PYTHON_DEPEND="2"
55 SUPPORT_PYTHON_ABIS="1"
56 RESTRICT_PYTHON_ABIS="3.* *-jython"
57
58 inherit confutils eutils python webapp
59
60 WEBAPP_MANUAL_SLOT="yes"
61
62 DESCRIPTION="ViewVC, a web interface to CVS and Subversion"
63 HOMEPAGE="http://viewvc.org/"
64 DOWNLOAD_NUMBER="49022"
65 SRC_URI="http://viewvc.tigris.org/files/documents/3330/${DOWNLOAD_NUMBER}/${P}.tar.gz"
66
67 LICENSE="BSD-2"
68 SLOT="0"
69 KEYWORDS="~amd64 ~ppc ~sparc ~x86"
70 IUSE="cvs cvsgraph mod_python mod_wsgi mysql pygments +subversion"
71
72 DEPEND=""
73 RDEPEND="
74 cvs? ( dev-vcs/rcs )
75 subversion? ( >=dev-vcs/subversion-1.3.1[python] )
76
77 mod_python? ( www-apache/mod_python )
78 mod_wsgi? ( www-apache/mod_wsgi )
79 !mod_python? ( !mod_wsgi? ( virtual/httpd-cgi ) )
80
81 cvsgraph? ( >=dev-vcs/cvsgraph-1.5.0 )
82 mysql? ( >=dev-python/mysql-python-0.9.0 )
83 pygments? ( dev-python/pygments )
84 "
85
86 pkg_setup() {
87 python_pkg_setup
88 webapp_pkg_setup
89
90 confutils_require_any cvs subversion
91 }
92
93 src_prepare() {
94 find bin/ -type f -print0 | xargs -0 sed -i \
95 -e "s|\(^LIBRARY_DIR\)\(.*\$\)|\1 = \"$(python_get_sitedir -f)/${PN}\"|g" \
96 -e "s|\(^CONF_PATHNAME\)\(.*\$\)|\1 = \"../conf/viewvc.conf\"|g"
97
98 sed -i -e "s|\(self\.options\.template_dir\)\(.*\$\)|\1 = \"${MY_APPDIR}/templates\"|" \
99 lib/config.py
100
101 sed -i -e "s|^template_dir.*|#&|" conf/viewvc.conf.dist
102 mv conf/viewvc.conf{.dist,}
103 mv conf/cvsgraph.conf{.dist,}
104 mv conf/mimetypes.conf{.dist,}
105
106 python_convert_shebangs -r 2 .
107 }
108
109 src_install() {
110 webapp_src_preinst
111
112 newbin bin/standalone.py viewvc-standalone-server || die "newbin failed"
113
114 dodoc CHANGES COMMITTERS INSTALL README || die "dodoc failed"
115
116 installation() {
117 insinto $(python_get_sitedir)/${PN}
118 doins -r lib/*
119 }
120 python_execute_function installation
121
122 insinto "${MY_APPDIR}"
123 doins -r templates/ || die "doins failed"
124 doins -r templates-contrib/ || die "doins failed"
125
126 if use mysql; then
127 exeinto "${MY_HOSTROOTDIR}/bin"
128 doexe bin/{*dbadmin,make-database,loginfo-handler} || die "doexe failed"
129 fi
130
131 insinto "${MY_HOSTROOTDIR}/conf"
132 doins conf/{viewvc,cvsgraph,mimetypes}.conf
133
134 if use mod_python; then
135 insinto "${MY_HTDOCSDIR}"
136 doins bin/mod_python/viewvc.py || die "doins failed"
137 doins bin/mod_python/handler.py || die "doins failed"
138 doins bin/mod_python/.htaccess || die "doins failed"
139 if use mysql; then
140 doins bin/mod_python/query.py || die "doins failed"
141 fi
142 else
143 exeinto "${MY_CGIBINDIR}"
144 doexe bin/cgi/viewvc.cgi || die "doexe failed"
145 if use mysql; then
146 doexe bin/cgi/query.cgi || die "doexe failed"
147 fi
148 fi
149
150 webapp_configfile "${MY_HOSTROOTDIR}/conf/"{viewvc,cvsgraph}.conf
151
152 webapp_src_install
153 }
154
155 pkg_postinst() {
156 python_mod_optimize viewvc
157 webapp_pkg_postinst
158 elog "Now read INSTALL in /usr/share/doc/${PF} to configure ${PN}"
159 }
160
161 pkg_postrm() {
162 python_mod_cleanup viewvc
163 }