blob: 48db147f4919500029e1704c6079ca79466e5d36 (
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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
|
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-office/qtstalker/qtstalker-0.33.ebuild,v 1.1 2007/03/05 22:59:48 troll Exp $
inherit qt3 eutils
IUSE=""
LANGS="pl"
for i in ${LNAGS}; do
IUSE="${IUSE} linguas_${i}"
done
DESCRIPTION="Commodity and stock market charting and technical analysis"
HOMEPAGE="http://qtstalker.sourceforge.net/"
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86"
DEPEND="$(qt_min_version 3.3)
>=sys-libs/db-4"
S="${WORKDIR}/${PN}"
# linking error about missing lqtstalker lib when using -jX
MAKEOPTS="${MAKEOPTS} -j1"
src_unpack() {
unpack ${A}
cd ${S}
epatch ${FILESDIR}/${P}-sandboxfix_no_fixpath.patch
epatch ${FILESDIR}/${P}-install_docs_with_emerge.patch
}
src_compile() {
# some Qt4 problems...
einfo "Proccessing qmake with .pro files..."
PROS="${S}/src/src.pro ${S}/lib/lib.pro ${S}/${PN}.pro `find ${S}/plugins -name \"*.pro\"`"
for i in ${PROS}; do
pdir="`echo ${i} | sed -e 's/\/[a-zA-Z]*.pro$//'`"
pfile="`echo ${i} | sed -e 's/^.*\///'`"
cd ${pdir}
${QTDIR}/bin/qmake ${pfile} \
QMAKE_CXXFLAGS_RELEASE="${CXXFLAGS}" \
QMAKE_RPATH= \
QMAKE=/usr/bin/qmake \
QMAKE_RPATH= \
|| die "qmake ${pfile} failed"
done
cd ${S}
emake || die "make failed"
einfo "Building langpaccks..."
for i in ${LINGUAS}; do
if [ -f ${PN}_${i}.ts ]; then
lrelease ${PN}_${i}.ts
fi
done
}
src_install() {
# we have to export this...
export INSTALL_ROOT="${D}"
make install || die "make install failed"
einfo "Installing docs..."
cd ${S}/docs
dohtml *{html,png}
dodoc AUTHORS BUGS CHANGELOG INSTALL TODO ${S}/README
# install only needed langpacks
einfo "Installing langpacks..."
cd ${S}/i18n
insinto /usr/share/${PN}/i18n
for i in ${LINGUAS}; do
if [ -f ${PN}_${i}.qm ]; then
doins ${PN}_${i}.qm
fi
done
# menu and icon
domenu ${FILESDIR}/${PN}.desktop
doicon ${FILESDIR}/${PN}.png
}
|