summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'x11-libs/qwt/qwt-4.2.0_rc2-r1.ebuild')
-rw-r--r--x11-libs/qwt/qwt-4.2.0_rc2-r1.ebuild56
1 files changed, 56 insertions, 0 deletions
diff --git a/x11-libs/qwt/qwt-4.2.0_rc2-r1.ebuild b/x11-libs/qwt/qwt-4.2.0_rc2-r1.ebuild
new file mode 100644
index 000000000000..fca38660e54e
--- /dev/null
+++ b/x11-libs/qwt/qwt-4.2.0_rc2-r1.ebuild
@@ -0,0 +1,56 @@
+# 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_rc2-r1.ebuild,v 1.1 2004/10/20 06:21:18 phosphan Exp $
+
+inherit eutils
+
+MY_PV="${PV/_r/r}"
+
+SRC_URI="mirror://sourceforge/qwt/${PN}-${MY_PV}.tar.bz2"
+HOMEPAGE="http://qwt.sourceforge.net/"
+DESCRIPTION="2D plotting library for Qt"
+LICENSE="qwt"
+KEYWORDS="~x86 ~amd64 ~ppc"
+SLOT="0"
+IUSE="doc"
+
+S="${WORKDIR}/${PN}-${MY_PV}"
+QWTVER="4.2.0"
+
+DEPEND=">=x11-libs/qt-3.0.0
+ >=sys-apps/sed-4"
+
+
+src_unpack () {
+ unpack ${A}
+ cd ${S}
+ epatch ${FILESDIR}/${PV}-plugin.patch
+ 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
+}
+
+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
+ dosym libqwt.so.${QWTVER} /usr/lib/libqwt.so.${QWTVER/.\*/}
+ 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
+}