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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.12 - (show annotations) (download)
Sun Dec 28 15:44:26 2014 UTC (3 years, 10 months ago) by titanofold
Branch: MAIN
CVS Tags: HEAD
Changes since 1.11: +2 -2 lines
Rename virtual/postgresql to dev-db/postgresql

(Portage version: 2.2.14/cvs/Linux x86_64, signed Manifest commit with key D1BBFDA0)

1 # Copyright 1999-2014 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/dev-qt/qtsql/qtsql-4.8.5.ebuild,v 1.11 2014/11/03 12:42:18 titanofold Exp $
4
5 EAPI=4
6
7 inherit multilib qt4-build
8
9 DESCRIPTION="The SQL module for the Qt toolkit"
10 SLOT="4"
11 if [[ ${QT4_BUILD_TYPE} == live ]]; then
12 KEYWORDS=""
13 else
14 KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 sparc x86 ~amd64-fbsd ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~x64-solaris ~x86-solaris"
15 fi
16 IUSE="firebird freetds mysql oci8 odbc postgres qt3support +sqlite"
17
18 REQUIRED_USE="
19 || ( firebird freetds mysql oci8 odbc postgres sqlite )
20 "
21
22 DEPEND="
23 ~dev-qt/qtcore-${PV}[aqua=,debug=,qt3support=]
24 firebird? ( dev-db/firebird )
25 freetds? ( dev-db/freetds )
26 mysql? ( virtual/mysql )
27 oci8? ( dev-db/oracle-instantclient-basic )
28 odbc? ( || ( dev-db/unixODBC dev-db/libiodbc ) )
29 postgres? ( dev-db/postgresql )
30 sqlite? ( dev-db/sqlite:3 )
31 "
32 RDEPEND="${DEPEND}"
33
34 pkg_setup() {
35 QT4_TARGET_DIRECTORIES="
36 src/sql
37 src/plugins/sqldrivers"
38
39 QT4_EXTRACT_DIRECTORIES="${QT4_TARGET_DIRECTORIES}
40 include/Qt
41 include/QtCore
42 include/QtSql
43 src/src.pro
44 src/corelib
45 src/plugins
46 src/tools/tools.pro"
47
48 qt4-build_pkg_setup
49 }
50
51 src_configure() {
52 myconf+="
53 $(qt_use firebird sql-ibase plugin)
54 $(qt_use freetds sql-tds plugin)
55 $(qt_use mysql sql-mysql plugin) $(use mysql && echo "-I${EPREFIX}/usr/include/mysql -L${EPREFIX}/usr/$(get_libdir)/mysql")
56 $(qt_use oci8 sql-oci plugin) $(use oci8 && echo "-I${ORACLE_HOME}/include -L${ORACLE_HOME}/$(get_libdir)")
57 $(qt_use odbc sql-odbc plugin) $(use odbc && echo "-I${EPREFIX}/usr/include/iodbc")
58 $(qt_use postgres sql-psql plugin) $(use postgres && echo "-I${EPREFIX}/usr/include/postgresql/pgsql")
59 $(qt_use sqlite sql-sqlite plugin) $(use sqlite && echo -system-sqlite)
60 -no-sql-db2
61 -no-sql-sqlite2
62 -no-sql-symsql
63 $(qt_use qt3support)
64 -no-accessibility -no-xmlpatterns -no-multimedia -no-audio-backend -no-phonon
65 -no-phonon-backend -no-svg -no-webkit -no-script -no-scripttools -no-declarative
66 -system-zlib -no-gif -no-libtiff -no-libpng -no-libmng -no-libjpeg -no-openssl
67 -no-cups -no-dbus -no-gtkstyle -no-nas-sound -no-opengl
68 -no-sm -no-xshape -no-xvideo -no-xsync -no-xinerama -no-xcursor -no-xfixes
69 -no-xrandr -no-xrender -no-mitshm -no-fontconfig -no-freetype -no-xinput -no-xkb
70 -no-glib"
71
72 qt4-build_src_configure
73 }

  ViewVC Help
Powered by ViewVC 1.1.20