blob: 464bbae8729f7ee13b022261650b1d5a229a3ba5 (
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.ebuild,v 1.2 2011/06/14 10:11:28 scarabeus 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" \
${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
dodir /usr/include/${PN}
mv "${ED}/usr/include/"*.h "${ED}/usr/include/${PN}/" || die
doman doc/man/man3/QwtPolar*
dohtml -r doc/html
}
|