Gentoo Archives: gentoo-commits

From: "Peter Volkov (pva)" <pva@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-vcs/monotone: monotone-0.48.1.ebuild ChangeLog monotone-0.99-r1.ebuild monotone-0.99.ebuild
Date: Fri, 29 Oct 2010 15:24:22
Message-Id: 20101029152418.0D77520051@flycatcher.gentoo.org
1 pva 10/10/29 15:24:18
2
3 Modified: ChangeLog
4 Added: monotone-0.48.1.ebuild monotone-0.99-r1.ebuild
5 Removed: monotone-0.99.ebuild
6 Log:
7 Apply upstream patch for 0.99 to fix crash. Add better version for fast stabilization for security bug #342705.
8
9 (Portage version: 2.1.9.22/cvs/Linux x86_64)
10
11 Revision Changes Path
12 1.9 dev-vcs/monotone/ChangeLog
13
14 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-vcs/monotone/ChangeLog?rev=1.9&view=markup
15 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-vcs/monotone/ChangeLog?rev=1.9&content-type=text/plain
16 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-vcs/monotone/ChangeLog?r1=1.8&r2=1.9
17
18 Index: ChangeLog
19 ===================================================================
20 RCS file: /var/cvsroot/gentoo-x86/dev-vcs/monotone/ChangeLog,v
21 retrieving revision 1.8
22 retrieving revision 1.9
23 diff -u -r1.8 -r1.9
24 --- ChangeLog 29 Oct 2010 07:58:13 -0000 1.8
25 +++ ChangeLog 29 Oct 2010 15:24:17 -0000 1.9
26 @@ -1,6 +1,15 @@
27 # ChangeLog for dev-vcs/monotone
28 # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
29 -# $Header: /var/cvsroot/gentoo-x86/dev-vcs/monotone/ChangeLog,v 1.8 2010/10/29 07:58:13 pva Exp $
30 +# $Header: /var/cvsroot/gentoo-x86/dev-vcs/monotone/ChangeLog,v 1.9 2010/10/29 15:24:17 pva Exp $
31 +
32 +*monotone-0.99-r1 (29 Oct 2010)
33 +*monotone-0.48.1 (29 Oct 2010)
34 +
35 + 29 Oct 2010; Peter Volkov <pva@g.o> +monotone-0.48.1.ebuild,
36 + +files/monotone-0.48.1-sqlite-3.7.3.patch, -monotone-0.99.ebuild,
37 + +monotone-0.99-r1.ebuild, +files/monotone-0.99-crash.patch:
38 + Apply upstream patch for 0.99 to fix crash. Add better version for fast
39 + stabilization for security bug #342705.
40
41 *monotone-0.99 (29 Oct 2010)
42
43
44
45
46 1.1 dev-vcs/monotone/monotone-0.48.1.ebuild
47
48 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-vcs/monotone/monotone-0.48.1.ebuild?rev=1.1&view=markup
49 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-vcs/monotone/monotone-0.48.1.ebuild?rev=1.1&content-type=text/plain
50
51 Index: monotone-0.48.1.ebuild
52 ===================================================================
53 # Copyright 1999-2010 Gentoo Foundation
54 # Distributed under the terms of the GNU General Public License v2
55 # $Header: /var/cvsroot/gentoo-x86/dev-vcs/monotone/monotone-0.48.1.ebuild,v 1.1 2010/10/29 15:24:17 pva Exp $
56
57 EAPI=2
58 inherit bash-completion elisp-common eutils toolchain-funcs
59
60 DESCRIPTION="Monotone Distributed Version Control System"
61 HOMEPAGE="http://monotone.ca"
62 SRC_URI="http://monotone.ca/downloads/${PV}/${P}.tar.gz"
63
64 LICENSE="GPL-2"
65 SLOT="1"
66 KEYWORDS="~amd64 ~ia64 ~ppc ~x86"
67 IUSE="doc emacs ipv6 nls"
68
69 RDEPEND="sys-libs/zlib
70 emacs? ( virtual/emacs )
71 >=dev-libs/libpcre-7.6
72 >=dev-libs/botan-1.8.0
73 >=dev-db/sqlite-3.3.8
74 >=dev-lang/lua-5.1
75 net-dns/libidn"
76 DEPEND="${RDEPEND}
77 >=dev-libs/boost-1.33.1
78 nls? ( >=sys-devel/gettext-0.11.5 )
79 doc? ( sys-apps/texinfo )"
80
81 pkg_setup() {
82 enewgroup monotone
83 enewuser monotone -1 -1 /var/lib/monotone monotone
84 }
85
86 src_prepare() {
87 if [[ $(gcc-major-version) -lt "3" ||
88 ( $(gcc-major-version) -eq "3" && $(gcc-minor-version) -le 3 ) ]]; then
89 die 'requires >=gcc-3.4'
90 fi
91
92 epatch "${FILESDIR}/monotone-0.48.1-sqlite-3.7.3.patch"
93 }
94
95 src_configure() {
96 econf \
97 --disable-dependency-tracking \
98 $(use_enable nls) \
99 $(use_enable ipv6)
100 }
101
102 src_compile() {
103 emake || die
104
105 if use doc; then
106 emake html || die
107 fi
108
109 if use emacs; then
110 cd contrib
111 elisp-compile *.el || die
112 fi
113 }
114
115 src_test() {
116 if [ ${UID} != 0 ]; then
117 emake check || die "emake check failed"
118 else
119 ewarn "Tests will fail if ran as root, skipping."
120 fi
121 }
122
123 src_install() {
124 emake DESTDIR="${D}" install || die
125
126 mv "${D}"/usr/share/doc/${PN} "${D}"/usr/share/doc/${PF} || die
127
128 dobashcompletion contrib/monotone.bash_completion
129
130 if use doc; then
131 dohtml -r html/*
132 dohtml -r figures
133 fi
134
135 if use emacs; then
136 elisp-install ${PN} contrib/*.{el,elc} || die "elisp-install failed"
137 elisp-site-file-install "${FILESDIR}"/50${PN}-gentoo.el \
138 || die
139 fi
140
141 dodoc AUTHORS NEWS README* UPGRADE || die
142 docinto contrib
143 dodoc contrib/*
144 newconfd "${FILESDIR}"/monotone.confd monotone || die
145 newinitd "${FILESDIR}"/${PN}-0.36.initd monotone || die
146
147 insinto /etc/monotone
148 newins "${FILESDIR}"/hooks.lua hooks.lua || die
149 newins "${FILESDIR}"/read-permissions read-permissions || die
150 newins "${FILESDIR}"/write-permissions write-permissions || die
151
152 keepdir /var/lib/monotone/keys/ /var/{log,run}/monotone
153 fowners monotone:monotone /var/lib/monotone{,/keys} /var/{log,run}/monotone
154 }
155
156 pkg_postinst() {
157 use emacs && elisp-site-regen
158 bash-completion_pkg_postinst
159
160 elog
161 elog "For details and instructions to upgrade from previous versions,"
162 elog "please read /usr/share/doc/${PF}/UPGRADE.bz2"
163 elog
164 elog " 1. edit /etc/conf.d/monotone"
165 elog " 2. import the first keys to enable access with"
166 elog " env HOME=\${homedir} mtn pubkey me@×××××××.net | /etc/init.d/monotone import"
167 elog " Thereafter, those with write permission can add other keys via"
168 elog " netsync with 'monotone push --key-to-push=IDENT' and then IDENT"
169 elog " can be used in the read-permission and write-permission files."
170 elog " 3. adjust permisions in /etc/monotone/read-permissions"
171 elog " and /etc/monotone/write-permissions"
172 elog " 4. start the daemon: /etc/init.d/monotone start"
173 elog " 5. make persistent: rc-update add monotone default"
174 elog
175 }
176
177 pkg_postrm() {
178 use emacs && elisp-site-regen
179 }
180
181
182
183 1.1 dev-vcs/monotone/monotone-0.99-r1.ebuild
184
185 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-vcs/monotone/monotone-0.99-r1.ebuild?rev=1.1&view=markup
186 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-vcs/monotone/monotone-0.99-r1.ebuild?rev=1.1&content-type=text/plain
187
188 Index: monotone-0.99-r1.ebuild
189 ===================================================================
190 # Copyright 1999-2010 Gentoo Foundation
191 # Distributed under the terms of the GNU General Public License v2
192 # $Header: /var/cvsroot/gentoo-x86/dev-vcs/monotone/monotone-0.99-r1.ebuild,v 1.1 2010/10/29 15:24:17 pva Exp $
193
194 EAPI=2
195 inherit bash-completion elisp-common eutils toolchain-funcs
196
197 DESCRIPTION="Monotone Distributed Version Control System"
198 HOMEPAGE="http://monotone.ca"
199 SRC_URI="http://monotone.ca/downloads/${PV}/${P}.tar.gz"
200
201 LICENSE="GPL-2"
202 SLOT="1"
203 KEYWORDS="~amd64 ~ia64 ~ppc ~x86"
204 IUSE="doc emacs ipv6 nls"
205
206 RDEPEND="sys-libs/zlib
207 emacs? ( virtual/emacs )
208 >=dev-libs/libpcre-7.6
209 >=dev-libs/botan-1.8.0
210 >=dev-db/sqlite-3.3.8
211 >=dev-lang/lua-5.1
212 net-dns/libidn"
213 DEPEND="${RDEPEND}
214 >=dev-libs/boost-1.33.1
215 nls? ( >=sys-devel/gettext-0.11.5 )
216 doc? ( sys-apps/texinfo )"
217
218 pkg_setup() {
219 enewgroup monotone
220 enewuser monotone -1 -1 /var/lib/monotone monotone
221 }
222
223 src_prepare() {
224 if [[ $(gcc-major-version) -lt "3" ||
225 ( $(gcc-major-version) -eq "3" && $(gcc-minor-version) -le 3 ) ]]; then
226 die 'requires >=gcc-3.4'
227 fi
228 epatch "${FILESDIR}/${P}-crash.patch"
229 }
230
231 src_configure() {
232 econf \
233 --disable-dependency-tracking \
234 $(use_enable nls) \
235 $(use_enable ipv6)
236 }
237
238 src_compile() {
239 emake || die
240
241 if use doc; then
242 emake html || die
243 fi
244
245 if use emacs; then
246 cd contrib
247 elisp-compile *.el || die
248 fi
249 }
250
251 src_test() {
252 if [ ${UID} != 0 ]; then
253 emake check || die "emake check failed"
254 else
255 ewarn "Tests will fail if ran as root, skipping."
256 fi
257 }
258
259 src_install() {
260 emake DESTDIR="${D}" install || die
261
262 mv "${D}"/usr/share/doc/${PN} "${D}"/usr/share/doc/${PF} || die
263
264 dobashcompletion contrib/monotone.bash_completion
265
266 if use doc; then
267 dohtml -r html/*
268 dohtml -r figures
269 fi
270
271 if use emacs; then
272 elisp-install ${PN} contrib/*.{el,elc} || die "elisp-install failed"
273 elisp-site-file-install "${FILESDIR}"/50${PN}-gentoo.el \
274 || die
275 fi
276
277 dodoc AUTHORS NEWS README* UPGRADE || die
278 docinto contrib
279 dodoc contrib/*
280 newconfd "${FILESDIR}"/monotone.confd monotone || die
281 newinitd "${FILESDIR}"/${PN}-0.36.initd monotone || die
282
283 insinto /etc/monotone
284 newins "${FILESDIR}"/hooks.lua hooks.lua || die
285 newins "${FILESDIR}"/read-permissions read-permissions || die
286 newins "${FILESDIR}"/write-permissions write-permissions || die
287
288 keepdir /var/lib/monotone/keys/ /var/{log,run}/monotone
289 fowners monotone:monotone /var/lib/monotone{,/keys} /var/{log,run}/monotone
290 }
291
292 pkg_postinst() {
293 use emacs && elisp-site-regen
294 bash-completion_pkg_postinst
295
296 elog
297 elog "For details and instructions to upgrade from previous versions,"
298 elog "please read /usr/share/doc/${PF}/UPGRADE.bz2"
299 elog
300 elog " 1. edit /etc/conf.d/monotone"
301 elog " 2. import the first keys to enable access with"
302 elog " env HOME=\${homedir} mtn pubkey me@×××××××.net | /etc/init.d/monotone import"
303 elog " Thereafter, those with write permission can add other keys via"
304 elog " netsync with 'monotone push --key-to-push=IDENT' and then IDENT"
305 elog " can be used in the read-permission and write-permission files."
306 elog " 3. adjust permisions in /etc/monotone/read-permissions"
307 elog " and /etc/monotone/write-permissions"
308 elog " 4. start the daemon: /etc/init.d/monotone start"
309 elog " 5. make persistent: rc-update add monotone default"
310 elog
311 }
312
313 pkg_postrm() {
314 use emacs && elisp-site-regen
315 }