summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin Lecher <jlec@gentoo.org>2010-10-10 16:55:37 +0000
committerJustin Lecher <jlec@gentoo.org>2010-10-10 16:55:37 +0000
commit455a2b23271c924ba5c8e0dd8ff1d126076050dc (patch)
tree844809db1d9828e5de4e373ba2f82fa04937ba60 /sci-visualization/qtiplot
parentInclude kpathsea/version.h when available. Fixes a build failure with TeX Liv... (diff)
downloadhistorical-455a2b23271c924ba5c8e0dd8ff1d126076050dc.tar.gz
historical-455a2b23271c924ba5c8e0dd8ff1d126076050dc.tar.bz2
historical-455a2b23271c924ba5c8e0dd8ff1d126076050dc.zip
Removed old, Corrected qt-assistent-4.7 DEP, 335756; keyworded for ~-linux prefix
Package-Manager: portage-2.2_rc91/cvs/Linux x86_64
Diffstat (limited to 'sci-visualization/qtiplot')
-rw-r--r--sci-visualization/qtiplot/ChangeLog7
-rw-r--r--sci-visualization/qtiplot/Manifest16
-rw-r--r--sci-visualization/qtiplot/qtiplot-0.9.7.12.ebuild186
-rw-r--r--sci-visualization/qtiplot/qtiplot-0.9.7.14-r1.ebuild4
-rw-r--r--sci-visualization/qtiplot/qtiplot-0.9.8.2.ebuild6
-rw-r--r--sci-visualization/qtiplot/qtiplot-0.9.8.ebuild191
6 files changed, 17 insertions, 393 deletions
diff --git a/sci-visualization/qtiplot/ChangeLog b/sci-visualization/qtiplot/ChangeLog
index 712140a0205d..0ac6ca0c653e 100644
--- a/sci-visualization/qtiplot/ChangeLog
+++ b/sci-visualization/qtiplot/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for sci-visualization/qtiplot
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sci-visualization/qtiplot/ChangeLog,v 1.68 2010/09/19 19:41:02 jlec Exp $
+# $Header: /var/cvsroot/gentoo-x86/sci-visualization/qtiplot/ChangeLog,v 1.69 2010/10/10 16:55:37 jlec Exp $
+
+ 10 Oct 2010; Justin Lecher <jlec@gentoo.org> -qtiplot-0.9.7.12.ebuild,
+ qtiplot-0.9.7.14-r1.ebuild, -qtiplot-0.9.8.ebuild, qtiplot-0.9.8.2.ebuild:
+ Removed old, Corrected qt-assistent-4.7 DEP, 335756; keyworded for ~-linux
+ prefix
19 Sep 2010; Justin Lecher <jlec@gentoo.org> qtiplot-0.9.8.2.ebuild:
Removed not really needed dependencies for python support, 337471
diff --git a/sci-visualization/qtiplot/Manifest b/sci-visualization/qtiplot/Manifest
index 4c254985abf5..38fc3e9f82c2 100644
--- a/sci-visualization/qtiplot/Manifest
+++ b/sci-visualization/qtiplot/Manifest
@@ -9,20 +9,16 @@ AUX qtiplot-0.9.7.14-system-2dplot.patch 4757 RMD160 2186cceedd7693c384418cfcd38
AUX qtiplot-0.9.7.14-system-liborigin.patch 4089 RMD160 1473539c2146766b43f1cfea7e31c3bb0e2602bf SHA1 2280685fb5fe59c300eebfc16c5e2cc08a259833 SHA256 d268297f50bbde162b66c1fd9fff93f54cbc73ce988ee88e25203a5e06b671c9
AUX qtiplot-0.9.8.2-origin-build-failure.patch 2472 RMD160 a66c6f704ce7227939bb2c790361221294cef5ac SHA1 51ac749b14b5bc5988732841db76c142b61ec940 SHA256 98822a3f784207d205e127b8a37d091f1da2a61476aefe49ec57ae687b1e7f63
AUX qtiplot-0.9.8.2-syslibs.patch 572 RMD160 98cd19606d7badb89b70d5024c06e2b9a6a81345 SHA1 3a01e6169da7429a67054e1980d4a1b48b1a840d SHA256 5d478fac2785f2b79273fff83dbd5030aa2a376cb277782adeefeb40bb5d536d
-DIST qtiplot-0.9.7.12.tar.bz2 8221079 RMD160 af04944a1a6671e3133d0a8caec0f4c430f452ff SHA1 fe54f737ac857a470f7f00a53a73270d20f203a9 SHA256 29cf8e3dbd5539019b3351893c8b2fafa1e1283333d4b055b711b3a7ea85d935
DIST qtiplot-0.9.7.14.tar.bz2 8119824 RMD160 09bf50211c77159dad674fcab4f9772fe4267947 SHA1 3e31b2c3fea827a573da96fb50118e6d9cc33f4b SHA256 10edfe55651d0e82f87b10b53fe068cee54782d1df2cbf482a7bafcc27eb3d18
DIST qtiplot-0.9.8.2.tar.bz2 8244887 RMD160 0ee5e9f5eb50c44b2666cf904ef7ff23850c4c0b SHA1 dd8d1003cee8767d4ba9e616e5263da1302c290d SHA256 f544a42a1b103c1fb8cf28f00313fc984fac6ed5d7748a511e726410612e2c02
-DIST qtiplot-0.9.8.tar.bz2 8142801 RMD160 0e56a5b156c4f8b571732bd94bda03be2915305a SHA1 c843de346e35b7566e95060dc1d6d395ee34be96 SHA256 21998c27afc76e5185c727223910c5107c9590d3fa0eefbdab3af2dee1e5cc44
-EBUILD qtiplot-0.9.7.12.ebuild 5066 RMD160 f480906116b250db12db84575373f323c86a5390 SHA1 f89f3d6363e481162c0b3572e1fe97d4fcaae386 SHA256 52525b5e0906b2faf834ce026ac26ddf4c9ff9e20d938d1932dfdf09e39808a3
-EBUILD qtiplot-0.9.7.14-r1.ebuild 5216 RMD160 0d7e921ebc68affb37ba1cddab6fe0cbff8d1fc0 SHA1 a7a5ae1be9708349f736a06e845671adcf17c48b SHA256 9bb984990c75c6321a0b67fd79046aa9aab33e2643a1d54f535a2de4156fb707
-EBUILD qtiplot-0.9.8.2.ebuild 5319 RMD160 165d9a7708b1a6d0e326e58ed61d63ef3206e623 SHA1 ca7e402c0f5a659328ff8b63cd245420af1ed832 SHA256 1ab23b208fd5390c1d702e47c9e9cdc8580cac0e42f640dcec0f046549fb2ccd
-EBUILD qtiplot-0.9.8.ebuild 5059 RMD160 c44951012c2203bbc0c17f43c61314446d56cc2b SHA1 3c8fae446010f7bb344cd3648d53bde7a2d07a91 SHA256 f55305a0612f40c2665dd9b62621c738b933c0147474731580b909b8ba12924d
-MISC ChangeLog 17743 RMD160 3e7f7d8c79a64d034557d34e9a32263b66adb4ea SHA1 2e1a9b2e20e2f56dd31ef563bac0ae5524e30f50 SHA256 c0537ae943208429f8e8121b5ecb108f3f574fcc31dd17416728308e3adbc2bb
+EBUILD qtiplot-0.9.7.14-r1.ebuild 5266 RMD160 dda37270380e55ce41764387d0193e93b2bbba81 SHA1 60ca72cace34bb6bb6bdbddc93f5dcff48ac2870 SHA256 eb69b81789638963f55715b2d5c54972580c0279dd066324830231334e1c550f
+EBUILD qtiplot-0.9.8.2.ebuild 5397 RMD160 654fbeb7e6037f2012a8a54223a82c812049862d SHA1 06e915ed50379d1c4e69ef06d845b99a20c9f8d0 SHA256 e3a3fa9665089ae626f72c0bf438e65f65d8cf1a0f8b9123c0d445b589b0896e
+MISC ChangeLog 17980 RMD160 0d7b412c9024d57b39cd98e8615d068d4ecf12ee SHA1 af9a1c0bea3819f1c11db7e1b24706719861967e SHA256 5084057cae7a1192a0478048745605e120b815cc3170cbed3d65000f3d85a0ad
MISC metadata.xml 857 RMD160 f0b19f02132816e5a98dade3c25c17b578ef5f33 SHA1 1a7a0769a7989384e15a2d098441966630652866 SHA256 d001c7b867a7bbc14047fc029821afe1dde7a65e2e8d146c3f467c57da26d24a
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.16 (GNU/Linux)
-iEYEARECAAYFAkyWZ1MACgkQgAnW8HDreRZP5ACgpG6QguukFnKHrPU5BIODGIhy
-pt4An0rKiFa4lNOyWZR3F5uBVzYo81x1
-=iAxm
+iEYEARECAAYFAkyx8A8ACgkQgAnW8HDreRbbRQCeIzmNc8QflmGR/Nn73kW9Xkar
+zbMAnAxMe7uISqBURMHhWudSatdQ39aj
+=JVW+
-----END PGP SIGNATURE-----
diff --git a/sci-visualization/qtiplot/qtiplot-0.9.7.12.ebuild b/sci-visualization/qtiplot/qtiplot-0.9.7.12.ebuild
deleted file mode 100644
index 7152a43482a9..000000000000
--- a/sci-visualization/qtiplot/qtiplot-0.9.7.12.ebuild
+++ /dev/null
@@ -1,186 +0,0 @@
-# Copyright 1999-2010 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sci-visualization/qtiplot/qtiplot-0.9.7.12.ebuild,v 1.3 2010/05/18 13:52:51 arfrever Exp $
-
-EAPI=2
-inherit eutils qt4 fdo-mime python
-
-DESCRIPTION="Qt based clone of the Origin plotting package"
-HOMEPAGE="http://soft.proindependent.com/qtiplot.html"
-SRC_URI="mirror://berlios/${PN}/${P}.tar.bz2"
-
-LICENSE="GPL-2 GPL-3"
-SLOT="0"
-KEYWORDS="amd64 x86"
-IUSE="doc python ods xls"
-
-LANGS="cn cz de es fr ro ru ja sv"
-for l in ${LANGS}; do
- lu=${l/cz/cs}
- lu=${lu/cn/zh_CN}
- IUSE="${IUSE} linguas_${lu}"
-done
-
-# qwtplot3d much modified from original upstream
-# >=x11-libs/qwt-5.3 they are using trunk checkouts
-CDEPEND="
- x11-libs/qt-opengl:4
- x11-libs/qt-qt3support:4
- x11-libs/qt-assistant:4
- x11-libs/qt-svg:4
- >=x11-libs/gl2ps-1.3.5
- >=dev-cpp/muParser-1.32
- >=dev-libs/boost-1.35.0
- >=sci-libs/liborigin-20090406:2
- sci-libs/gsl
- dev-libs/boost
- dev-tex/qtexengine
- xls? ( dev-libs/libxls )
- ods? ( dev-libs/quazip )"
-# Still unable to build
-# emf? ( media-libs/libemf
-# media-libs/emfengine )
-
-DEPEND="${CDEPEND}
- dev-util/pkgconfig
- python? ( >=dev-python/sip-4.9 )
- doc? ( app-text/docbook-sgml-utils
- >=app-text/docbook-xml-dtd-4.4-r2:4.4 )"
-
-RDEPEND="${CDEPEND}
- python? ( >=dev-lang/python-2.5
- dev-python/PyQt4[X]
- dev-python/pygsl
- dev-python/rpy
- sci-libs/scipy )"
-
-PATCHES=(
- "${FILESDIR}/${P}-system-QTeXEngine.patch"
- "${FILESDIR}/${P}-system-liborigin.patch"
- "${FILESDIR}/${P}-system-gl2ps.patch"
- "${FILESDIR}/${PN}-0.9.7.10-dont-install-qwt.patch"
- )
-
-src_prepare() {
- qt4_src_prepare
-
- rm -rf 3rdparty/{liborigin,QTeXEngine,/qwtplot3d/3rdparty/gl2ps/}
-
- # Check build.conf for changes on bump.
- cat >build.conf <<-EOF
- # Automatically generated by Gentoo ebuild
- isEmpty( QTI_ROOT ) {
- message( "each file including this config needs to set QTI_ROOT to the dir containing this file!" )
- }
-
- MUPARSER_LIBS = \$\$system(pkg-config --libs muparser)
- GSL_LIBS = \$\$system(pkg-config --libs gsl)
- BOOST_INCLUDEPATH = /usr/include/boost
- BOOST_LIBS = -lboost_date_time-mt -lboost_thread-mt
- QWT_INCLUDEPATH = \$\$QTI_ROOT/3rdparty/qwt/src
- QWT_LIBS = \$\$QTI_ROOT/3rdparty/qwt/lib/libqwt.a
- QWT3D_INCLUDEPATH = \$\$QTI_ROOT/3rdparty/qwtplot3d/include
- QWT3D_LIBS = \$\$QTI_ROOT/3rdparty/qwtplot3d/lib/libqwtplot3d.a
- LIB_ORIGIN_INCLUDEPATH = /usr/include/liborigin2
- LIB_ORIGIN_LIBS = -lorigin2
- QTEXENGINE_LIBS = -lQTeXEngine
- SYS_LIBS = -lgl2ps
-
- PYTHON = python
- LUPDATE = lupdate
- LRELEASE = lrelease
-
- SCRIPTING_LANGS += muParser
-
- CONFIG += release
- CONFIG += CustomInstall
- DEFINES += SCRIPTING_CONSOLE
-
- EOF
-
- use python && echo "SCRIPTING_LANGS += Python" >> build.conf
- use xls && echo "XLS_LIBS = -lxlsreader" >> build.conf
- if use ods; then
- echo "QUAZIP_INCLUDEPATH = /usr/include/quazip" >> build.conf
- echo "QUAZIP_LIBS = -lquazip" >> build.conf
- fi
-
- sed '/^INSTALLS/d;' -i 3rdparty/qwtplot3d/qwtplot3d.pro || die
-
- # Fails to build...
- #if use emf; then
- # echo "EMF_ENGINE_INCLUDEPATH = /usr/include/libEMF" >> build.conf
- # echo "EMF_ENGINE_LIBS = -lEMF" >> build.conf
- #fi
-
- sed -e "s:doc/${PN}/manual:doc/${PN}/html:" \
- -e "s:/usr/local/${PN}:$(python_get_sitedir)/qtiplot:" \
- -i qtiplot/qtiplot.pro || die
-
- sed -e '/INSTALLS.*documentation/d' \
- -e '/INSTALLS.*manual/d' \
- -i qtiplot/qtiplot.pro || die
- sed -e '/manual/d' -i qtiplot.pro || die
-
- # Drop langs only if LINGUAS is not empty
- if [[ -n ${LINGUAS} ]]; then
- for l in ${LANGS}; do
- lu=${l/cz/cs}
- lu=${lu/cn/zh_CN}
- use linguas_${lu} || \
- sed -e "s:translations/qtiplot_${l}.[tq][sm]::" \
- -i qtiplot/qtiplot.pro || die
- done
- fi
- chmod -x qtiplot/qti_wordlist.txt
-
- # sed out debian paths
- sed -e 's:\(/usr/share/sgml/\)docbook/stylesheet/dsssl/modular\(/html/docbook.dsl\):\1stylesheets/dsssl/docbook\2:' \
- -i manual/qtiplot.dsl || die
- sed -e 's:\(/usr/share/\)xml/docbook/stylesheet/nwalsh\(/html/chunk.xsl\):\1sgml/docbook/xsl-stylesheets\2:' \
- -i manual/qtiplot_html.xsl || die
-}
-
-src_configure() {
- use amd64 && export QMAKESPEC="linux-g++-64"
- eqmake4
-}
-
-src_compile() {
- emake || die "emake failed"
- lrelease qtiplot/qtiplot.pro || die
- if use doc; then
- cd manual
- emake web || die "html docbook building failed"
- fi
-}
-
-src_install() {
- emake INSTALL_ROOT="${D}" install || die 'emake install failed'
- newicon qtiplot_logo.png qtiplot.png
- make_desktop_entry qtiplot "QtiPlot Scientific Plotting" qtiplot
- if use doc; then
- insinto /usr/share/doc/${PN}/html
- doins -r manual/html/* || die "install manual failed"
- fi
-
- if [[ -n ${LINGUAS} ]]; then
- insinto /usr/share/${PN}/translations
- for l in ${LANGS}; do
- lu=${l/cz/cs}
- lu=${lu/cn/zh_CN}
- use linguas_${lu} && \
- doins qtiplot/translations/qtiplot_${l}.qm
- done
- fi
-}
-
-pkg_postinst() {
- fdo-mime_desktop_database_update
- python_mod_optimize "$(python_get_sitedir)/qtiplot"
-}
-
-pkg_postrm() {
- fdo-mime_desktop_database_update
- python_mod_cleanup "$(python_get_sitedir)/qtiplot"
-}
diff --git a/sci-visualization/qtiplot/qtiplot-0.9.7.14-r1.ebuild b/sci-visualization/qtiplot/qtiplot-0.9.7.14-r1.ebuild
index 98e515709d67..fad34cfb7dc3 100644
--- a/sci-visualization/qtiplot/qtiplot-0.9.7.14-r1.ebuild
+++ b/sci-visualization/qtiplot/qtiplot-0.9.7.14-r1.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sci-visualization/qtiplot/qtiplot-0.9.7.14-r1.ebuild,v 1.3 2010/07/12 20:12:23 hwoarang Exp $
+# $Header: /var/cvsroot/gentoo-x86/sci-visualization/qtiplot/qtiplot-0.9.7.14-r1.ebuild,v 1.4 2010/10/10 16:55:37 jlec Exp $
EAPI=2
@@ -29,7 +29,7 @@ done
CDEPEND="
x11-libs/qt-opengl:4
x11-libs/qt-qt3support:4
- x11-libs/qt-assistant:4
+ || ( >=x11-libs/qt-assistant-4.7.0:4[compat] <x11-libs/qt-assistant-4.7.0:4 )
x11-libs/qt-svg:4
>=x11-libs/gl2ps-1.3.5
>=dev-cpp/muParser-1.32
diff --git a/sci-visualization/qtiplot/qtiplot-0.9.8.2.ebuild b/sci-visualization/qtiplot/qtiplot-0.9.8.2.ebuild
index 2ec6ec0dff13..191f87369507 100644
--- a/sci-visualization/qtiplot/qtiplot-0.9.8.2.ebuild
+++ b/sci-visualization/qtiplot/qtiplot-0.9.8.2.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sci-visualization/qtiplot/qtiplot-0.9.8.2.ebuild,v 1.3 2010/09/19 19:41:02 jlec Exp $
+# $Header: /var/cvsroot/gentoo-x86/sci-visualization/qtiplot/qtiplot-0.9.8.2.ebuild,v 1.4 2010/10/10 16:55:37 jlec Exp $
EAPI=3
@@ -14,7 +14,7 @@ SRC_URI="mirror://berlios/${PN}/${P}.tar.bz2"
LICENSE="GPL-2 GPL-3"
SLOT="0"
-KEYWORDS="~amd64 ~x86"
+KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
IUSE="doc python ods"
LANGS="cn cz de es fr ro ru ja sv"
@@ -29,7 +29,7 @@ done
CDEPEND="
x11-libs/qt-opengl:4
x11-libs/qt-qt3support:4
- x11-libs/qt-assistant:4
+ || ( >=x11-libs/qt-assistant-4.7.0:4[compat] <x11-libs/qt-assistant-4.7.0:4 )
x11-libs/qt-svg:4
>=x11-libs/gl2ps-1.3.5
>=dev-cpp/muParser-1.32
diff --git a/sci-visualization/qtiplot/qtiplot-0.9.8.ebuild b/sci-visualization/qtiplot/qtiplot-0.9.8.ebuild
deleted file mode 100644
index 4a967dc76339..000000000000
--- a/sci-visualization/qtiplot/qtiplot-0.9.8.ebuild
+++ /dev/null
@@ -1,191 +0,0 @@
-# Copyright 1999-2010 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sci-visualization/qtiplot/qtiplot-0.9.8.ebuild,v 1.3 2010/09/03 06:12:37 jlec Exp $
-
-EAPI=3
-
-PYTHON_DEPEND="python? 2"
-
-inherit eutils qt4-r2 fdo-mime python
-
-DESCRIPTION="Qt based clone of the Origin plotting package"
-HOMEPAGE="http://soft.proindependent.com/qtiplot.html"
-SRC_URI="mirror://berlios/${PN}/${P}.tar.bz2"
-
-LICENSE="GPL-2 GPL-3"
-SLOT="0"
-KEYWORDS="~amd64 ~x86"
-IUSE="doc python ods"
-
-LANGS="cn cz de es fr ro ru ja sv"
-for l in ${LANGS}; do
- lu=${l/cz/cs}
- lu=${lu/cn/zh_CN}
- IUSE="${IUSE} linguas_${lu}"
-done
-
-# qwtplot3d much modified from original upstream
-# >=x11-libs/qwt-5.3 they are using trunk checkouts
-CDEPEND="
- x11-libs/qt-opengl:4
- x11-libs/qt-qt3support:4
- x11-libs/qt-assistant:4
- x11-libs/qt-svg:4
- >=x11-libs/gl2ps-1.3.5
- >=dev-cpp/muParser-1.32
- >=dev-libs/boost-1.35.0
- >=sci-libs/liborigin-20100630:2
- sci-libs/gsl
- dev-libs/boost
- dev-tex/qtexengine
- ods? ( dev-libs/quazip )"
-# Still unable to build
-# emf? ( media-libs/libemf
-# media-libs/emfengine )
-
-DEPEND="${CDEPEND}
- dev-util/pkgconfig
- python? ( >=dev-python/sip-4.9 )
- doc? ( app-text/docbook-sgml-utils
- >=app-text/docbook-xml-dtd-4.4-r2:4.4 )"
-
-RDEPEND="${CDEPEND}
- python? (
- dev-python/PyQt4[X]
- dev-python/pygsl
- dev-python/rpy
- sci-libs/scipy )"
-
-PATCHES=(
- "${FILESDIR}/${PN}-0.9.7.12-system-QTeXEngine.patch"
- "${FILESDIR}/${PN}-0.9.7.14-system-liborigin.patch"
- "${FILESDIR}/${PN}-0.9.7.12-system-gl2ps.patch"
- "${FILESDIR}/${PN}-0.9.7.10-dont-install-qwt.patch"
- )
-
-pkg_setup() {
- use python && python_set_active_version 2
-}
-
-src_prepare() {
- qt4-r2_src_prepare
-
- rm -rf 3rdparty/{liborigin,QTeXEngine,/qwtplot3d/3rdparty/gl2ps/}
-
- # Check build.conf for changes on bump.
- cat >build.conf <<-EOF
- # Automatically generated by Gentoo ebuild
- isEmpty( QTI_ROOT ) {
- message( "each file including this config needs to set QTI_ROOT to the dir containing this file!" )
- }
-
- MUPARSER_LIBS = \$\$system(pkg-config --libs muparser)
- GSL_LIBS = \$\$system(pkg-config --libs gsl)
- BOOST_INCLUDEPATH = "${EPREFIX}/usr/include/boost"
- BOOST_LIBS = -lboost_date_time-mt -lboost_thread-mt
- QWT_INCLUDEPATH = \$\$QTI_ROOT/3rdparty/qwt/src
- QWT_LIBS = \$\$QTI_ROOT/3rdparty/qwt/lib/libqwt.a
- QWT3D_INCLUDEPATH = \$\$QTI_ROOT/3rdparty/qwtplot3d/include
- QWT3D_LIBS = \$\$QTI_ROOT/3rdparty/qwtplot3d/lib/libqwtplot3d.a
- LIB_ORIGIN_INCLUDEPATH = "${EPREFIX}/usr/include/liborigin2"
- LIB_ORIGIN_LIBS = -lorigin2
- QTEXENGINE_LIBS = -lQTeXEngine
- SYS_LIBS = -lgl2ps
-
- PYTHON = python
- LUPDATE = lupdate
- LRELEASE = lrelease
-
- SCRIPTING_LANGS += muParser
-
- CONFIG += release
- CONFIG += CustomInstall
- DEFINES += SCRIPTING_CONSOLE
-
- EOF
-
- use python && echo "SCRIPTING_LANGS += Python" >> build.conf
- if use ods; then
- echo "QUAZIP_INCLUDEPATH = ${EPREFIX}/usr/include/quazip" >> build.conf
- echo "QUAZIP_LIBS = -lquazip" >> build.conf
- fi
-
- sed '/^INSTALLS/d;' -i 3rdparty/qwtplot3d/qwtplot3d.pro || die
-
- # Fails to build...
- #if use emf; then
- # echo "EMF_ENGINE_INCLUDEPATH = /usr/include/libEMF" >> build.conf
- # echo "EMF_ENGINE_LIBS = -lEMF" >> build.conf
- #fi
-
- sed -e "s:doc/${PN}/manual:doc/${PN}/html:" \
- -e "s:/usr/local/${PN}:$(python_get_sitedir)/qtiplot:" \
- -i qtiplot/qtiplot.pro || die
-
- sed -e '/INSTALLS.*documentation/d' \
- -e '/INSTALLS.*manual/d' \
- -i qtiplot/qtiplot.pro || die
- sed -e '/manual/d' -i qtiplot.pro || die
-
- # Drop langs only if LINGUAS is not empty
- if [[ -n ${LINGUAS} ]]; then
- for l in ${LANGS}; do
- lu=${l/cz/cs}
- lu=${lu/cn/zh_CN}
- use linguas_${lu} || \
- sed -e "s:translations/qtiplot_${l}.[tq][sm]::" \
- -i qtiplot/qtiplot.pro || die
- done
- fi
- chmod -x qtiplot/qti_wordlist.txt
-
- # sed out debian paths
- sed -e 's:\(/usr/share/sgml/\)docbook/stylesheet/dsssl/modular\(/html/docbook.dsl\):\1stylesheets/dsssl/docbook\2:' \
- -i manual/qtiplot.dsl || die
- sed -e 's:\(/usr/share/\)xml/docbook/stylesheet/nwalsh\(/html/chunk.xsl\):\1sgml/docbook/xsl-stylesheets\2:' \
- -i manual/qtiplot_html.xsl || die
-}
-
-src_configure() {
- use amd64 && export QMAKESPEC="linux-g++-64"
- eqmake4
-}
-
-src_compile() {
- emake || die "emake failed"
- lrelease qtiplot/qtiplot.pro || die
- if use doc; then
- cd manual
- emake web || die "html docbook building failed"
- fi
-}
-
-src_install() {
- emake INSTALL_ROOT="${D}" install || die 'emake install failed'
- newicon qtiplot_logo.png qtiplot.png
- make_desktop_entry qtiplot "QtiPlot Scientific Plotting" qtiplot
- if use doc; then
- insinto /usr/share/doc/${PN}/html
- doins -r manual/html/* || die "install manual failed"
- fi
-
- if [[ -n ${LINGUAS} ]]; then
- insinto /usr/share/${PN}/translations
- for l in ${LANGS}; do
- lu=${l/cz/cs}
- lu=${lu/cn/zh_CN}
- use linguas_${lu} && \
- doins qtiplot/translations/qtiplot_${l}.qm
- done
- fi
-}
-
-pkg_postinst() {
- fdo-mime_desktop_database_update
- python_mod_optimize ${PN}
-}
-
-pkg_postrm() {
- fdo-mime_desktop_database_update
- python_mod_cleanup ${PN}
-}