blob: ac5824ae673f5c877bd4fbc009c22429e27bbc5f (
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
|
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=4
inherit multilib qt4-r2
DESCRIPTION="Library for displaying values on a polar coordinate system"
HOMEPAGE="http://qwtpolar.sourceforge.net/"
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2"
LICENSE="qwt"
SLOT="0"
KEYWORDS="amd64 x86"
IUSE=""
DEPEND="x11-libs/qwt:5[svg]"
RDEPEND="${DEPEND}"
src_prepare() {
sed -i \
-e "s:/path/to/qwt-5.2/include:${EPREFIX}/usr/include/qwt5:g" \
-e "s:/path/to/qwt-5.2/lib:${EPREFIX}/usr/$(get_libdir):g" \
-e "/= QwtPolarDesigner/ d" \
-e "s:/usr/local/qwtpolar-0.1.0:/usr/:g" \
-e "s:INSTALLBASE/lib:INSTALLBASE/$(get_libdir):g" \
-e "s:INSTALLBASE/include:INSTALLBASE/include/${PN}:" \
${PN}.pri || die
sed -i \
-e "s:{QWT_POLAR_ROOT}/lib:{QWT_POLAR_ROOT}/$(get_libdir):" \
src/src.pro || die
}
src_install() {
qt4-r2_src_install
rm -rf "${ED}/usr/doc" || die
doman doc/man/man3/QwtPolar*
dohtml -r doc/html
}
|