diff options
author | Robin H. Johnson <robbat2@gentoo.org> | 2015-08-08 13:49:04 -0700 |
---|---|---|
committer | Robin H. Johnson <robbat2@gentoo.org> | 2015-08-08 17:38:18 -0700 |
commit | 56bd759df1d0c750a065b8c845e93d5dfa6b549d (patch) | |
tree | 3f91093cdb475e565ae857f1c5a7fd339e2d781e /www-apps/viewvc | |
download | gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.gz gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.bz2 gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.zip |
proj/gentoo: Initial commit
This commit represents a new era for Gentoo:
Storing the gentoo-x86 tree in Git, as converted from CVS.
This commit is the start of the NEW history.
Any historical data is intended to be grafted onto this point.
Creation process:
1. Take final CVS checkout snapshot
2. Remove ALL ChangeLog* files
3. Transform all Manifests to thin
4. Remove empty Manifests
5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$
5.1. Do not touch files with -kb/-ko keyword flags.
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
X-Thanks: Alec Warner <antarus@gentoo.org> - did the GSoC 2006 migration tests
X-Thanks: Robin H. Johnson <robbat2@gentoo.org> - infra guy, herding this project
X-Thanks: Nguyen Thai Ngoc Duy <pclouds@gentoo.org> - Former Gentoo developer, wrote Git features for the migration
X-Thanks: Brian Harring <ferringb@gentoo.org> - wrote much python to improve cvs2svn
X-Thanks: Rich Freeman <rich0@gentoo.org> - validation scripts
X-Thanks: Patrick Lauer <patrick@gentoo.org> - Gentoo dev, running new 2014 work in migration
X-Thanks: Michał Górny <mgorny@gentoo.org> - scripts, QA, nagging
X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed
Diffstat (limited to 'www-apps/viewvc')
-rw-r--r-- | www-apps/viewvc/Manifest | 1 | ||||
-rw-r--r-- | www-apps/viewvc/metadata.xml | 10 | ||||
-rw-r--r-- | www-apps/viewvc/viewvc-1.1.20.ebuild | 120 |
3 files changed, 131 insertions, 0 deletions
diff --git a/www-apps/viewvc/Manifest b/www-apps/viewvc/Manifest new file mode 100644 index 000000000000..e5da4a72ef5d --- /dev/null +++ b/www-apps/viewvc/Manifest @@ -0,0 +1 @@ +DIST viewvc-1.1.20.tar.gz 616561 SHA256 ecd9b77ddcdc33594edce34751b0feae64338580c177804e2a8395874cb31ff2 SHA512 1c0129be983e6832f12cf4850ee6fe03c6a4f694d9e7643f0efe65bd3e8c7d820fdaf3bb16fd3bb3628ea133b58b1e03196f2eb439cfb6ab4727d6178516d8d1 WHIRLPOOL 5746826abcdc061b7c7fc2de49bb3034c54b8fd889038334a2b55ae5523796710b7e1f83bdddfe1127f3d795d12275939dd43c38ceb29110cf6d3a4ab1a11cd4 diff --git a/www-apps/viewvc/metadata.xml b/www-apps/viewvc/metadata.xml new file mode 100644 index 000000000000..15664488ccee --- /dev/null +++ b/www-apps/viewvc/metadata.xml @@ -0,0 +1,10 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>web-apps</herd> + <use> + <flag name="cvsgraph">Add <pkg>dev-vcs/cvsgraph</pkg> support to show graphical views of revisions and branches</flag> + <flag name="mod_wsgi">Add <pkg>www-apache/mod_wsgi</pkg> support</flag> + <flag name="pygments">Add <pkg>dev-python/pygments</pkg> support for syntax highlighting</flag> + </use> +</pkgmetadata> diff --git a/www-apps/viewvc/viewvc-1.1.20.ebuild b/www-apps/viewvc/viewvc-1.1.20.ebuild new file mode 100644 index 000000000000..a72a8da78680 --- /dev/null +++ b/www-apps/viewvc/viewvc-1.1.20.ebuild @@ -0,0 +1,120 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="5" +PYTHON_DEPEND="2" +SUPPORT_PYTHON_ABIS="1" +RESTRICT_PYTHON_ABIS="3.* *-jython" + +inherit confutils eutils python webapp + +WEBAPP_MANUAL_SLOT="yes" + +DESCRIPTION="ViewVC, a web interface to CVS and Subversion" +HOMEPAGE="http://viewvc.org/" +DOWNLOAD_NUMBER="49275" +SRC_URI="http://viewvc.tigris.org/files/documents/3330/${DOWNLOAD_NUMBER}/${P}.tar.gz" + +LICENSE="BSD-2" +SLOT="0" +KEYWORDS="amd64 ~ppc x86" +IUSE="cvs cvsgraph mod_wsgi mysql pygments +subversion" + +DEPEND="" +RDEPEND=" + cvs? ( dev-vcs/rcs ) + subversion? ( >=dev-vcs/subversion-1.3.1[python] ) + + mod_wsgi? ( www-apache/mod_wsgi ) + !mod_wsgi? ( virtual/httpd-cgi ) + + cvsgraph? ( >=dev-vcs/cvsgraph-1.5.0 ) + mysql? ( >=dev-python/mysql-python-0.9.0 ) + pygments? ( + dev-python/pygments + app-misc/mime-types + ) +" + +pkg_setup() { + python_pkg_setup + webapp_pkg_setup + + confutils_require_any cvs subversion +} + +src_prepare() { + find bin/ -type f -print0 | xargs -0 sed -i \ + -e "s|\(^LIBRARY_DIR\)\(.*\$\)|\1 = \"$(python_get_sitedir -f)/${PN}\"|g" \ + -e "s|\(^CONF_PATHNAME\)\(.*\$\)|\1 = \"../conf/viewvc.conf\"|g" + + sed -i -e "s|\(self\.options\.template_dir\)\(.*\$\)|\1 = \"${MY_APPDIR}/templates\"|" \ + lib/config.py + + sed -i -e "s|^template_dir.*|#&|" conf/viewvc.conf.dist + sed -i -e "s|^#mime_types_files =.*|mime_types_files = /etc/mime.types|" conf/viewvc.conf.dist + mv conf/viewvc.conf{.dist,} + mv conf/cvsgraph.conf{.dist,} + + python_convert_shebangs -r 2 . +} + +src_install() { + webapp_src_preinst + + newbin bin/standalone.py viewvc-standalone-server + + dodoc CHANGES COMMITTERS INSTALL README + + installation() { + insinto $(python_get_sitedir)/${PN} + doins -r lib/* + } + python_execute_function installation + + insinto "${MY_APPDIR}" + doins -r templates/ || die "doins failed" + doins -r templates-contrib/ + + if use mysql; then + exeinto "${MY_HOSTROOTDIR}/bin" + doexe bin/{*dbadmin,make-database,loginfo-handler} + fi + + insinto "${MY_HOSTROOTDIR}/conf" + doins conf/{viewvc,cvsgraph}.conf + + exeinto "${MY_CGIBINDIR}" + doexe bin/cgi/viewvc.cgi + if use mysql; then + doexe bin/cgi/query.cgi + fi + + exeinto "${MY_CGIBINDIR}" + if use mod_wsgi; then + doexe bin/wsgi/viewvc.wsgi + if use mysql; then + doexe bin/wsgi/query.wsgi + fi + else + doexe bin/wsgi/viewvc.fcgi + if use mysql; then + doexe bin/wsgi/query.fcgi + fi + fi + + webapp_configfile "${MY_HOSTROOTDIR}/conf/"{viewvc,cvsgraph}.conf + + webapp_src_install +} + +pkg_postinst() { + python_mod_optimize viewvc + webapp_pkg_postinst + elog "Now read INSTALL in /usr/share/doc/${PF} to configure ${PN}" +} + +pkg_postrm() { + python_mod_cleanup viewvc +} |