aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAstroFloyd <AstroFloyd@gmail.com>2015-08-07 10:46:39 +0200
committerAstroFloyd <AstroFloyd@gmail.com>2015-08-07 10:46:39 +0200
commit45e881a101c9aec05ad9722d4c2a22a1b85b98ca (patch)
tree3fbeab99948f49174329e0a766c3f04602f565be /sci-libs
parentdev-qt/qt-meta-5.5.0: added qt5 packages that have no counterpart in qt4 (diff)
downloadAstroFloyd-45e881a101c9aec05ad9722d4c2a22a1b85b98ca.tar.gz
AstroFloyd-45e881a101c9aec05ad9722d4c2a22a1b85b98ca.tar.bz2
AstroFloyd-45e881a101c9aec05ad9722d4c2a22a1b85b98ca.zip
sci-libs/plplot: keep an ebuild for v5.10 to avoid family-file issues
Package-Manager: portage-2.2.20
Diffstat (limited to 'sci-libs')
-rw-r--r--sci-libs/plplot/ChangeLog306
-rw-r--r--sci-libs/plplot/Manifest10
-rw-r--r--sci-libs/plplot/files/plplot-5.10.0-cmake.patch18
-rw-r--r--sci-libs/plplot/files/plplot-5.10.0-have-config-h.patch117
-rw-r--r--sci-libs/plplot/files/plplot-5.9.11-multiarch.patch50
-rw-r--r--sci-libs/plplot/files/plplot-5.9.11-ocaml.patch34
-rw-r--r--sci-libs/plplot/files/plplot-5.9.11-octave.patch12
-rw-r--r--sci-libs/plplot/files/plplot-5.9.6-python.patch13
-rw-r--r--sci-libs/plplot/metadata.xml30
-rw-r--r--sci-libs/plplot/plplot-5.10.0-r1.ebuild245
10 files changed, 835 insertions, 0 deletions
diff --git a/sci-libs/plplot/ChangeLog b/sci-libs/plplot/ChangeLog
new file mode 100644
index 0000000..06c1532
--- /dev/null
+++ b/sci-libs/plplot/ChangeLog
@@ -0,0 +1,306 @@
+# ChangeLog for sci-libs/plplot
+# Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/sci-libs/plplot/ChangeLog,v 1.65 2015/07/23 20:20:57 pacho Exp $
+
+ 23 Jul 2015; Pacho Ramos <pacho@gentoo.org> plplot-5.11.0-r1.ebuild:
+ ppc stable wrt bug #529038
+
+*plplot-5.11.0-r1 (07 May 2015)
+
+ 07 May 2015; Justin Lecher <jlec@gentoo.org> +plplot-5.11.0-r1.ebuild,
+ -plplot-5.11.0.ebuild, plplot-5.10.0-r1.ebuild:
+ Don't build all devices by default, bug #548816; don't build broken devices
+ after upstreams recommendation, bug #547254
+
+*plplot-5.11.0 (20 Apr 2015)
+
+ 20 Apr 2015; Justin Lecher <jlec@gentoo.org>
+ +files/plplot-5.11.0-multiarch.patch, +files/plplot-5.11.0-ocaml.patch,
+ +files/plplot-5.11.0-octave.patch, +plplot-5.11.0.ebuild:
+ Version Bump
+
+ 08 Apr 2015; Michał Górny <mgorny@gentoo.org> plplot-5.10.0-r1.ebuild:
+ Drop old Python implementations
+
+ 20 Mar 2015; Justin Lecher <jlec@gentoo.org> plplot-5.10.0-r1.ebuild:
+ Fix tcl/tk slotting
+
+ 02 Feb 2015; Justin Lecher <jlec@gentoo.org> plplot-5.10.0-r1.ebuild,
+ +files/plplot-5.10.0-cmake.patch, metadata.xml:
+ Backport fix for cmake-3.10, #537670
+
+ 27 Jun 2014; Sébastien Fabbro <bicatali@gentoo.org> -plplot-5.10.0.ebuild,
+ plplot-5.10.0-r1.ebuild:
+ Cleanup
+
+*plplot-5.10.0-r1 (07 Apr 2014)
+
+ 07 Apr 2014; Sébastien Fabbro <bicatali@gentoo.org>
+ +files/plplot-5.10.0-have-config-h.patch, +plplot-5.10.0-r1.ebuild,
+ -files/plplot-5.9.10-haru.patch, -files/plplot-5.9.10-itcltk.patch,
+ -files/plplot-5.9.10-tcl86.patch, -files/plplot-5.9.10-tcltk.patch,
+ -files/plplot-5.9.9-CMakeLists.txt.patch,
+ -files/plplot-5.9.9-no-pdftest.patch, -files/plplot-5.9.9-tk86.patch,
+ -plplot-5.9.10-r1.ebuild, -plplot-5.9.11-r1.ebuild, -plplot-5.9.9-r2.ebuild:
+ Fixed conflicting macro in installed headers, bug #503076
+
+ 27 Mar 2014; Sébastien Fabbro <bicatali@gentoo.org> plplot-5.10.0.ebuild:
+ Bump minimum swig version for octave bindings, thanks disperato bug #503418.
+ Adjust library depedencies
+
+*plplot-5.10.0 (21 Feb 2014)
+
+ 21 Feb 2014; Sébastien Fabbro <bicatali@gentoo.org> +plplot-5.10.0.ebuild:
+ Version bump
+
+*plplot-5.9.11-r1 (17 Jan 2014)
+
+ 17 Jan 2014; Sébastien Fabbro <bicatali@gentoo.org> +plplot-5.9.11-r1.ebuild,
+ -files/plplot-5.9.11-config.patch, -plplot-5.9.11.ebuild:
+ Removing the plplot_config patch since it creates more problems than it solves
+ (bug #498234)
+
+*plplot-5.9.11 (16 Jan 2014)
+
+ 16 Jan 2014; Sébastien Fabbro <bicatali@gentoo.org>
+ +files/plplot-5.9.11-config.patch, +files/plplot-5.9.11-multiarch.patch,
+ +files/plplot-5.9.11-ocaml.patch, +files/plplot-5.9.11-octave.patch,
+ +plplot-5.9.11.ebuild, -plplot-5.9.9-r1.ebuild, metadata.xml:
+ Version bump
+
+ 16 Nov 2013; Ryan Hill <dirtyepic@gentoo.org> plplot-5.9.9-r1.ebuild,
+ plplot-5.9.9-r2.ebuild, plplot-5.9.10-r1.ebuild:
+ Remove wxwidgets_pkg_setup call (unnecessary with USE deps).
+
+ 06 Nov 2013; Sébastien Fabbro <bicatali@gentoo.org>
+ files/plplot-5.9.10-tcltk.patch:
+ Removed Id tag in patch, fixing bug #451294
+
+*plplot-5.9.10-r1 (05 Nov 2013)
+
+ 05 Nov 2013; Sébastien Fabbro <bicatali@gentoo.org>
+ +files/plplot-5.9.10-haru.patch, +files/plplot-5.9.10-itcltk.patch,
+ +files/plplot-5.9.10-tcl86.patch, +files/plplot-5.9.10-tcltk.patch,
+ +plplot-5.9.10-r1.ebuild, -plplot-5.9.10.ebuild:
+ Fixed tcl/tk binding upgrade (bug #489728), add shared lib soversion slot, use
+ BUILD_DIR instead of CMAKE_BUILD_DIR, fixed calling libharu headers
+
+*plplot-5.9.10 (28 Oct 2013)
+
+ 28 Oct 2013; Sébastien Fabbro <bicatali@gentoo.org> +plplot-5.9.10.ebuild,
+ metadata.xml:
+ Version bump
+
+*plplot-5.9.9-r2 (18 Apr 2013)
+
+ 18 Apr 2013; Patrick Lauer <patrick@gentoo.org> +plplot-5.9.9-r2.ebuild:
+ Fix sanbox violation #464144
+
+ 02 Mar 2013; Markos Chandras <hwoarang@gentoo.org> plplot-5.9.9-r1.ebuild:
+ Move Qt dependencies to the new category
+
+ 01 Feb 2013; Ben de Groot <yngwin@gentoo.org> plplot-5.9.9-r1.ebuild:
+ Correct freefont path
+
+ 31 Jan 2013; Sébastien Fabbro <bicatali@gentoo.org> plplot-5.9.9-r1.ebuild:
+ media-libs/freefont-ttf -> media-libs/freefont
+
+ 13 Jan 2013; Justin Lecher <jlec@gentoo.org> plplot-5.9.9-r1.ebuild,
+ +files/plplot-5.9.9-tk86.patch, metadata.xml:
+ Add fix for tk-8.6, thanks Helmut Jarausch preparing the patch, #451294
+
+ 16 Oct 2012; Justin Lecher <jlec@gentoo.org> plplot-5.9.9-r1.ebuild,
+ metadata.xml:
+ Remove virtual/fortran and always call fortran-2_pkg_setup as intend by the
+ updated fortran-2.eclass
+
+ 14 Oct 2012; Justin Lecher <jlec@gentoo.org> plplot-5.9.9-r1.ebuild:
+ Prepare for fortran2.eclass update
+
+ 06 Jul 2012; Sébastien Fabbro <bicatali@gentoo.org> plplot-5.9.9-r1.ebuild:
+ leave rpath stuff to default cmake-utils eclass, so prefix links properly
+
+ 06 Jul 2012; Sébastien Fabbro <bicatali@gentoo.org> -plplot-5.9.9.ebuild,
+ metadata.xml, plplot-5.9.9-r1.ebuild:
+ Cleanup pkg-config files for prefix. keyword amd64-linux, x86-linux
+
+ 28 Jun 2012; Sébastien Fabbro <bicatali@gentoo.org> plplot-5.9.9-r1.ebuild:
+ Tests require latex/postscript driver, bug #423677
+
+*plplot-5.9.9-r1 (18 Jun 2012)
+
+ 18 Jun 2012; Sébastien Fabbro <bicatali@gentoo.org>
+ +files/plplot-5.9.9-CMakeLists.txt.patch, +plplot-5.9.9-r1.ebuild,
+ -plplot-5.9.7-r1.ebuild:
+ Adjust java installation directories. Remove D support, since we have no in
+ the tree. Add dependency on cairo-ocaml for OCaml bindings if cairo is on.
+ Fixed cmake error, bug #419743, thanks Juergen Rose for the patch.
+
+ 04 May 2012; Jeff Horelick <jdhore@gentoo.org> plplot-5.9.7-r1.ebuild,
+ plplot-5.9.9.ebuild:
+ dev-util/pkgconfig -> virtual/pkgconfig
+
+*plplot-5.9.9 (20 Nov 2011)
+
+ 20 Nov 2011; Sébastien Fabbro <bicatali@gentoo.org> +plplot-5.9.9.ebuild,
+ +files/plplot-5.9.9-no-pdftest.patch:
+ Version bump. Fixed examples installation, some automagic dependencies,
+ adapted changeds in CMake options. Added cxx flag, tests for pdf is disabled
+ (Assumes a bundled libharu)
+
+ 28 Jul 2011; Sébastien Fabbro <bicatali@gentoo.org> plplot-5.9.7-r1.ebuild:
+ Fixed syntax error causing qt to be set by plplot when qt4 is not (bug
+ #374985)
+
+ 26 Jul 2011; Kacper Kowalik <xarthisius@gentoo.org> plplot-5.9.7-r1.ebuild:
+ Marked ~ppc wrt #358035
+
+ 21 Jun 2011; Justin Lecher <jlec@gentoo.org> plplot-5.9.7-r1.ebuild:
+ Add dependency on virtual/fortran
+
+ 21 Jun 2011; Justin Lecher <jlec@gentoo.org> plplot-5.9.7-r1.ebuild:
+ Added fortran-2.eclass support
+
+ 17 Dec 2010; Tomáš Chvátal <scarabeus@gentoo.org> plplot-5.9.7-r1.ebuild:
+ Fix typo (_ instead of -)
+
+*plplot-5.9.7-r1 (30 Nov 2010)
+
+ 30 Nov 2010; Sébastien Fabbro <bicatali@gentoo.org>
+ -files/plplot-5.9.0-python.patch, -plplot-5.9.6.ebuild, -plplot-5.9.7.ebuild,
+ +plplot-5.9.7-r1.ebuild, metadata.xml:
+ Added ocaml, lua and testing options. tk use flag depends on tcl. More
+ complete qt4 support for drivers and pyqt. Disabling doc generation (too
+ buggy on Gentoo), using prebuilt docs. Switch to EAPI=3 for prefix install.
+ Remove a few obsolete options and general cmake cleaning.
+
+*plplot-5.9.7 (10 Oct 2010)
+
+ 10 Oct 2010; Sébastien Fabbro <bicatali@gentoo.org> -plplot-5.9.5.ebuild,
+ +plplot-5.9.7.ebuild, metadata.xml:
+ Version bump, added flag for D compiler bindings
+
+*plplot-5.9.6 (04 Jul 2010)
+
+ 04 Jul 2010; Justin Lecher <jlec@gentoo.org> plplot-5.9.5.ebuild,
+ +plplot-5.9.6.ebuild, +files/plplot-5.9.6-python.patch:
+ Version Bump, fixes for python ABI compatibiliy
+
+ 29 Jan 2010; Sébastien Fabbro <bicatali@gentoo.org> plplot-5.9.5.ebuild:
+ Fixed qt4 automagic dependencies, thanks Kacper Kowalik closing bug
+ #302720
+
+ 26 Dec 2009; Peter Volkov <pva@gentoo.org> plplot-5.9.5.ebuild:
+ virtual/ghostscript->app-text/ghostscript-gpl: ghostscript-gpl is the only
+ implementation left in the tree.
+
+ 03 Dec 2009; Sébastien Fabbro <bicatali@gentoo.org> -plplot-5.9.2.ebuild,
+ plplot-5.9.5.ebuild, +files/plplot-5.9.5-wxwidgets-cmake.patch:
+ Fixed for wxwidgets build (thanks dirtyepic for his patches, bug #242212,
+ and removed dirty fortran eclass
+
+*plplot-5.9.5 (04 Nov 2009)
+
+ 04 Nov 2009; Markus Dittrich <markusle@gentoo.org> -plplot-5.9.4.ebuild,
+ -files/plplot-5.9.4-pdf-driver.patch, +plplot-5.9.5.ebuild:
+ Version bump and removed old version.
+
+ 23 Sep 2009; Patrick Lauer <patrick@gentoo.org> plplot-5.5.2.ebuild:
+ Remove virtual/libc
+
+ 02 Sep 2009; Markus Dittrich <markusle@gentoo.org> plplot-5.9.4.ebuild,
+ +files/plplot-5.9.4-pdf-driver.patch:
+ Fixed error due to missing pdf.rc reference file (see #282688).
+
+*plplot-5.9.4 (25 Aug 2009)
+
+ 25 Aug 2009; Markus Dittrich <markusle@gentoo.org> +plplot-5.9.4.ebuild:
+ Version bump.
+
+ 14 Mar 2009; Sébastien Fabbro <bicatali@gentoo.org> -plplot-5.9.0.ebuild,
+ plplot-5.9.2.ebuild:
+ Fixed support for cairo (bug #262001) and some automagic dependencies
+
+*plplot-5.9.2 (29 Jan 2009)
+
+ 29 Jan 2009; Sébastien Fabbro <bicatali@gentoo.org> +plplot-5.9.2.ebuild:
+ Version bump. Removed the wxwidgets hack since it broke parallel building
+
+ 02 Jan 2009; Marcus D. Hanwell <cryos@gentoo.org> metadata.xml:
+ Removed myself as maintainer.
+
+ 26 Nov 2008; Ryan Hill <dirtyepic@gentoo.org> plplot-5.9.0.ebuild:
+ Call wxwidgets_pkg_setup.
+
+ 22 Oct 2008; Sébastien Fabbro <bicatali@gentoo.org> plplot-5.9.0.ebuild:
+ Removed gif flag (not used) and merged fortranrtran and fortran95 flag,
+ since they use the same compiler
+
+*plplot-5.9.0 (21 Oct 2008)
+
+ 21 Oct 2008; Sébastien Fabbro <bicatali@gentoo.org>
+ +files/plplot-5.9.0-cmake.patch, +files/plplot-5.9.0-pdftex.patch,
+ +files/plplot-5.9.0-python.patch, metadata.xml, +plplot-5.9.0.ebuild:
+ Version bump. Major new features and completely reworked ebuild. Tested
+ with many options, but not all combinations. Thanks for markusle and
+ Joshua Rich for their initial work.
+
+ 07 Aug 2008; Ulrich Mueller <ulm@gentoo.org> metadata.xml:
+ Add USE flag description to metadata wrt GLEP 56.
+
+ 12 Apr 2008; Sébastien Fabbro <bicatali@gentoo.org> plplot-5.5.2.ebuild:
+ Switch tetex to local jadetex, bug #196745
+
+ 05 Apr 2008; Sébastien Fabbro <bicatali@gentoo.org> plplot-5.5.2.ebuild:
+ Removed ifc use flag (see bug #97929)
+
+ 14 Aug 2007; Markus Dittrich <markusle@gentoo.org>
+ +files/plplot-5.5.2-macro-fix.patch, plplot-5.5.2.ebuild:
+ Fixed problems with octave files and added a patch to correct
+ a bug in a C macro (see bug #182949).
+
+ 22 Jul 2007; Donnie Berkholz <dberkholz@gentoo.org>; plplot-5.5.2.ebuild:
+ Drop virtual/x11 references.
+
+ 13 Mar 2007; Danny van Dyk <kugelfang@gentoo.org> plplot-5.5.2.ebuild:
+ QA: which -> type -P
+
+ 28 Nov 2006; Christian Faulhammer <opfer@gentoo.org> plplot-5.5.2.ebuild:
+ moved tcltk USE flag over to separate tk and tcl flags, see bug #17808
+
+ 18 Nov 2006; Saleem Abdulrasool <compnerd@gentoo.org> plplot-5.5.2.ebuild:
+ Drop gnome useflag for gnome-1.x removal
+
+ 27 Aug 2006; Michael Sterrett <mr_bones_@gentoo.org>
+ -files/plplot-5.3.1-gcc-3.4-fix.patch, -plplot-5.3.1.ebuild:
+ clean out older, non-modX ebuild
+
+ 11 Jun 2006; Robin H. Johnson <robbat2@gentoo.org> plplot-5.5.2.ebuild:
+ Bug #119388, fix plplot for modular-X. This ebuild is a big mess, and
+ doesn't appear to have much demand.
+
+ 20 Aug 2005; Marcus D. Hanwell <cryos@gentoo.org> plplot-5.3.1.ebuild,
+ -plplot-5.5.1.ebuild, plplot-5.5.2.ebuild:
+ Fixed gd-external issues, closes bug 98065. A few small cleanups too.
+
+*plplot-5.5.2 (03 May 2005)
+
+ 03 May 2005; Marcus D. Hanwell <cryos@gentoo.org>
+ files/plplot-5.5.1-gcc-3.4-fix.patch, plplot-5.5.1.ebuild,
+ +plplot-5.5.2.ebuild:
+ Version bump. Changed the octave patch to apply more generically.
+
+*plplot-5.5.1 (08 Apr 2005)
+
+ 08 Apr 2005; Marcus D. Hanwell <cryos@gentoo.org>
+ +files/plplot-5.5.1-gcc-3.4-fix.patch, +plplot-5.5.1.ebuild:
+ Version bump.
+
+*plplot-5.3.1 (30 Jan 2005)
+
+ 30 Jan 2005; Marcus D. Hanwell <cryos@gentoo.org> +metadata.xml,
+ +files/plplot-5.3.1-gcc-3.4-fix.patch, +plplot-5.3.1.ebuild:
+ Initial import of ebuild. Thanks go to Tyler Nielsen <tyler@mithander.com> for
+ the original ebuild as well as Olivier Fisette <ribosome@gentoo.org>, Colin
+ Macdonald <cbm@sfu.ca> and myself who provided numerous improvements to the
+ ebuild in bug 31554.
diff --git a/sci-libs/plplot/Manifest b/sci-libs/plplot/Manifest
new file mode 100644
index 0000000..208fbbc
--- /dev/null
+++ b/sci-libs/plplot/Manifest
@@ -0,0 +1,10 @@
+AUX plplot-5.10.0-cmake.patch 830 SHA256 43b8c9ecc521730c3121f3372c7d22681ba7e7ff097670886914c2e953f3f5ed SHA512 3e547dc71b10bac35c8564242818d6af1b4257982e1552ee55202dbc98f427b56ec2e4bbc5d5e2c26699ade56d3bb9110c9558c4e217a112a33af8b594438953 WHIRLPOOL 64b1d0aaa63a2235049369b446d4720b5e3eb27114863e023579daa5fa4557811723d89537c72d2154950ccdc25192e867d0d4f65a77a6cdd039db3e6128fe13
+AUX plplot-5.10.0-have-config-h.patch 10257 SHA256 981cdb158924046788b6de596f962dcfc047b6b98d80fb3a32576e196d5eb74f SHA512 b94a917d906c49a77cc7f5ae68b3419fc83d16721d2d841ec3f5fac31b30718690a82ae03659a1cd08e8d2432282df97c9fb01b2fd44b8ea4c578a81d50fd83e WHIRLPOOL d00c0dd0365c8ff4c3b76592527aaf79e8ec5de27ca24546e3e74258a253e67eb5d331d33367905a991c946a2448d5027795c12646ee1e8173741d6d1e8dc177
+AUX plplot-5.9.11-multiarch.patch 2150 SHA256 8100cdcb843c2d52a663434c481e804e4db22e319a1d6b69c0cfdc6938c70648 SHA512 c638a5bdba7d29d76fdf5c96415d56718dea162c1a03bf4f0180c12d8d8bf26603f628de4ec130403234a5a8e349630bed6d17e53a13fa6faf921da402869da9 WHIRLPOOL b88727e63940505512906886739f0aad7561b3659112bcf03b9ad25b8640a244a60acc69e5f355636c5dd876fc76db2043dafe399669f28b2eb0cbfc3e801d11
+AUX plplot-5.9.11-ocaml.patch 2829 SHA256 f355a3af4862133438a90c2b923dfedbce5b3311d2b38736a5cea998ec3fc1e0 SHA512 26d739d0cc3f3b8227de9fdfbb6a7cbfdca6daff6515b1b91571316abc2d057eac953951ad9bb7b0fd2b28d8e220836c5da652e19170ed8401a9b3946b39c34a WHIRLPOOL 7202a6f0d54510bfb46fcf8411014170f407526ed9bb2b14b19269ff66ffbe9a1a597751cb8ab63e2d98f73f9408bb4d8df961d9b2d5d188aba5f8005cff4153
+AUX plplot-5.9.11-octave.patch 633 SHA256 672f25cc93722d8116fb45853939b0e0b3cefa75b57ff87f2a8439c97723393e SHA512 c3832d531425cea20aa436cb757ed7bfd30bdc44a4d5cc11cf9a5e5fc7109897cc10748ce780de53232b63cd67d00c1cd2d9f62ef6d378d0f814182d1beb10e2 WHIRLPOOL 96ce5a919a944a833c3febc5b6932376ee32f764709470a405d73f691b2125f76ddb8b99b6ede13a19e9ee996d2ea226e0f4a8c299b174dd9f83b9e9a4aa7a7d
+AUX plplot-5.9.6-python.patch 379 SHA256 a338e7b7d9893aabf0bc2e4bc5bd25a97b81674abfa40492b6cc8a33fe8763c8 SHA512 cb2022bda3d5408ef0b2dc280981ad8bdb2f7ecb20d827f7e71ce063fba60963e68aeaa5efd8eef87da8e3dc270b609f7cb342c1da175cd757c9f135173842e4 WHIRLPOOL a6ae20047cd0e99251746cadf703e19d35897a6788e5b5d665758f970cc47aad31331640a679f974455aeab4ab6ec4927649d4b1c1a9d9efbe474f2e966aed83
+DIST plplot-5.10.0.tar.gz 14766687 SHA256 d4e930b8b9d43cd1663408986218d61f166de7cbc9ef5bed111b0bdea934f9d5 SHA512 92a1880dc544694a19aa5a3f6f592df5b63ea65827f11804f0b1bdb1d123546abb213c1af4950c18b50e0e0fb9b40bb3311e7f21e681237df6008fee9873b11e WHIRLPOOL 52b726925a6fa89e2e097a1a7578b8b0004bfac6a841019144785861a467e4d7c812bf4301e7a747d2edab47ef5b0d481c7732f5b0c9b4ff5dae6be6cd3e17ba
+EBUILD plplot-5.10.0-r1.ebuild 6751 SHA256 c71c5f01e988fd1e65ff2cbd009a05fb300d4cb7259c752d7a4dbbeb55f0b457 SHA512 ad6af7e7123430b5cc979c7310ec15f31187b519091693d6999cfd4c6135d8303ea5e48dd11800451b0f73466bbfbdd51587165b507ba91a02cb175c3b91e4d8 WHIRLPOOL 955aceae6739a15d7831dcf2fceed36ce0a3c57764f028a70de683532d363dcdbf5836ee13775c2b668fa59126ac9af753dbe33add1ceb2b367574eea4b2336e
+MISC ChangeLog 12194 SHA256 5a44e970727e565dfa18a0d442d62b6b7c9383b7999233a17e0c1dc932a0f487 SHA512 823a012befbd2517cb4c2228bd3743a22ef59850a507e3370a75f08d749c50c342bfe8bb18f0f47afe50ecee8e2a1c8f5bc07f6e279cd4d1eba2ebe37e29954b WHIRLPOOL 4ac4c1fcd189ee8c8a2a5423610ce1cd46d14a86c933d5aede620eabad3dd747b02d50f487dee36fd7496f82c13c45e5966545445b5d1e16510f830bd4f89e09
+MISC metadata.xml 1509 SHA256 42713c1bc89bcccf8143e5440b3706296b2f8b7b678ab84fc2ddc4666ca692a1 SHA512 a35d537aa4e88afd20090020b3864cbf39570288321b6c0174cf3ebcefbea0a56d945f26301282f4c0770010c2b9e937f43ea78ff35c51d8c77a3b5ef4338ae2 WHIRLPOOL 04ff5d1aea63d1d67a0148acbb8aa93f34bc4ff15055b8e60c031a006627ed15e81c1ae8be9f478377c7b866e6f10f7f678faee023f263fb55105c0188549d1d
diff --git a/sci-libs/plplot/files/plplot-5.10.0-cmake.patch b/sci-libs/plplot/files/plplot-5.10.0-cmake.patch
new file mode 100644
index 0000000..dbb0f82
--- /dev/null
+++ b/sci-libs/plplot/files/plplot-5.10.0-cmake.patch
@@ -0,0 +1,18 @@
+diff --git a/cmake/modules/pkg-config.cmake b/cmake/modules/pkg-config.cmake
+index 3f842aa..4d269bd 100644
+--- a/cmake/modules/pkg-config.cmake
++++ b/cmake/modules/pkg-config.cmake
+@@ -94,7 +94,12 @@ macro(pkg_check_pkgconfig _package _include_DIR _link_DIR _link_FLAGS _cflags _v
+ set(_xprefix ${_prefix})
+ endif(FORCE_EXTERNAL_STATIC)
+
+- _pkg_check_modules_internal(0 0 ${_prefix} "${_package}")
++ if(CMAKE_VERSION VERSION_LESS "3.1")
++ _pkg_check_modules_internal(0 0 ${_prefix} "${_package}")
++ else(CMAKE_VERSION VERSION_LESS "3.1")
++ _pkg_check_modules_internal(0 0 0 0 ${_prefix} "${_package}")
++ endif(CMAKE_VERSION VERSION_LESS "3.1")
++
+ if(${_prefix}_FOUND)
+ cmake_link_flags(${_link_FLAGS} "${${_xprefix}_LDFLAGS}")
+ # If libraries cannot be not found, then that is equivalent to whole
diff --git a/sci-libs/plplot/files/plplot-5.10.0-have-config-h.patch b/sci-libs/plplot/files/plplot-5.10.0-have-config-h.patch
new file mode 100644
index 0000000..8c02df1
--- /dev/null
+++ b/sci-libs/plplot/files/plplot-5.10.0-have-config-h.patch
@@ -0,0 +1,117 @@
+Apply upstream patch http://sourceforge.net/p/plplot/bugs/146/
+to fix conflicting macros in installed header files.
+
+diff -Nur plplot-5.10.0.orig/CMakeLists.txt plplot-5.10.0/CMakeLists.txt
+--- plplot-5.10.0.orig/CMakeLists.txt 2014-04-07 09:51:53.732857993 -0700
++++ plplot-5.10.0/CMakeLists.txt 2014-04-07 09:54:03.739699328 -0700
+@@ -125,7 +125,7 @@
+ ${CMAKE_CURRENT_BINARY_DIR}/plplot_config.h
+ )
+ # Allow access to the generated plplot_config.h for this build.
+-add_definitions("-DHAVE_CONFIG_H")
++add_definitions("-DPLPLOT_HAVE_CONFIG_H")
+ # Install top-level files
+
+ # Enable testing framework for examples
+diff -Nur plplot-5.10.0.orig/bindings/ocaml/CMakeLists.txt plplot-5.10.0/bindings/ocaml/CMakeLists.txt
+--- plplot-5.10.0.orig/bindings/ocaml/CMakeLists.txt 2014-04-07 09:51:53.629857267 -0700
++++ plplot-5.10.0/bindings/ocaml/CMakeLists.txt 2014-04-07 09:54:03.934700592 -0700
+@@ -99,7 +99,7 @@
+ ${CMAKE_CURRENT_BINARY_DIR}/dllplplot_stubs.so
+ ${CMAKE_CURRENT_BINARY_DIR}/libplplot_stubs.a
+ COMMAND ${OCAMLC} -ccopt -I${CAMLIDL_LIB_DIR} -c ${CMAKE_CURRENT_BINARY_DIR}/plplot_core_stubs.c
+- COMMAND ${OCAMLC} -ccopt -I${CMAKE_SOURCE_DIR}/include -ccopt -I${CMAKE_BINARY_DIR}/include -ccopt -I${CMAKE_SOURCE_DIR}/lib/qsastime -ccopt -I${CMAKE_BINARY_DIR} -ccopt -I${CAMLIDL_LIB_DIR} -ccopt -DHAVE_CONFIG_H -c ${CMAKE_CURRENT_SOURCE_DIR}/plplot_impl.c
++ COMMAND ${OCAMLC} -ccopt -I${CMAKE_SOURCE_DIR}/include -ccopt -I${CMAKE_BINARY_DIR}/include -ccopt -I${CMAKE_SOURCE_DIR}/lib/qsastime -ccopt -I${CMAKE_BINARY_DIR} -ccopt -I${CAMLIDL_LIB_DIR} -ccopt -DPLPLOT_HAVE_CONFIG_H -c ${CMAKE_CURRENT_SOURCE_DIR}/plplot_impl.c
+ COMMAND ${OCAMLMKLIB} -o plplot_stubs -L${CAMLIDL_LIB_DIR} -lcamlidl -L${CMAKE_BINARY_DIR}/src -lplplot${LIB_TAG} ${CMAKE_CURRENT_BINARY_DIR}/plplot_core_stubs.o ${CMAKE_CURRENT_BINARY_DIR}/plplot_impl.o ${ocaml_STATIC_FLAGS}
+ DEPENDS
+ ${CMAKE_CURRENT_BINARY_DIR}/plplot_core_stubs.c
+diff -Nur plplot-5.10.0.orig/bindings/ocaml/plcairo/CMakeLists.txt plplot-5.10.0/bindings/ocaml/plcairo/CMakeLists.txt
+--- plplot-5.10.0.orig/bindings/ocaml/plcairo/CMakeLists.txt 2014-04-07 09:51:53.629857267 -0700
++++ plplot-5.10.0/bindings/ocaml/plcairo/CMakeLists.txt 2014-04-07 09:54:03.934700592 -0700
+@@ -36,7 +36,7 @@
+ ${CMAKE_CURRENT_BINARY_DIR}/plcairo_impl.o
+ ${CMAKE_CURRENT_BINARY_DIR}/dllplcairo_stubs.so
+ ${CMAKE_CURRENT_BINARY_DIR}/libplcairo_stubs.a
+- COMMAND ${OCAMLC} -ccopt "${CAIRO_COMPILE_FLAGS}" -cclib "${CAIRO_LINK_FLAGS}" -ccopt -I${CMAKE_SOURCE_DIR}/include -ccopt -I${CMAKE_BINARY_DIR}/include -ccopt -I${CMAKE_SOURCE_DIR}/lib/qsastime -ccopt -I${CMAKE_BINARY_DIR} -ccopt -DHAVE_CONFIG_H -c ${CMAKE_CURRENT_SOURCE_DIR}/plcairo_impl.c
++ COMMAND ${OCAMLC} -ccopt "${CAIRO_COMPILE_FLAGS}" -cclib "${CAIRO_LINK_FLAGS}" -ccopt -I${CMAKE_SOURCE_DIR}/include -ccopt -I${CMAKE_BINARY_DIR}/include -ccopt -I${CMAKE_SOURCE_DIR}/lib/qsastime -ccopt -I${CMAKE_BINARY_DIR} -ccopt -DPLPLOT_HAVE_CONFIG_H -c ${CMAKE_CURRENT_SOURCE_DIR}/plcairo_impl.c
+ COMMAND ${OCAMLMKLIB} -o plcairo_stubs ${CAIRO_LINK_FLAGS_LIST} -L${CMAKE_BINARY_DIR}/src -lplplot${LIB_TAG} ${CMAKE_CURRENT_BINARY_DIR}/plcairo_impl.o
+ DEPENDS
+ ${CMAKE_CURRENT_SOURCE_DIR}/plcairo_impl.c
+diff -Nur plplot-5.10.0.orig/doc/doxygen/html/plConfig_8h_source.html plplot-5.10.0/doc/doxygen/html/plConfig_8h_source.html
+--- plplot-5.10.0.orig/doc/doxygen/html/plConfig_8h_source.html 2014-04-07 09:51:53.712857853 -0700
++++ plplot-5.10.0/doc/doxygen/html/plConfig_8h_source.html 2014-04-07 09:54:03.935700600 -0700
+@@ -136,7 +136,7 @@
+ <div class="line"><a name="l00030"></a><span class="lineno"> 30</span>&#160;<span class="comment">// any user applications). Therefore, the configured plConfig.h</span></div>
+ <div class="line"><a name="l00031"></a><span class="lineno"> 31</span>&#160;<span class="comment">// should be installed. In contrast, plplot_config.h.in (note,</span></div>
+ <div class="line"><a name="l00032"></a><span class="lineno"> 32</span>&#160;<span class="comment">// plConfig.h #includes plplot_config.h for the core build because</span></div>
+-<div class="line"><a name="l00033"></a><span class="lineno"> 33</span>&#160;<span class="comment">// HAVE_CONFIG_H is #defined in that case) contains configured macros</span></div>
++<div class="line"><a name="l00033"></a><span class="lineno"> 33</span>&#160;<span class="comment">// PLPLOT_HAVE_CONFIG_H is #defined in that case) contains configured macros</span></div>
+ <div class="line"><a name="l00034"></a><span class="lineno"> 34</span>&#160;<span class="comment">// that are only required for the core build. Therefore, in contrast</span></div>
+ <div class="line"><a name="l00035"></a><span class="lineno"> 35</span>&#160;<span class="comment">// to plConfig.h, plplot_config.h should not be installed.</span></div>
+ <div class="line"><a name="l00036"></a><span class="lineno"> 36</span>&#160;<span class="comment">//</span></div>
+@@ -150,7 +150,7 @@
+ <div class="line"><a name="l00044"></a><span class="lineno"> 44</span>&#160;<span class="preprocessor">#ifndef __PLCONFIG_H__</span></div>
+ <div class="line"><a name="l00045"></a><span class="lineno"> 45</span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define __PLCONFIG_H__</span></div>
+ <div class="line"><a name="l00046"></a><span class="lineno"> 46</span>&#160;<span class="preprocessor"></span></div>
+-<div class="line"><a name="l00047"></a><span class="lineno"> 47</span>&#160;<span class="preprocessor">#ifdef HAVE_CONFIG_H</span></div>
++<div class="line"><a name="l00047"></a><span class="lineno"> 47</span>&#160;<span class="preprocessor">#ifdef PLPLOT_HAVE_CONFIG_H</span></div>
+ <div class="line"><a name="l00048"></a><span class="lineno"> 48</span>&#160;<span class="preprocessor"></span><span class="preprocessor"># include &lt;<a class="code" href="plplot__config_8h.html">plplot_config.h</a>&gt;</span></div>
+ <div class="line"><a name="l00049"></a><span class="lineno"> 49</span>&#160;<span class="preprocessor">#endif</span></div>
+ <div class="line"><a name="l00050"></a><span class="lineno"> 50</span>&#160;<span class="preprocessor"></span></div>
+diff -Nur plplot-5.10.0.orig/doc/doxygen/html/plplot__config_8h_source.html plplot-5.10.0/doc/doxygen/html/plplot__config_8h_source.html
+--- plplot-5.10.0.orig/doc/doxygen/html/plplot__config_8h_source.html 2014-04-07 09:51:53.708857825 -0700
++++ plplot-5.10.0/doc/doxygen/html/plplot__config_8h_source.html 2014-04-07 09:54:03.935700600 -0700
+@@ -109,7 +109,7 @@
+ <div class="line"><a name="l00003"></a><span class="lineno"> 3</span>&#160;<span class="comment">// examples (and presumably any user applications). Therefore, the</span></div>
+ <div class="line"><a name="l00004"></a><span class="lineno"> 4</span>&#160;<span class="comment">// configured plplot_config.h should not be installed. In contrast,</span></div>
+ <div class="line"><a name="l00005"></a><span class="lineno"> 5</span>&#160;<span class="comment">// include/plConfig.h.in (note, the configured plConfig.h result</span></div>
+-<div class="line"><a name="l00006"></a><span class="lineno"> 6</span>&#160;<span class="comment">// #includes plplot_config.h for the core build because HAVE_CONFIG_H</span></div>
++<div class="line"><a name="l00006"></a><span class="lineno"> 6</span>&#160;<span class="comment">// #includes plplot_config.h for the core build because PLPLOT_HAVE_CONFIG_H</span></div>
+ <div class="line"><a name="l00007"></a><span class="lineno"> 7</span>&#160;<span class="comment">// is #defined in that case) contains configured macros that are</span></div>
+ <div class="line"><a name="l00008"></a><span class="lineno"> 8</span>&#160;<span class="comment">// required for the core build, installed examples build, and build of</span></div>
+ <div class="line"><a name="l00009"></a><span class="lineno"> 9</span>&#160;<span class="comment">// user applications. Therefore, in contrast to plplot_config.h,</span></div>
+diff -Nur plplot-5.10.0.orig/examples/CMakeLists.txt plplot-5.10.0/examples/CMakeLists.txt
+--- plplot-5.10.0.orig/examples/CMakeLists.txt 2014-04-07 09:51:53.610857133 -0700
++++ plplot-5.10.0/examples/CMakeLists.txt 2014-04-07 09:54:03.938700634 -0700
+@@ -414,7 +414,7 @@
+ endif(CORE_BUILD)
+
+ if(CORE_BUILD AND BUILD_TEST)
+- remove_definitions("-DHAVE_CONFIG_H")
++ remove_definitions("-DPLPLOT_HAVE_CONFIG_H")
+ endif(CORE_BUILD AND BUILD_TEST)
+
+ # Decide on device to be used for generic interactive tests.
+diff -Nur plplot-5.10.0.orig/include/plConfig.h.in plplot-5.10.0/include/plConfig.h.in
+--- plplot-5.10.0.orig/include/plConfig.h.in 2014-04-07 09:51:53.616857175 -0700
++++ plplot-5.10.0/include/plConfig.h.in 2014-04-07 09:54:03.938700634 -0700
+@@ -30,7 +30,7 @@
+ // any user applications). Therefore, the configured plConfig.h
+ // should be installed. In contrast, plplot_config.h.in (note,
+ // plConfig.h #includes plplot_config.h for the core build because
+-// HAVE_CONFIG_H is #defined in that case) contains configured macros
++// PLPLOT_HAVE_CONFIG_H is #defined in that case) contains configured macros
+ // that are only required for the core build. Therefore, in contrast
+ // to plConfig.h, plplot_config.h should not be installed.
+ //
+@@ -44,7 +44,7 @@
+ #ifndef __PLCONFIG_H__
+ #define __PLCONFIG_H__
+
+-#ifdef HAVE_CONFIG_H
++#ifdef PLPLOT_HAVE_CONFIG_H
+ # include <plplot_config.h>
+ #endif
+
+diff -Nur plplot-5.10.0.orig/plplot_config.h.in plplot-5.10.0/plplot_config.h.in
+--- plplot-5.10.0.orig/plplot_config.h.in 2014-04-07 09:51:53.732857993 -0700
++++ plplot-5.10.0/plplot_config.h.in 2014-04-07 09:54:03.938700634 -0700
+@@ -3,7 +3,7 @@
+ // examples (and presumably any user applications). Therefore, the
+ // configured plplot_config.h should not be installed. In contrast,
+ // include/plConfig.h.in (note, the configured plConfig.h result
+-// #includes plplot_config.h for the core build because HAVE_CONFIG_H
++// #includes plplot_config.h for the core build because PLPLOT_HAVE_CONFIG_H
+ // is #defined in that case) contains configured macros that are
+ // required for the core build, installed examples build, and build of
+ // user applications. Therefore, in contrast to plplot_config.h,
diff --git a/sci-libs/plplot/files/plplot-5.9.11-multiarch.patch b/sci-libs/plplot/files/plplot-5.9.11-multiarch.patch
new file mode 100644
index 0000000..8f4512b
--- /dev/null
+++ b/sci-libs/plplot/files/plplot-5.9.11-multiarch.patch
@@ -0,0 +1,50 @@
+diff -up plplot-5.9.11/examples/c++/Makefile.examples.in.multiarch plplot-5.9.11/examples/c++/Makefile.examples.in
+--- plplot-5.9.11/examples/c++/Makefile.examples.in.multiarch 2013-04-24 14:36:28.000000000 -0600
++++ plplot-5.9.11/examples/c++/Makefile.examples.in 2013-12-29 19:48:17.574496673 -0700
+@@ -25,10 +25,7 @@ CXX = @CXX@
+ EXEEXT = @EXEEXT@
+
+ LIB_TAG = @LIB_TAG@
+-PKG_CONFIG_ENV = @PKG_CONFIG_ENV@
+-RPATHCMD = @RPATHCMD@
+ @qt_gui_true@QT_MOC_EXECUTABLE = @QT_MOC_EXECUTABLE@
+-@qt_gui_true@qt_RPATHCMD = @qt_RPATHCMD@
+
+ @wxwidgets_true@PLPLOTWXWIDGETS_EXECUTABLES_list = \
+ @wxwidgets_true@ wxPLplotDemo$(EXEEXT)
+diff -up plplot-5.9.11/examples/c/Makefile.examples.in.multiarch plplot-5.9.11/examples/c/Makefile.examples.in
+--- plplot-5.9.11/examples/c/Makefile.examples.in.multiarch 2012-01-05 06:59:36.000000000 -0700
++++ plplot-5.9.11/examples/c/Makefile.examples.in 2013-12-29 19:48:17.574496673 -0700
+@@ -25,8 +25,6 @@ CC = @CC@
+ EXEEXT = @EXEEXT@
+
+ LIB_TAG = @LIB_TAG@
+-PKG_CONFIG_ENV = @PKG_CONFIG_ENV@
+-RPATHCMD = @RPATHCMD@
+
+ @gcw_true@PLPLOTCANVAS_EXECUTABLES_list = \
+ @gcw_true@ plplotcanvas_demo$(EXEEXT) \
+diff -up plplot-5.9.11/examples/f95/Makefile.examples.in.multiarch plplot-5.9.11/examples/f95/Makefile.examples.in
+--- plplot-5.9.11/examples/f95/Makefile.examples.in.multiarch 2012-02-19 11:33:33.000000000 -0700
++++ plplot-5.9.11/examples/f95/Makefile.examples.in 2013-12-29 19:48:20.960557580 -0700
+@@ -25,8 +25,6 @@ F95 = @FC@
+ EXEEXT = @EXEEXT@
+
+ LIB_TAG = @LIB_TAG@
+-PKG_CONFIG_ENV = @PKG_CONFIG_ENV@
+-RPATHCMD = @RPATHCMD@
+
+ EXECUTABLES_list = \
+ x00f$(EXEEXT) \
+diff -up plplot-5.9.11/examples/tk/Makefile.examples.in.multiarch plplot-5.9.11/examples/tk/Makefile.examples.in
+--- plplot-5.9.11/examples/tk/Makefile.examples.in.multiarch 2013-12-29 19:48:20.961557593 -0700
++++ plplot-5.9.11/examples/tk/Makefile.examples.in 2013-12-29 19:49:19.876587409 -0700
+@@ -24,8 +24,6 @@ CC = @CC@
+ EXEEXT = @EXEEXT@
+
+ LIB_TAG = @LIB_TAG@
+-PKG_CONFIG_ENV = @PKG_CONFIG_ENV@
+-plplottcltk_Main_RPATHCMD = @plplottcltk_Main_RPATHCMD@
+
+ EXECUTABLES_list = xtk01$(EXEEXT)
+ # Second and fourth examples depend on itk.
diff --git a/sci-libs/plplot/files/plplot-5.9.11-ocaml.patch b/sci-libs/plplot/files/plplot-5.9.11-ocaml.patch
new file mode 100644
index 0000000..c10710c
--- /dev/null
+++ b/sci-libs/plplot/files/plplot-5.9.11-ocaml.patch
@@ -0,0 +1,34 @@
+diff -up plplot-5.9.10/bindings/ocaml/CMakeLists.txt.ocaml plplot-5.9.10/bindings/ocaml/CMakeLists.txt
+--- plplot-5.9.10/bindings/ocaml/CMakeLists.txt.ocaml 2013-09-28 10:52:20.000000000 -0600
++++ plplot-5.9.10/bindings/ocaml/CMakeLists.txt 2013-10-24 09:35:47.093185622 -0600
+@@ -155,11 +155,11 @@ if(ENABLE_ocaml)
+ DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/plplot.cmo
+ )
+
+- # ocamlc -a -custom builds a *.cma library from *.cmo
++ # ocamlc -a builds a *.cma library from *.cmo
+ add_custom_command(
+ OUTPUT
+ ${CMAKE_CURRENT_BINARY_DIR}/plplot.cma
+- COMMAND ${OCAMLC} -a -custom -o ${CMAKE_CURRENT_BINARY_DIR}/plplot.cma ${CMAKE_CURRENT_BINARY_DIR}/plplot_core.cmo ${CMAKE_CURRENT_BINARY_DIR}/plplot.cmo -dllib -lplplot_stubs -ccopt -L${CMAKE_CURRENT_BINARY_DIR} -cclib -lplplot_stubs -ccopt -L${CAMLIDL_LIB_DIR} -cclib -lcamlidl -ccopt -L${CMAKE_BINARY_DIR}/src -cclib -lplplot${LIB_TAG} -dllpath ${CMAKE_BINARY_DIR}/src ${ocaml_STATIC_FLAGS}
++ COMMAND ${OCAMLC} -a -o ${CMAKE_CURRENT_BINARY_DIR}/plplot.cma ${CMAKE_CURRENT_BINARY_DIR}/plplot_core.cmo ${CMAKE_CURRENT_BINARY_DIR}/plplot.cmo -dllib -lplplot_stubs -ccopt -L${CMAKE_CURRENT_BINARY_DIR} -cclib -lplplot_stubs -ccopt -L${CAMLIDL_LIB_DIR} -cclib -lcamlidl -ccopt -L${CMAKE_BINARY_DIR}/src -cclib -lplplot${LIB_TAG} -dllpath ${CMAKE_BINARY_DIR}/src ${ocaml_STATIC_FLAGS}
+ DEPENDS
+ ${CMAKE_CURRENT_BINARY_DIR}/plplot_core.cmo
+ ${CMAKE_CURRENT_BINARY_DIR}/plplot.cmo
+diff -up plplot-5.9.10/bindings/ocaml/plcairo/CMakeLists.txt.ocaml plplot-5.9.10/bindings/ocaml/plcairo/CMakeLists.txt
+--- plplot-5.9.10/bindings/ocaml/plcairo/CMakeLists.txt.ocaml 2011-10-19 16:46:13.000000000 -0600
++++ plplot-5.9.10/bindings/ocaml/plcairo/CMakeLists.txt 2013-10-24 09:45:36.884193889 -0600
+@@ -84,11 +84,11 @@ if(ENABLE_ocaml AND OCAML_HAS_CAIRO)
+ DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/plcairo.cmo
+ )
+
+- # ocamlc -a -custom builds a *.cma library from *.cmo
++ # ocamlc -a builds a *.cma library from *.cmo
+ add_custom_command(
+ OUTPUT
+ ${CMAKE_CURRENT_BINARY_DIR}/plcairo.cma
+- COMMAND ${OCAMLC} -a -custom -o ${CMAKE_CURRENT_BINARY_DIR}/plcairo.cma -I ${PATH_TO_PLPLOT_CMA} plplot.cma ${CMAKE_CURRENT_BINARY_DIR}/plcairo.cmo -dllib -lplcairo_stubs -ccopt -L${CMAKE_CURRENT_BINARY_DIR} -cclib -lplcairo_stubs -ccopt -L${CMAKE_BINARY_DIR}/src -cclib -lplplot${LIB_TAG} -dllpath ${CMAKE_BINARY_DIR}/src
++ COMMAND ${OCAMLC} -a -o ${CMAKE_CURRENT_BINARY_DIR}/plcairo.cma -I ${PATH_TO_PLPLOT_CMA} plplot.cma ${CMAKE_CURRENT_BINARY_DIR}/plcairo.cmo -dllib -lplcairo_stubs -ccopt -L${CMAKE_CURRENT_BINARY_DIR} -cclib -lplcairo_stubs -ccopt -L${CMAKE_BINARY_DIR}/src -cclib -lplplot${LIB_TAG} -dllpath ${CMAKE_BINARY_DIR}/src
+ DEPENDS
+ ${CMAKE_CURRENT_BINARY_DIR}/plcairo.cmo
+ WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
diff --git a/sci-libs/plplot/files/plplot-5.9.11-octave.patch b/sci-libs/plplot/files/plplot-5.9.11-octave.patch
new file mode 100644
index 0000000..f21b4d2
--- /dev/null
+++ b/sci-libs/plplot/files/plplot-5.9.11-octave.patch
@@ -0,0 +1,12 @@
+diff -up plplot-5.9.9/plplot_test/test_octave.sh.in.octave plplot-5.9.9/plplot_test/test_octave.sh.in
+--- plplot-5.9.9/plplot_test/test_octave.sh.in.octave 2011-10-12 18:43:01.000000000 -0600
++++ plplot-5.9.9/plplot_test/test_octave.sh.in 2012-01-16 08:29:46.551852247 -0700
+@@ -35,7 +35,7 @@ echo "$TOPDIR"
+ export LD_LIBRARY_PATH="$TOPDIR"/src:"$TOPDIR"/lib/csa:"$TOPDIR"/lib/nn
+
+ # Launch an Octave script that exercises all the demos
+-$octave -f -q -p "$octavedir" <<EOF 2> test.error
++$octave -f -q $octaveopts -p "$octavedir" <<EOF 2> test.error
+
+ # Check verbose_test variable
+ if (strcmp(getenv("verbose_test"),"on") == 1)
diff --git a/sci-libs/plplot/files/plplot-5.9.6-python.patch b/sci-libs/plplot/files/plplot-5.9.6-python.patch
new file mode 100644
index 0000000..d62ece2
--- /dev/null
+++ b/sci-libs/plplot/files/plplot-5.9.6-python.patch
@@ -0,0 +1,13 @@
+diff --git a/examples/python/CMakeLists.txt b/examples/python/CMakeLists.txt
+index 7599164..8457490 100644
+--- a/examples/python/CMakeLists.txt
++++ b/examples/python/CMakeLists.txt
+@@ -214,7 +214,7 @@ if(CORE_BUILD)
+ @ONLY
+ )
+
+- set(python_location1 ${PYTHON_INSTDIR})
++ set(python_location1)
+ set(python_location2)
+ set(python_location3)
+ set(python_location4)
diff --git a/sci-libs/plplot/metadata.xml b/sci-libs/plplot/metadata.xml
new file mode 100644
index 0000000..f5db23b
--- /dev/null
+++ b/sci-libs/plplot/metadata.xml
@@ -0,0 +1,30 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>sci</herd>
+ <longdescription lang="en">
+ PLplot is a library of functions that are useful for making scientific
+ plots. It can be used from within compiled languages such as C, C++,
+ FORTRAN and Java, as well as interactively from interpreted languages such
+ as Octave, Python, Perl and Tcl. It is capable of producing standard x-y
+ plots, semilog plots, log-log plots, contour plots, 3D surface plots, mesh
+ plots, bar charts and pie charts. Multiple graphs may be composited, and it
+ also supports a large variety of output file devices such as Postscript,
+ PNG, JPEG, LaTeX and others. It is also possible to to use interactive
+ devices such as xwin, tk and xterm as output devices. PLplot also offers
+ support for extended characters inculding the Greek alphabet and a host of
+ mathematical symbols.
+</longdescription>
+ <use>
+ <flag name="ada">Add bindings for the ADA programming language</flag>
+ <flag name="dynamic">Build with dynamic drivers</flag>
+ <flag name="octave">Add bindings for
+ <pkg>sci-mathematics/octave</pkg></flag>
+ <flag name="pdl">Add bindings for <pkg>dev-perl/PDL</pkg></flag>
+ <flag name="qhull">Add bindings for <pkg>media-libs/qhull</pkg></flag>
+ <flag name="shapefile">Enable support for ESRI shapefiles</flag>
+ </use>
+ <upstream>
+ <remote-id type="sourceforge">plplot</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/sci-libs/plplot/plplot-5.10.0-r1.ebuild b/sci-libs/plplot/plplot-5.10.0-r1.ebuild
new file mode 100644
index 0000000..bbca811
--- /dev/null
+++ b/sci-libs/plplot/plplot-5.10.0-r1.ebuild
@@ -0,0 +1,245 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sci-libs/plplot/plplot-5.10.0-r1.ebuild,v 1.6 2015/05/07 09:14:47 jlec Exp $
+
+EAPI=5
+
+WX_GTK_VER="2.8"
+FORTRAN_NEEDED=fortran
+PYTHON_COMPAT=( python2_7 )
+VIRTUALX_REQUIRED=test
+
+inherit eutils fortran-2 cmake-utils python-single-r1 toolchain-funcs \
+ virtualx wxwidgets java-pkg-opt-2 multilib
+
+DESCRIPTION="Multi-language scientific plotting library"
+HOMEPAGE="http://plplot.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
+
+LICENSE="LGPL-2"
+SLOT="0/12"
+KEYWORDS="~amd64 ~ppc ~x86 ~amd64-linux ~x86-linux"
+IUSE="ada cairo cxx doc +dynamic examples fortran gd java jpeg latex lua
+ ocaml octave pdf pdl png python qhull qt4 shapefile svg tcl test
+ threads tk truetype wxwidgets X"
+
+RDEPEND="
+ ada? ( virtual/gnat:* )
+ cairo? ( x11-libs/cairo:0=[svg?,X?] )
+ gd? ( media-libs/gd:2=[jpeg?,png?] )
+ java? ( >=virtual/jre-1.5:* )
+ latex? (
+ app-text/ghostscript-gpl
+ virtual/latex-base
+ )
+ lua? ( dev-lang/lua:0= )
+ ocaml? (
+ dev-lang/ocaml
+ dev-ml/camlidl
+ cairo? ( dev-ml/cairo-ocaml[gtk] )
+ )
+ octave? ( sci-mathematics/octave:0= )
+ pdf? ( media-libs/libharu:0= )
+ pdl? (
+ dev-perl/PDL
+ dev-perl/XML-DOM
+ )
+ python? (
+ dev-python/numpy[${PYTHON_USEDEP}]
+ qt4? ( dev-python/PyQt4[${PYTHON_USEDEP}] )
+ )
+ qhull? ( media-libs/qhull:0= )
+ qt4? (
+ dev-qt/qtgui:4=
+ dev-qt/qtsvg:4=
+ )
+ shapefile? ( sci-libs/shapelib:0= )
+ tcl? (
+ dev-lang/tcl:0=
+ dev-tcltk/itcl:0=
+ tk? (
+ dev-lang/tk:0=
+ dev-tcltk/itk
+ )
+ )
+ truetype? (
+ media-fonts/freefont
+ media-libs/lasi:0=
+ gd? ( media-libs/gd:2=[truetype] )
+ )
+ wxwidgets? (
+ x11-libs/wxGTK:2.8=[X]
+ x11-libs/agg:0=[truetype?]
+ )
+ X? (
+ x11-libs/libX11:0=
+ x11-libs/libXau:0=
+ x11-libs/libXdmcp:0=
+ )"
+
+DEPEND="${RDEPEND}
+ virtual/pkgconfig
+ java? (
+ >=virtual/jdk-1.5
+ dev-lang/swig
+ )
+ ocaml? ( dev-ml/findlib )
+ octave? ( >=dev-lang/swig-2.0.12 )
+ python? ( dev-lang/swig )
+ test? (
+ media-fonts/font-misc-misc
+ media-fonts/font-cursor-misc
+ )"
+
+REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} ) qt4? ( dynamic ) test? ( latex ) tk? ( tcl )"
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-5.9.6-python.patch
+ "${FILESDIR}"/${PN}-5.9.11-ocaml.patch
+ "${FILESDIR}"/${PN}-5.9.11-octave.patch
+ "${FILESDIR}"/${PN}-5.9.11-multiarch.patch
+ "${FILESDIR}"/${PN}-5.10.0-have-config-h.patch
+ "${FILESDIR}"/${PN}-5.10.0-cmake.patch
+)
+
+pkg_setup() {
+ use python && python-single-r1_pkg_setup
+ java-pkg-opt-2_pkg_setup
+}
+
+src_prepare() {
+ cmake-utils_src_prepare
+ # avoid installing license
+ sed -i -e '/COPYING.LIB/d' CMakeLists.txt || die
+ # prexify hard-coded /usr/include in cmake modules
+ sed -i \
+ -e "s:/usr/include:${EPREFIX}/usr/include:g" \
+ -e "s:/usr/lib:${EPREFIX}/usr/$(get_libdir):g" \
+ -e "s:/usr/share:${EPREFIX}/usr/share:g" \
+ cmake/modules/*.cmake || die
+ # change default install directories for doc and examples
+ sed -i \
+ -e 's:${DATA_DIR}/examples:${DOC_DIR}/examples:g' \
+ $(find "${S}" -name CMakeLists.txt) || die
+ sed -i \
+ -e 's:${VERSION}::g' \
+ -e "s:doc/\${PACKAGE}:doc/${PF}:" \
+ cmake/modules/instdirs.cmake || die
+ java-utils-2_src_prepare
+}
+
+src_configure() {
+ # don't build doc, it brings a whole lot of horrible dependencies
+ local mycmakeargs=(
+ -DDEFAULT_ALL_DEVICES=ON
+ -DTEST_DYNDRIVERS=OFF
+ -DCMAKE_INSTALL_LIBDIR="${EPREFIX}/usr/$(get_libdir)"
+ -DENABLE_d=OFF
+ -DBUILD_DVI=OFF
+ -DDOX_DOC=OFF
+ -DBUILD_DOC=OFF
+ -DUSE_RPATH=OFF
+ $(cmake-utils_use doc PREBUILT_DOC)
+ $(cmake-utils_use_build test)
+ $(cmake-utils_use_has python NUMPY)
+ $(cmake-utils_use_has shapefile SHAPELIB)
+ $(cmake-utils_use_with truetype FREETYPE)
+ $(cmake-utils_use_enable ada)
+ $(cmake-utils_use_enable cxx)
+ $(cmake-utils_use_enable dynamic DYNDRIVERS)
+ $(cmake-utils_use_enable fortran f77)
+ $(cmake-utils_use_enable java)
+ $(cmake-utils_use_enable lua)
+ $(cmake-utils_use_enable ocaml)
+ $(cmake-utils_use_enable octave)
+ $(cmake-utils_use_enable pdl)
+ $(cmake-utils_use_enable python)
+ $(cmake-utils_use_enable qt4 qt)
+ $(cmake-utils_use_enable tcl)
+ $(cmake-utils_use_enable tcl itcl)
+ $(cmake-utils_use_enable tk)
+ $(cmake-utils_use_enable tk itk)
+ $(cmake-utils_use_enable wxwidgets)
+ $(cmake-utils_use threads PL_HAVE_PTHREAD)
+ $(cmake-utils_use qhull PL_HAVE_QHULL)
+ $(cmake-utils_use qt4 PLD_aqt)
+ $(cmake-utils_use qt4 PLD_bmpqt)
+ $(cmake-utils_use qt4 PLD_epsqt)
+ $(cmake-utils_use qt4 PLD_extqt)
+ $(cmake-utils_use qt4 PLD_jpgqt)
+ $(cmake-utils_use qt4 PLD_memqt)
+ $(cmake-utils_use qt4 PLD_pdfqt)
+ $(cmake-utils_use qt4 PLD_pngqt)
+ $(cmake-utils_use qt4 PLD_ppmqt)
+ $(cmake-utils_use qt4 PLD_svgqt)
+ $(cmake-utils_use qt4 PLD_qtwidget)
+ $(cmake-utils_use qt4 PLD_tiffqt)
+ $(cmake-utils_use cairo PLD_extcairo)
+ $(cmake-utils_use cairo PLD_memcairo)
+ $(cmake-utils_use cairo PLD_pdfcairo)
+ $(cmake-utils_use cairo PLD_pngcairo)
+ $(cmake-utils_use cairo PLD_pscairo)
+ $(cmake-utils_use cairo PLD_svgcairo)
+ $(cmake-utils_use cairo PLD_wincairo)
+ $(cmake-utils_use cairo PLD_xcairo)
+ $(cmake-utils_use tk PLD_ntk)
+ $(cmake-utils_use tk PLD_tk)
+ $(cmake-utils_use tk PLD_tkwin)
+ $(cmake-utils_use gd PLD_gif)
+ $(cmake-utils_use gd PLD_jpeg)
+ $(cmake-utils_use gd PLD_png)
+ $(cmake-utils_use pdf PLD_pdf)
+ $(cmake-utils_use latex PLD_ps)
+ $(cmake-utils_use latex PLD_pstex)
+ $(cmake-utils_use truetype PLD_psttf)
+ $(cmake-utils_use svg PLD_svg)
+ $(cmake-utils_use wxwidgets PLD_wxpng)
+ $(cmake-utils_use wxwidgets PLD_wxwidgets)
+ $(cmake-utils_use X PLD_xwin)
+ )
+
+ [[ $(tc-getFC) != *g77 ]] && \
+ mycmakeargs+=(
+ $(cmake-utils_use_enable fortran f95)
+ )
+
+ use truetype && mycmakeargs+=(
+ -DPL_FREETYPE_FONT_PATH:PATH="${EPREFIX}/usr/share/fonts/freefont"
+ )
+ use shapefile && mycmakeargs+=(
+ -DSHAPELIB_INCLUDE_DIR="${EPREFIX}/usr/include/libshp"
+ )
+ use ocaml && mycmakeargs+=(
+ -DOCAML_INSTALL_DIR="$(ocamlc -where)"
+ )
+ use python && mycmakeargs+=(
+ $(cmake-utils_use_enable qt4 pyqt4)
+ )
+
+ cmake-utils_src_configure
+
+ # clean up bloated pkg-config files (help linking properly on prefix)
+ sed -i \
+ -e "/Cflags/s:-I\(${EPREFIX}\|\)/usr/include[[:space:]]::g" \
+ -e "/Libs/s:-L\(${EPREFIX}\|\)/usr/lib\(64\|\)[[:space:]]::g" \
+ -e "s:${LDFLAGS}::g" \
+ "${BUILD_DIR}"/pkgcfg/*pc || die
+}
+
+src_test() {
+ VIRTUALX_COMMAND=cmake-utils_src_test virtualmake
+}
+
+src_install() {
+ cmake-utils_src_install
+ if use examples; then
+ docompress -x /usr/share/doc/${PF}/examples
+ else
+ rm -r "${ED}"/usr/share/doc/${PF}/examples || die
+ fi
+ if use java; then
+ rm -r "${ED}"/usr/share/java "${ED}"/usr/$(get_libdir)/jni || die
+ java-pkg_dojar "${BUILD_DIR}"/examples/java/${PN}.jar
+ java-pkg_doso "${BUILD_DIR}"/bindings/java/plplotjavac_wrap.so
+ fi
+}