Annotation of /trunk/extras/viewvc/viewvc-1.0.5-r1.smage2
Parent Directory | Revision Log
Revision 2 -
(hide annotations)
(download)
Fri Oct 10 13:29:42 2008 UTC (15 years, 8 months ago) by niro
File size: 1837 byte(s)
Fri Oct 10 13:29:42 2008 UTC (15 years, 8 months ago) by niro
File size: 1837 byte(s)
import repo
1 | niro | 2 | # $Header: /magellan-cvs/smage/viewvc/viewvc-1.0.5-r1.smage2,v 1.2 2008/03/17 16:25:48 niro Exp $ |
2 | |||
3 | PNAME="viewvc" | ||
4 | PVER="1.0.5" | ||
5 | PBUILD="r1" | ||
6 | |||
7 | PCATEGORIE="net-www" | ||
8 | STATE="unstable" | ||
9 | |||
10 | DESCRIPTION="ViewVC is a browser interface for CVS and Subversion version control repositories." | ||
11 | HOMEPAGE="http://www.viewvc.org/" | ||
12 | |||
13 | DEPEND=">= net-www/apache2-2 | ||
14 | >= dev-lang/python-2.5" | ||
15 | |||
16 | SRCFILE="${PNAME}-${PVER}.tar.gz" | ||
17 | SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" | ||
18 | |||
19 | sminclude mtools | ||
20 | |||
21 | SRC_URI=( | ||
22 | http://viewvc.tigris.org/files/documents/3330/41694/${SRCFILE} | ||
23 | mirror://${PNAME}/${SRCFILE} | ||
24 | mirror://${PNAME}/viewvc_module.conf | ||
25 | ) | ||
26 | |||
27 | src_prepare() | ||
28 | { | ||
29 | munpack ${SRCFILE} || die | ||
30 | } | ||
31 | |||
32 | src_install() | ||
33 | { | ||
34 | cd ${SRCDIR} | ||
35 | |||
36 | # needed directories | ||
37 | minstalldir /etc/apache2/modules.d || die | ||
38 | minstalldir /etc/viewvc || die | ||
39 | |||
40 | # install | ||
41 | ./viewvc-install --prefix=/usr/share/viewvc --destdir=${BINDIR} || die | ||
42 | |||
43 | # move viewvc configs to a proper place | ||
44 | local i | ||
45 | for i in cvsgraph.conf cvsgraph.conf.dist \ | ||
46 | viewvc.conf viewvc.conf.dist | ||
47 | do | ||
48 | mv ${BINDIR}/usr/share/viewvc/${i} ${BINDIR}/etc/viewvc/ || die | ||
49 | mlink /etc/viewvc/${i} /usr/share/viewvc/ || die | ||
50 | done | ||
51 | |||
52 | # apache module configuration file | ||
53 | minstallfile -s viewvc_module.conf /etc/apache2/modules.d/viewvc.conf || die | ||
54 | |||
55 | # install docs | ||
56 | minstalldocs CHANGES COMMITTERS INSTALL README TODO || die | ||
57 | } | ||
58 | |||
59 | postinstall() | ||
60 | { | ||
61 | echo | ||
62 | echo "You can either use ViewVC with CVS or with Subversion repositories." | ||
63 | echo "Please install 'app-text/rcs' for CVS support" | ||
64 | echo "or install 'dev-util/subversion' for Subversion support." | ||
65 | echo | ||
66 | # !!! ToDO: | ||
67 | # echo "ViewVC integrates with additional pieces of software:" | ||
68 | # echo " - dev-db/mysql5 - needed to use the commit database query functionality" | ||
69 | # echo " - app-text/enscript - needed for syntax highlighting" | ||
70 | # echo " - dev-util/cvsgraph - needed for version graph displays" | ||
71 | # echo | ||
72 | } |
Properties
Name | Value |
---|---|
svn:keywords | Id |