diff options
author | Patrick Lauer <patrick@gentoo.org> | 2010-05-03 19:16:58 +0000 |
---|---|---|
committer | Patrick Lauer <patrick@gentoo.org> | 2010-05-03 19:16:58 +0000 |
commit | d98dfa73592eb3f80db7c952e28f5181df20c35e (patch) | |
tree | 3f5d10d96996db8fe09ee70e6f2f640f1b3d6889 /dev-db/maatkit | |
parent | Version bump. (diff) | |
download | historical-d98dfa73592eb3f80db7c952e28f5181df20c35e.tar.gz historical-d98dfa73592eb3f80db7c952e28f5181df20c35e.tar.bz2 historical-d98dfa73592eb3f80db7c952e28f5181df20c35e.zip |
Bump for #316865
Package-Manager: portage-2.2_rc67/cvs/Linux x86_64
Diffstat (limited to 'dev-db/maatkit')
-rw-r--r-- | dev-db/maatkit/ChangeLog | 7 | ||||
-rw-r--r-- | dev-db/maatkit/Manifest | 4 | ||||
-rw-r--r-- | dev-db/maatkit/maatkit-6070.ebuild | 101 |
3 files changed, 110 insertions, 2 deletions
diff --git a/dev-db/maatkit/ChangeLog b/dev-db/maatkit/ChangeLog index e5424b5f4f46..32eb0bf81f5a 100644 --- a/dev-db/maatkit/ChangeLog +++ b/dev-db/maatkit/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for dev-db/maatkit # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-db/maatkit/ChangeLog,v 1.11 2010/04/13 21:30:06 hwoarang Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-db/maatkit/ChangeLog,v 1.12 2010/05/03 19:16:58 patrick Exp $ + +*maatkit-6070 (03 May 2010) + + 03 May 2010; Patrick Lauer <patrick@gentoo.org> +maatkit-6070.ebuild: + Bump for #316865 13 Apr 2010; Markos Chandras <hwoarang@gentoo.org> maatkit-5240.ebuild: Stable on amd64 wrt bug #304031 diff --git a/dev-db/maatkit/Manifest b/dev-db/maatkit/Manifest index 7cabd79419e4..2194298b181f 100644 --- a/dev-db/maatkit/Manifest +++ b/dev-db/maatkit/Manifest @@ -1,6 +1,8 @@ DIST maatkit-5014.tar.gz 822002 RMD160 15666ea848147d00f2ce0b82462aded307b44706 SHA1 a422650b52f03922ce8ffcd4d158a989f3b07a00 SHA256 6cd39c5d8e56e54fa3627aea8cd9be8c49ee00537fe7493bbae1318af5e3ff18 DIST maatkit-5240.tar.gz 837523 RMD160 a2d8f04da22da9f0be47aacb5a7e15e22cabaeb0 SHA1 b53ba4cc63d0a62eb92735e6fb617289fdc38946 SHA256 2e251dff39f2117ebdbc6acf2ee8eacacf41cbdc411a56ed266e429e26d279aa +DIST maatkit-6070.tar.gz 892329 RMD160 660795f9c3b0fc9c3007665f2214b7e6e6013c79 SHA1 e29b6d7e83da1902a085af1b5ade9a3d9d45a770 SHA256 51875b604007c0a2516aae8ede1d50b0f528c1a8a4965231eaac6ed4245b0637 EBUILD maatkit-5014.ebuild 2452 RMD160 d6dfab2700adb1e091b24513d2be55501f20ee5f SHA1 4e1bff430116293053de0fb0ba35e578b742a548 SHA256 c35ac02e00b107e3a7be2d8d36556f78c3560fe8bfc1ef19ea55cd326bbad5ec EBUILD maatkit-5240.ebuild 2485 RMD160 d7b5ee74593ddf23ac903096a266e0ed6d47bd51 SHA1 c28cbe9776c27dbe830b967d9d77b79bcf8ee605 SHA256 689288635d04386f566a20edbdc033937bcda8c8f1a6137c92820a101d865ed2 -MISC ChangeLog 1701 RMD160 6f1a0bf57de162de62d5c9e8df4ef32a35a5476b SHA1 03d3d484ad498c7edefb08fe0cb2b38e05e08f57 SHA256 61dd1cb5dcb917eb015e4fffddccff6a7ae73803a159620adcd96d855a076964 +EBUILD maatkit-6070.ebuild 2486 RMD160 b15c0ca368f3eab5166832007c4eb985dd1b7206 SHA1 ec4d929415880a23b170197ca06df9677e9fe541 SHA256 db51551d5e4f8bb6aa7fd88b228e4305a3cfd94b4c8b72ebaa72a08f964948ea +MISC ChangeLog 1821 RMD160 e2556594e7da99a214d16e7491be4dbcdd8cb193 SHA1 04cef574b0784a8548fb9fdc3928e525b56b19e1 SHA256 9425c54c5254e0264fe6af50cc74f0a44aa5fc7176f9d9e7782c67f227e684df MISC metadata.xml 749 RMD160 f8ade3452970966160d4761c6eeae9a8de1f3b3a SHA1 f33c8cc4c15437ae49166e59fb259e1b7652a3dc SHA256 a0b3078abd49c59e4884e440153c6e989c26c98806256a9ff0ec9f7c2d5e1754 diff --git a/dev-db/maatkit/maatkit-6070.ebuild b/dev-db/maatkit/maatkit-6070.ebuild new file mode 100644 index 000000000000..2b53e08c8be8 --- /dev/null +++ b/dev-db/maatkit/maatkit-6070.ebuild @@ -0,0 +1,101 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-db/maatkit/maatkit-6070.ebuild,v 1.1 2010/05/03 19:16:58 patrick Exp $ + +EAPI=2 +inherit perl-app toolchain-funcs + +DESCRIPTION="maatkit: 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" + +DEPEND="dev-perl/DBD-mysql + dev-perl/TermReadKey + udf? ( dev-db/mysql[-minimal] )" +RDEPEND="${DEPEND}" + +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} -fPIC \ + -I/usr/include/mysql \ + -shared -o "${udfoutpath}" \ + $src \ + || die "UDF ${udfname}: Failed to compile" +} + +mysql-udf_src_install() { + local udfdir="${T}/udf/" + local udfname udffile udfext udffile udfoutpath + udfname="${1}" + udfext=".so" + udffile="${udfname}${udfext}" + udfoutpath="${udfdir}/${udffile}" + insinto /usr/$(get_libdir)/mysql/plugins + doins "${udfoutpath}" +} + +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 +} |