diff options
author | Renat Lumpau <rl03@gentoo.org> | 2007-05-26 22:14:36 +0000 |
---|---|---|
committer | Renat Lumpau <rl03@gentoo.org> | 2007-05-26 22:14:36 +0000 |
commit | e53e26155aa8597a384e55e2e6dfa9727fdbc493 (patch) | |
tree | 33f0075b0e6240f1af21fe39aee93cdfddc0f1e1 /www-apps/viewvc/viewvc-1.0.4.ebuild | |
parent | Keyworded ~amd64 (diff) | |
download | gentoo-2-e53e26155aa8597a384e55e2e6dfa9727fdbc493.tar.gz gentoo-2-e53e26155aa8597a384e55e2e6dfa9727fdbc493.tar.bz2 gentoo-2-e53e26155aa8597a384e55e2e6dfa9727fdbc493.zip |
Version bump, fixes #179612, #175618, #175840.
(Portage version: 2.1.2.8)
Diffstat (limited to 'www-apps/viewvc/viewvc-1.0.4.ebuild')
-rw-r--r-- | www-apps/viewvc/viewvc-1.0.4.ebuild | 106 |
1 files changed, 106 insertions, 0 deletions
diff --git a/www-apps/viewvc/viewvc-1.0.4.ebuild b/www-apps/viewvc/viewvc-1.0.4.ebuild new file mode 100644 index 000000000000..52dd2a8c1782 --- /dev/null +++ b/www-apps/viewvc/viewvc-1.0.4.ebuild @@ -0,0 +1,106 @@ +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/www-apps/viewvc/viewvc-1.0.4.ebuild,v 1.1 2007/05/26 22:14:36 rl03 Exp $ + +inherit python eutils + +SLOT="0" + +DESCRIPTION="ViewVC, a web interface to CVS and Subversion" +HOMEPAGE="http://viewvc.org/" +SRC_URI="http://viewvc.tigris.org/files/documents/3330/37319/${P}.tar.gz" + +LICENSE="viewcvs" +KEYWORDS="~amd64 ~ppc ~sparc ~x86" +IUSE="cvs cvsgraph enscript highlight mod_python mysql subversion" + +RDEPEND=" + cvs? ( + >=dev-lang/python-1.5.2 + app-text/rcs + ) + + subversion? ( + >=dev-lang/python-2.0 + >=dev-util/subversion-1.2.0 + ) + + cvsgraph? ( >=dev-util/cvsgraph-1.5.0 ) + enscript? ( app-text/enscript ) + highlight? ( >=app-text/highlight-2.2.10 ) + mod_python? ( dev-python/mod_python ) + mysql? ( + >=dev-python/mysql-python-0.9.0 + ) +" + +pkg_setup() { + if use subversion && ! built_with_use dev-util/subversion python ; then + eerror "Your Subversion has been built without Python bindings" + die "Emerge dev-util/subversion with USE=\"python\"" + fi +} + +src_unpack() { + unpack ${A} && cd ${S} + + python_version + local LIB_DIR="/usr/$(get_libdir)/python${PYVER}/site-packages/${PN}" + local CONF_PATH="/usr/share/webapps/${PN}/viewvc.conf" + find bin -type f | + xargs sed -ie " s|\(^LIBRARY_DIR\)\(.*\$\)|\1 = \"${LIB_DIR}\"|g + s,\(^CONF_PATHNAME\)\(.*\$\),\1 = \"${CONF_PATH}\",g" + sed -i "s|template_dir = templates|template_dir = /usr/share/webapps/${PN}/templates|" \ + viewvc.conf.dist +} + +src_install() { + python_version + + dodir /usr/share/webapps/${PN} /usr/share/webapps/${PN}/cgi-bin \ + /usr/share/webapps/${PN}/mod_python /usr/share/webapps/${PN}/bin \ + /usr/$(get_libdir)/python${PYVER}/site-packages/${PN} + + exeinto /usr/share/webapps/${PN}/cgi-bin + doexe bin/cgi/viewvc.cgi + + if use mysql ; then + exeinto /usr/share/webapps/${PN}/cgi-bin + doexe bin/cgi/query.cgi + fi + + if use mod_python ; then + insinto /usr/share/webapps/${PN}/mod_python + doins bin/mod_python/viewvc.py + doins bin/mod_python/handler.py + doins bin/mod_python/.htaccess + + if use mysql ; then + insinto /usr/share/webapps/${PN}/mod_python + doins bin/mod_python/query.py + fi + fi + + cp -p bin/* ${D}/usr/share/webapps/${PN}/bin + cp -rp templates ${D}/usr/share/webapps/${PN} + cp -rp lib/* ${D}/usr/$(get_libdir)/python${PYVER}/site-packages/${PN} + + insinto /usr/share/webapps/${PN} + doins viewvc.conf.dist cvsgraph.conf.dist + + dodoc CHANGES COMMITTERS INSTALL README TODO + dohtml -r viewvc.org/* +} + +pkg_postinst() { + python_version + python_mod_optimize ${ROOT}usr/$(get_libdir)/python${PYVER}/site-packages/${PN} + + local mansuffix=$(ecompress --suffix) + elog "Now read /usr/share/doc/${P}/INSTALL${mansuffix} to configure ${PN}" +} + +pkg_postrm() { + python_version + python_mod_cleanup +} |