| 1 | # Copyright 1999-2011 Gentoo Foundation |
1 | # Copyright 1999-2011 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-v2.eclass,v 1.2 2011/07/20 14:23:11 jmbsvicetto Exp $ |
3 | # $Header: /var/cvsroot/gentoo-x86/eclass/mysql-v2.eclass,v 1.6 2011/08/21 16:14:56 jmbsvicetto Exp $ |
| 4 | |
4 | |
| 5 | # @ECLASS: mysql-v2.eclass |
5 | # @ECLASS: mysql-v2.eclass |
| 6 | # @MAINTAINER: |
6 | # @MAINTAINER: |
| 7 | # Maintainers: |
7 | # Maintainers: |
| 8 | # - MySQL Team <mysql-bugs@gentoo.org> |
8 | # - MySQL Team <mysql-bugs@gentoo.org> |
| … | |
… | |
| 53 | case "${EAPI:-0}" in |
53 | case "${EAPI:-0}" in |
| 54 | 2|3|4) ;; |
54 | 2|3|4) ;; |
| 55 | *) die "Unsupported EAPI: ${EAPI}" ;; |
55 | *) die "Unsupported EAPI: ${EAPI}" ;; |
| 56 | esac |
56 | esac |
| 57 | |
57 | |
| 58 | EXPORT_FUNCTIONS pkg_setup src_unpack src_prepare src_configure src_compile src_install |
58 | EXPORT_FUNCTIONS pkg_setup src_unpack src_prepare src_configure src_compile src_install pkg_preinst pkg_postinst pkg_config pkg_postrm |
| 59 | |
59 | |
| 60 | # |
60 | # |
| 61 | # VARIABLES: |
61 | # VARIABLES: |
| 62 | # |
62 | # |
| 63 | |
63 | |
| … | |
… | |
| 175 | # Gentoo patches to MySQL |
175 | # Gentoo patches to MySQL |
| 176 | [[ ${MY_EXTRAS_VER} != live ]] \ |
176 | [[ ${MY_EXTRAS_VER} != live ]] \ |
| 177 | && SRC_URI="${SRC_URI} |
177 | && SRC_URI="${SRC_URI} |
| 178 | mirror://gentoo/mysql-extras-${MY_EXTRAS_VER}.tar.bz2 |
178 | mirror://gentoo/mysql-extras-${MY_EXTRAS_VER}.tar.bz2 |
| 179 | http://g3nt8.org/patches/mysql-extras-${MY_EXTRAS_VER}.tar.bz2 |
179 | http://g3nt8.org/patches/mysql-extras-${MY_EXTRAS_VER}.tar.bz2 |
| 180 | http://dev.gentoo.org/~robbat2/distfiles/mysql-extras-${MY_EXTRAS_VER}.tar.bz2" |
180 | http://dev.gentoo.org/~robbat2/distfiles/mysql-extras-${MY_EXTRAS_VER}.tar.bz2 |
|
|
181 | http://dev.gentoo.org/~jmbsvicetto/distfiles/mysql-extras-${MY_EXTRAS_VER}.tar.bz2" |
| 181 | |
182 | |
| 182 | DESCRIPTION="A fast, multi-threaded, multi-user SQL database server." |
183 | DESCRIPTION="A fast, multi-threaded, multi-user SQL database server." |
| 183 | HOMEPAGE="http://www.mysql.com/" |
184 | HOMEPAGE="http://www.mysql.com/" |
| 184 | if [[ "${PN}" == "mariadb" ]]; then |
185 | if [[ "${PN}" == "mariadb" ]]; then |
| 185 | HOMEPAGE="http://mariadb.org/" |
186 | HOMEPAGE="http://mariadb.org/" |
| … | |
… | |
| 250 | done |
251 | done |
| 251 | |
252 | |
| 252 | RDEPEND="${DEPEND} |
253 | RDEPEND="${DEPEND} |
| 253 | !minimal? ( dev-db/mysql-init-scripts ) |
254 | !minimal? ( dev-db/mysql-init-scripts ) |
| 254 | selinux? ( sec-policy/selinux-mysql ) |
255 | selinux? ( sec-policy/selinux-mysql ) |
|
|
256 | " |
|
|
257 | |
|
|
258 | DEPEND="${DEPEND} |
|
|
259 | virtual/yacc |
| 255 | " |
260 | " |
| 256 | |
261 | |
| 257 | DEPEND="${DEPEND} static? ( || ( sys-libs/ncurses[static-libs] <=sys-libs/ncurses-5.7-r3 ) )" |
262 | DEPEND="${DEPEND} static? ( || ( sys-libs/ncurses[static-libs] <=sys-libs/ncurses-5.7-r3 ) )" |
| 258 | |
263 | |
| 259 | # compile-time-only |
264 | # compile-time-only |