commit:     839574765c0990957b47a8498b8f231e4e10dc57
Author:     Hans de Graaff <hans <AT> degraaff <DOT> org>
AuthorDate: Wed Oct 19 05:38:03 2016 +0000
Commit:     Hans de Graaff <graaff <AT> gentoo <DOT> org>
CommitDate: Wed Oct 19 05:38:03 2016 +0000
URL:        https://gitweb.gentoo.org/dev/graaff.git/commit/?id=83957476

add 2.5.7

Package-Manager: portage-2.3.0
RepoMan-Options: --force

 dev-util/reviewboard/Manifest                 |   1 +
 dev-util/reviewboard/reviewboard-2.5.7.ebuild | 128 ++++++++++++++++++++++++++
 2 files changed, 129 insertions(+)

diff --git a/dev-util/reviewboard/Manifest b/dev-util/reviewboard/Manifest
index 426337c..68f048d 100644
--- a/dev-util/reviewboard/Manifest
+++ b/dev-util/reviewboard/Manifest
@@ -1,2 +1,3 @@
 DIST ReviewBoard-2.5.5.tar.gz 12765349 SHA256 
539218b2fbbf4c472c163c34ec232c43d386ac3f041144d7186a18542ef06f9a SHA512 
9a4e8c5f57fe5a78715389a2af5378152dbe30f1a9566a1a2369bec43cf07a765357e8778c949796446391cea0aacd38d3bd20e0c3d3a068961a1ec37449e3f6
 WHIRLPOOL 
c520b357979f0bd1bf42aa0a6e10cb9b448ea2c572617fef697d652c1b0e6c70059932508dad70a250055a6b181dca540ea753517b2d5ad19726e2c1ed881159
 DIST ReviewBoard-2.5.6.1.tar.gz 12768789 SHA256 
415c40472efcf153c8d223ea217234b444d56816bb89b5178b2ac2dedb6268ee SHA512 
909d437c7328e9a3cec0a339e69966004f296232545a3e3d1ebd2f2591cbdea398b16fde450656b4f86fc4f3ada0e9592d56c37135f62de011ebf1d3b4fc90fd
 WHIRLPOOL 
ddd322140707af145c5d61806c69062f35b7b9cbf29c9ac6521935aa068f1fc7ba5810ab459e8dd1933bd5056418779fe7b3ac9f9522c7aa3d9c4d57423c200b
+DIST ReviewBoard-2.5.7.tar.gz 12925352 SHA256 
ea1ccf2f6ecc5670fb7eab485b58ac7a0847ba16734bd62b6ab3d582751927d1 SHA512 
ad6e88a73f43be3cad2ae2c8ecc93bfc1c8d557138fce1970b7ab71c20a83c947b3a0491d97bfebb07ba10da02705d436d3bf90e1a153171c0cd2994ec233863
 WHIRLPOOL 
f49c279a395e8727139d50fb7b5fd065e651f3868d64c029971000411afbccfb0afb191d3bc56e9d46f60c1e31149d67024869a22b1504a4faed7f1f841090d7

diff --git a/dev-util/reviewboard/reviewboard-2.5.7.ebuild 
b/dev-util/reviewboard/reviewboard-2.5.7.ebuild
new file mode 100644
index 0000000..b0177fb
--- /dev/null
+++ b/dev-util/reviewboard/reviewboard-2.5.7.ebuild
@@ -0,0 +1,128 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+PYTHON_COMPAT=( python2_7 )
+PYTHON_REQ_USE="sqlite"
+
+inherit distutils-r1
+
+MY_PN="ReviewBoard"
+DESCRIPTION="A web-based code review tool that offers developers a way to 
handle code reviews"
+HOMEPAGE="http://www.reviewboard.org/";
+SRC_URI="http://downloads.reviewboard.org/releases/${MY_PN}/2.5/${MY_PN}-${PV}.tar.gz";
+KEYWORDS="~amd64 ~x86"
+IUSE="codebase doc manual rnotes test"
+
+LICENSE="MIT"
+SLOT="0"
+S=${WORKDIR}/${MY_PN}-${PV}
+
+RDEPEND=">=dev-python/django-1.6.11.1[${PYTHON_USEDEP},sqlite]
+       <dev-python/django-1.7[${PYTHON_USEDEP},sqlite]
+       >=dev-python/django-evolution-0.7.6[${PYTHON_USEDEP}]
+       <dev-python/django-evolution-0.8[${PYTHON_USEDEP}]
+       >=dev-python/django-haystack-2.3.1[${PYTHON_USEDEP}]
+       <dev-python/django-haystack-2.5[${PYTHON_USEDEP}]
+       dev-python/django-multiselectfield[${PYTHON_USEDEP}]
+       >=dev-python/Djblets-0.9.3[${PYTHON_USEDEP}]
+       <dev-python/Djblets-0.10[${PYTHON_USEDEP}]
+       >=dev-python/pygments-1.6[${PYTHON_USEDEP}]
+       dev-python/docutils[${PYTHON_USEDEP}]
+       >=dev-python/markdown-2.6.0[${PYTHON_USEDEP}]
+       <dev-python/markdown-2.7[${PYTHON_USEDEP}]
+       >=dev-python/paramiko-1.12[${PYTHON_USEDEP}]
+       dev-python/pillow[${PYTHON_USEDEP}]
+       >=dev-python/pycrypto-2.6[${PYTHON_USEDEP}]
+       >=dev-python/mimeparse-0.1.3[${PYTHON_USEDEP}]
+       >=dev-python/python-dateutil-1.5[${PYTHON_USEDEP}]
+       dev-python/python-memcached[${PYTHON_USEDEP}]
+       >=dev-python/pytz-2012h[${PYTHON_USEDEP}]
+       dev-python/recaptcha-client[${PYTHON_USEDEP}]
+       >=dev-python/whoosh-2.6[${PYTHON_USEDEP}]"
+DEPEND="${RDEPEND}
+       dev-python/setuptools[${PYTHON_USEDEP}]
+       test? ( dev-python/nose[${PYTHON_USEDEP}] )
+       doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )"
+
+REQUIRED_USE="doc? ( || ( codebase manual rnotes ) )"
+# Tests mostly access the inet and when run mostly fail
+RESTRICT=test
+
+python_prepare_all() {
+       # Running uglify is a problem right now, so skip this step. Rather
+       # have newer versions than compacted javascript.
+       sed -e "s/'pipeline.compressors.uglifyjs.UglifyJSCompressor'/None/" -i 
reviewboard/settings.py || die
+
+       # 
https://github.com/reviewboard/reviewboard/commit/b1b8867deb7cd857003d8abbf16e85897b0cb4bf
+       # # The version bordering of python-dateutil is long out of date and 
wrong since end of March 2012!
+       sed -e 's:==1.5:>=1.5:' -i setup.py || die
+
+       # Use newer markdown version still available
+       sed -i -e '/markdown/ s/2.4/2.6/g' setup.py || die
+
+       distutils-r1_python_prepare_all
+}
+
+python_compile_all() {
+       # See https://code.google.com/p/reviewboard/issues/ #3009
+       # until build of manual can find and use ROOT_URLCONF, only possible 
build path for manual
+       # requires sacrificing the resources section, all of which call on 
ROOT_URLCONF
+       local msg="Generating docs for"
+       if use doc; then
+               if use manual; then
+                       rm -rf docs/manual/webapi//2.0/resources/ || die
+                       einfo;einfo "$msg manual"
+                       DJANGO_SETTINGS_MODULE="django.conf" emake -C 
docs/manual html
+               fi
+
+               if use codebase; then
+                       pushd docs/codebase &> /dev/null
+                       ln -sf ../../contrib/internal/conf/settings_local.py .
+                       popd &> /dev/null
+                       einfo;einfo "$msg codebase"
+                       emake -C docs/codebase html
+               fi
+
+               if use rnotes; then
+                       einfo;einfo "$msg release notes"
+                       emake -C docs/releasenotes html
+               fi
+       fi
+}
+
+python_test() {
+       pushd ${PN} > /dev/null
+       ln -sf contrib/internal/conf/settings_local.py .
+       "${PYTHON}" manage.py test || die
+}
+
+python_install_all() {
+       if use doc; then
+               if use manual; then
+                       insinto /usr/share/doc/${PF}/manual
+                       doins -r docs/manual/_build/html/
+               fi
+               if use codebase; then
+                       insinto /usr/share/doc/${PF}/codebase
+                       doins -r docs/codebase/_build/html/
+               fi
+               if use rnotes; then
+                       insinto /usr/share/doc/${PF}/release_notes
+                       doins -r docs/releasenotes/_build/html/
+               fi
+       fi
+       distutils-r1_python_install_all
+}
+
+pkg_postinst() {
+       elog "You must install any VCS tool you wish ${PN} to support."
+       elog "dev-util/cvs, dev-vcs/git, dev-vcs/mercurial or 
dev-util/subversion."
+       elog
+       elog "Install dev-python/mysql-python for mysql support."
+       elog "Install dev-python/psycopg for postgres support."
+       elog
+       elog "For speed and responsiveness, consider installing 
net-misc/memcached"
+       elog "and dev-python/python-memcached"
+}

Reply via email to