diff options
author | Ian Delaney <idella4@gentoo.org> | 2013-06-16 16:02:49 +0000 |
---|---|---|
committer | Ian Delaney <idella4@gentoo.org> | 2013-06-16 16:02:49 +0000 |
commit | af33d0ac112837fcbbe0f2bc86e78e7c95d717fe (patch) | |
tree | 41fb2c0585e770bfeede54761f9bd039d198995b /dev-util/reviewboard | |
parent | new ebuild prepared by me with additions from kensington wrt Bug #209746 (diff) | |
download | historical-af33d0ac112837fcbbe0f2bc86e78e7c95d717fe.tar.gz historical-af33d0ac112837fcbbe0f2bc86e78e7c95d717fe.tar.bz2 historical-af33d0ac112837fcbbe0f2bc86e78e7c95d717fe.zip |
new ebuild prepared by me with additions from kensington wrt Bug #209746
Package-Manager: portage-2.1.11.63/cvs/Linux x86_64
Manifest-Sign-Key: 0xB8072B0D
Diffstat (limited to 'dev-util/reviewboard')
-rw-r--r-- | dev-util/reviewboard/Manifest | 13 | ||||
-rw-r--r-- | dev-util/reviewboard/files/docs.patch | 53 | ||||
-rw-r--r-- | dev-util/reviewboard/metadata.xml | 10 | ||||
-rw-r--r-- | dev-util/reviewboard/reviewboard-1.7.7.1.ebuild | 116 |
4 files changed, 191 insertions, 1 deletions
diff --git a/dev-util/reviewboard/Manifest b/dev-util/reviewboard/Manifest index 72ec62e96e92..b26238db48d1 100644 --- a/dev-util/reviewboard/Manifest +++ b/dev-util/reviewboard/Manifest @@ -1,4 +1,15 @@ +-----BEGIN PGP SIGNED MESSAGE----- +Hash: SHA256 + AUX docs.patch 2031 SHA256 b013c83c282756b78adc128b2e2a26914eb3b64f3940e0091cc0cff54d618e5f SHA512 3a99f5cb314e8a315325c02bc3f5fa8c700baf958564dc46c64d4715229cadef5512014409b3647c8adf7fc20c29c2de0fd1f1ff58867c719d70b16fcf3cf2dd WHIRLPOOL 433ff7949062eda6bf8d0c5d5a6967b78b00a806082775e528f5cb9a3c3e76a22f30bb32f7ba991df28275722eb6d69832a3e8ca62844b8d8150dbfd7928b8c8 DIST ReviewBoard-1.7.7.1.tar.gz 2946656 SHA256 4e3306cd55e572179cdd1157e50a3e3bb4b0b8847bc14d0bafdb7fd7fe696208 SHA512 3896be4ee0dcd6817f21e326ef4a55ed04d1101939971c92f88d8e3501b8133a793816bd94c93475fb59528a4c37f1c405691a98bf896bc0df3fc0c8c08df02a WHIRLPOOL b288af9765a6df271ffc1e51f9fadca91f604a5166dd6f44a7c28c3ecea8e63676d96e5a84f5e1a18331fdab2cbb799dbb3d33ac28e9bd37c7af66fed17070ac -EBUILD reviewboard-1.7.7.1.ebuild 3655 SHA256 06372e415178feae695a37cc8769cdb84926b60ef1931b5ef438a1de18705cc2 SHA512 452dc691bcf989fe81e597b41a0bd504bfb0a7f829202784f1ad4674e24177c89914e77ef5c27d15dafd9037309982d7ed7c81d3d06f0c1e2d208efc5179d2b7 WHIRLPOOL 2d040c22c8a12e2c9848861a212a246045293296d31a5b1df2b4fdad4efc799b56ef43f1d6c316d9cf7503307566f7b69064857efd450a7a378b4bdc5d7d2e90 +EBUILD reviewboard-1.7.7.1.ebuild 3765 SHA256 8f4be71279b6c85c48dd82c29dc84abf2f60c1963a5b4dac94b4889b86f6efaf SHA512 a2727ca06c0eb82c745ec5e3990ac93fc2e4d5d1798ddfad9f7712a82bae5c33690f58dc52d2815dc21b5ecc89cbcdaa9c4a303552ff8425c699646768896db8 WHIRLPOOL 21c47afc9ee97c8d43574fd02f49a9a3b0e6326bfdaa4dc95e1306ec8482dd6615e389523cad6b99af69c916d26ab2b822cb658b9a7cce7ab1e6a9fa4c46868c +MISC ChangeLog 438 SHA256 3ed21bb5120c2d5425f4498f374be11dc3af1583cc6215b947c5d980ae0fdd32 SHA512 a2ea55fda1826c5a7aab88a1f6fc0757174016c7f1b4203c1b23de7920e44b65d768fc801d0631bb2ccf6a87979752ec3035ae2e6f9f53e44a41067f47197bf8 WHIRLPOOL e7146d984105224951740b51167490aaee8275e2f2eaab90d76f75110972d08efd669aefd892253c1689c4225b28be9e5ce52622d027e19da023beba66eda957 MISC metadata.xml 412 SHA256 2781c5d2f9500d5d74e7c740d5ac3187b3ae9d7758afd1f5574e8e37075db16c SHA512 aa08361eb0976b2da686be94c22be013a320f4eeee38d1337a38409dc04f8dddf5af65aa3a6885100e007f43af36d692546f00aabdfc1d20a95c2f4dfa471c7f WHIRLPOOL 6a38977a12bdfffa285472cc2395b06443860ee86881f86e4f5134471d53ecf7729d09d49c1bf732820d7ec7d4f373060b32fd535b0501e00f178c0f390bd0a0 +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v2.0.19 (GNU/Linux) + +iEYEAREIAAYFAlG94YoACgkQso7CE7gHKw2kHACgwa2amMvWC6ehF40oCMvbd7Aa +A90AoKQFwdbWZ7s7njjXSUxlRX1YGnjn +=YX4h +-----END PGP SIGNATURE----- diff --git a/dev-util/reviewboard/files/docs.patch b/dev-util/reviewboard/files/docs.patch new file mode 100644 index 000000000000..8292a86355ac --- /dev/null +++ b/dev-util/reviewboard/files/docs.patch @@ -0,0 +1,53 @@ +Avoid un-needed downloading od object.infv files, fix conf.py for docs/manual +diff -ur ReviewBoard-1.7.7.1.orig/docs/codebase/conf.py ReviewBoard-1.7.7.1/docs/codebase/conf.py +--- docs/codebase/conf.py 2013-04-22 04:40:29.000000000 +0800 ++++ docs/codebase/conf.py 2013-06-16 15:35:59.639256650 +0800 +@@ -197,7 +197,3 @@ + + # If false, no module index is generated. + #latex_use_modindex = True +- +- +-# Example configuration for intersphinx: refer to the Python standard library. +-intersphinx_mapping = {'http://docs.python.org/dev': None} +diff -ur ReviewBoard-1.7.7.1.orig/docs/manual/conf.py ReviewBoard-1.7.7.1/docs/manual/conf.py +--- docs/manual/conf.py 2013-04-22 04:40:29.000000000 +0800 ++++ docs/manual/conf.py 2013-06-16 15:36:30.592256658 +0800 +@@ -30,9 +30,14 @@ + + import reviewboard + from reviewboard import settings ++from reviewboard.settings import EXTENSIONS_STATIC_ROOT, ROOT_URLCONF + from django.core.management import setup_environ ++from django import conf ++from settings_local import DATABASES ++conf.EXTENSIONS_STATIC_ROOT=EXTENSIONS_STATIC_ROOT ++conf.settings.DATABASES=DATABASES + setup_environ(settings) +- ++conf.settings.ROOT_URLCONF=ROOT_URLCONF + + # If your extensions are in another directory, add it here. If the directory + # is relative to the documentation root, use os.path.abspath to make it +@@ -223,7 +223,4 @@ + latex_show_pagerefs = True + + +-# Example configuration for intersphinx: refer to the Python standard library. +-intersphinx_mapping = {'http://docs.python.org/dev': None} +- + todo_include_todos = True +diff -ur +ReviewBoard-1.7.7.1.orig/docs/releasenotes/conf.py +ReviewBoard-1.7.7.1/docs/releasenotes/conf.py +--- docs/releasenotes/conf.py 2013-04-22 04:40:29.000000000 +0800 ++++ docs/releasenotes/conf.py 2013-06-16 15:36:53.119256665 +0800 +@@ -202,7 +202,3 @@ + + # If false, no module index is generated. + #latex_use_modindex = True +- +- +-# Example configuration for intersphinx: refer to the Python standard library. +-intersphinx_mapping = {'http://www.reviewboard.org/docs/manual/dev': None} + diff --git a/dev-util/reviewboard/metadata.xml b/dev-util/reviewboard/metadata.xml new file mode 100644 index 000000000000..82fb04e3902f --- /dev/null +++ b/dev-util/reviewboard/metadata.xml @@ -0,0 +1,10 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>python</herd> + <use> + <flag name='codebase'>Enables a build of the docs/codebase folder</flag> + <flag name='manual'>Enables a build of the docs/manual folder</flag> + <flag name='rnotes'>Enables a doc build of the release notes</flag> + </use> +</pkgmetadata> diff --git a/dev-util/reviewboard/reviewboard-1.7.7.1.ebuild b/dev-util/reviewboard/reviewboard-1.7.7.1.ebuild new file mode 100644 index 000000000000..ea382c8d23ec --- /dev/null +++ b/dev-util/reviewboard/reviewboard-1.7.7.1.ebuild @@ -0,0 +1,116 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-util/reviewboard/reviewboard-1.7.7.1.ebuild,v 1.1 2013/06/16 16:02:06 idella4 Exp $ + +EAPI=5 +PYTHON_COMPAT=( python{2_6,2_7} ) + +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}/1.7/${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.4.3[${PYTHON_USEDEP}] + <dev-python/django-1.5[${PYTHON_USEDEP}] + >=dev-python/django-evolution-0.6.7[${PYTHON_USEDEP}] + >=dev-python/django-pipeline-1.2.24[${PYTHON_USEDEP}] + >=dev-python/Djblets-0.7.7[${PYTHON_USEDEP}] + >=dev-python/pygments-1.5[${PYTHON_USEDEP}] + dev-python/docutils[${PYTHON_USEDEP}] + >=dev-python/markdown-2.2.1[${PYTHON_USEDEP}] + >=dev-python/paramiko-1.7.6[${PYTHON_USEDEP}] + >=dev-python/mimeparse-0.1.3[${PYTHON_USEDEP}] + dev-python/python-dateutil[${PYTHON_USEDEP}] + dev-python/python-memcached[${PYTHON_USEDEP}] + dev-python/pytz[${PYTHON_USEDEP}] + dev-python/recaptcha-client[${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 + +PATCHES=( "${FILESDIR}"/docs.patch ) + +python_prepare_all() { + # Higher versions do not support python-2.5, while reviewboard upstream + # still does. We do not support python-2.5 for this package as it will + # prevent downgrades for some of our dependencies. + sed -i setup.py \ + -e "s/python-dateutil==1.5/python-dateutil/" \ + -e "s/django-pipeline>=1.2.24,<1.3/django-pipeline>=1.2.24/" || die + + distutils-r1_python_prepare_all +} + +python_compile_all() { + # See http://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" +} |