summaryrefslogtreecommitdiff
blob: 995c82131d290aed5e8307182296cea63bbfcccc (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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

EAPI=5

VCS_INHERIT=""
MY_PN="client-java"

if [[ "${PV}" == 9999 ]] ; then
	VCS_INHERIT="bzr"
	EBZR_REPO_URI="lp:${PN}"
else
SRC_URI="
	http://ftp.osuosl.org/pub/mariadb/${MY_PN}-${PV}/${P}.tar.gz
	http://mirrors.fe.up.pt/pub/mariadb/${MY_PN}-${PV}/${P}.tar.gz
	http://ftp-stud.hs-esslingen.de/pub/Mirrors/mariadb/${MY_PN}-${PV}/${P}.tar.gz
	"
fi

JAVA_PKG_IUSE="doc"

inherit java-pkg-2 java-ant-2 eutils "${VCS_INHERIT}"

DESCRIPTION="Client Library for Java is used to connect applications to MariaDB/MySQL databases"
HOMEPAGE="http://mariadb.org/"
LICENSE="LGPL-2.1"

SLOT="0"
KEYWORDS=""
IUSE="${IUSE}"

# Tests require a server running on localhost port 3306
RESTRICT="test"

RDEPEND="${RDEPEND} >=virtual/jre-1.6"
DEPEND="${DEPEND} >=virtual/jdk-1.6"

src_prepare() {
	cp "${FILESDIR}/maven-build-1.1.4.xml" build.xml
	java-pkg-2_src_prepare
}

src_install() {
	java-pkg_dojar target/${PN}.jar
}