diff options
author | Stefan Briesenick <sbriesen@gentoo.org> | 2011-10-19 12:37:20 +0000 |
---|---|---|
committer | Stefan Briesenick <sbriesen@gentoo.org> | 2011-10-19 12:37:20 +0000 |
commit | 1e9ed1541e0e85464bdb856246be28e75b1b419f (patch) | |
tree | 66b07c689ebe9ad43a6a04f0875fb3937c0a19d5 /dev-db/lib_mysqludf_stat | |
parent | fixed unquoted variable (diff) | |
download | historical-1e9ed1541e0e85464bdb856246be28e75b1b419f.tar.gz historical-1e9ed1541e0e85464bdb856246be28e75b1b419f.tar.bz2 historical-1e9ed1541e0e85464bdb856246be28e75b1b419f.zip |
initial commit
Package-Manager: portage-2.2.0_alpha67/cvs/Linux x86_64
Diffstat (limited to 'dev-db/lib_mysqludf_stat')
-rw-r--r-- | dev-db/lib_mysqludf_stat/ChangeLog | 11 | ||||
-rw-r--r-- | dev-db/lib_mysqludf_stat/files/lib_mysqludf_stat-warnings.patch | 20 | ||||
-rw-r--r-- | dev-db/lib_mysqludf_stat/lib_mysqludf_stat-0.0.3.ebuild | 60 | ||||
-rw-r--r-- | dev-db/lib_mysqludf_stat/metadata.xml | 9 |
4 files changed, 100 insertions, 0 deletions
diff --git a/dev-db/lib_mysqludf_stat/ChangeLog b/dev-db/lib_mysqludf_stat/ChangeLog new file mode 100644 index 000000000000..c58609b67b8f --- /dev/null +++ b/dev-db/lib_mysqludf_stat/ChangeLog @@ -0,0 +1,11 @@ +# ChangeLog for dev-db/lib_mysqludf_stat +# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/dev-db/lib_mysqludf_stat/ChangeLog,v 1.1 2011/10/19 12:19:53 sbriesen Exp $ + +*lib_mysqludf_stat-0.0.3 (19 Oct 2011) + + 19 Oct 2011; Stefan Briesenick <sbriesen@gentoo.org> + +lib_mysqludf_stat-0.0.3.ebuild, +files/lib_mysqludf_stat-warnings.patch, + +metadata.xml: + initial commit + diff --git a/dev-db/lib_mysqludf_stat/files/lib_mysqludf_stat-warnings.patch b/dev-db/lib_mysqludf_stat/files/lib_mysqludf_stat-warnings.patch new file mode 100644 index 000000000000..5447356fea2d --- /dev/null +++ b/dev-db/lib_mysqludf_stat/files/lib_mysqludf_stat-warnings.patch @@ -0,0 +1,20 @@ +--- lib_mysqludf_stat.c.orig 2011-10-19 04:30:24.000000000 +0200 ++++ lib_mysqludf_stat.c 2011-10-19 04:31:21.000000000 +0200 +@@ -550,7 +550,7 @@ + , char *error
+ ){
+ PEARSON* pearson_struct = (PEARSON *)initid->ptr;
+- double result;
++ double result=0.0;
+ if (pearson_struct->n==0){
+ *is_null = 1;
+ } else if (
+@@ -700,7 +700,7 @@ + POINT_BISERIAL_GROUP* X0;
+ POINT_BISERIAL_GROUP* X1;
+ double s;
+- double result;
++ double result=0.0;
+
+ point_biserial_struct = (POINT_BISERIAL *)initid->ptr;
+ X = &point_biserial_struct->X;
diff --git a/dev-db/lib_mysqludf_stat/lib_mysqludf_stat-0.0.3.ebuild b/dev-db/lib_mysqludf_stat/lib_mysqludf_stat-0.0.3.ebuild new file mode 100644 index 000000000000..d9565234644f --- /dev/null +++ b/dev-db/lib_mysqludf_stat/lib_mysqludf_stat-0.0.3.ebuild @@ -0,0 +1,60 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-db/lib_mysqludf_stat/lib_mysqludf_stat-0.0.3.ebuild,v 1.1 2011/10/19 12:19:53 sbriesen Exp $ + +EAPI=4 + +inherit eutils toolchain-funcs + +DESCRIPTION="MySQL UDFs with statistical functions" +HOMEPAGE="http://www.mysqludf.org/lib_mysqludf_stat/" +SRC_URI="http://www.mysqludf.org/${PN}/${PN}_${PV}.tar.gz" + +LICENSE="LGPL-2.1" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +DEPEND=">=virtual/mysql-5.1" +RDEPEND="${DEPEND}" + +S="${WORKDIR}" + +# compile helper +_compile() { + local CC="$(tc-getCC)" + echo "${CC} ${@}" && "${CC}" "${@}" +} + +pkg_setup() { + MYSQL_PLUGINDIR="$(mysql_config --plugindir)" + MYSQL_INCLUDE="$(mysql_config --include)" +} + +src_prepare() { + epatch "${FILESDIR}/${PN}-warnings.patch" + + # remove precompiled object + rm -f -- ${PN}.so +} + +src_compile() { + _compile ${CFLAGS} -Wall -fPIC ${MYSQL_INCLUDE} \ + -shared ${LDFLAGS} -o ${PN}.so ${PN}.c +} + +src_install() { + exeinto "${MYSQL_PLUGINDIR}" + doexe ${PN}.so + dodoc ${PN}.sql +} + +pkg_postinst() { + elog + elog "Please have a look at the documentation, how to" + elog "enable/disable the UDF functions of ${PN}." + elog + elog "The documentation is located here:" + elog "/usr/share/doc/${PF}" + elog +} diff --git a/dev-db/lib_mysqludf_stat/metadata.xml b/dev-db/lib_mysqludf_stat/metadata.xml new file mode 100644 index 000000000000..abc550987baf --- /dev/null +++ b/dev-db/lib_mysqludf_stat/metadata.xml @@ -0,0 +1,9 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>no-herd</herd> + <maintainer> + <email>sbriesen@gentoo.org</email> + <name>Stefan Briesenick</name> + </maintainer> +</pkgmetadata> |