summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'x11-libs/qwtpolar/qwtpolar-0.1.0-r1.ebuild')
-rw-r--r--x11-libs/qwtpolar/qwtpolar-0.1.0-r1.ebuild43
1 files changed, 43 insertions, 0 deletions
diff --git a/x11-libs/qwtpolar/qwtpolar-0.1.0-r1.ebuild b/x11-libs/qwtpolar/qwtpolar-0.1.0-r1.ebuild
new file mode 100644
index 000000000000..ac5824ae673f
--- /dev/null
+++ b/x11-libs/qwtpolar/qwtpolar-0.1.0-r1.ebuild
@@ -0,0 +1,43 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+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
+}