| 1 | # Copyright 1999-2007 Gentoo Foundation |
1 | # Copyright 1999-2007 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.eclass,v 1.113 2009/07/06 19:05:07 robbat2 Exp $ |
3 | # $Header: /var/cvsroot/gentoo-x86/eclass/mysql.eclass,v 1.114 2009/07/06 19:06:03 robbat2 Exp $ |
| 4 | |
4 | |
| 5 | # Author: Francesco Riosa (Retired) <vivo@gentoo.org> |
5 | # Author: Francesco Riosa (Retired) <vivo@gentoo.org> |
| 6 | # Maintainer: MySQL Team <mysql-bugs@gentoo.org> |
6 | # Maintainer: MySQL Team <mysql-bugs@gentoo.org> |
| 7 | # - Luca Longinotti <chtekk@gentoo.org> |
7 | # - Luca Longinotti <chtekk@gentoo.org> |
| 8 | # - Robin H. Johnson <robbat2@gentoo.org> |
8 | # - Robin H. Johnson <robbat2@gentoo.org> |
| 9 | |
9 | |
| 10 | WANT_AUTOCONF="latest" |
10 | WANT_AUTOCONF="latest" |
| 11 | WANT_AUTOMAKE="latest" |
11 | WANT_AUTOMAKE="latest" |
|
|
12 | |
|
|
13 | inherit eutils flag-o-matic gnuconfig autotools mysql_fx versionator |
| 12 | |
14 | |
| 13 | case "${EAPI:-0}" in |
15 | case "${EAPI:-0}" in |
| 14 | 2) |
16 | 2) |
| 15 | EXPORT_FUNCTIONS pkg_setup \ |
17 | EXPORT_FUNCTIONS pkg_setup \ |
| 16 | src_unpack src_prepare \ |
18 | src_unpack src_prepare \ |
| … | |
… | |
| 27 | src_install \ |
29 | src_install \ |
| 28 | pkg_preinst pkg_postinst \ |
30 | pkg_preinst pkg_postinst \ |
| 29 | pkg_config pkg_postrm |
31 | pkg_config pkg_postrm |
| 30 | ;; |
32 | ;; |
| 31 | esac |
33 | esac |
| 32 | |
|
|
| 33 | inherit eutils flag-o-matic gnuconfig autotools mysql_fx versionator |
|
|
| 34 | |
34 | |
| 35 | # Shorten the path because the socket path length must be shorter than 107 chars |
35 | # Shorten the path because the socket path length must be shorter than 107 chars |
| 36 | # and we will run a mysql server during test phase |
36 | # and we will run a mysql server during test phase |
| 37 | S="${WORKDIR}/mysql" |
37 | S="${WORKDIR}/mysql" |
| 38 | |
38 | |