|
Lines 8-21
Link Here
|
| 8 |
DESCRIPTION="The SQL module for the Qt toolkit" |
8 |
DESCRIPTION="The SQL module for the Qt toolkit" |
| 9 |
SLOT="4" |
9 |
SLOT="4" |
| 10 |
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~x64-solaris ~x86-solaris" |
10 |
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~x64-solaris ~x86-solaris" |
| 11 |
IUSE="firebird iconv mysql odbc postgres qt3support +sqlite" |
11 |
IUSE="firebird iconv mysql odbc postgres qt3support +sqlite tds" |
| 12 |
|
12 |
|
| 13 |
DEPEND="~x11-libs/qt-core-${PV}[aqua=,debug=,qt3support=] |
13 |
DEPEND="~x11-libs/qt-core-${PV}[aqua=,debug=,qt3support=] |
| 14 |
firebird? ( dev-db/firebird ) |
14 |
firebird? ( dev-db/firebird ) |
| 15 |
mysql? ( virtual/mysql ) |
15 |
mysql? ( virtual/mysql ) |
| 16 |
odbc? ( dev-db/unixODBC ) |
16 |
odbc? ( dev-db/unixODBC ) |
| 17 |
postgres? ( virtual/postgresql-base ) |
17 |
postgres? ( virtual/postgresql-base ) |
| 18 |
sqlite? ( dev-db/sqlite:3 )" |
18 |
sqlite? ( dev-db/sqlite:3 ) |
|
|
19 |
tds? ( dev-db/freetds )" |
| 19 |
RDEPEND="${DEPEND}" |
20 |
RDEPEND="${DEPEND}" |
| 20 |
|
21 |
|
| 21 |
QT4_TARGET_DIRECTORIES="src/sql src/plugins/sqldrivers" |
22 |
QT4_TARGET_DIRECTORIES="src/sql src/plugins/sqldrivers" |
|
Lines 35-43
Link Here
|
| 35 |
) |
36 |
) |
| 36 |
|
37 |
|
| 37 |
pkg_setup() { |
38 |
pkg_setup() { |
| 38 |
if ! (use firebird || use mysql || use odbc || use postgres || use sqlite); then |
39 |
if ! (use firebird || use mysql || use odbc || use postgres || \ |
|
|
40 |
use sqlite || use tds); then |
| 39 |
ewarn "You need to enable at least one SQL driver. Enable at least" |
41 |
ewarn "You need to enable at least one SQL driver. Enable at least" |
| 40 |
ewarn "one of these USE flags: \"firebird mysql odbc postgres sqlite\"" |
42 |
ewarn "one of these USE flags: \"firebird mysql odbc postgres sqlite tds\"" |
| 41 |
die "Enable at least one SQL driver." |
43 |
die "Enable at least one SQL driver." |
| 42 |
fi |
44 |
fi |
| 43 |
|
45 |
|
|
Lines 58-63
Link Here
|
| 58 |
$(qt_use postgres sql-psql plugin) $(use postgres && echo "-I${EPREFIX}/usr/include/postgresql/pgsql ") |
60 |
$(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') |
61 |
$(qt_use sqlite sql-sqlite plugin) $(use sqlite && echo '-system-sqlite') |
| 60 |
$(qt_use odbc sql-odbc plugin) |
62 |
$(qt_use odbc sql-odbc plugin) |
|
|
63 |
$(qt_use odbc sql-tds plugin) |
| 61 |
$(qt_use qt3support)" |
64 |
$(qt_use qt3support)" |
| 62 |
|
65 |
|
| 63 |
myconf="${myconf} $(qt_use iconv) -no-xkb -no-fontconfig -no-xrender -no-xrandr |
66 |
myconf="${myconf} $(qt_use iconv) -no-xkb -no-fontconfig -no-xrender -no-xrandr |