Magellan Linux

Contents of /branches/R11-unstable/extras/viewvc/viewvc-1.1.24-r2.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 32384 - (show annotations) (download)
Mon Apr 29 12:25:06 2019 UTC (5 years ago) by niro
File size: 1901 byte(s)
-release branches/R11-unstable
1 # $Id$
2
3 PNAME="viewvc"
4 PVER="1.1.24"
5 PBUILD="r2"
6
7 PCAT="net-www"
8
9 DESCRIPTION="ViewVC is a browser interface for CVS and Subversion version control repositories."
10 HOMEPAGE="http://www.viewvc.org/"
11
12 DEPEND=">= net-www/apache2-2.4
13 >= net-www/apache2-mod_wsgi-4.4"
14
15 SRCFILE="${PNAME}-${PVER}.tar.gz"
16 SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
17
18 sminclude mtools
19
20 # viewvc module
21 TIGRIS_MODULE="3330"
22 # viewvc tarball
23 TIGRIS_FILE="49471"
24
25 SRC_URI=(
26 http://viewvc.tigris.org/files/documents/${TIGRIS_MODULE}/${TIGRIS_FILE}/${SRCFILE}
27 mirror://${PNAME}/${SRCFILE}
28 mirror://${PNAME}/viewvc_module-mod_wsgi.conf
29 )
30
31 src_prepare()
32 {
33 munpack ${SRCFILE} || die
34 }
35
36 src_install()
37 {
38 cd ${SRCDIR}
39
40 local apache_modules_dir
41 apache_modules_dir="$(apxs -q sysconfdir)/modules.d"
42
43 # install
44 ./viewvc-install --prefix=/usr/share/viewvc --destdir=${BINDIR} || die
45
46 # move viewvc configs to a proper place
47 minstalldir /etc/viewvc || die
48 local i
49 for i in cvsgraph.conf cvsgraph.conf.dist viewvc.conf viewvc.conf.dist
50 do
51 mv ${BINDIR}/usr/share/viewvc/${i} ${BINDIR}/etc/viewvc/ || die
52 mlink /etc/viewvc/${i} /usr/share/viewvc/ || die
53 done
54
55 # apache module configuration file
56 minstalldir ${apache_modules_dir} || die
57 minstallfile -s viewvc_module-mod_wsgi.conf ${apache_modules_dir}/viewvc.conf || die
58
59 # install docs
60 minstalldocs CHANGES COMMITTERS INSTALL README TODO || die
61 }
62
63 postinstall()
64 {
65 echo
66 echo "You can either use ViewVC with CVS or with Subversion repositories."
67 echo "Please install 'app-text/rcs' for CVS support"
68 echo "or install 'dev-util/subversion' for Subversion support."
69 echo
70 # !!! ToDO:
71 # echo "ViewVC integrates with additional pieces of software:"
72 # echo " - dev-db/mysql5 - needed to use the commit database query functionality"
73 # echo " - app-text/enscript - needed for syntax highlighting"
74 # echo " - dev-util/cvsgraph - needed for version graph displays"
75 # echo
76 }