/[gentoo-x86]/eclass/mysql-autotools.eclass
Gentoo

Diff of /eclass/mysql-autotools.eclass

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.7 Revision 1.10
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.7 2012/05/15 22:51:56 robbat2 Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/mysql-autotools.eclass,v 1.10 2012/11/01 23:57:50 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
20inherit autotools 20inherit autotools flag-o-matic multilib
21 21
22# 22#
23# HELPER FUNCTIONS: 23# HELPER FUNCTIONS:
24# 24#
25 25
94 myconf="${myconf} --with-collation=utf8_general_ci" 94 myconf="${myconf} --with-collation=utf8_general_ci"
95 else 95 else
96 myconf="${myconf} --with-charset=latin1" 96 myconf="${myconf} --with-charset=latin1"
97 myconf="${myconf} --with-collation=latin1_swedish_ci" 97 myconf="${myconf} --with-collation=latin1_swedish_ci"
98 fi 98 fi
99
100 # MariaDB requires this flag in order to link to GPLv3 readline v6 or greater
101 # A note is added to the configure output
102 if [[ "${PN}" == "mariadb" ]] && mysql_version_is_at_least "5.1.61" ; then
103 myconf="${myconf} --disable-distribution"
104 fi
99} 105}
100 106
101# @FUNCTION: mysql-autotools_configure_common 107# @FUNCTION: mysql-autotools_configure_common
102# @DESCRIPTION: 108# @DESCRIPTION:
103# Helper function to configure the common builds 109# Helper function to configure the common builds
395 [ -d "${i}" -a ! -d "${o}" ] && mv "${i}" "${o}" 401 [ -d "${i}" -a ! -d "${o}" ] && mv "${i}" "${o}"
396 cp -ral "${WORKDIR}/${XTRADB_P}" "${i}" 402 cp -ral "${WORKDIR}/${XTRADB_P}" "${i}"
397 popd >/dev/null 403 popd >/dev/null
398 fi 404 fi
399 405
400 if pbxt_available && [[ "${PBXT_NEWSTYLE}" == "1" ]] && use pbxt ; then 406 if pbxt_patch_available && [[ "${PBXT_NEWSTYLE}" == "1" ]] && use pbxt ; then
401 einfo "Adding storage engine: PBXT" 407 einfo "Adding storage engine: PBXT"
402 pushd "${S}"/storage >/dev/null 408 pushd "${S}"/storage >/dev/null
403 i='pbxt' 409 i='pbxt'
404 [ -d "${i}" ] && rm -rf "${i}" 410 [ -d "${i}" ] && rm -rf "${i}"
405 cp -ral "${WORKDIR}/${PBXT_P}" "${i}" 411 cp -ral "${WORKDIR}/${PBXT_P}" "${i}"

Legend:
Removed from v.1.7  
changed lines
  Added in v.1.10

  ViewVC Help
Powered by ViewVC 1.1.20