blob: dd285f62b1dfedcca87cb883fce31f9cafb828c7 (
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
|
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/kde-misc/kdocker/kdocker-1.3.ebuild,v 1.1 2006/11/12 22:02:44 troll Exp $
inherit eutils qt3
IUSE=""
LANGS="cs de en es fr id it pl pt_BR ru"
for x in ${LANGS}; do
IUSE="${IUSE} linguas_${x}"
done;
DESCRIPTION="KDocker will help you dock any application in the system tray"
HOMEPAGE="http://www.kde-apps.org/content/show.php?content=13356"
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86 ~amd64"
DEPEND="$(qt_min_version 3.3)"
RDEPEND="${DEPEND}"
S="${WORKDIR}/${PN}"
src_unpack() {
unpack ${A}
cd ${S}
epatch ${FILESDIR}/${PN}-desktop_file.patch
epatch ${FILESDIR}/${PN}-installdir.patch
}
src_compile() {
${QTDIR}/bin/qmake ${PN}.pro \
QMAKE=${QTDIR}/bin/qmake \
QMAKE_CFLAGS_RELEASE="${CFLAGS}" \
QMAKE_CXXFLAGS_RELEASE="${CXXFLAGS}" \
QMAKE_RPATH= \
"CONFIG += no_fixpath release thread" \
|| die "couldn't create fresh Makefiles"
emake || die "make failed"
# langpacks
cd ${S}/i18n
for i in ${LANGS}; do
use linguas_${i} && [ -f ${PN}_${i}.ts ] && lrelease ${PN}_${i}.ts
done;
}
src_install() {
make INSTALL_ROOT=${D} install || die "installation failed"
dodoc AUTHORS BUGS CREDITS ChangeLog HACKING INSTALL README TODO
# langpacks are being installed only if
# approperiare LINGUAS variable is set
insinto /usr/share/${PN}/i18n
cd ${S}/i18n
for i in ${LANGS}; do
use linguas_${i} && [ -f ${PN}_${i}.qm ] && doins ${PN}_${i}.qm
done;
}
|