blob: d9b70bf9d8af207c25d14bbb1c400f8cf1e2ffba (
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
|
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/x11-libs/qwt/qwt-4.2.0_rc1.ebuild,v 1.4 2004/06/24 22:07:39 agriffis Exp $
MY_PV="${PV/_r/r}"
SRC_URI="mirror://sourceforge/qwt/${PN}-${MY_PV}.tgz"
HOMEPAGE="http://qwt.sourceforge.net/"
DESCRIPTION="2D plotting library for Qt"
LICENSE="qwt"
KEYWORDS="x86 ~amd64"
SLOT="0"
IUSE="doc"
S="${WORKDIR}/${PN}-${MY_PV}"
QWTVER="4.2.0"
DEPEND=">=x11-libs/qt-3.0.0"
src_compile () {
addwrite ${QTDIR}/etc/settings
qmake qwt.pro
emake || die
cd designer
qmake qwtplugin.pro
emake || die
}
src_install () {
dolib lib/libqwt.so.${QWTVER}
dosym libqwt.so.${QWTVER} /usr/lib/libqwt.so
use doc && (dodir /usr/share/doc/${PF}
cp -a examples ${D}/usr/share/doc/${PF}/
find ${D}/usr/share/doc/ -type f -exec gzip {} \;
dohtml doc/html/*)
mkdir -p ${D}/usr/include/qwt/
install include/* ${D}/usr/include/qwt/
insinto ${QTDIR}/plugins/designer
doins designer/plugins/designer/libqwtplugin.so
}
|