1 |
commit: 15d5c1546cb6a21f9994bb0dd0a89880a55fbddf |
2 |
Author: Dirkjan Ochtman <djc <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Nov 30 17:43:18 2015 +0000 |
4 |
Commit: Dirkjan Ochtman <djc <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Nov 30 17:43:18 2015 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=15d5c154 |
7 |
|
8 |
www-apps/trac: version bump to 1.0.9 (fixes bug 566812) |
9 |
|
10 |
Package-Manager: portage-2.2.20.1 |
11 |
|
12 |
www-apps/trac/Manifest | 1 + |
13 |
www-apps/trac/trac-1.0.9.ebuild | 129 ++++++++++++++++++++++++++++++++++++++++ |
14 |
2 files changed, 130 insertions(+) |
15 |
|
16 |
diff --git a/www-apps/trac/Manifest b/www-apps/trac/Manifest |
17 |
index ca1f0f0..bd0b5f6 100644 |
18 |
--- a/www-apps/trac/Manifest |
19 |
+++ b/www-apps/trac/Manifest |
20 |
@@ -1,3 +1,4 @@ |
21 |
DIST Trac-1.0.4.tar.gz 3579886 SHA256 a1d564c5b612306856dd26851270b12fbba91bab1bc146b66d4cc248be1a172e SHA512 1186c3d36b7b8eae6595dcf5dfc30aed9302d46dae2019da8178a2656065fd5675683331474118f3da47f9ba75fd213ad1964bad29c7892423ab1fa7371a8131 WHIRLPOOL 2be04e6a683f88923b2f9b09fdee4b5de24779f399f32763674512f71f4f03e72b74592e0dc49e6693dc1c6c1c4ebdfb680eac72146b9fdb3735db50a5e8c9fb |
22 |
DIST Trac-1.0.5.tar.gz 3587954 SHA256 65b191f5eeb9590d2f8cd5d9e11155669947d2241d754ce55aa7e9eef65e5578 SHA512 445172bca990837492f79a11a0df18bb457e3930116a274213078d4bcd5dd44beded655b9f6ed2f93cb5b991530131a06628603879b56f2a390bf7d3822abed2 WHIRLPOOL 3fffaaead5ef61fd4655fc7f13bf9f3c00171249aa271a2d5f9312cd68df7031c51dd564bbe3b8ceed18dac0ac8045bed65c87f7c6e64963d9509ffd3c7f06ca |
23 |
DIST Trac-1.0.6.post2.tar.gz 3638718 SHA256 aefae1b4b6de37f6fb105e03d304a125cdbccbf632ba5ade15804c470f3aedcb SHA512 f8f6b086710a992d37e63bcc59f1cbc2b763cb36f8deacd9f459cccd860f0eb2f0bb41091914807ad93a607d1c3f7154a240322e61b1f89fbebd1624f57bf25b WHIRLPOOL 301926fece71c5d2fe04298fd9e4b9e260903c77dee2ecc60fd8e6c194284ed1475e41eef7a80c7387375db91e8d1239ee8e2bac0d410d1475da52d14edc4c77 |
24 |
+DIST Trac-1.0.9.tar.gz 3642845 SHA256 9ed3f0a2039c46132d10f35c211f9f6ee953339cc08492a41d1bf8741d6eebfa SHA512 af429db720049ab344ce3c3b430dcf0ab7530013f59ccd2334633de9babc3f31b14829b9b5aa48aa05f614ca72d1d557953c58bbfb93faae2267afeac72e6304 WHIRLPOOL 4005102b1109aac94728d22151c2192a38f9ab91af0227a24dff1a2e2097e67ceafa0cef0f307f1a1ddb1999c109d142bbb739107d4047dc296e6a8396a9427a |
25 |
|
26 |
diff --git a/www-apps/trac/trac-1.0.9.ebuild b/www-apps/trac/trac-1.0.9.ebuild |
27 |
new file mode 100644 |
28 |
index 0000000..d9602aa |
29 |
--- /dev/null |
30 |
+++ b/www-apps/trac/trac-1.0.9.ebuild |
31 |
@@ -0,0 +1,129 @@ |
32 |
+# Copyright 1999-2015 Gentoo Foundation |
33 |
+# Distributed under the terms of the GNU General Public License v2 |
34 |
+# $Id$ |
35 |
+ |
36 |
+EAPI=5 |
37 |
+ |
38 |
+PYTHON_COMPAT=( python2_7 ) |
39 |
+PYTHON_REQ_USE='sqlite?' |
40 |
+ |
41 |
+DISTUTILS_SINGLE_IMPL=Yes |
42 |
+ |
43 |
+inherit distutils-r1 eutils user webapp |
44 |
+ |
45 |
+MY_PV=${PV/_p/.post} |
46 |
+MY_P=Trac-${MY_PV} |
47 |
+ |
48 |
+DESCRIPTION="Trac is a minimalistic web-based project management, wiki and bug/issue tracking system" |
49 |
+HOMEPAGE="http://trac.edgewall.com/ https://pypi.python.org/pypi/Trac" |
50 |
+SRC_URI="http://ftp.edgewall.com/pub/trac/${MY_P}.tar.gz" |
51 |
+ |
52 |
+LICENSE="BSD" |
53 |
+SLOT="0" |
54 |
+KEYWORDS="~amd64 ~ppc ~ppc64 ~x86 ~x86-fbsd" |
55 |
+IUSE="cgi fastcgi i18n +highlight +restructuredtext mysql postgres +sqlite subversion test" |
56 |
+REQUIRED_USE="|| ( mysql postgres sqlite )" |
57 |
+ |
58 |
+RDEPEND=" |
59 |
+ dev-python/setuptools[${PYTHON_USEDEP}] |
60 |
+ dev-python/genshi[${PYTHON_USEDEP}] |
61 |
+ dev-python/pytz[${PYTHON_USEDEP}] |
62 |
+ i18n? ( >=dev-python/Babel-0.9.5[${PYTHON_USEDEP}] ) |
63 |
+ highlight? ( |
64 |
+ || ( |
65 |
+ dev-python/pygments[${PYTHON_USEDEP}] |
66 |
+ app-text/silvercity |
67 |
+ app-text/pytextile |
68 |
+ app-text/enscript |
69 |
+ ) |
70 |
+ ) |
71 |
+ restructuredtext? ( dev-python/docutils[${PYTHON_USEDEP}] ) |
72 |
+ cgi? ( virtual/httpd-cgi ) |
73 |
+ fastcgi? ( virtual/httpd-fastcgi ) |
74 |
+ mysql? ( dev-python/mysql-python[${PYTHON_USEDEP}] ) |
75 |
+ postgres? ( >=dev-python/psycopg-2[${PYTHON_USEDEP}] ) |
76 |
+ sqlite? ( >=dev-db/sqlite-3.3.4:3 ) |
77 |
+ subversion? ( dev-vcs/subversion[python,${PYTHON_USEDEP}] ) |
78 |
+ " |
79 |
+DEPEND="${RDEPEND} |
80 |
+ test? ( |
81 |
+ dev-python/twill[${PYTHON_USEDEP}] |
82 |
+ dev-python/lxml[${PYTHON_USEDEP}] |
83 |
+ dev-python/configobj[${PYTHON_USEDEP}] |
84 |
+ )" |
85 |
+ |
86 |
+S="${WORKDIR}/${MY_P}" |
87 |
+ |
88 |
+WEBAPP_MANUAL_SLOT="yes" |
89 |
+ |
90 |
+pkg_setup() { |
91 |
+ python-single-r1_pkg_setup |
92 |
+ webapp_pkg_setup |
93 |
+ |
94 |
+ enewgroup tracd |
95 |
+ enewuser tracd -1 -1 -1 tracd |
96 |
+} |
97 |
+ |
98 |
+python_prepare_all() { |
99 |
+ distutils-r1_python_prepare_all |
100 |
+} |
101 |
+ |
102 |
+src_test() { |
103 |
+ distutils-r1_src_test |
104 |
+} |
105 |
+ |
106 |
+python_test() { |
107 |
+ PYTHONPATH=. "${PYTHON}" trac/test.py || die "Tests fail with ${EPYTHON}" |
108 |
+} |
109 |
+ |
110 |
+python_test_all() { |
111 |
+ if use i18n; then |
112 |
+ make check |
113 |
+ fi |
114 |
+} |
115 |
+ |
116 |
+python_install() { |
117 |
+ if use cgi; then |
118 |
+ python_scriptinto "${MY_CGIBINDIR}" |
119 |
+ python_doscript contrib/cgi-bin/trac.cgi |
120 |
+ fi |
121 |
+ if use fastcgi; then |
122 |
+ python_scriptinto "${MY_CGIBINDIR}" |
123 |
+ python_doscript contrib/cgi-bin/trac.fcgi |
124 |
+ fi |
125 |
+ distutils-r1_python_install |
126 |
+} |
127 |
+ |
128 |
+# the default src_compile just calls setup.py build |
129 |
+# currently, this switches i18n catalog compilation based on presence of Babel |
130 |
+ |
131 |
+src_install() { |
132 |
+ webapp_src_preinst |
133 |
+ distutils-r1_src_install |
134 |
+ |
135 |
+ # project environments might go in here |
136 |
+ keepdir /var/lib/trac |
137 |
+ |
138 |
+ # Use this as the egg-cache for tracd |
139 |
+ dodir /var/lib/trac/egg-cache |
140 |
+ keepdir /var/lib/trac/egg-cache |
141 |
+ fowners tracd:tracd /var/lib/trac/egg-cache |
142 |
+ |
143 |
+ # documentation |
144 |
+ dodoc -r contrib |
145 |
+ |
146 |
+ # tracd init script |
147 |
+ newconfd "${FILESDIR}"/tracd.confd tracd |
148 |
+ newinitd "${FILESDIR}"/tracd.initd tracd |
149 |
+ |
150 |
+ for lang in en; do |
151 |
+ webapp_postinst_txt ${lang} "${FILESDIR}"/postinst-${lang}.txt |
152 |
+ webapp_postupgrade_txt ${lang} "${FILESDIR}"/postupgrade-${lang}.txt |
153 |
+ done |
154 |
+ |
155 |
+ webapp_src_install |
156 |
+} |
157 |
+ |
158 |
+pkg_postinst() { |
159 |
+ webapp_pkg_postinst |
160 |
+} |