Gentoo Archives: gentoo-commits

From: "Robin H. Johnson (robbat2)" <robbat2@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in www-apps/viewvc: ChangeLog viewvc-1.0.7.ebuild
Date: Sat, 01 Nov 2008 07:05:37
Message-Id: E1KwAYA-0003mU-3R@stork.gentoo.org
1 robbat2 08/11/01 07:05:34
2
3 Modified: ChangeLog
4 Added: viewvc-1.0.7.ebuild
5 Log:
6 Version bump.
7 (Portage version: 2.2_rc12/cvs/Linux 2.6.27-rc1-10246-gca5de40 x86_64)
8
9 Revision Changes Path
10 1.27 www-apps/viewvc/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-apps/viewvc/ChangeLog?rev=1.27&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-apps/viewvc/ChangeLog?rev=1.27&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-apps/viewvc/ChangeLog?r1=1.26&r2=1.27
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/www-apps/viewvc/ChangeLog,v
19 retrieving revision 1.26
20 retrieving revision 1.27
21 diff -p -w -b -B -u -u -r1.26 -r1.27
22 --- ChangeLog 11 Oct 2008 20:28:07 -0000 1.26
23 +++ ChangeLog 1 Nov 2008 07:05:34 -0000 1.27
24 @@ -1,6 +1,11 @@
25 # ChangeLog for www-apps/viewvc
26 # Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/www-apps/viewvc/ChangeLog,v 1.26 2008/10/11 20:28:07 wrobel Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/www-apps/viewvc/ChangeLog,v 1.27 2008/11/01 07:05:34 robbat2 Exp $
29 +
30 +*viewvc-1.0.7 (01 Nov 2008)
31 +
32 + 01 Nov 2008; Robin H. Johnson <robbat2@g.o> +viewvc-1.0.7.ebuild:
33 + Version bump.
34
35 *viewvc-1.0.6 (11 Oct 2008)
36
37
38
39
40 1.1 www-apps/viewvc/viewvc-1.0.7.ebuild
41
42 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-apps/viewvc/viewvc-1.0.7.ebuild?rev=1.1&view=markup
43 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-apps/viewvc/viewvc-1.0.7.ebuild?rev=1.1&content-type=text/plain
44
45 Index: viewvc-1.0.7.ebuild
46 ===================================================================
47 # Copyright 1999-2008 Gentoo Foundation
48 # Distributed under the terms of the GNU General Public License v2
49 # $Header: /var/cvsroot/gentoo-x86/www-apps/viewvc/viewvc-1.0.7.ebuild,v 1.1 2008/11/01 07:05:34 robbat2 Exp $
50
51 inherit confutils webapp python eutils
52
53 WEBAPP_MANUAL_SLOT="yes"
54
55 DESCRIPTION="ViewVC, a web interface to CVS and Subversion"
56 HOMEPAGE="http://viewvc.org/"
57 SRC_URI="http://viewvc.tigris.org/files/documents/3330/44050/${P}.tar.gz"
58
59 LICENSE="viewcvs"
60 KEYWORDS="~amd64 ~ppc ~sparc ~x86"
61 IUSE="cvs cvsgraph enscript highlight mod_python mysql subversion"
62 SLOT="0"
63
64 DEPEND=""
65 RDEPEND="
66 cvs? (
67 >=dev-lang/python-1.5.2
68 app-text/rcs
69 )
70
71 subversion? (
72 >=dev-lang/python-2.0
73 >=dev-util/subversion-1.2.0
74 )
75
76 mod_python? ( www-apache/mod_python )
77 !mod_python? ( virtual/httpd-cgi )
78
79 cvsgraph? ( >=dev-util/cvsgraph-1.5.0 )
80 enscript? ( app-text/enscript )
81 highlight? ( >=app-text/highlight-2.2.10 )
82 mysql? ( >=dev-python/mysql-python-0.9.0 )
83 "
84
85 pkg_setup() {
86 webapp_pkg_setup
87
88 confutils_require_any cvs subversion
89 confutils_use_depend_built_with_all subversion dev-util/subversion python
90
91 python_version
92 MOD_PATH=/usr/$(get_libdir)/python${PYVER}/site-packages/${PN}
93 }
94
95 src_unpack() {
96 unpack ${A}
97 cd "${S}"
98
99 find bin/ -type f -print0 | xargs -0 sed -i \
100 -e "s|\(^LIBRARY_DIR\)\(.*\$\)|\1 = \"${MOD_PATH}\"|g" \
101 -e "s|\(^CONF_PATHNAME\)\(.*\$\)|\1 = \"../conf/viewvc.conf\"|g"
102
103 sed -i -e "s|\(self\.options\.template_dir\)\(.*\$\)|\1 = \"${MY_APPDIR}/templates\"|" \
104 lib/config.py
105
106 sed -i -e "s|^template_dir.*|#&|" viewvc.conf.dist
107 mv viewvc.conf{.dist,}
108 mv cvsgraph.conf{.dist,}
109 }
110
111 src_install() {
112 webapp_src_preinst
113 python_version
114
115 dodoc CHANGES COMMITTERS INSTALL README TODO
116 dohtml -r viewvc.org/*
117
118 insinto "${MOD_PATH}"
119 doins -r lib/*
120
121 insinto "${MY_APPDIR}"
122 doins -r templates/
123
124 if use mysql; then
125 exeinto "${MY_HOSTROOTDIR}"/bin
126 doexe bin/{*dbadmin,make-database,loginfo-handler}
127 fi
128
129 insinto "${MY_HOSTROOTDIR}"/conf
130 doins {viewvc,cvsgraph}.conf
131
132 if use mod_python; then
133 insinto "${MY_HTDOCSDIR}"
134 doins bin/mod_python/viewvc.py
135 doins bin/mod_python/handler.py
136 doins bin/mod_python/.htaccess
137 use mysql && doins bin/mod_python/query.py
138 else
139 exeinto "${MY_CGIBINDIR}"
140 doexe bin/cgi/viewvc.cgi
141 use mysql && doexe bin/cgi/query.cgi
142 fi
143
144 webapp_configfile "${MY_HOSTROOTDIR}"/conf/{viewvc,cvsgraph}.conf
145
146 webapp_src_install
147 }
148
149 pkg_postinst() {
150 webapp_pkg_postinst
151 python_version
152 python_mod_optimize "${MOD_PATH}"
153 elog "Now read INSTALL in /usr/share/doc/${PF} to configure ${PN}"
154 }
155
156 pkg_postrm() {
157 python_mod_cleanup
158 }