Gentoo Archives: gentoo-commits

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