summaryrefslogtreecommitdiff
path: root/dev-db/mysql-udf-infusion
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /dev-db/mysql-udf-infusion
reinit the tree, so we can have metadata
Diffstat (limited to 'dev-db/mysql-udf-infusion')
-rw-r--r--dev-db/mysql-udf-infusion/Manifest5
-rw-r--r--dev-db/mysql-udf-infusion/metadata.xml8
-rw-r--r--dev-db/mysql-udf-infusion/mysql-udf-infusion-20110109.ebuild67
3 files changed, 80 insertions, 0 deletions
diff --git a/dev-db/mysql-udf-infusion/Manifest b/dev-db/mysql-udf-infusion/Manifest
new file mode 100644
index 000000000000..59a26afe2dfe
--- /dev/null
+++ b/dev-db/mysql-udf-infusion/Manifest
@@ -0,0 +1,5 @@
+DIST infusion-udf_infusion-8599a9c.tar.gz 5470 SHA256 46e924a7d22d61bbede7f22cb87c06b8c1c7cdc5357a9b2ad199f234f9a23441 SHA512 4a9cee8b45b0cd8e7e00210de79f8a42cc3154185c1b31e441f27d51300c113a46639ecce98d0c748aada0538e9bbfc55ef71f017c19c403a84c2e5d478c09fe WHIRLPOOL c55a070c2010afa248127848f0807c45b622f00f0e1389ae541463cde419e7b0de298873450e9fa790b024c22dd7efdb43f886c5939fb8aafb7b711a8aac73d7
+EBUILD mysql-udf-infusion-20110109.ebuild 1358 SHA256 d12438241a708c518432d0615b3b4e1d007d898003f0ad56e91b8130f156abd2 SHA512 762cb37fe49cdbb392455301333f4e3fe99f800b7994b096eeef98a33ae377fbe3b7294a58e0703182232ec13d253124c06ab58196bcf4d0350a28af9dd92168 WHIRLPOOL 2e2ae97df2df54caf6e7722fa20d1ede2270569c679f1bb5e330b6bc5f268a1f910a1f908b8fe6e9b93bc41f40030efec9744bdd55083000571644d594f3ac7c
+MISC ChangeLog 2559 SHA256 c3558a73de3ce7e0c0f6212e8d400ef39d4a24dc97febbd335208744b447507b SHA512 3855096ccd0fde63d1ee70d3a3322316f93d24c47569cc0e36ddda933cf87f98e16c0bb4b93fcea62c43d826f201d9a1c40e76a8f88144d52d2b9ff681eeae57 WHIRLPOOL 9ef1c41fc552c680d0918afb31c196d8aeceeebbd88edb31da120fcd70942502f33b4783fdc54185d3904df19b87820a7fb1b1dcfa60ee75d9c74c6bdf5ec112
+MISC ChangeLog-2015 577 SHA256 298a80216edff4c7191e27b4c7b858c1a4927de0947ab27eadbcf74061a9c04b SHA512 3bb48ea82416db8a54cf5a6555c1115e0110f20a296f721873bdcd0d59b4247c33a4fa5e14c8530216e9ac7e82139d9587b979a3a8445943779fc47f2dcb9501 WHIRLPOOL b56a3c7c17e5a50681750d66887ad9c3379ad870042fdf6fa897fbdf24c2d943ea294ba83896fb77f8895d5089493121eaec72ba73336625817c2ab91dae00cc
+MISC metadata.xml 258 SHA256 eb7a577f5d07cc0bec724520d24393c98389e72d29fdb90a03accfadc47ea62a SHA512 5d8b9c6562884a78120acc0dfb30395be2da68c3ab08cdc62f19089ef5235fd58b07201b117dfb755b5e7404f1faa4add30d21e0bc5bb4c14b5f8b4084d0461b WHIRLPOOL 5a97d4f9e8125e791afe31a784ffddbceb41def96465b9df97c358cc47b1898e786479550d5efd19d9effc504c67a67d9beeaf325372eaa9df65f01db4cc1fdf
diff --git a/dev-db/mysql-udf-infusion/metadata.xml b/dev-db/mysql-udf-infusion/metadata.xml
new file mode 100644
index 000000000000..0355f8ad4e3d
--- /dev/null
+++ b/dev-db/mysql-udf-infusion/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <!-- maintainer-needed -->
+ <upstream>
+ <remote-id type="github">infusion/udf_infusion</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-db/mysql-udf-infusion/mysql-udf-infusion-20110109.ebuild b/dev-db/mysql-udf-infusion/mysql-udf-infusion-20110109.ebuild
new file mode 100644
index 000000000000..5a9aa63ff702
--- /dev/null
+++ b/dev-db/mysql-udf-infusion/mysql-udf-infusion-20110109.ebuild
@@ -0,0 +1,67 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=4
+
+inherit eutils toolchain-funcs
+
+MY_REV="8599a9c" # checkout revision
+MY_USR="infusion" # user name
+
+MY_PN="udf_infusion"
+MY_P="${MY_USR}-${MY_PN}-${MY_REV}"
+
+DESCRIPTION="New functions for MySQL implemented as UDF"
+HOMEPAGE="http://www.xarg.org/2010/11/mysql-my-new-playground/"
+SRC_URI="https://github.com/${MY_USR}/${MY_PN}/tarball/${MY_REV} -> ${MY_P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+DEPEND=">=virtual/mysql-5.1"
+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() {
+ # fix soname
+ sed -i -e "s|${MY_PN}\.so|${PN//-/_}.so|g" *.sql
+
+ # add LF
+ echo >> create.sql
+ echo >> delete.sql
+}
+
+src_compile() {
+ _compile ${CFLAGS} -Wall -fPIC ${MYSQL_INCLUDE} \
+ -shared ${LDFLAGS} -o ${PN//-/_}.so ${MY_PN}.c
+}
+
+src_install() {
+ exeinto "${MYSQL_PLUGINDIR}"
+ doexe *.so
+ dodoc *.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
+}