From 71deace00d1a2b091313fe137ab7092418c6f87c Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Mon, 10 Feb 2020 21:05:55 +0000 Subject: gentoo resync : 10.02.2020 --- www-apps/viewvc/Manifest | 2 +- www-apps/viewvc/viewvc-1.1.26-r1.ebuild | 115 ++++++++++++++++++++++++++++++++ www-apps/viewvc/viewvc-1.1.26.ebuild | 111 ------------------------------ 3 files changed, 116 insertions(+), 112 deletions(-) create mode 100644 www-apps/viewvc/viewvc-1.1.26-r1.ebuild delete 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 index ba92c9e74b2a..2f2706abff51 100644 --- a/www-apps/viewvc/Manifest +++ b/www-apps/viewvc/Manifest @@ -1,3 +1,3 @@ DIST viewvc-1.1.26.tar.gz 616103 BLAKE2B e622dbf247641ddcdd68d54a8e10168d4b7506c2cb53f6d2e30b9bac36207520cde57d81875e1e0106287da9b4bf312abc2c69b15d206e557cf93a2b26cae446 SHA512 af70d4344fe92f942debb407b6fad909e250ba2656499f5229e1c2f018dfbd783d0cebd28c49a429bd7b155bb6db02cead602384f91b99b7ced6aa365e32bb8e -EBUILD viewvc-1.1.26.ebuild 2559 BLAKE2B 6ed71fe42d8556438b4946aac14992688d5dcddc28cf3011dab0f1ff3c593f8e46c95d9226a3b6c2f94191e1d233e5e0dccbbb0c7adf237cc5b5a2387e83d220 SHA512 c6997566f74e0804d8b8562568135e9f39423b1368de0d12b36d4b4ce85379e7ee7a43a6140d9740225854ac000dcca105d20023928d4ebf239192b4bab47e78 +EBUILD viewvc-1.1.26-r1.ebuild 2618 BLAKE2B 421d26caf4a49f2f8a3276a54c920a573797d575e60453dda15f49a8bd5e90d418debef0631a3fab1404309258cc998bd099e5a5d9b0f03043971ed2f67211ac SHA512 a6ff0fcfdecb2ecff6a8e3da98490ed28552cac5bf572d2c414b56ac32048321072e2100cd22acbc4ea0d33d3856b8bd55a7a4f6580818b4665eac07f7a0c423 MISC metadata.xml 558 BLAKE2B 3e08174918193e922abeea23a32ec3b6732d300380cd01aafd3e15476c1c0eba2bdd9e63750c9fe37addd11ea03c03c03f25cf2184b372b14430b583148eba1d SHA512 9623aa98ccf5ab79b5784e6cf7773ffb769ebd2c73847df3be6f0caa1cfaa59c73b5f820b13a02ccbf0398e3e33e20174f5d81c279ec707d5a574fa0cdde24db diff --git a/www-apps/viewvc/viewvc-1.1.26-r1.ebuild b/www-apps/viewvc/viewvc-1.1.26-r1.ebuild new file mode 100644 index 000000000000..fa7bfd6b69c2 --- /dev/null +++ b/www-apps/viewvc/viewvc-1.1.26-r1.ebuild @@ -0,0 +1,115 @@ +# Copyright 1999-2020 Gentoo Authors +# 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 ) + + mod_wsgi? ( www-apache/mod_wsgi[${PYTHON_SINGLE_USEDEP}] ) + !mod_wsgi? ( virtual/httpd-cgi ) + + cvsgraph? ( >=dev-vcs/cvsgraph-1.5.0 ) + + $(python_gen_cond_dep ' + subversion? ( >=dev-vcs/subversion-1.3.1[python,${PYTHON_MULTI_USEDEP}] ) + + mysql? ( >=dev-python/mysql-python-0.9.0[${PYTHON_MULTI_USEDEP}] ) + pygments? ( + dev-python/pygments[${PYTHON_MULTI_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/ + 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}" +} diff --git a/www-apps/viewvc/viewvc-1.1.26.ebuild b/www-apps/viewvc/viewvc-1.1.26.ebuild deleted file mode 100644 index 787b46c03658..000000000000 --- a/www-apps/viewvc/viewvc-1.1.26.ebuild +++ /dev/null @@ -1,111 +0,0 @@ -# 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/ - 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