aboutsummaryrefslogtreecommitdiff
blob: f10696cfc74d8d3b07d27e8078dc44f691bc5cd3 (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
47
48
49
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

EAPI=4

inherit virtuoso java-pkg-2

DESCRIPTION="JDBC driver for OpenLink Virtuoso Open-Source Edition"

KEYWORDS="~amd64 ~x86"
IUSE=""

DEPEND="
	>=virtual/jdk-1.6.0
"
RDEPEND="
	>=virtual/jre-1.6.0
"

VOS_EXTRACT=""

src_prepare() {
	epatch "${FILESDIR}"/${P}-unbundle-minizip.patch
	epatch "${FILESDIR}"/${PN}-bundled-path.patch
	epatch  "${FILESDIR}"/${PN}-testpath.patch
	mkdir -p docsrc/vsp/doc && cp -a binsrc/vsp/doc/* docsrc/vsp/doc/ || die

	java-pkg-2_src_prepare
	virtuoso_src_prepare
}

src_configure() {
	myconf+="
		--with-jdk4=$(java-config-2 -O)
	"

	MAKEOPTS=-j1

	virtuoso_src_configure
}

src_test() {
	emake check
}

src_install() {
	virtuoso_src_install
}