blob: 8e9eb580b44d01aeeaea30463504d8172c2425fd (
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
# $Header: /var/cvsroot/gentoo-x86/x11-libs/qwtpolar/qwtpolar-0.1.0-r1.ebuild,v 1.3 2011/08/07 12:02:56 maekke Exp $
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
}
|