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-db/maatkit: ChangeLog maatkit-6070.ebuild
Date: Mon, 03 May 2010 19:17:09
Message-Id: 20100503191659.2762E2C37B@corvid.gentoo.org
1 patrick 10/05/03 19:16:58
2
3 Modified: ChangeLog
4 Added: maatkit-6070.ebuild
5 Log:
6 Bump for #316865
7 (Portage version: 2.2_rc67/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.12 dev-db/maatkit/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-db/maatkit/ChangeLog?rev=1.12&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-db/maatkit/ChangeLog?rev=1.12&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-db/maatkit/ChangeLog?r1=1.11&r2=1.12
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/dev-db/maatkit/ChangeLog,v
19 retrieving revision 1.11
20 retrieving revision 1.12
21 diff -u -r1.11 -r1.12
22 --- ChangeLog 13 Apr 2010 21:30:06 -0000 1.11
23 +++ ChangeLog 3 May 2010 19:16:58 -0000 1.12
24 @@ -1,6 +1,11 @@
25 # ChangeLog for dev-db/maatkit
26 # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/dev-db/maatkit/ChangeLog,v 1.11 2010/04/13 21:30:06 hwoarang Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/dev-db/maatkit/ChangeLog,v 1.12 2010/05/03 19:16:58 patrick Exp $
29 +
30 +*maatkit-6070 (03 May 2010)
31 +
32 + 03 May 2010; Patrick Lauer <patrick@g.o> +maatkit-6070.ebuild:
33 + Bump for #316865
34
35 13 Apr 2010; Markos Chandras <hwoarang@g.o> maatkit-5240.ebuild:
36 Stable on amd64 wrt bug #304031
37
38
39
40 1.1 dev-db/maatkit/maatkit-6070.ebuild
41
42 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-db/maatkit/maatkit-6070.ebuild?rev=1.1&view=markup
43 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-db/maatkit/maatkit-6070.ebuild?rev=1.1&content-type=text/plain
44
45 Index: maatkit-6070.ebuild
46 ===================================================================
47 # Copyright 1999-2010 Gentoo Foundation
48 # Distributed under the terms of the GNU General Public License v2
49 # $Header: /var/cvsroot/gentoo-x86/dev-db/maatkit/maatkit-6070.ebuild,v 1.1 2010/05/03 19:16:58 patrick Exp $
50
51 EAPI=2
52 inherit perl-app toolchain-funcs
53
54 DESCRIPTION="maatkit: essential command-line utilities for MySQL"
55 HOMEPAGE="http://www.maatkit.org/"
56 SRC_URI="http://maatkit.googlecode.com/files/${P}.tar.gz"
57
58 LICENSE="GPL-2"
59 SLOT="0"
60 KEYWORDS="~amd64 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos"
61 IUSE="udf"
62
63 DEPEND="dev-perl/DBD-mysql
64 dev-perl/TermReadKey
65 udf? ( dev-db/mysql[-minimal] )"
66 RDEPEND="${DEPEND}"
67
68 mysql-udf_src_compile() {
69 local udfdir="${T}/udf/"
70 mkdir -p "${udfdir}"
71
72 local udfname udffile udfext udfoutpath
73 udfname="${1}"
74 udfext=".so"
75 udffile="${udfname}${udfext}"
76 udfoutpath="${udfdir}/${udffile}"
77 shift
78 CXX="$(tc-getCXX)"
79 local src="$@"
80 if [ -z "$@" ]; then
81 src="${udfname}.cc"
82 fi
83 for f in ${src} ; do
84 [ -f "${f}" ] || \
85 die "UDF ${udfname}: Cannot find source file ${f} to compile"
86 done
87 einfo "UDF ${udfname}: compiling from ${src}"
88 ${CXX} \
89 ${CXXFLAGS} -fPIC \
90 -I/usr/include/mysql \
91 -shared -o "${udfoutpath}" \
92 $src \
93 || die "UDF ${udfname}: Failed to compile"
94 }
95
96 mysql-udf_src_install() {
97 local udfdir="${T}/udf/"
98 local udfname udffile udfext udffile udfoutpath
99 udfname="${1}"
100 udfext=".so"
101 udffile="${udfname}${udfext}"
102 udfoutpath="${udfdir}/${udffile}"
103 insinto /usr/$(get_libdir)/mysql/plugins
104 doins "${udfoutpath}"
105 }
106
107 udf_done_intro=0
108 mysql-udf_pkg_postinst() {
109 local udfname udffile udfext udffunc udfreturn
110 udfname="${1}"
111 udfext=".so"
112 udffile="${udfname}${udfext}"
113 udffunc="${2}"
114 udfreturn="${3}"
115 if [ ${udf_done_intro} -eq 0 ]; then
116 elog "To use the UDFs that were built:"
117 elog "Update your configuration to include 'plugin_dir=/usr/$(get_libdir)/mysql/plugins'"
118 elog "Issue the following commands as a user with FUNCTION privileges:"
119 udf_done_intro=1
120 fi
121 elog "CREATE FUNCTION ${udffunc} RETURNS ${udfreturn} SONAME '${udffile}'"
122 }
123
124 src_compile() {
125 perl-app_src_compile
126 if use udf; then
127 cd "${S}"/udf
128 mysql-udf_src_compile murmur_udf
129 mysql-udf_src_compile fnv_udf
130 fi
131 }
132
133 src_install() {
134 perl-module_src_install
135 if use udf; then
136 mysql-udf_src_install murmur_udf
137 mysql-udf_src_install fnv_udf
138 fi
139 }
140
141 pkg_postinst() {
142 perl-module_pkg_postinst
143 if use udf; then
144 mysql-udf_pkg_postinst murmur_udf murmur_hash INTEGER
145 mysql-udf_pkg_postinst fnv_udf fnv_64 INTEGER
146 fi
147 }