Gentoo Archives: gentoo-commits

From: "Diego Petteno (flameeyes)" <flameeyes@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-db/drizzle: ChangeLog drizzle-7.2011.02.09.ebuild
Date: Thu, 03 Feb 2011 12:31:48
Message-Id: 20110203123137.EA8F820054@flycatcher.gentoo.org
1 flameeyes 11/02/03 12:31:37
2
3 Modified: ChangeLog
4 Added: drizzle-7.2011.02.09.ebuild
5 Log:
6 Version bump by Pavel Stratil. Restrict tests with USE=haildb since they are still not working.
7
8 (Portage version: 2.2.0_alpha19/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.21 dev-db/drizzle/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-db/drizzle/ChangeLog?rev=1.21&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-db/drizzle/ChangeLog?rev=1.21&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-db/drizzle/ChangeLog?r1=1.20&r2=1.21
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/dev-db/drizzle/ChangeLog,v
20 retrieving revision 1.20
21 retrieving revision 1.21
22 diff -u -r1.20 -r1.21
23 --- ChangeLog 10 Jan 2011 01:22:32 -0000 1.20
24 +++ ChangeLog 3 Feb 2011 12:31:37 -0000 1.21
25 @@ -1,6 +1,13 @@
26 # ChangeLog for dev-db/drizzle
27 # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/dev-db/drizzle/ChangeLog,v 1.20 2011/01/10 01:22:32 flameeyes Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/dev-db/drizzle/ChangeLog,v 1.21 2011/02/03 12:31:37 flameeyes Exp $
30 +
31 +*drizzle-7.2011.02.09 (03 Feb 2011)
32 +
33 + 03 Feb 2011; Diego E. Pettenò <flameeyes@g.o>
34 + +drizzle-7.2011.02.09.ebuild:
35 + Version bump by Pavel Stratil. Restrict tests with USE=haildb since they are
36 + still not working.
37
38 *drizzle-7.2010.12.06 (10 Jan 2011)
39
40
41
42
43 1.1 dev-db/drizzle/drizzle-7.2011.02.09.ebuild
44
45 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-db/drizzle/drizzle-7.2011.02.09.ebuild?rev=1.1&view=markup
46 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-db/drizzle/drizzle-7.2011.02.09.ebuild?rev=1.1&content-type=text/plain
47
48 Index: drizzle-7.2011.02.09.ebuild
49 ===================================================================
50 # Copyright 1999-2011 Gentoo Foundation
51 # Distributed under the terms of the GNU General Public License v2
52 # $Header: /var/cvsroot/gentoo-x86/dev-db/drizzle/drizzle-7.2011.02.09.ebuild,v 1.1 2011/02/03 12:31:37 flameeyes Exp $
53
54 EAPI=2
55
56 inherit flag-o-matic libtool autotools eutils pam versionator
57
58 MY_P="${PN}$(replace_version_separator 1 -)"
59 S="${WORKDIR}/${MY_P}"
60
61 DESCRIPTION="Database optimized for Cloud and Net applications"
62 HOMEPAGE="http://drizzle.org"
63 SRC_URI="http://launchpad.net/drizzle/elliott/$(get_version_component_range 2-2)-01-31/+download/${MY_P}.tar.gz"
64 LICENSE="GPL-2"
65 SLOT="0"
66 KEYWORDS="~amd64 ~x86"
67 IUSE="debug tcmalloc doc memcache curl pam gearman +md5 ldap haildb"
68
69 # tests are known to fail with haildb enabled, still.
70 RESTRICT="haildb? ( test )"
71
72 RDEPEND="tcmalloc? ( dev-util/google-perftools )
73 sys-libs/readline
74 sys-apps/util-linux
75 dev-libs/libpcre
76 >=dev-libs/libevent-1.4
77 >=dev-libs/protobuf-2.1.0
78 gearman? ( >=sys-cluster/gearmand-0.12 )
79 pam? ( sys-libs/pam )
80 curl? ( net-misc/curl )
81 memcache? ( >=dev-libs/libmemcached-0.39 )
82 md5? ( >=dev-libs/libgcrypt-1.4.2 )
83 haildb? ( >=dev-db/haildb-2.3.2 )
84 >=dev-libs/boost-1.32
85 ldap? ( net-nds/openldap )
86 !dev-db/libdrizzle"
87
88 DEPEND="${RDEPEND}
89 sys-devel/gettext
90 dev-util/intltool
91 dev-util/gperf
92 sys-devel/flex
93 doc? ( app-doc/doxygen )
94 >=dev-util/boost-build-1.32"
95
96 pkg_setup() {
97 enewuser drizzle -1 -1 /dev/null nogroup
98 }
99
100 src_prepare() {
101 epatch "${FILESDIR}/${PN}-2009.12.1240-nolint.patch"
102
103 AT_M4DIR="m4" eautoreconf
104 elibtoolize
105 }
106
107 src_configure() {
108 local myconf=
109
110 if use debug; then
111 append-flags -DDEBUG
112 fi
113
114 # while I applaud upstreams goal of 0 compiler warnings
115 # the 1412 release didn't achieve it.
116 append-flags -Wno-error
117
118 # NOTE disable-all and without-all no longer recognized options
119 # NOTE using --enable on some plugins can cause test failures.
120 # --with should be used instead. A discussion about this here:
121 # https://bugs.launchpad.net/drizzle/+bug/598659
122 # TODO (upstream)
123 # $(use_with memcache memcached-stats-plugin) \
124 # $(use_with memcache memcached-functions-plugin) \
125
126 econf \
127 --disable-static \
128 --disable-dependency-tracking \
129 --disable-mtmalloc \
130 $(use_enable tcmalloc) \
131 $(use_enable memcache libmemcached) \
132 $(use_enable gearman libgearman) \
133 $(use_enable ldap libldap) \
134 $(use_with curl auth-http-plugin) \
135 $(use_with pam auth-pam-plugin) \
136 $(use_with md5 md5-plugin) \
137 $(use_with gearman gearman-udf-plugin) \
138 $(use_with gearman logging-gearman-plugin) \
139 $(use_with ldap auth-ldap-plugin) \
140 --without-hello-world-plugin \
141 --disable-pbxt-plugin --without-pbxt-plugin \
142 --disable-rabbitmq-plugin --without-rabbitmq-plugin \
143 $(use_enable haildb libhaildb) \
144 $(use_enable haildb haildb-plugin) \
145 $(use_with haildb haildb-plugin) \
146 --with-auth-test-plugin \
147 --with-auth-file-plugin \
148 --with-simple-user-policy-plugin \
149 --enable-logging-stats-plugin \
150 --with-logging-stats-plugin \
151 --enable-console-plugin \
152 --enable-archive-plugin \
153 ${myconf}
154
155 }
156
157 src_compile() {
158 emake all $(use doc && echo doxygen) || die "build failed"
159 }
160
161 # 5-10 min eta
162 src_test() {
163 # If you want to turn off a test, rename to suffix of .DISABLED
164 # Explicitly allow parallel make check
165 emake check || die "tests failed"
166 }
167
168 src_install() {
169 emake DESTDIR="${D}" install || die "install failed"
170 dodoc AUTHORS NEWS README || die
171
172 find "${D}" -name '*.la' -delete || die
173
174 if use doc; then
175 docinto apidoc
176 pushd docs/html
177 dohtml -r .
178 popd
179 fi
180
181 newinitd "${FILESDIR}"/drizzle.init.d drizzled || die
182 newconfd "${FILESDIR}"/drizzle.conf.d drizzled || die
183
184 if ! use gearman; then
185 sed -i -e '/need gearmand/d' "${D}"/etc/init.d/drizzled \
186 || die "unable to sed init script (gearman)"
187 fi
188
189 if ! use memcache; then
190 sed -i -e '/need memcached/d' "${D}"/etc/init.d/drizzled \
191 || die "unable to sed init script (memcache)"
192 fi
193
194 keepdir /var/run/drizzle || die
195 keepdir /var/log/drizzle || die
196 keepdir /var/lib/drizzle/drizzled || die
197 keepdir /etc/drizzle || die
198
199 fperms 0755 /var/run/drizzle || die
200 fperms 0755 /var/log/drizzle || die
201 fperms -R 0700 /var/lib/drizzle || die
202
203 fowners drizzle:nogroup /var/run/drizzle || die
204 fowners drizzle:nogroup /var/log/drizzle || die
205 fowners -R drizzle:nogroup /var/lib/drizzle || die
206
207 pamd_mimic system-auth drizzle auth account session
208 }