summaryrefslogtreecommitdiff
blob: ba1fa71e6cba2f936b6754ce464356c94c23a922 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-java/connectorj/connectorj-3.0.14.ebuild,v 1.4 2004/08/24 04:03:30 zx Exp $

inherit java-pkg

DESCRIPTION="Connector/J: A MySQL JDBC connector"
HOMEPAGE="http://dev.mysql.com/downloads/connector/j/3.0.html"
SRC_URI="http://mysql.mirrors.key2network.com/Downloads/Connector-J/mysql-connector-java-3.0.14-production.tar.gz"
LICENSE="GPL-2"
SLOT="3"
KEYWORDS="x86 ~ppc"
IUSE="doc"

DEPEND=">=virtual/jdk-1.4
	>=dev-java/ant-1.5"
RDEPEND=">=virtual/jre-1.3"

S=${WORKDIR}/mysql-connector-java-${PV}-production

src_compile() {
	ant || die "Failed to compile"
}

src_install() {
	java-pkg_dojar mysql-connector-java-3.0.14-production-bin.jar

	dodoc COPYING CHANGES README
	use doc && cp docs/connector-j-en.pdf ${D}/usr/share/doc/${PF}/
}