blob: 36a6bc452abd6e7c3c94dbc12232e7ce59ccc9d6 (
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-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/gnustep-libs/sqlclient/sqlclient-1.7.0.ebuild,v 1.1 2014/01/30 00:07:03 voyageur Exp $
EAPI=5
inherit java-pkg-opt-2 gnustep-2
MY_P=${P/sqlc/SQLC}
DESCRIPTION="GNUstep lightweight database abstraction layer"
HOMEPAGE="http://wiki.gnustep.org/index.php/SQLClient"
SRC_URI="ftp://ftp.gnustep.org/pub/gnustep/libs/${MY_P}.tar.gz"
KEYWORDS="~amd64 ~ppc ~x86"
LICENSE="LGPL-3"
SLOT="0"
IUSE="java mysql postgres +sqlite"
RDEPEND=">=gnustep-libs/performance-0.3.2
mysql? ( virtual/mysql )
postgres? ( dev-db/postgresql-base )
sqlite? ( >=dev-db/sqlite-3 )"
DEPEND="${RDEPEND}"
REQUIRED_USE="|| ( java mysql postgres sqlite )"
S=${WORKDIR}/${MY_P}
src_prepare() {
if ! use doc; then
# Remove doc target
sed -i -e '/documentation\.make/d' GNUmakefile \
|| die "doc sed failed"
fi
}
src_configure() {
local myconf=""
use java || myconf="${myconf} --disable-jdbc-bundle"
use mysql || myconf="${myconf} --disable-mysql-bundle"
use postgres || myconf="${myconf} --disable-postgres-bundle"
use sqlite || myconf="${myconf} --disable-sqllite-bundle"
egnustep_env
econf ${myconf}
}
|