diff options
author | Stefan Briesenick <sbriesen@gentoo.org> | 2011-10-19 12:07:46 +0000 |
---|---|---|
committer | Stefan Briesenick <sbriesen@gentoo.org> | 2011-10-19 12:07:46 +0000 |
commit | 00f9d21739b244ca85bf7265d163d0a07a25d396 (patch) | |
tree | d5170cf7f37746d3b6aa3bf4646b313734ea45f0 /dev-db/mysql-udf-http | |
parent | initial commit (diff) | |
download | gentoo-2-00f9d21739b244ca85bf7265d163d0a07a25d396.tar.gz gentoo-2-00f9d21739b244ca85bf7265d163d0a07a25d396.tar.bz2 gentoo-2-00f9d21739b244ca85bf7265d163d0a07a25d396.zip |
initial commit
(Portage version: 2.2.0_alpha67/cvs/Linux x86_64)
Diffstat (limited to 'dev-db/mysql-udf-http')
-rw-r--r-- | dev-db/mysql-udf-http/ChangeLog | 11 | ||||
-rw-r--r-- | dev-db/mysql-udf-http/files/mysql-udf-http-stdlib.patch | 10 | ||||
-rw-r--r-- | dev-db/mysql-udf-http/metadata.xml | 9 | ||||
-rw-r--r-- | dev-db/mysql-udf-http/mysql-udf-http-1.0.ebuild | 63 |
4 files changed, 93 insertions, 0 deletions
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 <sbriesen@gentoo.org> + +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 <string.h> + + #include <stdio.h> ++#include <stdlib.h> + #include <curl/curl.h> + #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 @@ +<?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> 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 +} |