From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 4BA601383C1 for ; Wed, 19 Oct 2016 05:38:33 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id AF108E07D5; Wed, 19 Oct 2016 05:38:30 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 6F397E07D5 for ; Wed, 19 Oct 2016 05:38:30 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 90AF9341130 for ; Wed, 19 Oct 2016 05:38:28 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id C2AA2304 for ; Wed, 19 Oct 2016 05:38:26 +0000 (UTC) From: "Hans de Graaff" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Hans de Graaff" Message-ID: <1476855483.839574765c0990957b47a8498b8f231e4e10dc57.graaff@gentoo> Subject: [gentoo-commits] dev/graaff:master commit in: dev-util/reviewboard/ X-VCS-Repository: dev/graaff X-VCS-Files: dev-util/reviewboard/Manifest dev-util/reviewboard/reviewboard-2.5.7.ebuild X-VCS-Directories: dev-util/reviewboard/ X-VCS-Committer: graaff X-VCS-Committer-Name: Hans de Graaff X-VCS-Revision: 839574765c0990957b47a8498b8f231e4e10dc57 X-VCS-Branch: master Date: Wed, 19 Oct 2016 05:38:26 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 9aff9252-6d1a-4d51-9f34-20a124b7e46a X-Archives-Hash: 56c5504d0e66017276f70277873d3e21 commit: 839574765c0990957b47a8498b8f231e4e10dc57 Author: Hans de Graaff degraaff org> AuthorDate: Wed Oct 19 05:38:03 2016 +0000 Commit: Hans de Graaff gentoo 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-evolution-0.7.6[${PYTHON_USEDEP}] + =dev-python/django-haystack-2.3.1[${PYTHON_USEDEP}] + =dev-python/Djblets-0.9.3[${PYTHON_USEDEP}] + =dev-python/pygments-1.6[${PYTHON_USEDEP}] + dev-python/docutils[${PYTHON_USEDEP}] + >=dev-python/markdown-2.6.0[${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" +}