summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin Lecher <jlec@gentoo.org>2013-03-04 18:30:59 +0000
committerJustin Lecher <jlec@gentoo.org>2013-03-04 18:30:59 +0000
commitc61b7775ea77f470a6758be9afe18cc86ccf7104 (patch)
tree402bd09b059218220ffe86324c2ca8e117458f10 /x11-libs/qwt
parentMarking curl-7.29.0-r1 ppc for bug 456074 (diff)
downloadhistorical-c61b7775ea77f470a6758be9afe18cc86ccf7104.tar.gz
historical-c61b7775ea77f470a6758be9afe18cc86ccf7104.tar.bz2
historical-c61b7775ea77f470a6758be9afe18cc86ccf7104.zip
x11-libs/qwt: Version Bump, #460200; build static libs, #260324
Package-Manager: portage-2.2.0_alpha165/cvs/Linux x86_64 Manifest-Sign-Key: 0x8009D6F070EB7916
Diffstat (limited to 'x11-libs/qwt')
-rw-r--r--x11-libs/qwt/ChangeLog8
-rw-r--r--x11-libs/qwt/Manifest31
-rw-r--r--x11-libs/qwt/metadata.xml10
-rw-r--r--x11-libs/qwt/qwt-5.2.3.ebuild88
-rw-r--r--x11-libs/qwt/qwt-6.0.1-r1.ebuild89
-rw-r--r--x11-libs/qwt/qwt-6.0.1.ebuild89
6 files changed, 109 insertions, 206 deletions
diff --git a/x11-libs/qwt/ChangeLog b/x11-libs/qwt/ChangeLog
index 9d528e7dd5ae..3164b9339a60 100644
--- a/x11-libs/qwt/ChangeLog
+++ b/x11-libs/qwt/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for x11-libs/qwt
# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/x11-libs/qwt/ChangeLog,v 1.105 2013/03/02 23:46:23 hwoarang Exp $
+# $Header: /var/cvsroot/gentoo-x86/x11-libs/qwt/ChangeLog,v 1.106 2013/03/04 18:30:58 jlec Exp $
+
+*qwt-5.2.3 (04 Mar 2013)
+
+ 04 Mar 2013; Justin Lecher <jlec@gentoo.org> +qwt-5.2.3.ebuild,
+ -qwt-6.0.1.ebuild, -qwt-6.0.1-r1.ebuild, metadata.xml:
+ Version Bump, #460200; build static libs, #260324
02 Mar 2013; Markos Chandras <hwoarang@gentoo.org> qwt-5.2.1.ebuild,
qwt-6.0.0.ebuild, qwt-6.0.1-r1.ebuild, qwt-6.0.1.ebuild, qwt-6.0.2.ebuild:
diff --git a/x11-libs/qwt/Manifest b/x11-libs/qwt/Manifest
index d4d7c70679b1..53100308a2bf 100644
--- a/x11-libs/qwt/Manifest
+++ b/x11-libs/qwt/Manifest
@@ -1,34 +1,21 @@
-----BEGIN PGP SIGNED MESSAGE-----
-Hash: SHA256
+Hash: SHA512
AUX qwt-6.0.2-invalid-read.patch 9447 SHA256 d063b36170af2c2ca12c44fa283cc1b387b97ce6c53f02f101db45ebed975b43 SHA512 e9912ec60d062bad89ecb74c0342815f8c7b351318df88120e7510e44224f52a1c89e8ab2bcafd6d8c418a7a3e67347b159d174d417cbebf4fa3377191d0f201 WHIRLPOOL 0a71af42f61e605f03c648dd21b74a3b3e6864ca956c9adf84eafe7d98ca6aec49ec23316137ea60a9d0c078f06ec39ac6ae3e02fc217b56b0d3f3f4608564f2
-DIST qwt-5.2.1.tar.bz2 1926453 SHA256 e2b8bb755404cb3dc99e61f3e2d7262152193488f5fbe88524eb698e11ac569f
+DIST qwt-5.2.1.tar.bz2 1926453 SHA256 e2b8bb755404cb3dc99e61f3e2d7262152193488f5fbe88524eb698e11ac569f SHA512 9c434a268c2599602462a5d77688b41627f62e117a7cb9a0c0c80dccb196b0bc00a04fbc18670905e2a1d7de9e343126b8105d8852ad85e2ea6de0c93fe65d5e WHIRLPOOL d859eb7afe3c79e937a9cd6bfa48ba74292e6edd6a5dd8094ded2b369be6b3be30c11b28a1f21b903626d5a85a33431e2f2f98e17c6e30cf429889f620aadf72
+DIST qwt-5.2.3.tar.bz2 1983725 SHA256 37feaf306753230b0d8538b4ff9b255c6fddaa3d6609ec5a5cc39a5a4d020ab7 SHA512 60545712790699b145a54baba4c40802d9a58bf5f68f997faed5027db6773a801097be8675e00b2af1de568e36e2e498db0a0310ac4877fd9f2b52871409dd49 WHIRLPOOL 01969f3e52c687b8db211c81c0865762fe908e49255f3517fc4731a8d3e6e1c738a8d18b8a43d8035314832693277cdc6303db2c5151be1385238812e6248ff6
DIST qwt-6.0.0.tar.bz2 2723203 SHA256 d041d63029ea5f6a64d06be9bfe788e5d8bed8bac1fa129d82466aa09ab4092e
-DIST qwt-6.0.1.tar.bz2 2437570 SHA256 3fe19dd5962d705632fc2ef616b009299de6cf1e702538296924dbfdc8003cb2 SHA512 36fdd5344203586daa8b8283b6ae743fedd3f0685bc3405295868288de66827695b5e31e9a54231a3fe8aa0f3b008f1d0961ff9d89a201a4f5b14f7376b17610 WHIRLPOOL 2c6cf1bf0431cae719860414bcd17d3e682fdee785980a435f0d7a1a1b45584d200be1e6dcc352f4f56d3aa17262eea59953bbdeb27f2b5c84d72fa6af6b8bcf
DIST qwt-6.0.2.tar.bz2 2688469 SHA256 2e699ac426d96aa14c86e4b7199d6b849c7f65010927ac9cf58f16761ee3281f SHA512 ddf5d50196cf8f3f33a2c935de891474d73b26e529bd4a8873d8c71d7d183242f9289f6ef4a0847c7ca067d30b593d0efc27944f77bb50027df932ea40e19c67 WHIRLPOOL 26e1de7bf7d56ebd72d82ba355a8b74bec289397d3ab70415f69974d7733756635564062a00a93df9763f1f9c14eff19de0aa0b6aec1dd4c098470ecd1381eea
EBUILD qwt-5.2.1.ebuild 1731 SHA256 410ca2d359f25911e19f2dd6d1f5316ed56b64e186dbc597410c3a59a03e63fc SHA512 f7ed4f67f3222e4b0e25923cfa539447ea85fc821a3d18e156e90916bd031d65b927f617340badcd288a1a5616e6e9d2879860a5d9544d179aa5f9e3ff0731c3 WHIRLPOOL 3f084ea222dc37c4997396ee334029c8edc5b4d23ddf29bdf94222e0108ce489ac441c47293694af8a0fe6458f7a33b89fc338d98ad641c125c4a0ed99d2d098
+EBUILD qwt-5.2.3.ebuild 2115 SHA256 6f638f8a6479b978a776b7a25115f733e6733f2421364a78cdcba3cbd68f8f0e SHA512 d99bdb13652cb82d7ac7791e230f31972285282f84418d925f4b3bd167a4300d7e9339652696e1141ff46d817b29dad98575bfeebd2d880d0243ff63f47dfc72 WHIRLPOOL 87d0bd19a3803053027609cf12d021d10a2399bf60af895e9c674b3e3dc5ba49868e602ab663afdebbae15966d6a3fcbb3840741b55a9a02924650bb61727911
EBUILD qwt-6.0.0.ebuild 2242 SHA256 a65665ab54e1e6db4c2d7d5a3f7688e07e5f3699bee51ba8b8ff9ca5eb673f5b SHA512 96f9e353dec7319375ad07b49a56164e1bf3236a4f9d1fe1f03beb20a6689c9c2d606a283b43f9a670bff963d4b9feac90e005c5f6cee1a26447d9a9992e1de7 WHIRLPOOL 362a3b10fb1fad2598ed5ec3aee6f78fbc0f48a997b3aff0dde84c59568e9d663b54435e2f0cac7b71c6f93974444eb37ced896daf2f2c2e80b3a3e201d5aab8
-EBUILD qwt-6.0.1-r1.ebuild 2250 SHA256 ec0e103b86767ecb5c58054754269c81a35a7368c4f1cb8e8a9da67ab5164fea SHA512 0d62b9b18330be0b93adec823fb4f93d6c6ef2ad5eadc0e78ac1c4e6cbb777896d2cab7d8b76c91c4f41f2d3e99b32c17b511bda1882c9cc17f5b145939feeae WHIRLPOOL 2ef0db92d96547d7cdd5684c49cc0e90acc55c810ad98c93e4b280cfa1ecb032f12102c7ef05d449ad68a7605fdc2a5944ccb5cae07940cb9a29bb7475b4a1ba
-EBUILD qwt-6.0.1.ebuild 2247 SHA256 bfbb8b522a01c4ac338b6f8a9fc02115962f0bf8aac85073a624bb77e2490372 SHA512 8b4937a410f180b7247afc9600852b1585ebb192c27ac80132bddc249ec3c34590ab7bcbeed06aca2d1847b00e5aec08b36577f074111267be33259cc6c88241 WHIRLPOOL 39d7b93c1c124f7ceb69d498dd5bb6b091d690f1f9839f9a7327a9236b7555732e5a32c19a49832c325751d6d4892a3d95a355d2441c35d6d64073e9894712e7
EBUILD qwt-6.0.2.ebuild 2559 SHA256 04c6dd9f29e1fa7cbac94335a2eab3f4b3e3b875bebb35d75e64950c29219ee3 SHA512 46896ebfb91336dc21e4be349870f8faa770cc2be0ea93fe73092c374f688eba2000dd387bb3f1527f1fbafb76b0605b9a3c19e300b902d19cd014f83583b664 WHIRLPOOL 70e7081c9eb7337afa269b823defc4a834b4e4308e0493997f97edd0fcb21337dfb99ead950f9bbedd6e11402a4dbbf9d196b245651aca8805a8e17ed9d7eed1
-MISC ChangeLog 13872 SHA256 0c58d93953965767e1253cbb5b3da703a6839387180c70c4e2922f216d37879a SHA512 ead219fa4d13e8b9b445c1931aec8077f9cc37412882669f4ba2d16990e3dd2a1088e39c786131f94980a43a9b9042895d1f0c2468bfc5ddf18afbe5bd125df4 WHIRLPOOL 130ac652d971221f8fb261c9e6a78b4fc8a9d633a29f8f2bc37b3ecebb38955614077486b018381002d5633fed54f8643a868cbadb537748aff71a65b4e5b0fe
-MISC metadata.xml 607 SHA256 d32b815a1c1ecf695e6e21eb333211b47dc1f90f2085a79f20c84f269866b90f SHA512 7fd11fb9c4cbd4b7352b05d6236f5d1ea9366482c1a8dab7e362b700b8ae6118fd5015202bd644b6700814266017d13e8211ff50e11456131382d40dffcc5afe WHIRLPOOL 6ca2131cac55ecda4af629061fbae655383ffc7b4fb83b38b10ef1cdecd9f64adf4ecce6b3f9e500280490825b842dee012f6f5abada88befcf98563d46c9252
+MISC ChangeLog 14070 SHA256 d5b24e02631e0bd000ecb6e5a1b5a8c50f7271c3e7ae1ecc3aef5078290c1cf8 SHA512 65a227482ff8ff4300897767db9ed820f6841cf1b68b418e007fb4e583f27cb221cbfd82068829a45ff4049664f0c8613ccf94a35f767e1873c04a435f4507cb WHIRLPOOL 423ba7e13c7e9c3d70a816b8acf1a9436b93a7dd5ddd4d2ad8a71a8d40b081bd528639118fef2863b0fb781386f620d7ce07e4c9f0152c117bcd5b0a1d1de215
+MISC metadata.xml 615 SHA256 143e1e3cfb374536ae429ca941b781a34060906c17144a72f95c6717c9f9dc91 SHA512 dce756ddd462905a17ff1504eb3615cf652e2da0dae7678689d5880940601a4ecce8dbc2808feb6de9061fbf602c8d8a19d0f17a3ea7e0ec4af38688a9a6d466 WHIRLPOOL e89713d285d300cd40c9691b3e36581d300fc7e5877d8c0c6e0013ea74e761354416e44a5137b2c234b20b2e6fa9e759e6127c9b182628679ce418d695b120de
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.19 (GNU/Linux)
-iQJ8BAEBCABmBQJRMo9OXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w
-ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQzNTVDNDczOUYzRjJEMTRGNDRGMzU2RkMw
-OUJGNEY1NEMyQkE3RjNDAAoJEAm/T1TCun88rYwQAMrPl0MS0xKj2LiYT/Dq4m5z
-7RpWCPXuqJ0ahjk5qo68qWJAC6q71HyPv6qed9/ka1KdApRDXwDyKfjPbXLHhirU
-efSEgp7jLxFLoHbTrdihywGZiOw+r7sxUR64x0/rjLDBycrwXBq4x2TByNW6agE5
-wE0V3rwCx1MV9GomiZMl/SLFVKiqwgGp++VqLiunjMZNwVCQvhiEzLcSL4ZDmAqa
-RjEhC2keJb3Z+L0OQuVMsBAA79KvJ+ac58W8towtQ/aeq9RkHzlMdkLjHnpVl99t
-+v1qa0SPr9H9Px+LlAb7R7BCoFYv5oPg+GnwrBTfW6remQZ9eSw2Zc4Q+FPjeD0s
-v2ULgMX7GC1Rmp+Tk2J/bG+lCpQTYpw0ScntLIwWRoiRsiy94AloW3aDwhUHLtd0
-+P/+xjZMsC53DZhahTR9elxDNGP0uYoThE6mvbrsx5L4Dc6k5Eqb+4yBgqsCUEVM
-GK051nF5YbnUkilN2XMSU1vn/n+NNOxrmu+r5BIzu9DXak7AcCrXumzk7X5muOOX
-VcxYdKWFtKcyoAA0dwlvdtOfctSYXylfTVRoE49zrv8fTu1tiXygEHsiHtDch1yH
-0l3UElF5Nbl0xjQl4rSfPv2Jq8fFtspkktDHxM013FVUUhyw32tdPQ7jFIUWFXhN
-nzfmNJL2U+PvldF7XOJX
-=teu9
+iEYEAREKAAYFAlE06GMACgkQgAnW8HDreRaDGACgzdl5a7TmAyQqY8dMrUAZHeTM
+y+sAn1mM7PRxsbLn6z1H2AyP5CyMbUXm
+=GAOh
-----END PGP SIGNATURE-----
diff --git a/x11-libs/qwt/metadata.xml b/x11-libs/qwt/metadata.xml
index 5927e4d57e6e..c4e96218194d 100644
--- a/x11-libs/qwt/metadata.xml
+++ b/x11-libs/qwt/metadata.xml
@@ -1,15 +1,15 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
- <herd>sci</herd>
- <longdescription lang="en">
+ <herd>sci</herd>
+ <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>
-<use>
- <flag name='mathml'>Use the MathML renderer of the Qt solutions package.</flag>
-</use>
+ <use>
+ <flag name="mathml">Use the MathML renderer of the Qt solutions package.</flag>
+ </use>
</pkgmetadata>
diff --git a/x11-libs/qwt/qwt-5.2.3.ebuild b/x11-libs/qwt/qwt-5.2.3.ebuild
new file mode 100644
index 000000000000..0adcf5fe7e5c
--- /dev/null
+++ b/x11-libs/qwt/qwt-5.2.3.ebuild
@@ -0,0 +1,88 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/x11-libs/qwt/qwt-5.2.3.ebuild,v 1.1 2013/03/04 18:30:58 jlec Exp $
+
+EAPI=5
+
+inherit eutils qt4-r2
+
+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 ~x86-macos"
+SLOT="5"
+IUSE="doc examples static-libs svg"
+
+DEPEND="
+ dev-qt/qtgui:4
+ doc? ( !<media-libs/coin-3.1.3[doc] )
+ svg? ( dev-qt/qtsvg:4 )"
+RDEPEND="${DEPEND}"
+
+DOCS="CHANGES README"
+
+src_prepare() {
+ sed -e "/QwtVersion/s:5.2.2.:${PV}:g" -i ${PN}.prf || die
+ 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
+ CONFIG += QwtPlot QwtWidgets QwtDesigner
+ VERSION = ${PV}
+ EOF
+ sed -i -e 's/headers doc/headers/' src/src.pro || die
+ use svg && echo >> qwtconfig.pri "CONFIG += QwtSVGItem"
+}
+
+src_compile() {
+ building() {
+ # split compilation to allow parallel building
+ emake sub-src
+ emake
+ }
+ building
+
+ if use static-libs; then
+ sed "/QwtDll/d" -i qwtconfig.pri || die
+ eqmake4
+ building
+ echo "CONFIG += QwtDll" >> qwtconfig.pri || die
+ fi
+}
+
+src_test() {
+ cd examples || die
+ eqmake4 examples.pro
+ emake
+}
+
+src_install () {
+ qt4-r2_src_install
+
+ use static-libs && dolib.a lib/libqwt.a
+
+ insinto /usr/share/doc/${PF}
+ if use doc; then
+ rm doc/man/*/*license*
+ doman doc/man/*/*
+ doins -r doc/html
+ fi
+ if use examples; then
+ # 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
+ cp qwtconfig.pri examples/qwtconfig.pri || die
+ doins -r examples
+ fi
+}
diff --git a/x11-libs/qwt/qwt-6.0.1-r1.ebuild b/x11-libs/qwt/qwt-6.0.1-r1.ebuild
deleted file mode 100644
index 0a0a08fea39b..000000000000
--- a/x11-libs/qwt/qwt-6.0.1-r1.ebuild
+++ /dev/null
@@ -1,89 +0,0 @@
-# Copyright 1999-2013 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/x11-libs/qwt/qwt-6.0.1-r1.ebuild,v 1.2 2013/03/02 23:46:23 hwoarang Exp $
-
-EAPI=4
-
-inherit eutils qt4-r2
-
-MY_P="${PN}-${PV/_/-}"
-
-DESCRIPTION="2D plotting library for Qt4"
-HOMEPAGE="http://qwt.sourceforge.net/"
-SRC_URI="mirror://sourceforge/project/${PN}/${PN}/${PV/_/-}/${MY_P}.tar.bz2"
-
-LICENSE="qwt"
-KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-macos"
-SLOT="6"
-IUSE="doc examples svg"
-
-DEPEND="
- dev-qt/qtgui:4
- doc? ( !<media-libs/coin-3.1.3[doc] )
- svg? ( dev-qt/qtsvg:4 )"
-RDEPEND="${DEPEND}"
-
-S="${WORKDIR}"/${MY_P}
-
-DOCS="CHANGES README"
-
-src_prepare() {
- cat > qwtconfig.pri <<-EOF
- QWT_INSTALL_LIBS = "${EPREFIX}/usr/$(get_libdir)"
- QWT_INSTALL_HEADERS = "${EPREFIX}/usr/include/qwt6"
- QWT_INSTALL_DOCS = "${EPREFIX}/usr/share/doc/${PF}"
- QWT_CONFIG += QwtDll QwtPlot QwtWidgets QwtDesigner
- VERSION = ${PV/_*}
- QWT_INSTALL_PLUGINS = "${EPREFIX}/usr/$(get_libdir)/qt4/plugins/designer6"
- QWT_INSTALL_FEATURES = "${EPREFIX}/usr/$(get_libdir)/qt4/features6"
- EOF
-
- cat > qwtbuild.pri <<-EOF
- QWT_CONFIG += qt warn_on thread release no_keywords
- 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/qwt6"
- DEPENDPATH += "${EPREFIX}/usr/include/qwt6"
- LIBS += -lqwt
- EOF
- sed -i -e 's:../qwtconfig:qwtconfig:' examples/examples.pro || die
- sed \
- -e 's/target doc/target/' \
- -i src/src.pro || die
-
- # Renaming lib to libqwt6.so to enable slotting
- sed \
- -e "/^TARGET/s:qwt:qwt6:g" \
- -i src/src.pro || die
- sed \
- -e '/qtAddLibrary/s:qwt:qwt6:g' \
- -i qwt.prf designer/designer.pro || die
- sed \
- -e 's:libqwt:libqwt6:g' \
- -i qwtbuild.pri || die
-
- use svg && echo "QWT_CONFIG += QwtSvg" >> qwtconfig.pri
- cp *.pri examples/ || die
-}
-
-src_compile() {
- # split compilation to allow parallel building
- emake sub-src
- emake
-}
-
-src_install () {
- qt4-r2_src_install
- if use doc; then
- dohtml -r doc/html/*
- fi
- if use examples; then
- insinto /usr/share/doc/${PF}
- doins -r examples
- fi
-}
diff --git a/x11-libs/qwt/qwt-6.0.1.ebuild b/x11-libs/qwt/qwt-6.0.1.ebuild
deleted file mode 100644
index 489172f087ce..000000000000
--- a/x11-libs/qwt/qwt-6.0.1.ebuild
+++ /dev/null
@@ -1,89 +0,0 @@
-# Copyright 1999-2013 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/x11-libs/qwt/qwt-6.0.1.ebuild,v 1.4 2013/03/02 23:46:23 hwoarang Exp $
-
-EAPI=4
-
-inherit eutils qt4-r2
-
-MY_P="${PN}-${PV/_/-}"
-
-DESCRIPTION="2D plotting library for Qt4"
-HOMEPAGE="http://qwt.sourceforge.net/"
-SRC_URI="mirror://sourceforge/project/${PN}/${PN}/${PV/_/-}/${MY_P}.tar.bz2"
-
-LICENSE="qwt"
-KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-macos"
-SLOT="6"
-IUSE="doc examples svg"
-
-DEPEND="
- dev-qt/qtgui:4
- doc? ( !<media-libs/coin-3.1.3[doc] )
- svg? ( dev-qt/qtsvg:4 )"
-RDEPEND="${DEPEND}"
-
-S="${WORKDIR}"/${MY_P}
-
-DOCS="CHANGES README"
-
-src_prepare() {
- cat > qwtconfig.pri <<-EOF
- QWT_INSTALL_LIBS = "${EPREFIX}/usr/$(get_libdir)"
- QWT_INSTALL_HEADERS = "${EPREFIX}/usr/include/qwt6"
- QWT_INSTALL_DOCS = "${EPREFIX}/usr/share/doc/${PF}"
- QWT_CONFIG += QwtDll QwtPlot QwtWidgets QwtDesigner
- VERSION = ${PV/_*}
- QWT_INSTALL_PLUGINS = "${EPREFIX}/usr/$(get_libdir)/qt4/plugins/designer6"
- QWT_INSTALL_FEATURES = "${EPREFIX}/usr/$(get_libdir)/qt4/features6"
- EOF
-
- cat > qwtbuild.pri <<-EOF
- QWT_CONFIG += qt warn_on thread release no_keywords
- 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/qwt6"
- DEPENDPATH += "${EPREFIX}/usr/include/qwt6"
- LIBS += -lqwt
- EOF
- sed -i -e 's:../qwtconfig:qwtconfig:' examples/examples.pro || die
- sed \
- -e 's/target doc/target/' \
- -i src/src.pro || die
-
- # Renaming lib to libqwt6.so to enable slotting
- sed \
- -e "/^TARGET/s:qwt:qwt6:g" \
- -i src/src.pro || die
- sed \
- -e '/qtAddLibrary/s:qwt:qwt6:g' \
- -i qwt.prf designer/designer.pro || die
- sed \
- -e 's:libqwt:libqwt6:g' \
- -i qwtbuild.pri || die
-
- use svg && echo "QWT_CONFIG += QwtSvg" >> qwtconfig.pri
- cp *.pri examples/ || die
-}
-
-src_compile() {
- # split compilation to allow parallel building
- emake sub-src
- emake
-}
-
-src_install () {
- qt4-r2_src_install
- if use doc; then
- dohtml -r doc/html/*
- fi
- if use examples; then
- insinto /usr/share/doc/${PF}
- doins -r examples
- fi
-}