Gentoo Archives: gentoo-commits

From: "Patrick Lauer (patrick)" <patrick@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-util/monotone: ChangeLog monotone-0.44.ebuild
Date: Sun, 28 Jun 2009 11:41:38
Message-Id: E1MKslM-0000aj-5i@stork.gentoo.org
1 patrick 09/06/28 11:41:36
2
3 Modified: ChangeLog
4 Added: monotone-0.44.ebuild
5 Log:
6 Bump to 0.44, fixes #270827
7 (Portage version: 2.2_rc33/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.61 dev-util/monotone/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-util/monotone/ChangeLog?rev=1.61&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-util/monotone/ChangeLog?rev=1.61&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-util/monotone/ChangeLog?r1=1.60&r2=1.61
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/dev-util/monotone/ChangeLog,v
19 retrieving revision 1.60
20 retrieving revision 1.61
21 diff -u -r1.60 -r1.61
22 --- ChangeLog 29 Apr 2009 11:31:56 -0000 1.60
23 +++ ChangeLog 28 Jun 2009 11:41:36 -0000 1.61
24 @@ -1,6 +1,11 @@
25 # ChangeLog for dev-util/monotone
26 # Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/dev-util/monotone/ChangeLog,v 1.60 2009/04/29 11:31:56 armin76 Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/dev-util/monotone/ChangeLog,v 1.61 2009/06/28 11:41:36 patrick Exp $
29 +
30 +*monotone-0.44 (28 Jun 2009)
31 +
32 + 28 Jun 2009; Patrick Lauer <patrick@g.o> +monotone-0.44.ebuild:
33 + Bump to 0.44, fixes #270827
34
35 29 Apr 2009; Raúl Porcel <armin76@g.o> monotone-0.43.ebuild:
36 Readd ~ia64 wrt #267773
37
38
39
40 1.1 dev-util/monotone/monotone-0.44.ebuild
41
42 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-util/monotone/monotone-0.44.ebuild?rev=1.1&view=markup
43 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-util/monotone/monotone-0.44.ebuild?rev=1.1&content-type=text/plain
44
45 Index: monotone-0.44.ebuild
46 ===================================================================
47 # Copyright 1999-2009 Gentoo Foundation
48 # Distributed under the terms of the GNU General Public License v2
49 # $Header: /var/cvsroot/gentoo-x86/dev-util/monotone/monotone-0.44.ebuild,v 1.1 2009/06/28 11:41:36 patrick Exp $
50
51 inherit elisp-common flag-o-matic bash-completion eutils
52
53 DESCRIPTION="Monotone Distributed Version Control System"
54 HOMEPAGE="http://monotone.ca"
55 SRC_URI="http://monotone.ca/downloads/${PV}/${P}.tar.gz"
56
57 LICENSE="GPL-2"
58 SLOT="1"
59 KEYWORDS="~amd64 ~ia64 ~ppc ~x86"
60
61 IUSE="doc emacs ipv6 nls"
62
63 RDEPEND="
64 sys-libs/zlib
65 emacs? ( virtual/emacs )
66 >=dev-libs/libpcre-7.6
67 >=dev-libs/botan-1.8.0
68 >=dev-db/sqlite-3.3.8
69 >=dev-lang/lua-5.1
70 net-dns/libidn"
71
72 DEPEND="${RDEPEND}
73 >=dev-libs/boost-1.33.1
74 nls? ( >=sys-devel/gettext-0.11.5 )
75 doc? ( sys-apps/texinfo )"
76
77 pkg_setup() {
78 enewgroup monotone
79 enewuser monotone -1 -1 /var/lib/monotone monotone
80 if [[ "$(gcc-version)" == "3.3" ]]; then
81 die 'requires >=gcc-3.4'
82 fi
83 # https://bugs.gentoo.org/show_bug.cgi?id=202371#c2
84 if ! has userpriv ${FEATURES} && has test ${FEATURES}; then
85 ewarn "No test will be performed due to lack of FEATURES=userpriv"
86 fi
87 }
88
89 src_compile() {
90 # more aggressive optimizations cause trouble with the crypto library
91 strip-flags
92 append-flags $(test-flags -fno-stack-protector-all -fno-stack-protector)
93 append-flags -fno-strict-aliasing -fno-omit-frame-pointer
94
95 econf $(use_enable nls) \
96 $(use_enable ipv6) \
97 --with-system-pcre || die "configure failed"
98 emake || die "Compilation failed"
99
100 if use doc; then
101 emake html || die 'html compilation failed'
102 fi
103
104 if use emacs; then
105 cd contrib
106 elisp-compile *.el || die "elisp-compile failed"
107 fi
108 }
109
110 src_test() {
111 if has userpriv ${FEATURES}; then
112 emake check || die "self test failed"
113 else
114 ewarn 'not tested - requires FEATURES=userpriv'
115 fi
116 }
117
118 src_install() {
119 emake DESTDIR="${D}" install || die "Installation failed"
120
121 mv "${D}"/usr/share/doc/"${PN}" "${D}"/usr/share/doc/"${PF}"
122
123 dobashcompletion contrib/monotone.bash_completion
124
125 if use doc; then
126 dohtml -r html/*
127 dohtml -r figures
128 fi
129
130 if use emacs; then
131 elisp-install ${PN} contrib/*.{el,elc} || die "elisp-install failed"
132 elisp-site-file-install "${FILESDIR}"/50${PN}-gentoo.el \
133 || die "elisp-site-file-install failed"
134 fi
135
136 dodoc AUTHORS ChangeLog NEWS README* UPGRADE
137 docinto contrib
138 dodoc contrib/*
139 newconfd "${FILESDIR}"/monotone.confd monotone
140 newinitd "${FILESDIR}"/${PN}-0.36.initd monotone
141
142 insinto /etc/monotone ;
143 newins "${FILESDIR}"/hooks.lua hooks.lua
144 newins "${FILESDIR}"/read-permissions read-permissions
145 newins "${FILESDIR}"/write-permissions write-permissions
146
147 keepdir /var/lib/monotone/keys/ /var/log/monotone /var/run/monotone
148 fowners monotone:monotone /var/lib/monotone /var/lib/monotone/keys/ \
149 /var/log/monotone /var/run/monotone
150 }
151
152 pkg_postinst() {
153 use emacs && elisp-site-regen
154 bash-completion_pkg_postinst
155
156 elog
157 elog "For details and instructions to upgrade from previous versions,"
158 elog "please read /usr/share/doc/${PF}/UPGRADE.bz2"
159 elog
160 elog " 1. edit /etc/conf.d/monotone"
161 elog " 2. import the first keys to enable access with"
162 elog " env HOME=\${homedir} mtn pubkey me@×××××××.net | /etc/init.d/monotone import"
163 elog " Thereafter, those with write permission can add other keys via"
164 elog " netsync with 'monotone push --key-to-push=IDENT' and then IDENT"
165 elog " can be used in the read-permission and write-permission files."
166 elog " 3. adjust permisions in /etc/monotone/read-permissions"
167 elog " and /etc/monotone/write-permissions"
168 elog " 4. start the daemon: /etc/init.d/monotone start"
169 elog " 5. make persistent: rc-update add monotone default"
170 elog
171 }
172
173 pkg_postrm() {
174 use emacs && elisp-site-regen
175 }