blob: 1092d8a4904cdd95a738e4a489fad2472f511bc4 (
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
|
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/x11-libs/qwtplot3d/qwtplot3d-0.2.6-r1.ebuild,v 1.2 2005/12/09 14:42:56 cryos Exp $
inherit multilib qt3
MY_P=${P/_/-}
S=${WORKDIR}/${PN}
DESCRIPTION="opengl and qt-based 3D widget library for C++"
HOMEPAGE="http://qwtplot3d.sourceforge.net/"
SRC_URI="mirror://sourceforge/qwtplot3d/${MY_P}.tgz"
LICENSE="ZLIB"
SLOT="0"
IUSE="examples"
KEYWORDS="~amd64 ~x86"
DEPEND="$(qt_min_version 3.3)
>=sys-apps/sed-4"
src_unpack () {
unpack ${A}
cd ${S}
find . -type f -name "*.pro" | while read file; do
sed -e 's/.*no-exceptions.*//g' -i ${file}
echo >> ${file} "QMAKE_CFLAGS_RELEASE += ${CFLAGS}"
echo >> ${file} "QMAKE_CXXFLAGS_RELEASE += ${CXXFLAGS}"
done
find examples -type f -name "*.pro" | while read file; do
echo >> ${file} "INCLUDEPATH += /usr/include/qwtplot3d"
done
}
src_compile () {
addwrite ${QTDIR}/etc/settings
${QTDIR}/bin/qmake qwtplot3d.pro || die "qmake failed."
emake || die "emake failed."
}
src_install () {
dolib lib/libqwtplot3d.so.${PV} || die "dolib failed."
# dosym libqwtplot3d.so.${PV} /usr/$(get_libdir)/libqwtplot3d.so
# dosym libqwtplot3d.so.${PV} /usr/$(get_libdir)/libqwtplot3d.so.${PV/.*/}
chmod -R 644 examples
chmod 755 examples examples/simpleplot/ examples/mesh2/ \
examples/enrichments/ examples/axes/ examples/autoswitch/ \
examples/axes/src/
mkdir -p ${D}/usr/include/qwtplot3d/
install include/* ${D}/usr/include/qwtplot3d/
if use examples; then
dodir /usr/share/doc/${PF}
cp -pPR examples ${D}/usr/share/doc/${PF}/
fi
}
|