From: Stefan Briesenick Date: Wed, 19 Oct 2011 12:37:20 +0000 (+0000) Subject: initial commit X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=1e9ed1541e0e85464bdb856246be28e75b1b419f;p=gentoo.git initial commit Package-Manager: portage-2.2.0_alpha67/cvs/Linux x86_64 --- diff --git a/dev-db/lib_mysqludf_fPROJ4/ChangeLog b/dev-db/lib_mysqludf_fPROJ4/ChangeLog new file mode 100644 index 000000000000..03bb45a27ac4 --- /dev/null +++ b/dev-db/lib_mysqludf_fPROJ4/ChangeLog @@ -0,0 +1,11 @@ +# ChangeLog for dev-db/lib_mysqludf_fPROJ4 +# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/dev-db/lib_mysqludf_fPROJ4/ChangeLog,v 1.1 2011/10/19 12:12:02 sbriesen Exp $ + +*lib_mysqludf_fPROJ4-0.1.0 (19 Oct 2011) + + 19 Oct 2011; Stefan Briesenick + +files/lib_mysqludf_fPROJ4-warnings.patch, +lib_mysqludf_fPROJ4-0.1.0.ebuild, + +metadata.xml: + initial commit + diff --git a/dev-db/lib_mysqludf_fPROJ4/files/lib_mysqludf_fPROJ4-warnings.patch b/dev-db/lib_mysqludf_fPROJ4/files/lib_mysqludf_fPROJ4-warnings.patch new file mode 100644 index 000000000000..0b9669991cb3 --- /dev/null +++ b/dev-db/lib_mysqludf_fPROJ4/files/lib_mysqludf_fPROJ4-warnings.patch @@ -0,0 +1,35 @@ +--- lib_mysqludf_fPROJ4.c.orig 2010-05-09 13:46:12.000000000 +0200 ++++ lib_mysqludf_fPROJ4.c 2011-10-19 02:32:48.000000000 +0200 +@@ -1,5 +1,3 @@ +-/* +- + /* + lib_mysqludf_fPROJ4 - An extended set of scientific functions which + converts geographic longitude and latitude coordinates into cartesian +@@ -178,7 +176,7 @@ + } + double fPROJ4_transform(UDF_INIT *initid, UDF_ARGS *args, char *is_null, char *error) + { +- projPJ pj_in, pj_out; ++ projPJ pj_in=NULL, pj_out=NULL; + double x, y,z; + int p,t; + +@@ -248,7 +246,7 @@ + } + double fPROJ4_Geo2UTM(UDF_INIT *initid, UDF_ARGS *args, char *is_null, char *error) + { +- projPJ pj_in, pj_out; ++ projPJ pj_in=NULL, pj_out=NULL; + double x, y; + int p,t,zone; + char *tmp; +@@ -323,7 +321,7 @@ + } + double fPROJ4_UTM2Geo(UDF_INIT *initid, UDF_ARGS *args, char *is_null, char *error) + { +- projPJ pj_in, pj_out; ++ projPJ pj_in=NULL, pj_out=NULL; + double x, y; + int p,t,zone; + char *tmp; diff --git a/dev-db/lib_mysqludf_fPROJ4/lib_mysqludf_fPROJ4-0.1.0.ebuild b/dev-db/lib_mysqludf_fPROJ4/lib_mysqludf_fPROJ4-0.1.0.ebuild new file mode 100644 index 000000000000..a124dc188004 --- /dev/null +++ b/dev-db/lib_mysqludf_fPROJ4/lib_mysqludf_fPROJ4-0.1.0.ebuild @@ -0,0 +1,64 @@ +# 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_fPROJ4/lib_mysqludf_fPROJ4-0.1.0.ebuild,v 1.1 2011/10/19 12:12:02 sbriesen Exp $ + +EAPI=4 + +inherit eutils toolchain-funcs + +DESCRIPTION="MySQL UDFs which converts geographic/cartesian coordinates" +HOMEPAGE="http://www.mysqludf.org/lib_mysqludf_fPROJ4/" +SRC_URI="http://www.mysqludf.org/${PN}/${P}.tar.gz" + +LICENSE="LGPL-2.1" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +DEPEND=">=virtual/mysql-5.1 + sci-libs/proj" +RDEPEND="${DEPEND}" + +S="${WORKDIR}/${P}-src" + +# 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" + + # fix doc (BOM, CR/LF, soname) + sed -i -e '1 s|^\xEF\xBB\xBF||' \ + -e "s|'\(${PN}\).*'|'\1.so'|g" ${PN}.sql + echo >> ${PN}.sql # add LF + edos2unix ${PN}.sql +} + +src_compile() { + _compile ${CFLAGS} -Wall -fPIC ${MYSQL_INCLUDE} -lproj \ + -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_fPROJ4/metadata.xml b/dev-db/lib_mysqludf_fPROJ4/metadata.xml new file mode 100644 index 000000000000..abc550987baf --- /dev/null +++ b/dev-db/lib_mysqludf_fPROJ4/metadata.xml @@ -0,0 +1,9 @@ + + + + no-herd + + sbriesen@gentoo.org + Stefan Briesenick + + diff --git a/dev-db/lib_mysqludf_json/ChangeLog b/dev-db/lib_mysqludf_json/ChangeLog new file mode 100644 index 000000000000..8bad47f75c70 --- /dev/null +++ b/dev-db/lib_mysqludf_json/ChangeLog @@ -0,0 +1,10 @@ +# ChangeLog for dev-db/lib_mysqludf_json +# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/dev-db/lib_mysqludf_json/ChangeLog,v 1.1 2011/10/19 12:13:42 sbriesen Exp $ + +*lib_mysqludf_json-0.0.2 (19 Oct 2011) + + 19 Oct 2011; Stefan Briesenick + +lib_mysqludf_json-0.0.2.ebuild, +metadata.xml: + initial commit + diff --git a/dev-db/lib_mysqludf_json/lib_mysqludf_json-0.0.2.ebuild b/dev-db/lib_mysqludf_json/lib_mysqludf_json-0.0.2.ebuild new file mode 100644 index 000000000000..52acedcca101 --- /dev/null +++ b/dev-db/lib_mysqludf_json/lib_mysqludf_json-0.0.2.ebuild @@ -0,0 +1,59 @@ +# 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_json/lib_mysqludf_json-0.0.2.ebuild,v 1.1 2011/10/19 12:13:42 sbriesen Exp $ + +EAPI=4 + +inherit eutils toolchain-funcs + +DESCRIPTION="MySQL UDFs to map relational data to the JSON format" +HOMEPAGE="http://www.mysqludf.org/lib_mysqludf_json/" +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() { + # 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 + dohtml ${PN}.html +} + +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_json/metadata.xml b/dev-db/lib_mysqludf_json/metadata.xml new file mode 100644 index 000000000000..abc550987baf --- /dev/null +++ b/dev-db/lib_mysqludf_json/metadata.xml @@ -0,0 +1,9 @@ + + + + no-herd + + sbriesen@gentoo.org + Stefan Briesenick + + diff --git a/dev-db/lib_mysqludf_log/ChangeLog b/dev-db/lib_mysqludf_log/ChangeLog new file mode 100644 index 000000000000..5a05221dc667 --- /dev/null +++ b/dev-db/lib_mysqludf_log/ChangeLog @@ -0,0 +1,11 @@ +# ChangeLog for dev-db/lib_mysqludf_log +# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/dev-db/lib_mysqludf_log/ChangeLog,v 1.1 2011/10/19 12:15:36 sbriesen Exp $ + +*lib_mysqludf_log-0.0.2 (19 Oct 2011) + + 19 Oct 2011; Stefan Briesenick + +lib_mysqludf_log-0.0.2.ebuild, +files/lib_mysqludf_log-warnings.patch, + +metadata.xml: + initial commit + diff --git a/dev-db/lib_mysqludf_log/files/lib_mysqludf_log-warnings.patch b/dev-db/lib_mysqludf_log/files/lib_mysqludf_log-warnings.patch new file mode 100644 index 000000000000..64b59639a328 --- /dev/null +++ b/dev-db/lib_mysqludf_log/files/lib_mysqludf_log-warnings.patch @@ -0,0 +1,11 @@ +--- lib_mysqludf_log.c.orig 2008-07-07 01:17:06.000000000 +0200 ++++ lib_mysqludf_log.c 2011-10-18 12:50:52.000000000 +0200 +@@ -159,7 +159,7 @@ + } else { + fmt = (char *)initid->ptr; + memcpy(fmt, "%0.", 3); +- sprintf(fmt+3, "%d", args->lengths[0]<=9999? args->lengths[0]: 9999); ++ sprintf(fmt+3, "%d", (int)(args->lengths[0]<=9999? args->lengths[0]: 9999)); + numDigits = strlen(fmt + 4); + memcpy(fmt + 4 + numDigits, "s\n\0", 3); + fprintf(stderr, fmt, args->args[0]); diff --git a/dev-db/lib_mysqludf_log/lib_mysqludf_log-0.0.2.ebuild b/dev-db/lib_mysqludf_log/lib_mysqludf_log-0.0.2.ebuild new file mode 100644 index 000000000000..69cf1a9f8f17 --- /dev/null +++ b/dev-db/lib_mysqludf_log/lib_mysqludf_log-0.0.2.ebuild @@ -0,0 +1,57 @@ +# 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_log/lib_mysqludf_log-0.0.2.ebuild,v 1.1 2011/10/19 12:15:36 sbriesen Exp $ + +EAPI=4 + +inherit eutils toolchain-funcs + +DESCRIPTION="MySQL UDF to write to log files" +HOMEPAGE="http://www.mysqludf.org/lib_mysqludf_log/" +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" +} + +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_log/metadata.xml b/dev-db/lib_mysqludf_log/metadata.xml new file mode 100644 index 000000000000..abc550987baf --- /dev/null +++ b/dev-db/lib_mysqludf_log/metadata.xml @@ -0,0 +1,9 @@ + + + + no-herd + + sbriesen@gentoo.org + Stefan Briesenick + + diff --git a/dev-db/lib_mysqludf_preg/ChangeLog b/dev-db/lib_mysqludf_preg/ChangeLog new file mode 100644 index 000000000000..0cad25d2c718 --- /dev/null +++ b/dev-db/lib_mysqludf_preg/ChangeLog @@ -0,0 +1,10 @@ +# ChangeLog for dev-db/lib_mysqludf_preg +# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/dev-db/lib_mysqludf_preg/ChangeLog,v 1.1 2011/10/19 12:17:26 sbriesen Exp $ + +*lib_mysqludf_preg-1.0.1 (19 Oct 2011) + + 19 Oct 2011; Stefan Briesenick + +lib_mysqludf_preg-1.0.1.ebuild, +metadata.xml: + initial commit + diff --git a/dev-db/lib_mysqludf_preg/lib_mysqludf_preg-1.0.1.ebuild b/dev-db/lib_mysqludf_preg/lib_mysqludf_preg-1.0.1.ebuild new file mode 100644 index 000000000000..a84ec96b11a2 --- /dev/null +++ b/dev-db/lib_mysqludf_preg/lib_mysqludf_preg-1.0.1.ebuild @@ -0,0 +1,59 @@ +# 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_preg/lib_mysqludf_preg-1.0.1.ebuild,v 1.1 2011/10/19 12:17:26 sbriesen Exp $ + +EAPI=4 + +inherit eutils toolchain-funcs autotools + +DESCRIPTION="MySQL UDFs that provide access to the PCRE library for pattern matching" +HOMEPAGE="http://www.mysqludf.org/lib_mysqludf_preg/" +SRC_URI="http://www.mysqludf.org/${PN}/${P}.tar.gz" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +DEPEND=">=virtual/mysql-5.1 + dev-libs/libpcre" +RDEPEND="${DEPEND}" + +RESTRICT="test" + +pkg_setup() { + MYSQL_PLUGINDIR="$(mysql_config --plugindir)" + MYSQL_INCLUDE="$(mysql_config --include)" +} + +src_prepare() { + edos2unix README + eautoreconf +} + +src_configure() { + econf --with-pic --disable-static --libdir="${MYSQL_PLUGINDIR}" +} + +src_install() { + local X + emake DESTDIR="${D}" install + [ -f ${PN}.html ] && dohtml ${PN}.html + [ -d doc/html ] && dohtml -r doc/html/. + for X in API AUTHORS ChangeLog NEWS README *installdb.sql; do + [ -s "${X}" ] && dodoc "${X}" + done + + # remove obsolete *.la file + rm -f -- "${D}${MYSQL_PLUGINDIR}"/*.la +} + +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_preg/metadata.xml b/dev-db/lib_mysqludf_preg/metadata.xml new file mode 100644 index 000000000000..abc550987baf --- /dev/null +++ b/dev-db/lib_mysqludf_preg/metadata.xml @@ -0,0 +1,9 @@ + + + + no-herd + + sbriesen@gentoo.org + Stefan Briesenick + + 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 + +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 @@ + + + + no-herd + + sbriesen@gentoo.org + Stefan Briesenick + + diff --git a/dev-db/lib_mysqludf_stem/ChangeLog b/dev-db/lib_mysqludf_stem/ChangeLog new file mode 100644 index 000000000000..96f28515db36 --- /dev/null +++ b/dev-db/lib_mysqludf_stem/ChangeLog @@ -0,0 +1,11 @@ +# ChangeLog for dev-db/lib_mysqludf_stem +# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/dev-db/lib_mysqludf_stem/ChangeLog,v 1.1 2011/10/19 12:23:45 sbriesen Exp $ + +*lib_mysqludf_stem-0.9.1 (19 Oct 2011) + + 19 Oct 2011; Stefan Briesenick + +files/lib_mysqludf_stem-mysql_m4.patch, +lib_mysqludf_stem-0.9.1.ebuild, + +metadata.xml: + initial commit + diff --git a/dev-db/lib_mysqludf_stem/files/lib_mysqludf_stem-mysql_m4.patch b/dev-db/lib_mysqludf_stem/files/lib_mysqludf_stem-mysql_m4.patch new file mode 100644 index 000000000000..c12d1f7d39a9 --- /dev/null +++ b/dev-db/lib_mysqludf_stem/files/lib_mysqludf_stem-mysql_m4.patch @@ -0,0 +1,71 @@ +--- config/ax_lib_mysql.m4.orig 2008-05-28 17:31:47.000000000 +0200 ++++ config/ax_lib_mysql.m4 2008-11-26 22:43:48.000000000 +0100 +@@ -87,10 +87,9 @@ + MYSQL_LDFLAGS="`$MYSQL_CONFIG --libs`" + + MYSQL_VERSION=`$MYSQL_CONFIG --version` +- +- if test `$MYSQL_CONFIG | /usr/bin/awk '{if ($1 == "--plugindir") print 1}'` == "1"; then +- MYSQL_PLUGINDIR=`$MYSQL_CONFIG --plugindir` +- fi ++ if $MYSQL_CONFIG --plugindir > /dev/null; then ++ MYSQL_PLUGINDIR=`$MYSQL_CONFIG --plugindir` ++ fi + + AC_DEFINE([HAVE_MYSQL], [1], + [Define to 1 if MySQL libraries are available]) +--- config/ax_mysql_bin.m4.orig 2007-08-15 02:22:37.000000000 +0200 ++++ config/ax_mysql_bin.m4 2008-11-26 22:55:40.000000000 +0100 +@@ -43,35 +43,36 @@ + fi + + if test -z "$withmysqlbin" -o "$withmysqlbin" = "yes"; then +- for i in /usr/bin /usr/local/bin ; do +- if test -f "$i/mysql" ; then +- MYSQL="$i/mysql $MYSQL_ARGS" +- fi +- done ++ MYSQL=`which mysql`; ++ if test -n "$MYSQL"; then MYSQL="$MYSQL $MYSQL_ARGS"; fi + elif test "$withmysqlbin" != "no"; then + MYSQL="$withmysqlbin" + fi + + if test -n "$MYSQL" ; then +- MYSQLBIN_PATH = `dirname "$MYSQL"` ++ MYSQLBIN_PATH=`dirname "$MYSQL"` + fi + + if test -z "$withmysqladmin" -o "$withmysqladmin" = "yes"; then +- for i in "$MYSQLBIN_PATH" /usr/bin /usr/local/bin ; do +- if test -n "$i" -a -f "$i/mysqladmin" ; then +- MYSQLADMIN="$i/mysqladmin $MYSQL_ARGS" +- fi +- done ++ if test -n "$MYSQLBIN_PATH" -a -f "$MYSQLBIN_PATH/mysqladmin"; then ++ MYSQLADMIN="$MYSQLBIN_PATH/mysqladmin"; ++ else ++ MYSQLADMIN=`which mysqladmin`; ++ fi ++ ++ if test -n "$MYSQLADMIN"; then MYSQLADMIN="$MYSQLADMIN $MYSQL_ARGS"; fi + elif test "$withmysqladmin" != "no"; then + MYSQLADMIN="$withmysqladmin" + fi + + if test -z "$withmysqltest" -o "$withmysqltest" = "yes"; then +- for i in "$MYSQLBIN_PATH" /usr/bin /usr/local/bin ; do +- if test -n "$i" -a -f "$i/mysqltest" ; then +- MYSQLTEST="$i/mysqltest $MYSQL_ARGS" +- fi +- done ++ if test -n "$MYSQLBIN_PATH" -a -f "$MYSQLBIN_PATH/mysqltest"; then ++ MYSQLTEST="$MYSQLBIN_PATH/mysqltest"; ++ else ++ MYSQLTEST=`which mysqltest`; ++ fi ++ ++ if test -n "$MYSQLTEST"; then MYSQLTEST="$MYSQLTEST $MYSQL_ARGS"; fi + elif test "$withmysqltest" != "no"; then + MYSQLTEST="$withmysqltest" + fi diff --git a/dev-db/lib_mysqludf_stem/lib_mysqludf_stem-0.9.1.ebuild b/dev-db/lib_mysqludf_stem/lib_mysqludf_stem-0.9.1.ebuild new file mode 100644 index 000000000000..0eab307c163f --- /dev/null +++ b/dev-db/lib_mysqludf_stem/lib_mysqludf_stem-0.9.1.ebuild @@ -0,0 +1,69 @@ +# 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_stem/lib_mysqludf_stem-0.9.1.ebuild,v 1.1 2011/10/19 12:23:45 sbriesen Exp $ + +EAPI=4 + +inherit eutils toolchain-funcs autotools + +DESCRIPTION="MySQL UDFs which provides stemming capability for a variety of languages" +HOMEPAGE="http://www.mysqludf.org/lib_mysqludf_stem/" +SRC_URI="http://www.mysqludf.org/${PN}/${P}.tar.gz" + +LICENSE="LGPL-2.1" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +DEPEND=">=virtual/mysql-5.1" +RDEPEND="${DEPEND}" + +RESTRICT="test" + +pkg_setup() { + MYSQL_PLUGINDIR="$(mysql_config --plugindir)" + MYSQL_INCLUDE="$(mysql_config --include)" +} + +src_prepare() { + # add AC_PROG_CXX to configure.ac + sed -i -e 's|\(AC_PROG_CC\)|\1\nAC_PROG_CXX|g' configure.ac + + # fix ax_lib_mysql.m4 + ax_mysql_bin.m4 + epatch "${FILESDIR}/${PN}-mysql_m4.patch" + + # fix and clean libstemmer_c + sed -i -e 's|^\(CFLAGS\)=|\1+=-fPIC |g' libstemmer_c/Makefile + rm -f -- libstemmer_c/stemwords libstemmer_c/*.{o,a} libstemmer_c/*/*.o + + edos2unix installdb.sql + eautoreconf +} + +src_configure() { + econf --with-pic --disable-static --libdir="${MYSQL_PLUGINDIR}" +} + +src_install() { + local X + emake DESTDIR="${D}" install + dodoc libstemmer_c/libstemmer/*.txt + [ -f ${PN}.html ] && dohtml ${PN}.html + [ -d doc/html ] && dohtml -r doc/html/. + for X in API AUTHORS ChangeLog NEWS README *installdb.sql; do + [ -s "${X}" ] && dodoc "${X}" + done + + # remove obsolete *.la file + rm -f -- "${D}${MYSQL_PLUGINDIR}"/*.la +} + +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_stem/metadata.xml b/dev-db/lib_mysqludf_stem/metadata.xml new file mode 100644 index 000000000000..abc550987baf --- /dev/null +++ b/dev-db/lib_mysqludf_stem/metadata.xml @@ -0,0 +1,9 @@ + + + + no-herd + + sbriesen@gentoo.org + Stefan Briesenick + + diff --git a/dev-db/lib_mysqludf_str/ChangeLog b/dev-db/lib_mysqludf_str/ChangeLog new file mode 100644 index 000000000000..a3a7b17bed4c --- /dev/null +++ b/dev-db/lib_mysqludf_str/ChangeLog @@ -0,0 +1,10 @@ +# ChangeLog for dev-db/lib_mysqludf_str +# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/dev-db/lib_mysqludf_str/ChangeLog,v 1.1 2011/10/19 12:26:37 sbriesen Exp $ + +*lib_mysqludf_str-0.3 (19 Oct 2011) + + 19 Oct 2011; Stefan Briesenick + +lib_mysqludf_str-0.3.ebuild, +metadata.xml: + initial commit + diff --git a/dev-db/lib_mysqludf_str/lib_mysqludf_str-0.3.ebuild b/dev-db/lib_mysqludf_str/lib_mysqludf_str-0.3.ebuild new file mode 100644 index 000000000000..aabb905f71c8 --- /dev/null +++ b/dev-db/lib_mysqludf_str/lib_mysqludf_str-0.3.ebuild @@ -0,0 +1,57 @@ +# 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_str/lib_mysqludf_str-0.3.ebuild,v 1.1 2011/10/19 12:26:37 sbriesen Exp $ + +EAPI=4 + +inherit eutils toolchain-funcs autotools + +DESCRIPTION="MySQL UDFs of string functions that complement the set of native ones" +HOMEPAGE="http://www.mysqludf.org/lib_mysqludf_str/" +SRC_URI="http://www.mysqludf.org/${PN}/${P}.tar.gz" + +LICENSE="LGPL-2.1" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +DEPEND=">=virtual/mysql-5.1" +RDEPEND="${DEPEND}" + +RESTRICT="test" + +pkg_setup() { + MYSQL_PLUGINDIR="$(mysql_config --plugindir)" + MYSQL_INCLUDE="$(mysql_config --include)" +} + +src_prepare() { + edos2unix README + eautoreconf +} + +src_configure() { + econf --with-pic --disable-static --libdir="${MYSQL_PLUGINDIR}" +} + +src_install() { + emake DESTDIR="${D}" install + [ -f ${PN}.html ] && dohtml ${PN}.html + [ -d doc/html ] && dohtml -r doc/html/. + for X in API AUTHORS ChangeLog NEWS README *installdb.sql; do + [ -s "${X}" ] && dodoc "${X}" + done + + # remove obsolete *.la file + rm -f -- "${D}${MYSQL_PLUGINDIR}"/*.la +} + +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_str/metadata.xml b/dev-db/lib_mysqludf_str/metadata.xml new file mode 100644 index 000000000000..abc550987baf --- /dev/null +++ b/dev-db/lib_mysqludf_str/metadata.xml @@ -0,0 +1,9 @@ + + + + no-herd + + sbriesen@gentoo.org + Stefan Briesenick + + diff --git a/dev-db/lib_mysqludf_sys/ChangeLog b/dev-db/lib_mysqludf_sys/ChangeLog new file mode 100644 index 000000000000..2ce88f0f0348 --- /dev/null +++ b/dev-db/lib_mysqludf_sys/ChangeLog @@ -0,0 +1,10 @@ +# ChangeLog for dev-db/lib_mysqludf_sys +# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/dev-db/lib_mysqludf_sys/ChangeLog,v 1.1 2011/10/19 12:28:09 sbriesen Exp $ + +*lib_mysqludf_sys-0.0.2 (19 Oct 2011) + + 19 Oct 2011; Stefan Briesenick + +lib_mysqludf_sys-0.0.2.ebuild, +metadata.xml: + initial commit + diff --git a/dev-db/lib_mysqludf_sys/lib_mysqludf_sys-0.0.2.ebuild b/dev-db/lib_mysqludf_sys/lib_mysqludf_sys-0.0.2.ebuild new file mode 100644 index 000000000000..b5a174279ae3 --- /dev/null +++ b/dev-db/lib_mysqludf_sys/lib_mysqludf_sys-0.0.2.ebuild @@ -0,0 +1,59 @@ +# 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_sys/lib_mysqludf_sys-0.0.2.ebuild,v 1.1 2011/10/19 12:28:09 sbriesen Exp $ + +EAPI=4 + +inherit eutils toolchain-funcs + +DESCRIPTION="MySQL UDFs that allows one to interact with the operating system" +HOMEPAGE="http://www.mysqludf.org/lib_mysqludf_sys/" +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() { + # 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 + dohtml ${PN}.html +} + +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_sys/metadata.xml b/dev-db/lib_mysqludf_sys/metadata.xml new file mode 100644 index 000000000000..abc550987baf --- /dev/null +++ b/dev-db/lib_mysqludf_sys/metadata.xml @@ -0,0 +1,9 @@ + + + + no-herd + + sbriesen@gentoo.org + Stefan Briesenick + + diff --git a/dev-db/lib_mysqludf_ta/ChangeLog b/dev-db/lib_mysqludf_ta/ChangeLog new file mode 100644 index 000000000000..7411433c6e54 --- /dev/null +++ b/dev-db/lib_mysqludf_ta/ChangeLog @@ -0,0 +1,10 @@ +# ChangeLog for dev-db/lib_mysqludf_ta +# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/dev-db/lib_mysqludf_ta/ChangeLog,v 1.1 2011/10/19 12:30:29 sbriesen Exp $ + +*lib_mysqludf_ta-0.1 (19 Oct 2011) + + 19 Oct 2011; Stefan Briesenick + +lib_mysqludf_ta-0.1.ebuild, +metadata.xml: + initial commit + diff --git a/dev-db/lib_mysqludf_ta/lib_mysqludf_ta-0.1.ebuild b/dev-db/lib_mysqludf_ta/lib_mysqludf_ta-0.1.ebuild new file mode 100644 index 000000000000..df9b0cff0c0c --- /dev/null +++ b/dev-db/lib_mysqludf_ta/lib_mysqludf_ta-0.1.ebuild @@ -0,0 +1,68 @@ +# 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_ta/lib_mysqludf_ta-0.1.ebuild,v 1.1 2011/10/19 12:30:29 sbriesen Exp $ + +EAPI=4 + +inherit eutils toolchain-funcs autotools + +MY_REV="a8e623c" # checkout revision +MY_USR="joaocosta" # user name + +MY_P="${MY_USR}-${PN}-${MY_REV}" + +DESCRIPTION="MySQL UDFs with technical analysis functions" +HOMEPAGE="http://www.mysqludf.org/lib_mysqludf_ta/" +SRC_URI="https://github.com/${MY_USR}/${PN}/tarball/${MY_REV} -> ${MY_P}.tar.gz" + +LICENSE="LGPL-2.1" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +DEPEND=">=virtual/mysql-5.1" +RDEPEND="${DEPEND}" + +RESTRICT="test" + +S="${WORKDIR}/${MY_P}" + +pkg_setup() { + MYSQL_PLUGINDIR="$(mysql_config --plugindir)" + MYSQL_INCLUDE="$(mysql_config --include)" +} + +src_prepare() { + + # fix Makefile.am + sed -i -e "s|\(-shared\)|\1 -avoid-version|g" Makefile.am + + # convert to UTF-8 + iconv -f LATIN1 -t UTF-8 < README > README~ + mv -f README~ README + + edos2unix README + eautoreconf +} + +src_compile() { + econf --with-pic --disable-static --libdir="${MYSQL_PLUGINDIR}" +} + +src_install() { + emake DESTDIR="${D}" install + dodoc README sampledb.sql + + # remove obsolete *.la file + rm -f -- "${D}${MYSQL_PLUGINDIR}"/*.la +} + +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_ta/metadata.xml b/dev-db/lib_mysqludf_ta/metadata.xml new file mode 100644 index 000000000000..abc550987baf --- /dev/null +++ b/dev-db/lib_mysqludf_ta/metadata.xml @@ -0,0 +1,9 @@ + + + + no-herd + + sbriesen@gentoo.org + Stefan Briesenick + + diff --git a/dev-db/lib_mysqludf_udf/ChangeLog b/dev-db/lib_mysqludf_udf/ChangeLog new file mode 100644 index 000000000000..353a87c57b4f --- /dev/null +++ b/dev-db/lib_mysqludf_udf/ChangeLog @@ -0,0 +1,10 @@ +# ChangeLog for dev-db/lib_mysqludf_udf +# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/dev-db/lib_mysqludf_udf/ChangeLog,v 1.1 2011/10/19 12:34:53 sbriesen Exp $ + +*lib_mysqludf_udf-0.0.3 (19 Oct 2011) + + 19 Oct 2011; Stefan Briesenick + +lib_mysqludf_udf-0.0.3.ebuild, +metadata.xml: + initial commit + diff --git a/dev-db/lib_mysqludf_udf/lib_mysqludf_udf-0.0.3.ebuild b/dev-db/lib_mysqludf_udf/lib_mysqludf_udf-0.0.3.ebuild new file mode 100644 index 000000000000..28f95dedfd70 --- /dev/null +++ b/dev-db/lib_mysqludf_udf/lib_mysqludf_udf-0.0.3.ebuild @@ -0,0 +1,53 @@ +# 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_udf/lib_mysqludf_udf-0.0.3.ebuild,v 1.1 2011/10/19 12:34:53 sbriesen Exp $ + +EAPI=4 + +inherit eutils toolchain-funcs + +DESCRIPTION="MySQL UDFs for reporting internals from the udf interface" +HOMEPAGE="http://www.mysqludf.org/lib_mysqludf_udf/" +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_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_udf/metadata.xml b/dev-db/lib_mysqludf_udf/metadata.xml new file mode 100644 index 000000000000..abc550987baf --- /dev/null +++ b/dev-db/lib_mysqludf_udf/metadata.xml @@ -0,0 +1,9 @@ + + + + no-herd + + sbriesen@gentoo.org + Stefan Briesenick + + diff --git a/dev-db/lib_mysqludf_xql/ChangeLog b/dev-db/lib_mysqludf_xql/ChangeLog new file mode 100644 index 000000000000..703e53da784f --- /dev/null +++ b/dev-db/lib_mysqludf_xql/ChangeLog @@ -0,0 +1,10 @@ +# ChangeLog for dev-db/lib_mysqludf_xql +# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/dev-db/lib_mysqludf_xql/ChangeLog,v 1.1 2011/10/19 12:37:20 sbriesen Exp $ + +*lib_mysqludf_xql-1.0.0 (19 Oct 2011) + + 19 Oct 2011; Stefan Briesenick + +lib_mysqludf_xql-1.0.0.ebuild, +metadata.xml: + initial commit + diff --git a/dev-db/lib_mysqludf_xql/lib_mysqludf_xql-1.0.0.ebuild b/dev-db/lib_mysqludf_xql/lib_mysqludf_xql-1.0.0.ebuild new file mode 100644 index 000000000000..5376da1d2641 --- /dev/null +++ b/dev-db/lib_mysqludf_xql/lib_mysqludf_xql-1.0.0.ebuild @@ -0,0 +1,59 @@ +# 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_xql/lib_mysqludf_xql-1.0.0.ebuild,v 1.1 2011/10/19 12:37:20 sbriesen Exp $ + +EAPI=4 + +inherit eutils toolchain-funcs autotools + +DESCRIPTION="MySQL UDFs which can be used to create XML output directly from MySQL" +HOMEPAGE="http://www.mysqludf.org/lib_mysqludf_xql/" +SRC_URI="http://www.mysqludf.org/${PN}/${P}.tar.gz" + +LICENSE="LGPL-2.1" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +DEPEND=">=virtual/mysql-5.1 + dev-libs/libxml2" +RDEPEND="${DEPEND}" + +RESTRICT="test" + +pkg_setup() { + MYSQL_PLUGINDIR="$(mysql_config --plugindir)" + MYSQL_INCLUDE="$(mysql_config --include)" +} + +src_prepare() { + edos2unix API installdb.sql + eautoreconf +} + +src_configure() { + econf --with-pic --disable-static --libdir="${MYSQL_PLUGINDIR}" +} + +src_install() { + local X + emake DESTDIR="${D}" install + [ -f ${PN}.html ] && dohtml ${PN}.html + [ -d doc/html ] && dohtml -r doc/html/. + for X in API AUTHORS ChangeLog NEWS README *installdb.sql; do + [ -s "${X}" ] && dodoc "${X}" + done + + # remove obsolete *.la file + rm -f -- "${D}${MYSQL_PLUGINDIR}"/*.la +} + +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_xql/metadata.xml b/dev-db/lib_mysqludf_xql/metadata.xml new file mode 100644 index 000000000000..abc550987baf --- /dev/null +++ b/dev-db/lib_mysqludf_xql/metadata.xml @@ -0,0 +1,9 @@ + + + + no-herd + + sbriesen@gentoo.org + Stefan Briesenick + + diff --git a/dev-db/mysql-udf-http/ChangeLog b/dev-db/mysql-udf-http/ChangeLog new file mode 100644 index 000000000000..679ad264c74e --- /dev/null +++ b/dev-db/mysql-udf-http/ChangeLog @@ -0,0 +1,11 @@ +# ChangeLog for dev-db/mysql-udf-http +# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/dev-db/mysql-udf-http/ChangeLog,v 1.1 2011/10/19 12:07:46 sbriesen Exp $ + +*mysql-udf-http-1.0 (19 Oct 2011) + + 19 Oct 2011; Stefan Briesenick + +mysql-udf-http-1.0.ebuild, +files/mysql-udf-http-stdlib.patch, + +metadata.xml: + initial commit + diff --git a/dev-db/mysql-udf-http/files/mysql-udf-http-stdlib.patch b/dev-db/mysql-udf-http/files/mysql-udf-http-stdlib.patch new file mode 100644 index 000000000000..6e371fc4a835 --- /dev/null +++ b/dev-db/mysql-udf-http/files/mysql-udf-http-stdlib.patch @@ -0,0 +1,10 @@ +--- src/mysql-udf-http.c.orig 2010-09-06 06:00:32.000000000 +0200 ++++ src/mysql-udf-http.c 2011-10-18 16:36:37.000000000 +0200 +@@ -2,6 +2,7 @@ + #include + + #include ++#include + #include + #include "mysql-udf-http.h" + diff --git a/dev-db/mysql-udf-http/metadata.xml b/dev-db/mysql-udf-http/metadata.xml new file mode 100644 index 000000000000..abc550987baf --- /dev/null +++ b/dev-db/mysql-udf-http/metadata.xml @@ -0,0 +1,9 @@ + + + + no-herd + + sbriesen@gentoo.org + Stefan Briesenick + + diff --git a/dev-db/mysql-udf-http/mysql-udf-http-1.0.ebuild b/dev-db/mysql-udf-http/mysql-udf-http-1.0.ebuild new file mode 100644 index 000000000000..c20741ee46cf --- /dev/null +++ b/dev-db/mysql-udf-http/mysql-udf-http-1.0.ebuild @@ -0,0 +1,63 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-db/mysql-udf-http/mysql-udf-http-1.0.ebuild,v 1.1 2011/10/19 12:07:46 sbriesen Exp $ + +EAPI=4 + +WANT_AUTOCONF="latest" +WANT_AUTOMAKE="latest" + +inherit eutils toolchain-funcs autotools + +DESCRIPTION="MySQL User-defined function (UDF) for HTTP REST" +HOMEPAGE="http://code.google.com/p/mysql-udf-http/" +SRC_URI="http://${PN}.googlecode.com/files/${P}.tar.gz" + +LICENSE="BSD-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +DEPEND=">=virtual/mysql-5.1 + net-misc/curl" +RDEPEND="${DEPEND}" + +pkg_setup() { + MYSQL_PLUGINDIR="$(mysql_config --plugindir)" + MYSQL_INCLUDE="$(mysql_config --include)" +} + +src_prepare() { + # fix README + sed -i -e "s|${PN}\(\.so\)|${PN//-/_}\1|g" README + + # fix Makefile.am + sed -i -e "s|${PN}\([_\.]la\)|${PN//-/_}\1|g" \ + -e "s|\(-module\)|\1 -avoid-version|g" src/Makefile.am + + epatch "${FILESDIR}/${PN}-stdlib.patch" + eautoreconf +} + +src_configure() { + econf --with-pic --disable-static --libdir="${MYSQL_PLUGINDIR}" \ + --with-mysql="$(type -p mysql_config)" +} + +src_install() { + emake DESTDIR="${D}" install + dodoc README + + # remove obsolete *.la file + rm -f -- "${D}${MYSQL_PLUGINDIR}"/*.la +} + +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/mysql-udf-ipv6/ChangeLog b/dev-db/mysql-udf-ipv6/ChangeLog new file mode 100644 index 000000000000..8c2f90fb4fa0 --- /dev/null +++ b/dev-db/mysql-udf-ipv6/ChangeLog @@ -0,0 +1,11 @@ +# ChangeLog for dev-db/mysql-udf-ipv6 +# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/dev-db/mysql-udf-ipv6/ChangeLog,v 1.1 2011/10/19 12:04:55 sbriesen Exp $ + +*mysql-udf-ipv6-0.4 (19 Oct 2011) + + 19 Oct 2011; Stefan Briesenick + +files/mysql-udf-ipv6-warnings.patch, +mysql-udf-ipv6-0.4.ebuild, + +metadata.xml: + initial commit + diff --git a/dev-db/mysql-udf-ipv6/files/mysql-udf-ipv6-warnings.patch b/dev-db/mysql-udf-ipv6/files/mysql-udf-ipv6-warnings.patch new file mode 100644 index 000000000000..392ecd3c4f53 --- /dev/null +++ b/dev-db/mysql-udf-ipv6/files/mysql-udf-ipv6-warnings.patch @@ -0,0 +1,28 @@ +--- mysql_udf_ipv6.c.orig 2011-08-10 10:45:49.000000000 +0200 ++++ mysql_udf_ipv6.c 2011-10-18 16:27:58.000000000 +0200 +@@ -282,7 +282,7 @@ + { + unsigned long length = args->lengths[0]; + long long mask = *((long long *) args->args[1]); +- unsigned char mask8, i; ++ unsigned char i; + + if (!args->args[0] || !length) + { +@@ -299,7 +299,7 @@ + + // my ugly get-the-job-done 128-bit masking + memset(result, 0, INET6_ADDRLEN); +- for (i = 0; i < INET6_ADDRLEN, mask >= 8; i++, mask -= 8) ++ for (i = 0; i < INET6_ADDRLEN && mask >= 8; i++, mask -= 8) + { + result[i] = args->args[0][i]; + } +@@ -347,7 +347,6 @@ + { + struct addrinfo *info; + char *addr; +- ushort i; + + if (!args->args[0] || !args->lengths[0]) + { diff --git a/dev-db/mysql-udf-ipv6/metadata.xml b/dev-db/mysql-udf-ipv6/metadata.xml new file mode 100644 index 000000000000..abc550987baf --- /dev/null +++ b/dev-db/mysql-udf-ipv6/metadata.xml @@ -0,0 +1,9 @@ + + + + no-herd + + sbriesen@gentoo.org + Stefan Briesenick + + diff --git a/dev-db/mysql-udf-ipv6/mysql-udf-ipv6-0.4.ebuild b/dev-db/mysql-udf-ipv6/mysql-udf-ipv6-0.4.ebuild new file mode 100644 index 000000000000..df0895c62f9d --- /dev/null +++ b/dev-db/mysql-udf-ipv6/mysql-udf-ipv6-0.4.ebuild @@ -0,0 +1,69 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-db/mysql-udf-ipv6/mysql-udf-ipv6-0.4.ebuild,v 1.1 2011/10/19 12:04:55 sbriesen Exp $ + +EAPI=4 + +inherit eutils toolchain-funcs + +MY_REV="01c591b05b79" # checkout revision +MY_USR="watchmouse" # user name + +MY_P="${MY_USR}-${PN}-${MY_REV}" + +DESCRIPTION="IPv6 and internationalized domain (IDNA) functions for MySQL" +HOMEPAGE="http://labs.watchmouse.com/2009/10/extending-mysql-5-with-ipv6-functions/" +SRC_URI="https://bitbucket.org/${MY_USR}/${PN}/get/${MY_REV}.tar.bz2 -> ${MY_P}.tar.bz2" + +LICENSE="EUPL-1.1" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="idn" + +DEPEND=">=virtual/mysql-5.1 + idn? ( net-dns/libidn )" +RDEPEND="${DEPEND}" + +S="${WORKDIR}/${MY_P}" + +# 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" +} + +src_compile() { + _compile ${CFLAGS} -Wall -fPIC ${MYSQL_INCLUDE} \ + -shared ${LDFLAGS} -o mysql_udf_ipv6.so mysql_udf_ipv6.c + + if use idn; then + _compile ${CFLAGS} -Wall -fPIC ${MYSQL_INCLUDE} -lidn \ + -shared ${LDFLAGS} -o mysql_udf_idna.so mysql_udf_idna.c + fi +} + +src_install() { + exeinto "${MYSQL_PLUGINDIR}" + doexe mysql_udf_*.so + newdoc Changelog ChangeLog + dodoc README +} + +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 +}