commit:     838977e68d50b7546ed286e779e7ddbbfc28c5a8
Author:     Hans de Graaff <hans <AT> degraaff <DOT> org>
AuthorDate: Mon Dec  7 07:12:13 2015 +0000
Commit:     Hans de Graaff <graaff <AT> gentoo <DOT> org>
CommitDate: Mon Dec  7 07:12:13 2015 +0000
URL:        https://gitweb.gentoo.org/dev/graaff.git/commit/?id=838977e6

dev-util/reviewboard: add 2.5.2

Package-Manager: portage-2.2.20.1

 dev-util/reviewboard/Manifest                 |   1 +
 dev-util/reviewboard/reviewboard-2.5.2.ebuild | 126 ++++++++++++++++++++++++++
 2 files changed, 127 insertions(+)

diff --git a/dev-util/reviewboard/Manifest b/dev-util/reviewboard/Manifest
index 6293046..f1b2989 100644
--- a/dev-util/reviewboard/Manifest
+++ b/dev-util/reviewboard/Manifest
@@ -1,2 +1,3 @@
 DIST ReviewBoard-2.0.20.tar.gz 8360873 SHA256 
cb83d5aabcb2a685043cd2dd516b833e6f73d3777fcbd0402a3c347f8ac75196 SHA512 
9a6f9e1bc3a59264f365b4ce057cb4961e8ead03cc11735e909e280109a5a30a9ec12d16eb2679e7b8e83abe92fc7caacfa82ca1d31ee487e54c6891880ed7aa
 WHIRLPOOL 
ead1ff1af5e0d6239822c498e8b87044a3fb93b5a7f8fe94588f0e2f8b9766f13f88dbfe7c4b25d482bc7618621105871c9d60f1193f32b6450b9cdf0a2f441e
 DIST ReviewBoard-2.5.1.1.tar.gz 12734864 SHA256 
96cbef615fc654dbb4220257ecc49d6e569b183fe92c2150fcd676ac84f7a892 SHA512 
920bf14817b442df973e493707668e39ede1365dc528a67811009e142ac325c5f89b0e176397b2ef6a68c2558c237258c09ec333a814c1c1a9f2e6a8b95b05cf
 WHIRLPOOL 
0059a96e3dbe7ae59cda3b7d4034ecb21adc6b8911fdd211e54ce542ff2ec6d3e7bfc9cbfd694f10494ff55db012685c51bd634fb85e2e55d3987799b340a414
+DIST ReviewBoard-2.5.2.tar.gz 12736246 SHA256 
cdd8635a73cdfd3f8ee962a2c9bf2ccad2b117768d667e0e75fa839f7244913f SHA512 
141d33fcfb1d6e45a7b19d692c044f857e484f10adad9bd18f5e9eb87ebb77c470d503851e9a7afe4deb778ed964190c06ae5b3571f16d4ce007caf1ef7479bc
 WHIRLPOOL 
2d1635d265fbfed32ccd84c2a2858d1194f808970a4d889001ab8a5d802afdb8aa2f2ee216508aa5a99dbc98b65caae2acf23e7b044132e890296ee6764ba09e

diff --git a/dev-util/reviewboard/reviewboard-2.5.2.ebuild 
b/dev-util/reviewboard/reviewboard-2.5.2.ebuild
new file mode 100644
index 0000000..c9e615a
--- /dev/null
+++ b/dev-util/reviewboard/reviewboard-2.5.2.ebuild
@@ -0,0 +1,126 @@
+# Copyright 1999-2015 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 an easy 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.5[${PYTHON_USEDEP}]
+       <dev-python/django-evolution-0.8[${PYTHON_USEDEP}]
+       >=dev-python/django-haystack-2.3.1[${PYTHON_USEDEP}]
+       dev-python/django-multiselectfield[${PYTHON_USEDEP}]
+       >=dev-python/Djblets-0.9[${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/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 "Enable the mysql, postgres or sqlite USEflag on dev-python/django"
+       elog "to use the corresponding database backend."
+       elog
+       elog "For speed and responsiveness, consider installing 
net-misc/memcached"
+       elog "and dev-python/python-memcached"
+}

Reply via email to