-# Copyright 1999-2017 Gentoo Foundation
+# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI="6"
LICENSE="GPL-2 LGPL-2"
SLOT="0"
KEYWORDS=""
-IUSE="gtk postgres qt4 ssl tcl threads X"
+IUSE="gtk postgres ssl tcl threads X"
RESTRICT="test" #298101
# doesn't compile:
RDEPEND="
gtk? ( x11-libs/gtk+:2 )
postgres? ( dev-db/postgresql:* )
- qt4? ( dev-qt/qtgui:4[qt3support] )
ssl? ( dev-libs/openssl:* )
tcl? ( dev-lang/tcl:0 )
X? ( x11-libs/libXt )
# This assumes that the compiler (or -wrapper) uses
# gcc flag '-mminimal-toc' for compilation.
sed -i -e 's/,-bbigtoc//' "${S}"/configure || die
-
- if use qt4; then
- sed -i -e "s, -lqt\", $(pkg-config --libs Qt3Support)\"," configure ||
- die "cannot update to use Qt3Support of qt4"
- fi
}
src_configure() {
# to disable openssl utilization seems to override the configure check.
use ssl || export ac_cv_lib_ssl_open=no
- # CFLAGS aren't used when checking for <qapplication.h>, but CPPFLAGS are.
- use qt4 && append-cppflags $(pkg-config --cflags Qt3Support)
-
local myconf=
myconf() {
myconf="${myconf} $*"
# the value needs to be empty instead.
# This applies to: pgsql, qt, tcl, bluetooth.
myconf --with-pgsql=$(use postgres && echo "${EPREFIX}"/usr)
- myconf --with-qt=$( use qt4 && echo "${EPREFIX}"/usr)
myconf --with-tcl=$( use tcl && echo "${EPREFIX}"/usr)
# bluetooth and wireless both don't compile cleanly
myconf --with-bluetooth=''