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: drizzle-2010.01.1273.ebuild ChangeLog
Date: Fri, 29 Jan 2010 10:30:19
Message-Id: E1Nao7D-0004cK-M8@stork.gentoo.org
1 flameeyes 10/01/29 10:30:15
2
3 Modified: ChangeLog
4 Added: drizzle-2010.01.1273.ebuild
5 Log:
6 Version bump, hello world tests are properly disabled.
7 (Portage version: 2.2_rc61/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.3 dev-db/drizzle/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-db/drizzle/ChangeLog?rev=1.3&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-db/drizzle/ChangeLog?rev=1.3&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-db/drizzle/ChangeLog?r1=1.2&r2=1.3
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/dev-db/drizzle/ChangeLog,v
19 retrieving revision 1.2
20 retrieving revision 1.3
21 diff -u -r1.2 -r1.3
22 --- ChangeLog 13 Jan 2010 10:21:32 -0000 1.2
23 +++ ChangeLog 29 Jan 2010 10:30:15 -0000 1.3
24 @@ -1,6 +1,12 @@
25 # ChangeLog for dev-db/drizzle
26 # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/dev-db/drizzle/ChangeLog,v 1.2 2010/01/13 10:21:32 flameeyes Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/dev-db/drizzle/ChangeLog,v 1.3 2010/01/29 10:30:15 flameeyes Exp $
29 +
30 +*drizzle-2010.01.1273 (29 Jan 2010)
31 +
32 + 29 Jan 2010; Diego E. Pettenò <flameeyes@g.o>
33 + +drizzle-2010.01.1273.ebuild:
34 + Version bump, hello world tests are properly disabled.
35
36 *drizzle-2010.01.1263 (13 Jan 2010)
37
38
39
40
41 1.1 dev-db/drizzle/drizzle-2010.01.1273.ebuild
42
43 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-db/drizzle/drizzle-2010.01.1273.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-db/drizzle/drizzle-2010.01.1273.ebuild?rev=1.1&content-type=text/plain
45
46 Index: drizzle-2010.01.1273.ebuild
47 ===================================================================
48 # Copyright 1999-2010 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/dev-db/drizzle/drizzle-2010.01.1273.ebuild,v 1.1 2010/01/29 10:30:15 flameeyes Exp $
51
52 EAPI=2
53
54 inherit flag-o-matic libtool autotools eutils
55
56 DESCRIPTION="Drizzle project"
57 HOMEPAGE="http://drizzle.org"
58 SRC_URI="http://launchpad.net/drizzle/trunk/bell/+download/${P}.tar.gz"
59 LICENSE="GPL-2"
60 SLOT="0"
61 KEYWORDS="~amd64"
62
63 # don't add an ssl USE flag here, since it's not ssl support that
64 # we're to use, but rather MD5 support
65 IUSE="debug tcmalloc doc memcache curl pam gearman gnutls openssl"
66
67 # upstream bug #499911
68 RESTRICT="memcache? ( test ) !curl? ( test )"
69
70 RDEPEND="tcmalloc? ( dev-util/google-perftools )
71 dev-db/libdrizzle
72 sys-libs/readline
73 sys-apps/util-linux
74 dev-libs/libpcre
75 dev-libs/libevent
76 dev-libs/protobuf
77 gearman? ( sys-cluster/gearmand )
78 pam? ( sys-libs/pam )
79 curl? ( net-misc/curl )
80 gnutls? ( net-libs/gnutls )
81 memcache? ( dev-libs/libmemcached )"
82 DEPEND="${RDEPEND}
83 dev-util/gperf
84 doc? ( app-doc/doxygen )"
85 RDEPEND="${RDEPEND}
86 curl? (
87 gnutls? ( net-misc/curl[-openssl,-nss] )
88 openssl? ( net-misc/curl[-gnutls,-nss] )
89 )"
90
91 pkg_setup() {
92 elog "This is a work-in-progress ebuild, some features will require"
93 elog "manual configuration and others aren't fleshed out just yet."
94 elog "Use it at your risk."
95
96 if use gnutls && use openssl; then
97 eerror "You cannot use both GnuTLS and OpenSSL at the same time"
98 eerror "to provide the MD5 plugin. Please choose only one USE flag"
99 eerror "between gnutls and openssl."
100 die "Both gnutls and openssl USE flags enabled."
101 fi
102 }
103
104 src_prepare() {
105 epatch "${FILESDIR}/${PN}-2009.12.1240-nolint.patch"
106
107 AT_M4DIR="m4" eautoreconf
108
109 elibtoolize
110 }
111
112 src_configure() {
113 local myconf=
114
115 if use debug; then
116 append-flags -DDEBUG
117 fi
118
119 if use gnutls; then
120 myconf="${myconf} --with-md5-plugin"
121 export ac_cv_libcrypto=no
122 elif use openssl; then
123 myconf="${myconf} --with-md5-plugin"
124 export ac_cv_libgnutls_openssl=no
125 else
126 myconf="${myconf} --without-md5-plugin"
127 fi
128
129 econf \
130 --disable-static \
131 --disable-dependency-tracking \
132 --disable-mtmalloc \
133 $(use_enable tcmalloc) \
134 $(use_enable memcache libmemcached) \
135 $(use_enable gearman libgearman) \
136 $(use_with curl auth-http-plugin) \
137 $(use_with pam auth-pam-plugin) \
138 --without-hello-world-plugin \
139 ${myconf}
140 }
141
142 src_compile() {
143 emake || die "build failed"
144
145 if use doc; then
146 emake doxygen || die "doxygen failed"
147 fi
148 }
149
150 src_test() {
151 # Explicitly allow parallel make check
152 emake check || die "tests failed"
153 }
154
155 src_install() {
156 emake DESTDIR="${D}" install || die "install failed"
157 dodoc AUTHORS NEWS README || die
158
159 find "${D}" -name '*.la' -delete || die
160
161 if use doc; then
162 docinto apidoc
163 pushd docs/html
164 dohtml -r .
165 popd
166 fi
167 }
168
169 pkg_postinst() {
170 if use pam; then
171 ewarn "Be warned that we're still lacking a pam configuration"
172 ewarn "file so the PAM authentication will not work by default"
173 fi
174 }