|
Lines 12-46
Link Here
|
| 12 |
LICENSE="GPL-2" |
12 |
LICENSE="GPL-2" |
| 13 |
SLOT="0" |
13 |
SLOT="0" |
| 14 |
KEYWORDS="~amd64 ~ppc ~ppc64 ~sparc ~x86" |
14 |
KEYWORDS="~amd64 ~ppc ~ppc64 ~sparc ~x86" |
| 15 |
IUSE="chipcard debug kde ofx python qt3" |
15 |
IUSE="chipcard debug kde ofx python qt3 qt4" |
| 16 |
DEPEND=">=sys-libs/gwenhywfar-3.10.0.0 |
16 |
DEPEND=">=sys-libs/gwenhywfar-3.10.0.0 |
| 17 |
>=app-misc/ktoblzcheck-1.14 |
17 |
>=app-misc/ktoblzcheck-1.14 |
| 18 |
ofx? ( >=dev-libs/libofx-0.8.3 ) |
18 |
ofx? ( >=dev-libs/libofx-0.8.3 ) |
| 19 |
chipcard? ( >=sys-libs/libchipcard-4.2.8 ) |
19 |
chipcard? ( >=sys-libs/libchipcard-4.2.8 ) |
| 20 |
qt3? ( =x11-libs/qt-3* ) |
20 |
qt3? ( =x11-libs/qt-3* ) |
|
|
21 |
qt4? ( x11-libs/qt-core |
| 22 |
x11-libs/qt-qt3support |
| 23 |
x11-libs/qt-gui ) |
| 21 |
kde? ( >=kde-base/kdelibs-3.1.0 )" |
24 |
kde? ( >=kde-base/kdelibs-3.1.0 )" |
| 22 |
RDEPEND="${DEPEND}" |
25 |
RDEPEND="${DEPEND}" |
| 23 |
|
26 |
|
| 24 |
MAKEOPTS="${MAKEOPTS} -j1" |
27 |
MAKEOPTS="${MAKEOPTS} -j1" |
| 25 |
RESTRICT="test" |
28 |
RESTRICT="test" |
| 26 |
|
29 |
|
|
|
30 |
pkg_setup() { |
| 31 |
if use qt3 && use qt4; then |
| 32 |
eerror "Both Qt3 and Qt4 are not supported" |
| 33 |
die "Disable either the \"qt3\" or the \"qt4\" USE flag" |
| 34 |
fi |
| 35 |
|
| 36 |
if use kde && use qt4; then |
| 37 |
eerror "Both KDE3 and Qt4 are not supported" |
| 38 |
die "Disable either the \"kde\" or the \"qt4\" USE flag" |
| 39 |
fi |
| 40 |
} |
| 41 |
|
| 27 |
src_configure() { |
42 |
src_configure() { |
| 28 |
KDEMAJORVER="3" set-kdedir |
43 |
KDEMAJORVER="3" set-kdedir |
| 29 |
|
44 |
|
| 30 |
local FRONTENDS="cbanking" |
45 |
local FRONTENDS="cbanking" |
| 31 |
(use qt3 || use kde) && FRONTENDS="${FRONTENDS} qbanking" |
46 |
(use qt3 || use qt4 || use kde) && FRONTENDS="${FRONTENDS} qbanking" |
| 32 |
use kde && FRONTENDS="${FRONTENDS} kbanking" |
47 |
use kde && FRONTENDS="${FRONTENDS} kbanking" |
| 33 |
|
48 |
|
| 34 |
local BACKENDS="aqhbci" |
49 |
local BACKENDS="aqhbci" |
| 35 |
use ofx && BACKENDS="${BACKENDS} aqofxconnect" |
50 |
use ofx && BACKENDS="${BACKENDS} aqofxconnect" |
| 36 |
|
51 |
|
| 37 |
econf PATH="/usr/qt/3/bin:${PATH}" \ |
52 |
if use qt4; then |
|
|
53 |
QT4_LIBS="$(pkg-config QtCore QtGui Qt3Support --libs)" |
| 54 |
QT4_INC="$(pkg-config QtCore QtGui Qt3Support --cflags)" |
| 55 |
fi |
| 56 |
|
| 57 |
econf PATH="/usr/qt/3/bin:${PATH}" qt3_libs="${QT4_LIBS}" qt3_includes="${QT4_INC}" \ |
| 38 |
$(use_enable debug) \ |
58 |
$(use_enable debug) \ |
| 39 |
$(use_enable kde kde3) \ |
59 |
$(use_enable kde kde3) \ |
| 40 |
$(use_enable python) \ |
60 |
$(use_enable python) \ |
| 41 |
--with-frontends="${FRONTENDS}" \ |
61 |
--with-frontends="${FRONTENDS}" \ |
| 42 |
--with-backends="${BACKENDS}" \ |
62 |
--with-backends="${BACKENDS}" \ |
| 43 |
--with-docpath="/usr/share/doc/${PF}/apidoc"|| die "configure failed" |
63 |
--with-docpath="/usr/share/doc/${PF}/apidoc"|| die "configure failed" |
|
|
64 |
use qt4 && make qt4-port |
| 44 |
} |
65 |
} |
| 45 |
|
66 |
|
| 46 |
src_install() { |
67 |
src_install() { |