| 1 | # Copyright 1999-2012 Gentoo Foundation |
1 | # Copyright 1999-2012 Gentoo Foundation |
| 2 | # Distributed under the terms of the GNU General Public License v2 |
2 | # Distributed under the terms of the GNU General Public License v2 |
| 3 | # $Header: /var/cvsroot/gentoo-x86/eclass/mysql-autotools.eclass,v 1.12 2013/01/20 02:41:59 robbat2 Exp $ |
3 | # $Header: /var/cvsroot/gentoo-x86/eclass/mysql-autotools.eclass,v 1.14 2013/01/28 02:13:05 robbat2 Exp $ |
| 4 | |
4 | |
| 5 | # @ECLASS: mysql-autotools.eclass |
5 | # @ECLASS: mysql-autotools.eclass |
| 6 | # @MAINTAINER: |
6 | # @MAINTAINER: |
| 7 | # MySQL Team <mysql-bugs@gentoo.org> |
7 | # MySQL Team <mysql-bugs@gentoo.org> |
| 8 | # Robin H. Johnson <robbat2@gentoo.org> |
8 | # Robin H. Johnson <robbat2@gentoo.org> |
| … | |
… | |
| 15 | # The mysql-autotools.eclass provides the support to build the mysql |
15 | # The mysql-autotools.eclass provides the support to build the mysql |
| 16 | # ebuilds using the autotools build system. This eclass provides |
16 | # ebuilds using the autotools build system. This eclass provides |
| 17 | # the src_unpack, src_prepare, src_configure, src_compile, scr_install, |
17 | # the src_unpack, src_prepare, src_configure, src_compile, scr_install, |
| 18 | # pkg_preinst, pkg_postinst, pkg_config and pkg_postrm phase hooks. |
18 | # pkg_preinst, pkg_postinst, pkg_config and pkg_postrm phase hooks. |
| 19 | |
19 | |
| 20 | inherit autotools flag-o-matic multilib |
20 | inherit autotools flag-o-matic multilib prefix |
| 21 | |
21 | |
| 22 | # |
22 | # |
| 23 | # HELPER FUNCTIONS: |
23 | # HELPER FUNCTIONS: |
| 24 | # |
24 | # |
| 25 | |
25 | |
| … | |
… | |
| 419 | einfo "Adding storage engine: PBXT" |
419 | einfo "Adding storage engine: PBXT" |
| 420 | pushd "${S}"/storage >/dev/null |
420 | pushd "${S}"/storage >/dev/null |
| 421 | i='pbxt' |
421 | i='pbxt' |
| 422 | [ -d "${i}" ] && rm -rf "${i}" |
422 | [ -d "${i}" ] && rm -rf "${i}" |
| 423 | cp -ral "${WORKDIR}/${PBXT_P}" "${i}" |
423 | cp -ral "${WORKDIR}/${PBXT_P}" "${i}" |
|
|
424 | f="${WORKDIR}/mysql-extras/pbxt/fix-low-priority.patch" |
|
|
425 | [[ -f $f ]] && epatch "$f" |
| 424 | popd >/dev/null |
426 | popd >/dev/null |
| 425 | fi |
427 | fi |
| 426 | |
428 | |
| 427 | rebuilddirlist="." |
429 | rebuilddirlist="." |
| 428 | # This does not seem to be needed presently. robbat2 2010/02/23 |
430 | # This does not seem to be needed presently. robbat2 2010/02/23 |
| … | |
… | |
| 596 | if use latin1 ; then |
598 | if use latin1 ; then |
| 597 | sed -i \ |
599 | sed -i \ |
| 598 | -e "/character-set/s|utf8|latin1|g" \ |
600 | -e "/character-set/s|utf8|latin1|g" \ |
| 599 | "${TMPDIR}/my.cnf.ok" |
601 | "${TMPDIR}/my.cnf.ok" |
| 600 | fi |
602 | fi |
|
|
603 | eprefixify "${TMPDIR}/my.cnf.ok" |
| 601 | newins "${TMPDIR}/my.cnf.ok" my.cnf |
604 | newins "${TMPDIR}/my.cnf.ok" my.cnf |
| 602 | |
605 | |
| 603 | # Minimal builds don't have the MySQL server |
606 | # Minimal builds don't have the MySQL server |
| 604 | if ! use minimal ; then |
607 | if ! use minimal ; then |
| 605 | einfo "Creating initial directories" |
608 | einfo "Creating initial directories" |