blob: 0bb51b92dc17bc2e253c402fefee5db93b5a90ca (
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
|
EAPI=4
JAVA_PKG_IUSE="doc"
inherit eutils versionator java-pkg-2 multilib
MY_P="${PN}-${PV}"
DESCRIPTION="Java wrapper including a basic JDBC driver for SQLite database engine"
HOMEPAGE="http://www.ch-werner.de/javasqlite/"
SRC_URI="http://www.ch-werner.de/javasqlite/${MY_P}.tar.gz"
LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
COMMON_DEP="
dev-db/sqlite
"
RDEPEND="${COMMON_DEP}
>=virtual/jre-1.6"
DEPEND="${COMMON_DEP}
>=virtual/jdk-1.6
virtual/pkgconfig"
S="${WORKDIR}/${MY_P}"
pkg_setup() {
java-pkg-2_pkg_setup
}
src_configure() {
./configure prefix=/usr --with-sqlite=no --enable-load-extension
}
src_compile() {
emake
use doc && DISPLAY= emake javadoc
}
src_install(){
emake -j1 DESTDIR="${D}" install || die
java-pkg_regjar /usr/share/java/sqlite.jar
use doc && java-pkg_dojavadoc doc
}
|