summaryrefslogtreecommitdiff
path: root/dev-db
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2011-02-07 19:56:38 +0000
committerRobin H. Johnson <robbat2@gentoo.org>2011-02-07 19:56:38 +0000
commita29e52f7f7aa7ed19147a1b30b90016ad0fc45ad (patch)
tree63b40b03561dfa594a8eca45865c850c5c05bfad /dev-db
parentAdd gnome to metadata as talked between us since empathy relies on this. (diff)
downloadhistorical-a29e52f7f7aa7ed19147a1b30b90016ad0fc45ad.tar.gz
historical-a29e52f7f7aa7ed19147a1b30b90016ad0fc45ad.tar.bz2
historical-a29e52f7f7aa7ed19147a1b30b90016ad0fc45ad.zip
Version bump.
Package-Manager: portage-2.2.0_alpha19/cvs/Linux x86_64
Diffstat (limited to 'dev-db')
-rw-r--r--dev-db/maatkit/ChangeLog7
-rw-r--r--dev-db/maatkit/Manifest4
-rw-r--r--dev-db/maatkit/maatkit-7207.ebuild111
3 files changed, 120 insertions, 2 deletions
diff --git a/dev-db/maatkit/ChangeLog b/dev-db/maatkit/ChangeLog
index 98c87b89b43d..764ae60e75e4 100644
--- a/dev-db/maatkit/ChangeLog
+++ b/dev-db/maatkit/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for dev-db/maatkit
# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-db/maatkit/ChangeLog,v 1.17 2011/01/04 00:24:50 xmw Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-db/maatkit/ChangeLog,v 1.18 2011/02/07 19:56:38 robbat2 Exp $
+
+*maatkit-7207 (07 Feb 2011)
+
+ 07 Feb 2011; Robin H. Johnson <robbat2@gentoo.org> +maatkit-7207.ebuild:
+ Version bump.
04 Jan 2011; Michael Weber <xmw@gentoo.org> maatkit-6070.ebuild:
sparc stable (bug 345809)
diff --git a/dev-db/maatkit/Manifest b/dev-db/maatkit/Manifest
index ebd790ea1a26..9a1af783a661 100644
--- a/dev-db/maatkit/Manifest
+++ b/dev-db/maatkit/Manifest
@@ -2,9 +2,11 @@ DIST maatkit-5014.tar.gz 822002 RMD160 15666ea848147d00f2ce0b82462aded307b44706
DIST maatkit-5240.tar.gz 837523 RMD160 a2d8f04da22da9f0be47aacb5a7e15e22cabaeb0 SHA1 b53ba4cc63d0a62eb92735e6fb617289fdc38946 SHA256 2e251dff39f2117ebdbc6acf2ee8eacacf41cbdc411a56ed266e429e26d279aa
DIST maatkit-6070.tar.gz 892329 RMD160 660795f9c3b0fc9c3007665f2214b7e6e6013c79 SHA1 e29b6d7e83da1902a085af1b5ade9a3d9d45a770 SHA256 51875b604007c0a2516aae8ede1d50b0f528c1a8a4965231eaac6ed4245b0637
DIST maatkit-7041.tar.gz 1143373 RMD160 9eb34d16dd3c4c5b25435c60fac5d3e3e8952bf7 SHA1 d27e8e625e02f9b55ab0f75c671abdb650455f9b SHA256 1eaa6230feaab851f9a115c9945bfcb55252a07942dcb309240c34d9a73eaf3c
+DIST maatkit-7207.tar.gz 1194909 RMD160 6dae85423c29cbd73fd612afa206d1f0d94f791f SHA1 9bf98ed03444830a1259f840647ea2229bac711e SHA256 f1cdb59d8c06b9f172a49094f02d263f08ae3716d010b88c55ec16e484f9a498
EBUILD maatkit-5014.ebuild 2452 RMD160 d6dfab2700adb1e091b24513d2be55501f20ee5f SHA1 4e1bff430116293053de0fb0ba35e578b742a548 SHA256 c35ac02e00b107e3a7be2d8d36556f78c3560fe8bfc1ef19ea55cd326bbad5ec
EBUILD maatkit-5240.ebuild 2485 RMD160 d7b5ee74593ddf23ac903096a266e0ed6d47bd51 SHA1 c28cbe9776c27dbe830b967d9d77b79bcf8ee605 SHA256 689288635d04386f566a20edbdc033937bcda8c8f1a6137c92820a101d865ed2
EBUILD maatkit-6070.ebuild 2482 RMD160 6d894bf371b909eb4248908223ece60550739a85 SHA1 240cdb6c350168f7d7043dfdd8ec9e715727031a SHA256 be5874fa32f63c7857225dec78fd63c223f67b0dd0a3e5f582ac89f88fee4c32
EBUILD maatkit-7041.ebuild 2765 RMD160 fb841eb2112d6a67e85b7ae64fcb79d47f5f0140 SHA1 17373fe909a0435ebc08f2ac8f5aa6140516665c SHA256 2ec1b0c369b2752b39539d1d0352eab179463b428dcba7e18073db25a34c6182
-MISC ChangeLog 2389 RMD160 991331c0d9933cd4d6181ec7584d069fa7a2bfa2 SHA1 89a6222ef9b7db34abd7810f8d0dac5bdf9a9f7b SHA256 99abcbf3f57780f2e4d5dfe6020034dfc50ecad5dc16f7db6035b0822024a504
+EBUILD maatkit-7207.ebuild 2767 RMD160 beb7c232bee28446edae16df61d135b94689e2ff SHA1 ebd0f2a88d9c0426dcfb727c27f4d0abbf4dadd6 SHA256 6fefa77eb0502654e2ac4431572894855285a094f6fde37238a9eda9ba7035bf
+MISC ChangeLog 2514 RMD160 8262cf3c0134de2ad1cb99bf1fe916a5429ea9f6 SHA1 3ba62043070cd6698e564a9cb63f84ca80df133f SHA256 f7129e755ce75cefd563ce8a693f693f82e3576c2bcee9f9ee4d30a16033b195
MISC metadata.xml 749 RMD160 f8ade3452970966160d4761c6eeae9a8de1f3b3a SHA1 f33c8cc4c15437ae49166e59fb259e1b7652a3dc SHA256 a0b3078abd49c59e4884e440153c6e989c26c98806256a9ff0ec9f7c2d5e1754
diff --git a/dev-db/maatkit/maatkit-7207.ebuild b/dev-db/maatkit/maatkit-7207.ebuild
new file mode 100644
index 000000000000..093d3a16a429
--- /dev/null
+++ b/dev-db/maatkit/maatkit-7207.ebuild
@@ -0,0 +1,111 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-db/maatkit/maatkit-7207.ebuild,v 1.1 2011/02/07 19:56:38 robbat2 Exp $
+
+EAPI=3
+
+inherit perl-app perl-module toolchain-funcs
+
+DESCRIPTION="essential command-line utilities for MySQL"
+HOMEPAGE="http://www.maatkit.org/"
+SRC_URI="http://maatkit.googlecode.com/files/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos"
+IUSE="udf"
+
+COMMON_DEPEND="dev-perl/DBI
+ dev-perl/DBD-mysql
+ virtual/perl-Time-HiRes"
+RDEPEND="${COMMON_DEPEND}
+ virtual/perl-Getopt-Long
+ virtual/perl-Time-Local
+ virtual/perl-Digest-MD5
+ virtual/perl-IO-Compress
+ virtual/perl-File-Temp
+ virtual/perl-File-Spec
+ virtual/perl-Time-HiRes
+ dev-perl/TermReadKey"
+DEPEND="${COMMON_DEPEND}
+ udf? ( dev-db/mysql )
+ virtual/perl-ExtUtils-MakeMaker"
+
+mysql-udf_src_compile() {
+ local udfdir="${T}/udf/"
+ mkdir -p "${udfdir}"
+
+ local udfname udffile udfext udfoutpath
+ udfname="${1}"
+ udfext=".so"
+ udffile="${udfname}${udfext}"
+ udfoutpath="${udfdir}/${udffile}"
+ shift
+ CXX="$(tc-getCXX)"
+ local src="$@"
+ if [ -z "$@" ]; then
+ src="${udfname}.cc"
+ fi
+ for f in ${src} ; do
+ [ -f "${f}" ] || \
+ die "UDF ${udfname}: Cannot find source file ${f} to compile"
+ done
+ einfo "UDF ${udfname}: compiling from ${src}"
+ ${CXX} \
+ ${CXXFLAGS} -I/usr/include/mysql \
+ ${LDFLAGS} -fPIC -shared -o "${udfoutpath}" $src \
+ || die "UDF ${udfname}: Failed to compile"
+}
+
+mysql-udf_src_install() {
+ local udfdir="${T}/udf/"
+ local udfname udfext udffile udfoutpath
+ udfname="${1}"
+ udfext=".so"
+ udffile="${udfname}${udfext}"
+ udfoutpath="${udfdir}/${udffile}"
+ insinto /usr/$(get_libdir)/mysql/plugins
+ doins "${udfoutpath}" || die
+}
+
+udf_done_intro=0
+mysql-udf_pkg_postinst() {
+ local udfname udffile udfext udffunc udfreturn
+ udfname="${1}"
+ udfext=".so"
+ udffile="${udfname}${udfext}"
+ udffunc="${2}"
+ udfreturn="${3}"
+ if [ ${udf_done_intro} -eq 0 ]; then
+ elog "To use the UDFs that were built:"
+ elog "Update your configuration to include 'plugin_dir=/usr/$(get_libdir)/mysql/plugins'"
+ elog "Issue the following commands as a user with FUNCTION privileges:"
+ udf_done_intro=1
+ fi
+ elog "CREATE FUNCTION ${udffunc} RETURNS ${udfreturn} SONAME '${udffile}'"
+}
+
+src_compile() {
+ perl-app_src_compile
+ if use udf; then
+ cd "${S}"/udf
+ mysql-udf_src_compile murmur_udf
+ mysql-udf_src_compile fnv_udf
+ fi
+}
+
+src_install() {
+ perl-module_src_install
+ if use udf; then
+ mysql-udf_src_install murmur_udf
+ mysql-udf_src_install fnv_udf
+ fi
+}
+
+pkg_postinst() {
+ perl-module_pkg_postinst
+ if use udf; then
+ mysql-udf_pkg_postinst murmur_udf murmur_hash INTEGER
+ mysql-udf_pkg_postinst fnv_udf fnv_64 INTEGER
+ fi
+}