/[gentoo-x86]/dev-qt/qtsql/qtsql-5.4.2.ebuild
Gentoo

Contents of /dev-qt/qtsql/qtsql-5.4.2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Wed Jun 17 15:23:08 2015 UTC (3 years, 5 months ago) by pesa
Branch: MAIN
CVS Tags: HEAD
Version bump.

(Portage version: 2.2.20/cvs/Linux x86_64, signed Manifest commit with key 0xDADED6B2671CB57D!)

1 # Copyright 1999-2015 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: $
4
5 EAPI=5
6 QT5_MODULE="qtbase"
7 inherit multilib qt5-build
8
9 DESCRIPTION="SQL abstraction library for the Qt5 tooolkit"
10
11 if [[ ${QT5_BUILD_TYPE} == release ]]; then
12 KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ppc64 ~x86"
13 fi
14
15 IUSE="freetds mysql oci8 odbc postgres +sqlite"
16
17 REQUIRED_USE="
18 || ( freetds mysql oci8 odbc postgres sqlite )
19 "
20
21 DEPEND="
22 ~dev-qt/qtcore-${PV}
23 freetds? ( dev-db/freetds )
24 mysql? ( virtual/mysql:= )
25 oci8? ( dev-db/oracle-instantclient-basic )
26 odbc? ( || ( dev-db/unixODBC dev-db/libiodbc ) )
27 postgres? ( dev-db/postgresql:* )
28 sqlite? ( dev-db/sqlite:3 )
29 "
30 RDEPEND="${DEPEND}"
31
32 QT5_TARGET_SUBDIRS=(
33 src/sql
34 src/plugins/sqldrivers
35 )
36
37 src_configure() {
38 local myconf=(
39 $(qt_use freetds sql-tds plugin)
40 $(qt_use mysql sql-mysql plugin)
41 $(qt_use oci8 sql-oci plugin)
42 $(qt_use odbc sql-odbc plugin)
43 $(qt_use postgres sql-psql plugin)
44 $(qt_use sqlite sql-sqlite plugin)
45 $(use sqlite && echo -system-sqlite)
46 )
47
48 use mysql && myconf+=("-I${EPREFIX}/usr/include/mysql" "-L${EPREFIX}/usr/$(get_libdir)/mysql")
49 use oci8 && myconf+=("-I${ORACLE_HOME}/include" "-L${ORACLE_HOME}/$(get_libdir)")
50 use odbc && myconf+=("-I${EPREFIX}/usr/include/iodbc")
51 use postgres && myconf+=("-I${EPREFIX}/usr/include/postgresql/pgsql")
52
53 qt5-build_src_configure
54 }

  ViewVC Help
Powered by ViewVC 1.1.20