Gentoo Archives: gentoo-commits

From: "Diego Petteno (flameeyes)" <flameeyes@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sys-cluster/gearmand: gearmand-0.33.ebuild ChangeLog
Date: Mon, 04 Jun 2012 06:56:43
Message-Id: 20120604065629.680822004B@flycatcher.gentoo.org
1 flameeyes 12/06/04 06:56:29
2
3 Modified: ChangeLog
4 Added: gearmand-0.33.ebuild
5 Log:
6 Version bump by Pavel; also update to EAPI=4. Init script update to use default stop() function and checkpath.
7
8 (Portage version: 2.2.0_alpha108/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.13 sys-cluster/gearmand/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-cluster/gearmand/ChangeLog?rev=1.13&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-cluster/gearmand/ChangeLog?rev=1.13&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-cluster/gearmand/ChangeLog?r1=1.12&r2=1.13
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/sys-cluster/gearmand/ChangeLog,v
20 retrieving revision 1.12
21 retrieving revision 1.13
22 diff -u -r1.12 -r1.13
23 --- ChangeLog 14 Jan 2012 17:27:31 -0000 1.12
24 +++ ChangeLog 4 Jun 2012 06:56:29 -0000 1.13
25 @@ -1,6 +1,13 @@
26 # ChangeLog for sys-cluster/gearmand
27 # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/sys-cluster/gearmand/ChangeLog,v 1.12 2012/01/14 17:27:31 xarthisius Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/sys-cluster/gearmand/ChangeLog,v 1.13 2012/06/04 06:56:29 flameeyes Exp $
30 +
31 +*gearmand-0.33 (04 Jun 2012)
32 +
33 + 04 Jun 2012; Diego E. Pettenò <flameeyes@g.o> +files/gearmand.init.d.2,
34 + +gearmand-0.33.ebuild:
35 + Version bump by Pavel; also update to EAPI=4. Init script update to use
36 + default stop() function and checkpath.
37
38 14 Jan 2012; Kacper Kowalik <xarthisius@g.o> metadata.xml:
39 tcmalloc is now global
40
41
42
43 1.1 sys-cluster/gearmand/gearmand-0.33.ebuild
44
45 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-cluster/gearmand/gearmand-0.33.ebuild?rev=1.1&view=markup
46 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-cluster/gearmand/gearmand-0.33.ebuild?rev=1.1&content-type=text/plain
47
48 Index: gearmand-0.33.ebuild
49 ===================================================================
50 # Copyright 1999-2012 Gentoo Foundation
51 # Distributed under the terms of the GNU General Public License v2
52 # $Header: /var/cvsroot/gentoo-x86/sys-cluster/gearmand/gearmand-0.33.ebuild,v 1.1 2012/06/04 06:56:29 flameeyes Exp $
53
54 EAPI=4
55
56 inherit flag-o-matic libtool
57
58 DESCRIPTION="Generic framework to farm out work to other machines"
59 HOMEPAGE="http://www.gearman.org/"
60 SRC_URI="http://launchpad.net/gearmand/trunk/${PV}/+download/${P}.tar.gz"
61
62 LICENSE="MIT"
63 SLOT="0"
64 KEYWORDS="~amd64 ~x86"
65 IUSE="debug tcmalloc +memcache drizzle sqlite tokyocabinet postgres"
66
67 RDEPEND="dev-libs/libevent
68 || ( >=sys-apps/util-linux-2.16 <sys-libs/e2fsprogs-libs-1.41.8 )
69 tcmalloc? ( dev-util/google-perftools )
70 memcache? ( >=dev-libs/libmemcached-0.47 )
71 drizzle? ( dev-db/drizzle )
72 sqlite? ( dev-db/sqlite:3 )
73 tokyocabinet? ( dev-db/tokyocabinet )
74 postgres? ( >=dev-db/postgresql-base-9.0 )"
75 DEPEND="${RDEPEND}"
76
77 pkg_setup() {
78 enewuser gearmand -1 -1 /dev/null nogroup
79 }
80
81 src_prepare() {
82 elibtoolize
83 }
84
85 src_configure() {
86 # Don't ever use --enable-assert since configure.ac is broken, and
87 # only does --disable-assert correctly.
88 if use debug; then
89 # Since --with-debug would turn off optimisations as well as
90 # enabling debug, we just enable debug through the
91 # preprocessor then.
92 append-flags -DDEBUG
93 else
94 myconf="${myconf} --disable-assert"
95 fi
96
97 econf \
98 --disable-static \
99 --disable-dependency-tracking \
100 --disable-mtmalloc \
101 $(use_enable tcmalloc) \
102 $(use_enable memcache libmemcached) \
103 $(use_enable drizzle libdrizzle) \
104 $(use_enable sqlite libsqlite3) \
105 $(use_enable tokyocabinet libtokyocabinet) \
106 $(use_enable postgres libpq)
107 }
108
109 src_test() {
110 # Since libtool is stupid and doesn't discard /usr/lib64 from the
111 # load path, we'd end up testing against the installed copy of
112 # gearmand (bad).
113 #
114 # We thus cheat and "fix" the scripts by hand.
115 sed -i -e '/LD_LIBRARY_PATH=/s|/usr/lib64:||' "${S}"/tests/*_test \
116 || die "test fixing failed"
117
118 emake check
119 }
120
121 src_install() {
122 emake DESTDIR="${D}" install
123
124 dodoc README AUTHORS ChangeLog
125
126 newinitd "${FILESDIR}"/gearmand.init.d.2 gearmand
127 newconfd "${FILESDIR}"/gearmand.conf.d gearmand
128
129 find "${D}" -name '*.la' -delete || die
130 }
131
132 pkg_postinst() {
133 elog ""
134 elog "Unless you set the PERSISTENT_TABLE option in"
135 elog "/etc/conf.d/gearmand, Gearmand will use table 'queue'."
136 elog "If such table doesn't exist, Gearmand will create it for you"
137 elog ""
138 }