Gentoo Archives: gentoo-commits

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