1 # Copyright 1999-2011 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
6 inherit eutils toolchain-funcs
8 MY_REV="8599a9c" # checkout revision
9 MY_USR="infusion" # user name
12 MY_P="${MY_USR}-${MY_PN}-${MY_REV}"
14 DESCRIPTION="New functions for MySQL implemented as UDF"
15 HOMEPAGE="http://www.xarg.org/2010/11/mysql-my-new-playground/"
16 SRC_URI="https://github.com/${MY_USR}/${MY_PN}/tarball/${MY_REV} -> ${MY_P}.tar.gz"
20 KEYWORDS="~amd64 ~x86"
23 DEPEND=">=virtual/mysql-5.1"
26 S="${WORKDIR}/${MY_P}"
30 local CC="$(tc-getCC)"
31 echo "${CC} ${@}" && "${CC}" "${@}"
35 MYSQL_PLUGINDIR="$(mysql_config --plugindir)"
36 MYSQL_INCLUDE="$(mysql_config --include)"
41 sed -i -e "s|${MY_PN}\.so|${PN//-/_}.so|g" *.sql
49 _compile ${CFLAGS} -Wall -fPIC ${MYSQL_INCLUDE} \
50 -shared ${LDFLAGS} -o ${PN//-/_}.so ${MY_PN}.c
54 exeinto "${MYSQL_PLUGINDIR}"
61 elog "Please have a look at the documentation, how to"
62 elog "enable/disable the UDF functions of ${PN}."
64 elog "The documentation is located here:"
65 elog "/usr/share/doc/${PF}"