blob: 48266c5a0c9fc118fffac37e1801df6a1aff69e2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
|
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/x11-libs/libqxt/libqxt-0.4-r1.ebuild,v 1.1 2009/02/07 20:15:07 hwoarang Exp $
EAPI=2
inherit eutils qt4
DESCRIPTION="The Qt eXTension library provides cross-platform utility classes for the Qt toolkit"
HOMEPAGE="http://libqxt.org/"
SRC_URI="mirror://sourceforge/libqxt/${P}.tar.gz"
LICENSE="CPL-1.0"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="berkdb crypt debug doc sql web"
RDEPEND="|| ( ( x11-libs/qt-gui:4
x11-libs/qt-script:4
berkdb? ( x11-libs/qt-sql:4 )
sql? ( x11-libs/qt-sql:4 ) )
=x11-libs/qt-4.3*:4[png] )
berkdb? ( sys-libs/db )
crypt? ( >=dev-libs/openssl-0.9.8
|| ( x11-libs/qt-core:4[ssl] =x11-libs/qt-4.3*:4[ssl] ) )
web? ( >=dev-libs/fcgi-2.4 )"
DEPEND="${DEPEND}
doc? ( app-doc/doxygen )"
src_configure() {
local myconf
myconf="-prefix /usr \
-libdir /usr/$(get_libdir) \
-docdir /usr/share/doc/${PF} \
-qmake-bin /usr/bin/qmake \
$(use debug && echo -debug) \
$(use !berkdb && echo -no-db -nomake berkeley) \
$(use !crypt && echo -nomake crypto -no-openssl) \
$(use !sql && echo -nomake sql) \
$(use !web && echo -nomake web)"
# fix pre-striped files issue
for i in $(ls "${S}"/src); do
sed -i "s/qxtbuild/nostrip\ qxtbuild/" "${S}"/src/${i}/${i}.pro
done
./configure ${myconf} || die "configure failed"
}
src_compile() {
# parallel compilation fails, bug #194730
emake -j1 || die "make failed"
}
src_install() {
emake INSTALL_ROOT="${D}" install || die "emake install failed"
dodoc {AUTHORS,README,LICENSE,cpl1.0.txt}
if use doc; then
doxygen Doqsyfile
dohtml -r deploy/docs/*
fi
}
|