1 |
commit: 803171e57279ee7b2dd3390eb125f0194ba0b130 |
2 |
Author: Thomas Deutschmann <whissi <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Mar 8 01:31:14 2020 +0000 |
4 |
Commit: Thomas Deutschmann <whissi <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Mar 8 01:31:33 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=803171e5 |
7 |
|
8 |
www-apps/trac: bump to v1.2.5 |
9 |
|
10 |
Closes: https://bugs.gentoo.org/676924 |
11 |
Bug: https://bugs.gentoo.org/711754 |
12 |
Package-Manager: Portage-2.3.91, Repoman-2.3.20 |
13 |
Signed-off-by: Thomas Deutschmann <whissi <AT> gentoo.org> |
14 |
|
15 |
www-apps/trac/Manifest | 1 + |
16 |
www-apps/trac/trac-1.2.5.ebuild | 114 ++++++++++++++++++++++++++++++++++++++++ |
17 |
2 files changed, 115 insertions(+) |
18 |
|
19 |
diff --git a/www-apps/trac/Manifest b/www-apps/trac/Manifest |
20 |
index 79bc4f0b493..f69fc949cc0 100644 |
21 |
--- a/www-apps/trac/Manifest |
22 |
+++ b/www-apps/trac/Manifest |
23 |
@@ -1,2 +1,3 @@ |
24 |
DIST Trac-1.0.9.tar.gz 3642845 BLAKE2B de0a6fdfc59c5c3f1e795a7e0a006e724491d1d084c9fefcc35185a40430e06ed781c94cf9190d394b943064fd87a34a6fffea7f57c3d4b55b591a6aab5a83ad SHA512 af429db720049ab344ce3c3b430dcf0ab7530013f59ccd2334633de9babc3f31b14829b9b5aa48aa05f614ca72d1d557953c58bbfb93faae2267afeac72e6304 |
25 |
DIST Trac-1.2.1.tar.gz 6212917 BLAKE2B 6445ec515b295d0fdd3a75e93da853d136f19083b6e87cbe9c856e2502d217c433bfd7f885d8ff45556882e8c99a7d6e966761027f72e32e675278ee83a67eb6 SHA512 0ee008ce0d890873eb6db7eca60e362760c4a4857dd74bda67c30e566dcb5bd64ccd6d5e7317da904e8dcfb7d4a017004d3bb794dd405936c94803b2fcc4829f |
26 |
+DIST Trac-1.2.5.tar.gz 5333965 BLAKE2B 51a58773fc037db66b748abddc4905738f2766c3aef87913cb2acd66cc6fcff14be288322ed1bc92435a7a7ab8de6020259a3363459ef1363518cdacf1ac4c0e SHA512 ee8faa6950f5148fe8adca9381f3228dc9f198457b2c44fad8331ca87a1e3ab15906b25c7b01fa8face4e93a366fdf12c27843198db6a9642481820e7456a76c |
27 |
|
28 |
diff --git a/www-apps/trac/trac-1.2.5.ebuild b/www-apps/trac/trac-1.2.5.ebuild |
29 |
new file mode 100644 |
30 |
index 00000000000..0b32c0ad706 |
31 |
--- /dev/null |
32 |
+++ b/www-apps/trac/trac-1.2.5.ebuild |
33 |
@@ -0,0 +1,114 @@ |
34 |
+# Copyright 1999-2020 Gentoo Authors |
35 |
+# Distributed under the terms of the GNU General Public License v2 |
36 |
+ |
37 |
+EAPI=7 |
38 |
+ |
39 |
+PYTHON_COMPAT=( python2_7 ) |
40 |
+PYTHON_REQ_USE='sqlite?' |
41 |
+ |
42 |
+DISTUTILS_SINGLE_IMPL=Yes |
43 |
+DISTUTILS_USE_SETUPTOOLS=rdepend |
44 |
+inherit distutils-r1 eutils user webapp |
45 |
+ |
46 |
+MY_PV=${PV/_p/.post} |
47 |
+MY_P=Trac-${MY_PV} |
48 |
+ |
49 |
+DESCRIPTION="Enhanced wiki and issue tracking system for software development projects" |
50 |
+HOMEPAGE="https://trac.edgewall.com/ https://pypi.org/project/Trac/" |
51 |
+SRC_URI="https://download.edgewall.org/trac/Trac-${MY_PV}.tar.gz" |
52 |
+ |
53 |
+LICENSE="BSD" |
54 |
+SLOT="0" |
55 |
+KEYWORDS="~amd64 ~ppc ~ppc64 ~x86" |
56 |
+IUSE="cgi fastcgi i18n +highlight +restructuredtext mysql postgres +sqlite subversion" |
57 |
+REQUIRED_USE="|| ( mysql postgres sqlite )" |
58 |
+ |
59 |
+RDEPEND=" |
60 |
+ $(python_gen_cond_dep ' |
61 |
+ dev-python/setuptools[${PYTHON_MULTI_USEDEP}] |
62 |
+ dev-python/genshi[${PYTHON_MULTI_USEDEP}] |
63 |
+ dev-python/pytz[${PYTHON_MULTI_USEDEP}] |
64 |
+ i18n? ( >=dev-python/Babel-0.9.5[${PYTHON_MULTI_USEDEP}] ) |
65 |
+ highlight? ( |
66 |
+ || ( |
67 |
+ dev-python/pygments[${PYTHON_MULTI_USEDEP}] |
68 |
+ app-text/silvercity |
69 |
+ app-text/pytextile |
70 |
+ app-text/enscript |
71 |
+ ) |
72 |
+ ) |
73 |
+ restructuredtext? ( dev-python/docutils[${PYTHON_MULTI_USEDEP}] ) |
74 |
+ mysql? ( dev-python/mysql-python[${PYTHON_MULTI_USEDEP}] ) |
75 |
+ postgres? ( >=dev-python/psycopg-2[${PYTHON_MULTI_USEDEP}] ) |
76 |
+ sqlite? ( >=dev-db/sqlite-3.3.4:3 ) |
77 |
+ subversion? ( dev-vcs/subversion[python,${PYTHON_MULTI_USEDEP}] ) |
78 |
+ ') |
79 |
+ " |
80 |
+DEPEND="${RDEPEND}" |
81 |
+ |
82 |
+S="${WORKDIR}/${MY_P}" |
83 |
+ |
84 |
+# Tests depend on twill, a broken package |
85 |
+RESTRICT="test" |
86 |
+ |
87 |
+WEBAPP_MANUAL_SLOT="yes" |
88 |
+ |
89 |
+pkg_setup() { |
90 |
+ python-single-r1_pkg_setup |
91 |
+ webapp_pkg_setup |
92 |
+ |
93 |
+ enewgroup tracd |
94 |
+ enewuser tracd -1 -1 -1 tracd |
95 |
+} |
96 |
+ |
97 |
+python_prepare_all() { |
98 |
+ distutils-r1_python_prepare_all |
99 |
+} |
100 |
+ |
101 |
+src_test() { |
102 |
+ distutils-r1_src_test |
103 |
+} |
104 |
+ |
105 |
+python_test() { |
106 |
+ PYTHONPATH=. "${PYTHON}" trac/test.py || die "Tests fail with ${EPYTHON}" |
107 |
+} |
108 |
+ |
109 |
+python_test_all() { |
110 |
+ if use i18n; then |
111 |
+ make check |
112 |
+ fi |
113 |
+} |
114 |
+ |
115 |
+# the default src_compile just calls setup.py build |
116 |
+# currently, this switches i18n catalog compilation based on presence of Babel |
117 |
+ |
118 |
+src_install() { |
119 |
+ webapp_src_preinst |
120 |
+ distutils-r1_src_install |
121 |
+ |
122 |
+ # project environments might go in here |
123 |
+ keepdir /var/lib/trac |
124 |
+ |
125 |
+ # Use this as the egg-cache for tracd |
126 |
+ dodir /var/lib/trac/egg-cache |
127 |
+ keepdir /var/lib/trac/egg-cache |
128 |
+ fowners tracd:tracd /var/lib/trac/egg-cache |
129 |
+ |
130 |
+ # documentation |
131 |
+ dodoc -r contrib |
132 |
+ |
133 |
+ # tracd init script |
134 |
+ newconfd "${FILESDIR}"/tracd.confd tracd |
135 |
+ newinitd "${FILESDIR}"/tracd.initd tracd |
136 |
+ |
137 |
+ for lang in en; do |
138 |
+ webapp_postinst_txt ${lang} "${FILESDIR}"/postinst-${lang}.txt |
139 |
+ webapp_postupgrade_txt ${lang} "${FILESDIR}"/postupgrade-${lang}.txt |
140 |
+ done |
141 |
+ |
142 |
+ webapp_src_install |
143 |
+} |
144 |
+ |
145 |
+pkg_postinst() { |
146 |
+ webapp_pkg_postinst |
147 |
+} |