summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Briesenick <sbriesen@gentoo.org>2011-10-19 12:34:53 +0000
committerStefan Briesenick <sbriesen@gentoo.org>2011-10-19 12:34:53 +0000
commitb720e8b271708694af2d5a31a53a4b4daab2e967 (patch)
tree93090b1bc5b0563026a9847050d1dee30a3b92b9 /dev-db/lib_mysqludf_udf
parentmoved econf to src_configure (diff)
downloadgentoo-2-b720e8b271708694af2d5a31a53a4b4daab2e967.tar.gz
gentoo-2-b720e8b271708694af2d5a31a53a4b4daab2e967.tar.bz2
gentoo-2-b720e8b271708694af2d5a31a53a4b4daab2e967.zip
initial commit
(Portage version: 2.2.0_alpha67/cvs/Linux x86_64)
Diffstat (limited to 'dev-db/lib_mysqludf_udf')
-rw-r--r--dev-db/lib_mysqludf_udf/ChangeLog10
-rw-r--r--dev-db/lib_mysqludf_udf/lib_mysqludf_udf-0.0.3.ebuild53
-rw-r--r--dev-db/lib_mysqludf_udf/metadata.xml9
3 files changed, 72 insertions, 0 deletions
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 <sbriesen@gentoo.org>
+ +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 @@
+<?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>