diff options
author | Hans de Graaff <hans@degraaff.org> | 2019-04-06 08:35:02 +0200 |
---|---|---|
committer | Hans de Graaff <hans@degraaff.org> | 2019-04-06 08:35:02 +0200 |
commit | 6d921d40346e68e2374d11dc18b896bc9799e76a (patch) | |
tree | cde3c346d29d389aeb8d42ac34f09b7e28a8be74 /dev-util | |
parent | dev-python/Djblets: 1.0.11 (diff) | |
download | graaff-6d921d40346e68e2374d11dc18b896bc9799e76a.tar.gz graaff-6d921d40346e68e2374d11dc18b896bc9799e76a.tar.bz2 graaff-6d921d40346e68e2374d11dc18b896bc9799e76a.zip |
dev-util/reviewboard: add 3.0.14
Signed-off-by: Hans de Graaff <hans@degraaff.org>
Package-Manager: Portage-2.3.62, Repoman-2.3.11
Diffstat (limited to 'dev-util')
-rw-r--r-- | dev-util/reviewboard/Manifest | 1 | ||||
-rw-r--r-- | dev-util/reviewboard/reviewboard-3.0.14.ebuild | 132 |
2 files changed, 133 insertions, 0 deletions
diff --git a/dev-util/reviewboard/Manifest b/dev-util/reviewboard/Manifest index 15a51c22..ff1320f2 100644 --- a/dev-util/reviewboard/Manifest +++ b/dev-util/reviewboard/Manifest @@ -1,3 +1,4 @@ DIST ReviewBoard-3.0.10.tar.gz 21220172 BLAKE2B 7381db894270b7f14786cf94f83ccdd98b1c8cf0192338d74f6c225c4d76b26ee28294953dca46136131f081f2080c121f23259ac9a339b8c12296403f891c81 SHA512 d7be708d5dea9b63c1603538a94011919ecff65073ed1babca854eebdeafe643be322a8e7e51187d0cd54072a124a54117e1c3ae79771991397ecac661735a96 DIST ReviewBoard-3.0.11.tar.gz 21224112 BLAKE2B d0c1f74881790ef5f6349608baf7c86ce673092eff490abab28506243973417ab5ff2b2cb0e7a82861aface3fa529d4b3a37ef0eec575a8ec56d722c5ff2a86b SHA512 4e56dc7fa1f316f17b5ef39f43b0003b43ca3989001ea65c099275cbd5459b99638221893553d2cdf1539adab9a7589dd1d5d6d92849aadb6d66a2fc5c5e9694 DIST ReviewBoard-3.0.13.tar.gz 21255002 BLAKE2B 0d585187fc9135cdd6bc2c2df8705e24d3414dd9f1660c2fc513b0817a53a212e02e57d53250fcb72acfacfc62f20bc4cc7f862cfd2b4b8e8258da849c7b40ea SHA512 3910731023ec55815c12fae22290d5eb1bb9da68bc876a4dd2b4a07d2553a65368455763f8053ae39cd44ea3e7bbd8ea19ad1c9d7e721b9b16b1109ff195f09f +DIST ReviewBoard-3.0.14.tar.gz 21261370 BLAKE2B ff51924952918b097df3d03b8099aa037bbba37b96a7a4769ad7dced969762e2dee3f33128612efea39863b10005f2335fbdcb9e857277ab6a2d423708a48ada SHA512 e97b958e188dfb51b918e7153483d3cbb0e2788dc06560dc48b17bc70ae89bf73ef12a3e454a14c6672f394cfc799f5b344ef9c8e904ed375ee1b469ef12ee2d diff --git a/dev-util/reviewboard/reviewboard-3.0.14.ebuild b/dev-util/reviewboard/reviewboard-3.0.14.ebuild new file mode 100644 index 00000000..db2b6f77 --- /dev/null +++ b/dev-util/reviewboard/reviewboard-3.0.14.ebuild @@ -0,0 +1,132 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +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="https://www.reviewboard.org/" +SRC_URI="https://downloads.reviewboard.org/releases/${MY_PN}/3.0/${MY_PN}-${PV}.tar.gz" +KEYWORDS="~amd64" +IUSE="codebase doc manual ldap 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-cors-headers-1.1.0[${PYTHON_USEDEP}] + <dev-python/django-cors-headers-1.2[${PYTHON_USEDEP}] + >=dev-python/django-evolution-0.7.7[${PYTHON_USEDEP}] + <dev-python/django-evolution-0.8[${PYTHON_USEDEP}] + =dev-python/django-haystack-2.4*[${PYTHON_USEDEP}] + dev-python/django-multiselectfield[${PYTHON_USEDEP}] + =dev-python/django-oauth-toolkit-0.9*[${PYTHON_USEDEP}] + =dev-python/Djblets-1.0*[${PYTHON_USEDEP}] + >=dev-python/Djblets-1.0.11[${PYTHON_USEDEP}] + >=dev-python/cryptography-1.8.1[${PYTHON_USEDEP}] + >=dev-python/pygments-2.1[${PYTHON_USEDEP}] + dev-python/docutils[${PYTHON_USEDEP}] + >=dev-python/markdown-2.6.8[${PYTHON_USEDEP}] + <dev-python/markdown-2.7[${PYTHON_USEDEP}] + >=dev-python/mimeparse-0.1.3[${PYTHON_USEDEP}] + >=dev-python/paramiko-1.12[${PYTHON_USEDEP}] + >=dev-python/pymdown-extensions-3.4[${PYTHON_USEDEP}] + =dev-python/pymdown-extensions-3*[${PYTHON_USEDEP}] + >=dev-python/python-dateutil-1.5[${PYTHON_USEDEP}] + dev-python/python-memcached[${PYTHON_USEDEP}] + >=dev-python/pytz-2015.2[${PYTHON_USEDEP}] + >=dev-python/whoosh-2.6[${PYTHON_USEDEP}] + ldap? ( >=dev-python/python-ldap-2.4.21[${PYTHON_USEDEP}] )" +DEPEND="${RDEPEND} + net-libs/nodejs + dev-python/setuptools[${PYTHON_USEDEP}] + test? ( dev-python/nose[${PYTHON_USEDEP}] ) + doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )" +PDEPEND=" >=dev-python/rbintegrations-1.0[${PYTHON_USEDEP}]" + +REQUIRED_USE="doc? ( || ( codebase manual rnotes ) )" +# Tests mostly access the inet and when run mostly fail +RESTRICT=test + +src_unpack() { + default + + cd "${S}" + npm install less@3.9.0 less-plugin-autoprefix@2.0.0 uglify-js@2.4.10 babel-cli@6.5.1 babel-preset-es2015@6.5.0 babel-plugin-dedent@2.0.0 || die +} + +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 + + 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" +} |