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