summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastien Fabbro <bicatali@gentoo.org>2009-04-07 18:18:00 +0000
committerSebastien Fabbro <bicatali@gentoo.org>2009-04-07 18:18:00 +0000
commitf0583d1a19d0806474707b5f536ac0e85d0eea05 (patch)
treed3bf09d2ccd3adaed710ff2ceb7e1989716c062e /x11-libs/qwt
parentRenamed the ru patch from $P to $PN and added it to emerald-0.8.2 since it's ... (diff)
downloadhistorical-f0583d1a19d0806474707b5f536ac0e85d0eea05.tar.gz
historical-f0583d1a19d0806474707b5f536ac0e85d0eea05.tar.bz2
historical-f0583d1a19d0806474707b5f536ac0e85d0eea05.zip
Version bump, cleaning old versions.
Package-Manager: portage-2.2_rc28/cvs/Linux x86_64
Diffstat (limited to 'x11-libs/qwt')
-rw-r--r--x11-libs/qwt/ChangeLog12
-rw-r--r--x11-libs/qwt/Manifest23
-rw-r--r--x11-libs/qwt/metadata.xml7
-rw-r--r--x11-libs/qwt/qwt-4.2.0-r1.ebuild57
-rw-r--r--x11-libs/qwt/qwt-4.2.0-r2.ebuild70
-rw-r--r--x11-libs/qwt/qwt-4.2.0.ebuild55
-rw-r--r--x11-libs/qwt/qwt-5.1.0.ebuild47
-rw-r--r--x11-libs/qwt/qwt-5.1.2.ebuild66
-rw-r--r--x11-libs/qwt/qwt-5.2.0.ebuild66
9 files changed, 165 insertions, 238 deletions
diff --git a/x11-libs/qwt/ChangeLog b/x11-libs/qwt/ChangeLog
index ccf3d9983f85..f4d810c009ed 100644
--- a/x11-libs/qwt/ChangeLog
+++ b/x11-libs/qwt/ChangeLog
@@ -1,6 +1,14 @@
# ChangeLog for x11-libs/qwt
-# Copyright 2000-2008 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/x11-libs/qwt/ChangeLog,v 1.66 2008/12/23 14:01:12 caleb Exp $
+# Copyright 2000-2009 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/x11-libs/qwt/ChangeLog,v 1.67 2009/04/07 18:18:00 bicatali Exp $
+
+*qwt-5.2.0 (07 Apr 2009)
+*qwt-5.1.2 (07 Apr 2009)
+
+ 07 Apr 2009; SĂ©bastien Fabbro <bicatali@gentoo.org> metadata.xml,
+ -qwt-4.2.0.ebuild, -qwt-4.2.0-r1.ebuild, -qwt-4.2.0-r2.ebuild,
+ -qwt-5.1.0.ebuild, +qwt-5.1.2.ebuild, +qwt-5.2.0.ebuild:
+ Version bump, cleaning old versions.
*qwt-5.1.1 (23 Dec 2008)
diff --git a/x11-libs/qwt/Manifest b/x11-libs/qwt/Manifest
index 7f4c65766853..b33c1d1550c7 100644
--- a/x11-libs/qwt/Manifest
+++ b/x11-libs/qwt/Manifest
@@ -1,13 +1,22 @@
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA1
+
DIST qwt-4.2.0.tar.bz2 973643 RMD160 3d0f9ff5201008f3c5f3dc28d5801a3f2b0f30b4 SHA1 469da352b3b79e1b40546d1bde020fb3bd9dd9ee SHA256 726d91ae6bc70049590f9e8e16d5f77f9dc1a7dde18950796703f9c0be9a5a6d
DIST qwt-5.0.2.tar.bz2 1666468 RMD160 1a80bb31eaa0d1488594507acb022ca268dcc2ce SHA1 f1a415847691e271e9f6b3b243ab2e7cb270a034 SHA256 1e09af748c42f70771334db7bad04c3e39cf0f80fe4da993345c366575b2408d
-DIST qwt-5.1.0.tar.bz2 1683012 RMD160 ba7dc8a07affa7eea5b145f8bd0416ab698e55e8 SHA1 cc445f47039425626bca56d61a59528b4d6c7166 SHA256 286d2d4e09662908b473b8d230e946171ef85f49f80982734aca780a4ef1c855
DIST qwt-5.1.1.tar.bz2 1686166 RMD160 334f43c279c380ee5cfcda47e17eef46f96eb0b0 SHA1 fdb85ceafaf6778ca7bd507e08215f6e0bc39757 SHA256 153e538e46d690991e777f0cdc0db8a7eaff80fc78fee30a7391f1149411743e
-EBUILD qwt-4.2.0-r1.ebuild 1594 RMD160 b185852ffc7cc480c8ad27ba778c9e821ae546cc SHA1 928c2e2273320ee4661b0bb359066a6cc3f5dc9c SHA256 557fb148aa2a5105672d9a6b5fb19f306adb8c3b38e8d7bae286c1c495086062
-EBUILD qwt-4.2.0-r2.ebuild 1792 RMD160 1b86f500d12662f7a350597ea6059b395f56c5c4 SHA1 c1e48a18eb2f672a2c00f766cb2540811c62fa94 SHA256 0ca632e6a62d6a6628f4e3fd8437bd53367dad445cba4ce97ae0131555249847
+DIST qwt-5.1.2.tar.bz2 1688967 RMD160 a5a94aa3870a631f9605e6370c4d04fb1c79347e SHA1 2fc04b78c438635a78e41a22fea6f9e016f7ca17 SHA256 58080ed393410a2753b3154765db2d4e41b8b3cb984135db575f626899a17c2e
+DIST qwt-5.2.0.tar.bz2 1371877 RMD160 061319c7b4821c366fd05b68bbc3e134351f9110 SHA1 8830498b87d99d4b7e95ee643f1f7ff178204ba9 SHA256 2b431a6e04cb939f71cdc03a343975162bd6f94bfc11b85227bdb44e9576f5ba
EBUILD qwt-4.2.0-r3.ebuild 1731 RMD160 c23f69e254d00c1b7d87eae4f13547e1fd14ea4e SHA1 24b59d50a6e9b18ab5db484c912a728f015d0cc6 SHA256 5cdcbf41136c96bfd1c31b2033d0d509afe8e357b4225cde603e3dd5134a6b33
-EBUILD qwt-4.2.0.ebuild 1541 RMD160 a23ba4d0f4b143d700b9367a60e9af34044f3016 SHA1 d918dfb43b0736cb6eeeb9c3e337d5b0a0342fcb SHA256 c5936a3ec2d8a862ebb40a0a982309bae59f524033f8ebd029feea2480b43237
EBUILD qwt-5.0.2-r1.ebuild 1309 RMD160 a4d1ea5077a74f12097d8aa66e82057fc72c9931 SHA1 a07eff94b3dfa00d59565744fef76aac7679e85e SHA256 c8c22bb11f497cc9d655eefb3d81aab4679a656569ea1bc420d569f473a6c49d
-EBUILD qwt-5.1.0.ebuild 1311 RMD160 919dce3047f6313c6dd0e7d91f752dd5b2902cf7 SHA1 2d816c88544cbfe1f2ca7638a6c53531f4d14400 SHA256 daa7a46409be146a1d11646d1876446c0a638ba3851a66ebaf3512160b3bab8b
EBUILD qwt-5.1.1.ebuild 1313 RMD160 de81d5125a37a7dfe284eae7fdd47e22c027c187 SHA1 f9a82d5a9d6bcbe3bc81d06a8c57d2ef7a843a30 SHA256 cbc6e67d6ed28ee039cc39f8d06e0edcf37ef9075a2c3009e36fbbf0ee0a0408
-MISC ChangeLog 9017 RMD160 c3c605d772aa1a1b9259769bc1798f311bb8d85d SHA1 49b1712f87948105b6b1d42a71ea75a7a0007713 SHA256 8b2f394d6b3faaa62e4e2c091cecbfd4829ad5a22394af95682c55c523500241
-MISC metadata.xml 217 RMD160 e6d054499f7788f954fa7941c8083d3cb12be55a SHA1 97a424e615a1e5536b7666dbc716040de4208a0a SHA256 87a4f33db3485f493febd11c563b8f811b2eaeac8183a3e50183df6387eff4b9
+EBUILD qwt-5.1.2.ebuild 1757 RMD160 fb84343c888ae63bf9888debe2d384d382b6b65a SHA1 b6d1cded6cfb3162dcc2484e9b120be9ce8ced42 SHA256 932e6d27116279d636a34db553900764481f7b08e6b4a2193925ccc94b23006f
+EBUILD qwt-5.2.0.ebuild 1757 RMD160 aac5140c432ff1b025277d25f8a472ae93026fac SHA1 9dcf8983c2508c31018d07309968c6bf74efcdb1 SHA256 d7a85da3798f3c93240f433008ce6d14da8592b3d890fcb94a8ccd517f28683a
+MISC ChangeLog 9304 RMD160 a91abdde384ca2c194dd319d5a68091bcf4131ba SHA1 b0c1fb0afabccadd0bd175a0f74e210f66a958eb SHA256 7c6b7d0b909dd946dab9cf85d56bb6134ce9fb24403a6b551fdfd7229c589785
+MISC metadata.xml 571 RMD160 2ef0c7bb35f8fde02a6ccf3c38c0acf19ccc8e9e SHA1 ad1e497d0dd5259530cf9aa41cdc889beeaa4be8 SHA256 4b9a169d00bc61ed3c4c0deff8aefea170b47910180202342f6e02a84190701c
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v2.0.11 (GNU/Linux)
+
+iEYEARECAAYFAknbmOEACgkQ1ycZbhPLE2AMRwCeNA1ep0RwOASdADEORRdS2zWB
+SFEAoLQAsoX4t48q8KzWq1hUHzfsf61y
+=h1bn
+-----END PGP SIGNATURE-----
diff --git a/x11-libs/qwt/metadata.xml b/x11-libs/qwt/metadata.xml
index c0ae12a3d916..2b8d0362f478 100644
--- a/x11-libs/qwt/metadata.xml
+++ b/x11-libs/qwt/metadata.xml
@@ -5,4 +5,11 @@
<maintainer>
<email>caleb@gentoo.org</email>
</maintainer>
+<longdescription lang="en">
+ The Qwt library contains GUI Components and utility classes which are
+ primarily useful for programs with a technical background.
+ Besides a 2D plot widget it provides scales, sliders, dials,
+ compasses, thermometers, wheels and knobs to control or display
+ values, arrays or ranges of type double.
+</longdescription>
</pkgmetadata>
diff --git a/x11-libs/qwt/qwt-4.2.0-r1.ebuild b/x11-libs/qwt/qwt-4.2.0-r1.ebuild
deleted file mode 100644
index c93150193ba2..000000000000
--- a/x11-libs/qwt/qwt-4.2.0-r1.ebuild
+++ /dev/null
@@ -1,57 +0,0 @@
-# Copyright 1999-2008 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-r1.ebuild,v 1.10 2008/05/15 12:53:55 grozin Exp $
-
-inherit multilib
-
-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="amd64 ia64 ~ppc ppc64 x86"
-SLOT="0"
-IUSE="doc"
-
-S="${WORKDIR}/${PN}-${MY_PV}"
-QWTVER="4.2.0"
-
-DEPEND="=x11-libs/qt-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/qwt"
- done
-}
-
-src_compile () {
- addwrite ${QTDIR}/etc/settings
- ${QTDIR}/bin/qmake QMAKE=${QTDIR}/bin/qmake qwt.pro
- emake || die
- cd designer
- ${QTDIR}/bin/qmake QMAKE=${QTDIR}/bin/qmake qwtplugin.pro
- emake || die
-}
-
-src_install () {
- ls -l lib
- dolib lib/libqwt.so.${QWTVER}
- dosym libqwt.so.${QWTVER} /usr/$(get_libdir)/libqwt.so
- dosym libqwt.so.${QWTVER} /usr/$(get_libdir)/libqwt.so.${QWTVER/.*/}
- use doc && (dodir /usr/share/doc/${PF}
- cp -pPR examples "${D}"/usr/share/doc/${PF}/
- 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
-}
diff --git a/x11-libs/qwt/qwt-4.2.0-r2.ebuild b/x11-libs/qwt/qwt-4.2.0-r2.ebuild
deleted file mode 100644
index a1eb361ddc51..000000000000
--- a/x11-libs/qwt/qwt-4.2.0-r2.ebuild
+++ /dev/null
@@ -1,70 +0,0 @@
-# Copyright 1999-2008 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-r2.ebuild,v 1.2 2008/07/28 21:48:46 carlo Exp $
-
-EAPI=1
-
-inherit multilib qt3
-
-SRC_URI="mirror://sourceforge/qwt/${P}.tar.bz2"
-HOMEPAGE="http://qwt.sourceforge.net/"
-DESCRIPTION="2D plotting library for Qt"
-LICENSE="qwt"
-KEYWORDS="~amd64 ~ia64 ~ppc ~ppc64 ~x86"
-SLOT="0"
-IUSE="doc examples"
-
-DEPEND="x11-libs/qt:3"
-
-src_compile () {
- # Remove hardcoded -fno-exceptions from CXXFLAGS
- find . -type f -name "*.pro" | while read file; do
- sed -i -e 's/-fno-exceptions//g' ${file} \
- || die "sed failed"
- done
-
- # Set include path for bundled examples
- find examples -type f -name "*.pro" | while read file; do
- echo >> ${file} "INCLUDEPATH += /usr/include/qwt"
- done
-
- eqmake3
- emake || die "emake failed"
-
- cd designer
- eqmake3 qwtplugin.pro
- emake || die "emake designer failed"
-}
-
-src_install () {
- local QWTVER="${PV}"
-
- # Library and symlinks
- dolib.so lib/libqwt.so.${QWTVER} \
- || die "dolib libqwt.so.${QWTVER} failed"
- dosym libqwt.so.${QWTVER} /usr/$(get_libdir)/libqwt.so
- dosym libqwt.so.${QWTVER} /usr/$(get_libdir)/libqwt.so.${QWTVER%%.*}
- dosym libqwt.so.${QWTVER} /usr/$(get_libdir)/libqwt.so.${QWTVER%.*}
-
- # Header files
- dodir /usr/include/qwt
- insinto /usr/include/qwt
- doins include/* || die "headers installation failed"
-
- # Designer plugin
- insinto "${QTDIR}"/plugins/designer
- insopts -m0755
- doins designer/plugins/designer/libqwtplugin.so \
- || die "designer plugin installation failed"
-
- dodoc CHANGES README
-
- if use doc; then
- doman doc/man/man3/* || die "doman failed"
- dohtml doc/html/* || die "dohtml failed"
- fi
-
- if use examples; then
- cp -pPR examples "${D}"/usr/share/doc/${PF}/
- fi
-}
diff --git a/x11-libs/qwt/qwt-4.2.0.ebuild b/x11-libs/qwt/qwt-4.2.0.ebuild
deleted file mode 100644
index 9e202b6e0b63..000000000000
--- a/x11-libs/qwt/qwt-4.2.0.ebuild
+++ /dev/null
@@ -1,55 +0,0 @@
-# Copyright 1999-2008 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.ebuild,v 1.9 2008/05/15 12:53:55 grozin Exp $
-
-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="~amd64 ppc x86"
-SLOT="0"
-IUSE="doc"
-
-S="${WORKDIR}/${PN}-${MY_PV}"
-QWTVER="4.2.0"
-
-DEPEND="=x11-libs/qt-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/qwt"
- done
-}
-
-src_compile () {
- addwrite ${QTDIR}/etc/settings
- ${QTDIR}/bin/qmake QMAKE=${QTDIR}/bin/qmake qwt.pro
- emake || die
- cd designer
- ${QTDIR}/bin/qmake QMAKE=${QTDIR}/bin/qmake qwtplugin.pro
- emake || die
-}
-
-src_install () {
- ls -l lib
- 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 -pPR examples "${D}"/usr/share/doc/${PF}/
- 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
-}
diff --git a/x11-libs/qwt/qwt-5.1.0.ebuild b/x11-libs/qwt/qwt-5.1.0.ebuild
deleted file mode 100644
index ff2054ae90f9..000000000000
--- a/x11-libs/qwt/qwt-5.1.0.ebuild
+++ /dev/null
@@ -1,47 +0,0 @@
-# Copyright 1999-2008 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/x11-libs/qwt/qwt-5.1.0.ebuild,v 1.3 2008/07/30 15:20:26 jer Exp $
-
-inherit multilib qt4
-
-EAPI=1
-
-SRC_URI="mirror://sourceforge/qwt/${P}.tar.bz2"
-HOMEPAGE="http://qwt.sourceforge.net/"
-DESCRIPTION="2D plotting library for Qt4"
-LICENSE="qwt"
-KEYWORDS="~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86"
-SLOT="5"
-IUSE="doc svg"
-
-DEPEND="|| (
- ( x11-libs/qt-gui:4
- svg? ( x11-libs/qt-svg:4 ) )
- =x11-libs/qt-4.3*:4 )"
-
-src_compile () {
- # Configuration file
- qwtconfig="${S}"/qwtconfig.pri
-
- echo > ${qwtconfig} ""
- echo >> ${qwtconfig} "target.path = /usr/$(get_libdir)"
- echo >> ${qwtconfig} "headers.path = /usr/include/qwt5"
- echo >> ${qwtconfig} "doc.path = /usr/share/doc/${PF}"
- echo >> ${qwtconfig}
- echo >> ${qwtconfig} "CONFIG += qt warn_on thread"
- echo >> ${qwtconfig} "CONFIG += QwtDll QwtPlot QwtWidgets QwtDesigner"
-
- use svg && echo >> ${qwtconfig} "CONFIG += QwtSVGItem"
- use doc || echo >> src/src.pro "INSTALLS -= doc"
-
- # Generates top-level Makefile
- eqmake4
-
- # -j1 due to parallel build failures ( bug # 170625 )
- emake -j1 || die "emake failed"
-}
-
-src_install () {
- emake INSTALL_ROOT="${D}" install || die "emake install failed"
- dodoc CHANGES README
-}
diff --git a/x11-libs/qwt/qwt-5.1.2.ebuild b/x11-libs/qwt/qwt-5.1.2.ebuild
new file mode 100644
index 000000000000..d2274391bfbe
--- /dev/null
+++ b/x11-libs/qwt/qwt-5.1.2.ebuild
@@ -0,0 +1,66 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/x11-libs/qwt/qwt-5.1.2.ebuild,v 1.1 2009/04/07 18:18:00 bicatali Exp $
+
+EAPI=2
+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="~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 = /usr/$(get_libdir)
+ headers.path = /usr/include/qwt5
+ doc.path = /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 += /usr/include/qwt5
+ DEPENDPATH += /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
+}
diff --git a/x11-libs/qwt/qwt-5.2.0.ebuild b/x11-libs/qwt/qwt-5.2.0.ebuild
new file mode 100644
index 000000000000..c0fc22d6a8db
--- /dev/null
+++ b/x11-libs/qwt/qwt-5.2.0.ebuild
@@ -0,0 +1,66 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/x11-libs/qwt/qwt-5.2.0.ebuild,v 1.1 2009/04/07 18:18:00 bicatali Exp $
+
+EAPI=2
+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="~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 = /usr/$(get_libdir)
+ headers.path = /usr/include/qwt5
+ doc.path = /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 += /usr/include/qwt5
+ DEPENDPATH += /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
+}