Gentoo Archives: gentoo-commits

From: Hans de Graaff <graaff@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] dev/graaff:master commit in: dev-util/reviewboard/files/, dev-util/reviewboard/
Date: Sat, 03 Oct 2015 06:36:59
Message-Id: 1443854141.e07431362952ffc4b458b757ca72375c42b47262.graaff@gentoo
1 commit: e07431362952ffc4b458b757ca72375c42b47262
2 Author: Hans de Graaff <hans <AT> degraaff <DOT> org>
3 AuthorDate: Sat Oct 3 06:35:41 2015 +0000
4 Commit: Hans de Graaff <graaff <AT> gentoo <DOT> org>
5 CommitDate: Sat Oct 3 06:35:41 2015 +0000
6 URL: https://gitweb.gentoo.org/dev/graaff.git/commit/?id=e0743136
7
8 Moved to gentoo tree.
9
10 dev-util/reviewboard/ChangeLog | 13 ---
11 dev-util/reviewboard/Manifest | 1 -
12 .../files/reviewboard-1.7.28-docs.patch | 53 ----------
13 dev-util/reviewboard/metadata.xml | 12 ---
14 dev-util/reviewboard/reviewboard-1.7.28.ebuild | 116 ---------------------
15 5 files changed, 195 deletions(-)
16
17 diff --git a/dev-util/reviewboard/ChangeLog b/dev-util/reviewboard/ChangeLog
18 deleted file mode 100644
19 index 8846bb6..0000000
20 --- a/dev-util/reviewboard/ChangeLog
21 +++ /dev/null
22 @@ -1,13 +0,0 @@
23 -# ChangeLog for dev-util/reviewboard
24 -# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
25 -# $Header: $
26 -
27 - 16 Sep 2014; Hans de Graaff <graaff@g.o> reviewboard-1.7.28.ebuild:
28 - Fix dateutil dependency to a version that works.
29 -
30 -*reviewboard-1.7.28 (14 Sep 2014)
31 -
32 - 14 Sep 2014; Hans de Graaff <graaff@g.o> +reviewboard-1.7.28.ebuild,
33 - +files/reviewboard-1.7.28-docs.patch, +metadata.xml:
34 - Version bump for latest 1.7.x reviewboard. Currently untested.
35 -
36
37 diff --git a/dev-util/reviewboard/Manifest b/dev-util/reviewboard/Manifest
38 deleted file mode 100644
39 index 24ba9ec..0000000
40 --- a/dev-util/reviewboard/Manifest
41 +++ /dev/null
42 @@ -1 +0,0 @@
43 -DIST ReviewBoard-1.7.28.tar.gz 2957387 SHA256 69a976e69c1e805b23aa78f43fc1954599b7513dff1d1cfd0bafa6112a946931 SHA512 9e97b56b68da6c06f713d98c70dda321ea3fdf6f26986b4272fbb392c1c633f1ce44170bb515e8b685813b69a0ae8ada9f392b5e776793222dd25c3b7d4fa704 WHIRLPOOL 51a731117b9a84b9f8e1cd785511da516bf4d7216f7f08a8ba83d200af94a235d994d53c630b26f430d28f1ce4a7ca8a47d83b87c241bc4b1f5469f7668cc03d
44
45 diff --git a/dev-util/reviewboard/files/reviewboard-1.7.28-docs.patch b/dev-util/reviewboard/files/reviewboard-1.7.28-docs.patch
46 deleted file mode 100644
47 index 6ecc9d7..0000000
48 --- a/dev-util/reviewboard/files/reviewboard-1.7.28-docs.patch
49 +++ /dev/null
50 @@ -1,53 +0,0 @@
51 -Avoid un-needed downloading od object.infv files, fix conf.py for docs/manual
52 -diff -ur ReviewBoard-1.7.7.1.orig/docs/codebase/conf.py ReviewBoard-1.7.7.1/docs/codebase/conf.py
53 ---- docs/codebase/conf.py 2013-04-22 04:40:29.000000000 +0800
54 -+++ docs/codebase/conf.py 2013-06-16 15:35:59.639256650 +0800
55 -@@ -197,7 +197,3 @@
56 -
57 - # If false, no module index is generated.
58 - #latex_use_modindex = True
59 --
60 --
61 --# Example configuration for intersphinx: refer to the Python standard library.
62 --intersphinx_mapping = {'http://docs.python.org/dev': None}
63 -diff -ur ReviewBoard-1.7.7.1.orig/docs/manual/conf.py ReviewBoard-1.7.7.1/docs/manual/conf.py
64 ---- docs/manual/conf.py 2013-04-22 04:40:29.000000000 +0800
65 -+++ docs/manual/conf.py 2013-06-16 15:36:30.592256658 +0800
66 -@@ -30,9 +30,14 @@
67 -
68 - import reviewboard
69 - from reviewboard import settings
70 -+from reviewboard.settings import EXTENSIONS_STATIC_ROOT, ROOT_URLCONF
71 - from django.core.management import setup_environ
72 -+from django import conf
73 -+from settings_local import DATABASES
74 -+conf.EXTENSIONS_STATIC_ROOT=EXTENSIONS_STATIC_ROOT
75 -+conf.settings.DATABASES=DATABASES
76 - setup_environ(settings)
77 --
78 -+conf.settings.ROOT_URLCONF=ROOT_URLCONF
79 -
80 - # If your extensions are in another directory, add it here. If the directory
81 - # is relative to the documentation root, use os.path.abspath to make it
82 -@@ -223,7 +223,4 @@
83 - latex_show_pagerefs = True
84 -
85 -
86 --# Example configuration for intersphinx: refer to the Python standard library.
87 --intersphinx_mapping = {'http://docs.python.org/dev': None}
88 --
89 - todo_include_todos = True
90 -diff -ur
91 -ReviewBoard-1.7.7.1.orig/docs/releasenotes/conf.py
92 -ReviewBoard-1.7.7.1/docs/releasenotes/conf.py
93 ---- docs/releasenotes/conf.py 2013-04-22 04:40:29.000000000 +0800
94 -+++ docs/releasenotes/conf.py 2013-06-16 15:36:53.119256665 +0800
95 -@@ -202,7 +202,3 @@
96 -
97 - # If false, no module index is generated.
98 - #latex_use_modindex = True
99 --
100 --
101 --# Example configuration for intersphinx: refer to the Python standard library.
102 --intersphinx_mapping = {'https://www.reviewboard.org/docs/manual/dev': None}
103 -
104
105 diff --git a/dev-util/reviewboard/metadata.xml b/dev-util/reviewboard/metadata.xml
106 deleted file mode 100644
107 index 4587983..0000000
108 --- a/dev-util/reviewboard/metadata.xml
109 +++ /dev/null
110 @@ -1,12 +0,0 @@
111 -<?xml version="1.0" encoding="UTF-8"?>
112 -<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
113 -<pkgmetadata>
114 - <maintainer>
115 - <email>graaff@g.o></email>
116 - </maintainer>
117 - <use>
118 - <flag name='codebase'>Enables a build of the docs/codebase folder</flag>
119 - <flag name='manual'>Enables a build of the docs/manual folder</flag>
120 - <flag name='rnotes'>Enables a doc build of the release notes</flag>
121 - </use>
122 -</pkgmetadata>
123
124 diff --git a/dev-util/reviewboard/reviewboard-1.7.28.ebuild b/dev-util/reviewboard/reviewboard-1.7.28.ebuild
125 deleted file mode 100644
126 index 4ef2bef..0000000
127 --- a/dev-util/reviewboard/reviewboard-1.7.28.ebuild
128 +++ /dev/null
129 @@ -1,116 +0,0 @@
130 -# Copyright 1999-2014 Gentoo Foundation
131 -# Distributed under the terms of the GNU General Public License v2
132 -# $Header: /var/cvsroot/gentoo-x86/dev-util/reviewboard/Attic/reviewboard-1.7.12.ebuild,v 1.5 2014/08/22 10:26:40 idella4 dead $
133 -
134 -EAPI=5
135 -PYTHON_COMPAT=( python2_7 )
136 -PYTHON_REQ_USE="sqlite"
137 -
138 -inherit distutils-r1
139 -
140 -MY_PN="ReviewBoard"
141 -DESCRIPTION="A web-based code review tool that offers developers an easy way to handle code reviews"
142 -HOMEPAGE="http://www.reviewboard.org/"
143 -SRC_URI="http://downloads.reviewboard.org/releases/${MY_PN}/1.7/${MY_PN}-${PV}.tar.gz"
144 -KEYWORDS="~amd64 ~x86"
145 -IUSE="codebase doc manual rnotes test"
146 -
147 -LICENSE="MIT"
148 -SLOT="0"
149 -S=${WORKDIR}/${MY_PN}-${PV}
150 -
151 -RDEPEND=">=dev-python/django-1.4.14[${PYTHON_USEDEP},sqlite]
152 - <dev-python/django-1.5[${PYTHON_USEDEP},sqlite]
153 - >=dev-python/django-evolution-0.6.9[${PYTHON_USEDEP}]
154 - <dev-python/django-evolution-0.7[${PYTHON_USEDEP}]
155 - >=dev-python/django-pipeline-1.2.24[${PYTHON_USEDEP}]
156 - >=dev-python/Djblets-0.7.31[${PYTHON_USEDEP}]
157 - <dev-python/Djblets-0.8[${PYTHON_USEDEP}]
158 - >=dev-python/pygments-1.5[${PYTHON_USEDEP}]
159 - dev-python/docutils[${PYTHON_USEDEP}]
160 - >=dev-python/markdown-2.2.1[${PYTHON_USEDEP}]
161 - >=dev-python/paramiko-1.9.0[${PYTHON_USEDEP}]
162 - >=dev-python/mimeparse-0.1.3[${PYTHON_USEDEP}]
163 - dev-python/python-dateutil:python-2
164 - dev-python/python-memcached[${PYTHON_USEDEP}]
165 - >=dev-python/pytz-2012h[${PYTHON_USEDEP}]
166 - dev-python/recaptcha-client[${PYTHON_USEDEP}]"
167 -DEPEND="${RDEPEND}
168 - dev-python/setuptools[${PYTHON_USEDEP}]
169 - test? ( dev-python/nose[${PYTHON_USEDEP}] )
170 - doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )"
171 -
172 -REQUIRED_USE="doc? ( || ( codebase manual rnotes ) )"
173 -# Tests mostly access the inet and when run mostly fail
174 -RESTRICT=test
175 -
176 -PATCHES=( "${FILESDIR}"/${P}-docs.patch )
177 -
178 -python_prepare_all() {
179 - # Running uglify is a problem right now, so skip this step. Rather
180 - # have newer versions that compacted javascript.
181 - sed -e "s/'pipeline.compressors.uglifyjs.UglifyJSCompressor'/None/" -i reviewboard/settings.py || die
182 -
183 - distutils-r1_python_prepare_all
184 -}
185 -
186 -python_compile_all() {
187 - # See http://code.google.com/p/reviewboard/issues/ #3009
188 - # until build of manual can find and use ROOT_URLCONF, only possible build path for manual
189 - # requires sacrificing the resources section, all of which call on ROOT_URLCONF
190 - local msg="Generating docs for"
191 - if use doc; then
192 - if use manual; then
193 - rm -rf docs/manual/webapi//2.0/resources/ || die
194 - einfo;einfo "$msg manual"
195 - DJANGO_SETTINGS_MODULE="django.conf" emake -C docs/manual html
196 - fi
197 - if use codebase; then
198 - pushd docs/codebase &> /dev/null
199 - ln -sf ../../contrib/internal/conf/settings_local.py .
200 - popd &> /dev/null
201 - einfo;einfo "$msg codebase"
202 - emake -C docs/codebase html
203 - fi
204 -
205 - if use rnotes; then
206 - einfo;einfo "$msg release notes"
207 - emake -C docs/releasenotes html
208 - fi
209 - fi
210 -}
211 -
212 -python_test() {
213 - pushd ${PN} > /dev/null
214 - ln -sf contrib/internal/conf/settings_local.py .
215 - "${PYTHON}" manage.py test || die
216 -}
217 -
218 -python_install_all() {
219 - if use doc; then
220 - if use manual; then
221 - insinto /usr/share/doc/${PF}/manual
222 - doins -r docs/manual/_build/html/
223 - fi
224 - if use codebase; then
225 - insinto /usr/share/doc/${PF}/codebase
226 - doins -r docs/codebase/_build/html/
227 - fi
228 - if use rnotes; then
229 - insinto /usr/share/doc/${PF}/release_notes
230 - doins -r docs/releasenotes/_build/html/
231 - fi
232 - fi
233 - distutils-r1_python_install_all
234 -}
235 -
236 -pkg_postinst() {
237 - elog "You must install any VCS tool you wish ${PN} to support."
238 - elog "dev-util/cvs, dev-vcs/git, dev-vcs/mercurial or dev-util/subversion."
239 - elog
240 - elog "Enable the mysql, postgres or sqlite USEflag on dev-python/django"
241 - elog "to use the corresponding database backend."
242 - elog
243 - elog "For speed and responsiveness, consider installing net-misc/memcached"
244 - elog "and dev-python/python-memcached"
245 -}