/[gentoo-x86]/dev-perl/DBD-mysql/DBD-mysql-4.31.0.ebuild
Gentoo

Contents of /dev-perl/DBD-mysql/DBD-mysql-4.31.0.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (hide annotations) (download)
Mon Mar 9 14:56:36 2015 UTC (4 years, 1 month ago) by monsieurp
Branch: MAIN
CVS Tags: HEAD
Version bump. Fix bug 420245.

(Portage version: 2.2.14/cvs/Linux i686, unsigned Manifest commit)

1 monsieurp 1.1 # Copyright 1999-2015 Gentoo Foundation
2     # Distributed under the terms of the GNU General Public License v2
3     # $Header: /var/cvsroot/gentoo-x86/dev-perl/DBD-mysql/DBD-mysql-4.20.0-r1.ebuild,v 1.1 2014/08/20 20:27:28 axs Exp $
4    
5     EAPI=5
6    
7     MODULE_AUTHOR=CAPTTOFU
8     MODULE_VERSION=4.031
9     inherit eutils perl-module
10    
11     DESCRIPTION="The Perl DBD:mysql Module"
12    
13     SLOT="0"
14     KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris"
15     IUSE="embedded test"
16    
17     RDEPEND="dev-perl/DBI
18     dev-perl/Test-Deep
19     virtual/mysql[embedded?]"
20     DEPEND="${RDEPEND}"
21    
22     if use test; then
23     SRC_TEST="do"
24     else
25     SRC_TEST="skip"
26     fi
27    
28     src_configure() {
29     if use test; then
30     myconf="${myconf} --testdb=test \
31     --testhost=localhost \
32     --testuser=test \
33     --testpassword=test"
34     fi
35     use embedded && myconf="${myconf} --force-embedded --embedded=mysql_config"
36     perl-module_src_configure
37     }
38    
39     src_test() {
40     if use test; then
41     einfo
42     einfo "If tests fail, you have to configure your MySQL instance to create"
43     einfo "and grant some privileges to the test user."
44     einfo "You can run the following commands at the MySQL prompt: "
45     einfo "> CREATE USER 'test'@'localhost' IDENTIFIED BY 'test';"
46     einfo "> CREATE DATABASE test;"
47     einfo "> GRANT ALL PRIVILEGES ON test.* TO 'test'@'localhost';"
48     einfo
49     sleep 5
50     perl-module_src_test
51     fi
52     }

  ViewVC Help
Powered by ViewVC 1.1.20