# $Header: /magellan-cvs/smage/viewvc/viewvc-1.0.5-r1.smage2,v 1.2 2008/03/17 16:25:48 niro Exp $ PNAME="viewvc" PVER="1.0.5" PBUILD="r1" PCATEGORIE="net-www" STATE="unstable" DESCRIPTION="ViewVC is a browser interface for CVS and Subversion version control repositories." HOMEPAGE="http://www.viewvc.org/" DEPEND=">= net-www/apache2-2 >= dev-lang/python-2.5" SRCFILE="${PNAME}-${PVER}.tar.gz" SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" sminclude mtools SRC_URI=( http://viewvc.tigris.org/files/documents/3330/41694/${SRCFILE} mirror://${PNAME}/${SRCFILE} mirror://${PNAME}/viewvc_module.conf ) src_prepare() { munpack ${SRCFILE} || die } src_install() { cd ${SRCDIR} # needed directories minstalldir /etc/apache2/modules.d || die minstalldir /etc/viewvc || die # install ./viewvc-install --prefix=/usr/share/viewvc --destdir=${BINDIR} || die # move viewvc configs to a proper place local i for i in cvsgraph.conf cvsgraph.conf.dist \ viewvc.conf viewvc.conf.dist do mv ${BINDIR}/usr/share/viewvc/${i} ${BINDIR}/etc/viewvc/ || die mlink /etc/viewvc/${i} /usr/share/viewvc/ || die done # apache module configuration file minstallfile -s viewvc_module.conf /etc/apache2/modules.d/viewvc.conf || die # install docs minstalldocs CHANGES COMMITTERS INSTALL README TODO || die } postinstall() { echo echo "You can either use ViewVC with CVS or with Subversion repositories." echo "Please install 'app-text/rcs' for CVS support" echo "or install 'dev-util/subversion' for Subversion support." echo # !!! ToDO: # echo "ViewVC integrates with additional pieces of software:" # echo " - dev-db/mysql5 - needed to use the commit database query functionality" # echo " - app-text/enscript - needed for syntax highlighting" # echo " - dev-util/cvsgraph - needed for version graph displays" # echo }