From 4f2d7949f03e1c198bc888f2d05f421d35c57e21 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Mon, 9 Oct 2017 18:53:29 +0100 Subject: reinit the tree, so we can have metadata --- www-apps/viewvc/Manifest | 5 ++ www-apps/viewvc/metadata.xml | 13 ++++ www-apps/viewvc/viewvc-1.1.26.ebuild | 111 +++++++++++++++++++++++++++++++++++ 3 files changed, 129 insertions(+) create mode 100644 www-apps/viewvc/Manifest create mode 100644 www-apps/viewvc/metadata.xml create mode 100644 www-apps/viewvc/viewvc-1.1.26.ebuild (limited to 'www-apps/viewvc') diff --git a/www-apps/viewvc/Manifest b/www-apps/viewvc/Manifest new file mode 100644 index 000000000000..c42a483bd1a6 --- /dev/null +++ b/www-apps/viewvc/Manifest @@ -0,0 +1,5 @@ +DIST viewvc-1.1.26.tar.gz 616103 SHA256 9d718237df7fc04d511302812c0bec0363cf6b8334ab796953a764c2de426e43 SHA512 af70d4344fe92f942debb407b6fad909e250ba2656499f5229e1c2f018dfbd783d0cebd28c49a429bd7b155bb6db02cead602384f91b99b7ced6aa365e32bb8e WHIRLPOOL d8d6348d9d4c48176ff71af6aec74c4d3d73a58217b7b6b23f27d47503548df66cb0121b7d17d89c2a9a0524280b22960fcbf3a7b11a35c8411626f8759c2d50 +EBUILD viewvc-1.1.26.ebuild 2581 SHA256 91076be4ef5a1ae2783b01e6bbbb8012d0f185703aaefcd0122608fe2e5c46ab SHA512 a764d406fd20279ae6af58b9f727b5677619d79e3ac274cf8aea27700352939027bcc128fbb1cb9f58540d4158907ba5856be1da836eaec6e772b407822e9c0f WHIRLPOOL e4c8e6c449054d701c027c45911ed6e91227c33b3de7d33d7f16ec80ff467efbed34c0c4c4096e573d7a393b8cc7cf8a07287dec8ec33d8157bd654895ff59f7 +MISC ChangeLog 2426 SHA256 92cddc5815b2106861a6d816614dcb10134248c32546a9b756e5530e0fab9da4 SHA512 87809d0c92360193408fa63578ce3a2d2ad4fb56dab89d2bd889ceed200f8d05168e73af63c2a776af78e06495d6f4a6fc623f1dea342dc0019a0f6dfbd88eae WHIRLPOOL 87eb44f7a844569a56c7b5096c5914d41d4b30d7e8ed16fdc0f5d1d1b1c616a661af19a3b8b7b55bb11e281c1b5049902ee4f92e6b9ddb9814997cdfe2e493f5 +MISC ChangeLog-2015 12030 SHA256 9a61dbb8ba35f28b6af2940eb6ee2d9858dc997d44a548272a3bdf3589966fca SHA512 43d25ca30c91c802671758f672d3beaee5da8ab2d7c583ba3b0b89747de41866f7072086bfb12f327f48187e35d1a56fdd208bad9d9328b72dad799eaf162c3c WHIRLPOOL 63d99ce3c4e8e6319f6e4452e9c635a7cfb32cc04cf2a298f8a1ede027d78160cda5c058c40c08660cfb65ac7cc42f6fad32e24bc30ed1446e64c5bd801a122f +MISC metadata.xml 558 SHA256 1e54064260e5aaa74b19ea4f09bad5e19b44b3f36afc78dd4110e3b938191db2 SHA512 9623aa98ccf5ab79b5784e6cf7773ffb769ebd2c73847df3be6f0caa1cfaa59c73b5f820b13a02ccbf0398e3e33e20174f5d81c279ec707d5a574fa0cdde24db WHIRLPOOL 1ebd3d758eac5c00cdfe7d3d92539dbe2d1509867fbc9cc294689fdc77fd52e17b7ecda7230913cc5d1f96a8955681707ae534fc64a60a0b0de69b47f835e5d6 diff --git a/www-apps/viewvc/metadata.xml b/www-apps/viewvc/metadata.xml new file mode 100644 index 000000000000..e3f695364293 --- /dev/null +++ b/www-apps/viewvc/metadata.xml @@ -0,0 +1,13 @@ + + + + + web-apps@gentoo.org + Gentoo Webapps + + + Add dev-vcs/cvsgraph support to show graphical views of revisions and branches + Add www-apache/mod_wsgi support + Add dev-python/pygments support for syntax highlighting + + diff --git a/www-apps/viewvc/viewvc-1.1.26.ebuild b/www-apps/viewvc/viewvc-1.1.26.ebuild new file mode 100644 index 000000000000..d0627301f127 --- /dev/null +++ b/www-apps/viewvc/viewvc-1.1.26.ebuild @@ -0,0 +1,111 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +PYTHON_COMPAT=( python2_7 ) + +inherit eutils python-single-r1 webapp + +WEBAPP_MANUAL_SLOT="yes" + +DESCRIPTION="ViewVC, a web interface to CVS and Subversion" +HOMEPAGE="http://viewvc.org/" +SRC_URI="http://viewvc.org/downloads/${P}.tar.gz" + +LICENSE="BSD-2" +SLOT="0" +KEYWORDS="amd64 ~ppc x86" +IUSE="cvs cvsgraph mod_wsgi mysql pygments +subversion" + +DEPEND="" +RDEPEND="${PYTHON_DEPS} + cvs? ( dev-vcs/rcs ) + subversion? ( >=dev-vcs/subversion-1.3.1[python,${PYTHON_USEDEP}] ) + + mod_wsgi? ( www-apache/mod_wsgi[${PYTHON_USEDEP}] ) + !mod_wsgi? ( virtual/httpd-cgi ) + + cvsgraph? ( >=dev-vcs/cvsgraph-1.5.0 ) + mysql? ( >=dev-python/mysql-python-0.9.0[${PYTHON_USEDEP}] ) + pygments? ( + dev-python/pygments[${PYTHON_USEDEP}] + app-misc/mime-types + ) +" + +REQUIRED_USE="${PYTHON_REQUIRED_USE} + || ( cvs subversion )" + +pkg_setup() { + python-single-r1_pkg_setup + webapp_pkg_setup +} + +src_prepare() { + eapply_user + + find bin/ -type f -print0 | xargs -0 sed -i \ + -e "s|\(^LIBRARY_DIR\)\(.*\$\)|\1 = \"$(python_get_sitedir)/${PN}\"|g" \ + -e "s|\(^CONF_PATHNAME\)\(.*\$\)|\1 = \"../conf/viewvc.conf\"|g" || die + + sed -i -e "s|\(self\.options\.template_dir\)\(.*\$\)|\1 = \"${MY_APPDIR}/templates\"|" \ + lib/config.py || die + + sed -i -e "s|^template_dir.*|#&|" conf/viewvc.conf.dist || die + sed -i -e "s|^#mime_types_files =.*|mime_types_files = /etc/mime.types|" conf/viewvc.conf.dist || die + mv conf/viewvc.conf{.dist,} || die + mv conf/cvsgraph.conf{.dist,} || die + + python_fix_shebang . +} + +src_install() { + webapp_src_preinst + + newbin bin/standalone.py viewvc-standalone-server + + dodoc CHANGES COMMITTERS INSTALL README + + python_moduleinto viewvc + python_domodule lib/. + + 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() { + webapp_pkg_postinst + elog "Now read INSTALL in /usr/share/doc/${PF} to configure ${PN}" +} -- cgit v1.2.3