diff options
author | Justin Lecher <jlec@gentoo.org> | 2010-04-30 19:31:05 +0000 |
---|---|---|
committer | Justin Lecher <jlec@gentoo.org> | 2010-04-30 19:31:05 +0000 |
commit | 4e81d963eeb48a689c10599394ea6cdab220e13a (patch) | |
tree | 790064ffdd9e7dadb8a74d43bea0063d6bb5dc7e /x11-libs | |
parent | whitespace (diff) | |
download | gentoo-2-4e81d963eeb48a689c10599394ea6cdab220e13a.tar.gz gentoo-2-4e81d963eeb48a689c10599394ea6cdab220e13a.tar.bz2 gentoo-2-4e81d963eeb48a689c10599394ea6cdab220e13a.zip |
Version Bump #317171
(Portage version: 2.2_rc67/cvs/Linux x86_64)
Diffstat (limited to 'x11-libs')
-rw-r--r-- | x11-libs/qwt/ChangeLog | 7 | ||||
-rw-r--r-- | x11-libs/qwt/qwt-5.2.1.ebuild | 66 |
2 files changed, 72 insertions, 1 deletions
diff --git a/x11-libs/qwt/ChangeLog b/x11-libs/qwt/ChangeLog index bd9bdc948535..3e8b20229548 100644 --- a/x11-libs/qwt/ChangeLog +++ b/x11-libs/qwt/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for x11-libs/qwt # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/x11-libs/qwt/ChangeLog,v 1.75 2010/02/20 17:28:09 armin76 Exp $ +# $Header: /var/cvsroot/gentoo-x86/x11-libs/qwt/ChangeLog,v 1.76 2010/04/30 19:31:05 jlec Exp $ + +*qwt-5.2.1 (30 Apr 2010) + + 30 Apr 2010; Justin Lecher <jlec@gentoo.org> +qwt-5.2.1.ebuild: + Version Bump #317171 20 Feb 2010; Raúl Porcel <armin76@gentoo.org> qwt-5.2.0.ebuild: Add ~alpha wrt #303677 diff --git a/x11-libs/qwt/qwt-5.2.1.ebuild b/x11-libs/qwt/qwt-5.2.1.ebuild new file mode 100644 index 000000000000..b8b2590f5a79 --- /dev/null +++ b/x11-libs/qwt/qwt-5.2.1.ebuild @@ -0,0 +1,66 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/x11-libs/qwt/qwt-5.2.1.ebuild,v 1.1 2010/04/30 19:31:05 jlec Exp $ + +EAPI="3" +inherit eutils qt4 + +DESCRIPTION="2D plotting library for Qt4" +HOMEPAGE="http://qwt.sourceforge.net/" +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2" + +LICENSE="qwt" +KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86" +SLOT="5" +IUSE="doc examples svg" + +DEPEND="x11-libs/qt-gui:4 + svg? ( x11-libs/qt-svg:4 )" +RDEPEND="${DEPEND}" + +src_prepare() { + cat > qwtconfig.pri <<-EOF + target.path = "${EPREFIX}"/usr/$(get_libdir) + headers.path = "${EPREFIX}"/usr/include/qwt5 + doc.path = "${EPREFIX}"/usr/share/doc/${PF} + CONFIG += qt warn_on thread release + CONFIG += QwtDll QwtPlot QwtWidgets QwtDesigner + VERSION = ${PV} + EOF + # don't build examples - fix the qt files to build once installed + cat > examples/examples.pri <<-EOF + include( qwtconfig.pri ) + TEMPLATE = app + MOC_DIR = moc + INCLUDEPATH += "${EPREFIX}"/usr/include/qwt5 + DEPENDPATH += "${EPREFIX}"/usr/include/qwt5 + LIBS += -lqwt + EOF + sed -i -e 's:../qwtconfig:qwtconfig:' examples/examples.pro || die + sed -i -e 's/headers doc/headers/' src/src.pro || die + qt4_src_prepare +} + +src_configure() { + use svg && echo >> qwtconfig.pri "CONFIG += QwtSVGItem" + cp qwtconfig.pri examples/qwtconfig.pri + eqmake4 +} +src_compile() { + # split compilation to allow parallel building + emake sub-src || die "emake library failed" + emake || die "emake failed" +} + +src_install () { + emake INSTALL_ROOT="${D}" install || die "emake install failed" + dodoc CHANGES README + insinto /usr/share/doc/${PF} + if use doc; then + doman doc/man/*/* || die + doins -r doc/html || die + fi + if use examples; then + doins -r examples || die + fi +} |