Magellan Linux

Annotation of /trunk/extras/viewvc/viewvc-1.1.3-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 5120 - (hide annotations) (download)
Sun Mar 7 19:16:04 2010 UTC (14 years, 3 months ago) by niro
File size: 2027 byte(s)
auto added: ver bump to 1.1.3-r1
1 niro 5120 # $Id$
2    
3     PNAME="viewvc"
4     PVER="1.1.3"
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.6"
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/47194/${SRCFILE}
23     mirror://${PNAME}/${SRCFILE}
24     mirror://${PNAME}/viewvc_module.conf
25     mirror://${PNAME}/${PNAME}-${PVER}-config.patch
26     )
27    
28     UP2DATE="updatecmd http://viewvc.tigris.org/servlets/ProjectDocumentList?folderID=6004 | lasttarball gz"
29    
30     src_prepare()
31     {
32     munpack ${SRCFILE} || die
33     cd ${SRCDIR}
34    
35     # patch from upstream; fix issues with overlay directives issues
36     mpatch ${PNAME}-${PVER}-config.patch || die
37     }
38    
39     src_install()
40     {
41     cd ${SRCDIR}
42    
43     # needed directories
44     minstalldir /etc/apache2/modules.d || die
45     minstalldir /etc/viewvc || die
46    
47     # install
48     ./viewvc-install --prefix=/usr/share/viewvc --destdir=${BINDIR} || die
49    
50     # move viewvc configs to a proper place
51     local i
52     for i in cvsgraph.conf cvsgraph.conf.dist \
53     viewvc.conf viewvc.conf.dist
54     do
55     mv ${BINDIR}/usr/share/viewvc/${i} ${BINDIR}/etc/viewvc/ || die
56     mlink /etc/viewvc/${i} /usr/share/viewvc/ || die
57     done
58    
59     # apache module configuration file
60     minstallfile -s viewvc_module.conf /etc/apache2/modules.d/viewvc.conf || die
61    
62     # install docs
63     minstalldocs CHANGES COMMITTERS INSTALL README TODO || die
64     }
65    
66     postinstall()
67     {
68     echo
69     echo "You can either use ViewVC with CVS or with Subversion repositories."
70     echo "Please install 'app-text/rcs' for CVS support"
71     echo "or install 'dev-util/subversion' for Subversion support."
72     echo
73     # !!! ToDO:
74     # echo "ViewVC integrates with additional pieces of software:"
75     # echo " - dev-db/mysql5 - needed to use the commit database query functionality"
76     # echo " - app-text/enscript - needed for syntax highlighting"
77     # echo " - dev-util/cvsgraph - needed for version graph displays"
78     # echo
79     }

Properties

Name Value
svn:keywords Id