summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastien Fabbro <bicatali@gentoo.org>2010-11-30 23:23:59 +0000
committerSebastien Fabbro <bicatali@gentoo.org>2010-11-30 23:23:59 +0000
commitb3b6d3c227f5bbaa80c4fb6dfad8c49db2a08fd3 (patch)
tree4efe9dce97808c3dde05ae3f85cb0886fb6a02c0 /sci-libs/plplot
parentThese versions won't configure with >=dev-libs/ppl-0.11. (diff)
downloadhistorical-b3b6d3c227f5bbaa80c4fb6dfad8c49db2a08fd3.tar.gz
historical-b3b6d3c227f5bbaa80c4fb6dfad8c49db2a08fd3.tar.bz2
historical-b3b6d3c227f5bbaa80c4fb6dfad8c49db2a08fd3.zip
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.
Package-Manager: portage-2.1.9.25/cvs/Linux x86_64
Diffstat (limited to 'sci-libs/plplot')
-rw-r--r--sci-libs/plplot/ChangeLog12
-rw-r--r--sci-libs/plplot/Manifest15
-rw-r--r--sci-libs/plplot/files/plplot-5.9.0-python.patch11
-rw-r--r--sci-libs/plplot/metadata.xml1
-rw-r--r--sci-libs/plplot/plplot-5.9.6.ebuild190
-rw-r--r--sci-libs/plplot/plplot-5.9.7-r1.ebuild164
-rw-r--r--sci-libs/plplot/plplot-5.9.7.ebuild191
7 files changed, 182 insertions, 402 deletions
diff --git a/sci-libs/plplot/ChangeLog b/sci-libs/plplot/ChangeLog
index d25304279fad..4dcfd26d67b1 100644
--- a/sci-libs/plplot/ChangeLog
+++ b/sci-libs/plplot/ChangeLog
@@ -1,6 +1,16 @@
# ChangeLog for sci-libs/plplot
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sci-libs/plplot/ChangeLog,v 1.30 2010/10/10 20:12:41 bicatali Exp $
+# $Header: /var/cvsroot/gentoo-x86/sci-libs/plplot/ChangeLog,v 1.31 2010/11/30 23:23:59 bicatali Exp $
+
+*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)
diff --git a/sci-libs/plplot/Manifest b/sci-libs/plplot/Manifest
index da136fd88317..cd265b1230a4 100644
--- a/sci-libs/plplot/Manifest
+++ b/sci-libs/plplot/Manifest
@@ -1,18 +1,15 @@
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
-AUX plplot-5.9.0-python.patch 283 RMD160 6252e5a37fd79aafc2e6333cc67fe7fddc76e54e SHA1 a7ebf85d462a3abd555d3acee6cfacecc266377e SHA256 25138e47df484955b67cc723ad2ccd3666ab3e9335f0838f82e569ff1e6d2f9a
AUX plplot-5.9.6-python.patch 379 RMD160 0a86baca63a0078974928be8802bcf8eb5bdbf20 SHA1 480e20d98e14dd468737e52be0c53f1d25f0fc5d SHA256 a338e7b7d9893aabf0bc2e4bc5bd25a97b81674abfa40492b6cc8a33fe8763c8
-DIST plplot-5.9.6.tar.gz 7221179 RMD160 c7c300dbb57101e8c3157457174b3d243a5d6e69 SHA1 c4926e8d47c213cca5de4182923f81397d1f9b7d SHA256 a1324a5c5677f4d45b95a27d788a5bee8a99143d9aa3ff0c0f2c769e90e61aad
DIST plplot-5.9.7.tar.gz 7230997 RMD160 4dacdbe908830f79d7200933a6b16f1fefa53d26 SHA1 4bfdc2e8ead40ba280ea02ddb56dc90201f5fd47 SHA256 fbf9f48c4c4d96cb9eeb9d821c09b0ce4a36ae5dda9e378f5367f6b9671725e0
-EBUILD plplot-5.9.6.ebuild 5487 RMD160 d9cc7c47f9fa1618df7e8e52cafa2f7a8b811713 SHA1 1059baa738c0460e60a1e12bc95593d027e34caa SHA256 e80f285c0d7449707574729a6376b0d08f87140ceb47cb2d525c898ab763d2af
-EBUILD plplot-5.9.7.ebuild 5530 RMD160 1eee5a12e2ccd89003a234b7a98fe7757d7c23c1 SHA1 572b7c6f9072b669dbcba8c8b044bc21f80b6382 SHA256 d3dee9770c38235fb6bd750f86fb33305e5b477320dcac82978d42490e43a33b
-MISC ChangeLog 5343 RMD160 250cd4de3d7350c07981d0fb05a877a8f17ce631 SHA1 d26e050c46c38f5c23cba2340f92f8749a6699fb SHA256 0beb9e0771fc24941a4d8a67bb54d1bcd77466ef46f987512239f362be0d3648
-MISC metadata.xml 1287 RMD160 16881b806950d595ee82f28ea2a7246e5a41622b SHA1 f0b23914c3453cc751b59c62130c6d7dc08226c8 SHA256 955d599fa5a8c9ca568611283e562b2cdd91e606642636823544b8b2d8de25c7
+EBUILD plplot-5.9.7-r1.ebuild 4893 RMD160 0fb4c986591affac48ca4e8879410f79fcd7a8d4 SHA1 d7b3c2785b72bf3b5dd3223a77625f43ac4bae42 SHA256 c821863158d2effebb4599392cc69ee669215cab43917447d42608d527c6ad25
+MISC ChangeLog 5838 RMD160 0c28d69397b754862ea5fd406c38541c72563e13 SHA1 918277460d6595ae4337b5a8a081415ca306e734 SHA256 bb719b06970227ac285decb28752fca64a145ac918cf218fe528949e57eed318
+MISC metadata.xml 1344 RMD160 4246d3a8be85dfce2158f5d9c3908980b1f10797 SHA1 213f525c1241740b248662e8c1d18a98f2d51d7a SHA256 f5c283da27a5fa22f966f403651da8d5732a5febf3d475b2dde33d6b309bbcbe
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.16 (GNU/Linux)
-iEYEARECAAYFAkyyHkUACgkQ1ycZbhPLE2AxJACfYfrLiULenvgZz2MmnGjAtz12
-VwEAoKLwzK8Z+Q+hnj+v+mB2nKSx3/8C
-=hG1i
+iEYEARECAAYFAkz1h5kACgkQ1ycZbhPLE2CsNQCfYEFbroUz8jTJJ1BKiweo6xLP
+i7wAniRotGiTtJfZrdKq3m0VqZwhaCLy
+=v6gQ
-----END PGP SIGNATURE-----
diff --git a/sci-libs/plplot/files/plplot-5.9.0-python.patch b/sci-libs/plplot/files/plplot-5.9.0-python.patch
deleted file mode 100644
index 863150274f33..000000000000
--- a/sci-libs/plplot/files/plplot-5.9.0-python.patch
+++ /dev/null
@@ -1,11 +0,0 @@
---- plplot/examples/python/CMakeLists.txt.orig
-+++ plplot/examples/python/CMakeLists.txt
-@@ -147,7 +147,7 @@
- @ONLY
- )
-
--set(python_location1 ${PYTHON_INSTDIR})
-+set(python_location1)
- set(python_location2)
- configure_file(
- ${CMAKE_CURRENT_SOURCE_DIR}/plplot_python_start.py.cmake
diff --git a/sci-libs/plplot/metadata.xml b/sci-libs/plplot/metadata.xml
index 63ee7b93611e..3b82de517fcb 100644
--- a/sci-libs/plplot/metadata.xml
+++ b/sci-libs/plplot/metadata.xml
@@ -18,6 +18,7 @@
<use>
<flag name='ada'>Add bindings for the ADA programming language</flag>
<flag name='d'>Add bindings for the D 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='qhull'>Add bindings for <pkg>media-libs/qhull</pkg>
bindings</flag>
diff --git a/sci-libs/plplot/plplot-5.9.6.ebuild b/sci-libs/plplot/plplot-5.9.6.ebuild
deleted file mode 100644
index 0516fae57cfc..000000000000
--- a/sci-libs/plplot/plplot-5.9.6.ebuild
+++ /dev/null
@@ -1,190 +0,0 @@
-# Copyright 1999-2010 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sci-libs/plplot/plplot-5.9.6.ebuild,v 1.1 2010/07/04 18:27:02 jlec Exp $
-
-EAPI="2"
-
-WX_GTK_VER="2.8"
-PYTHON_DEPEND="python? 2"
-
-inherit eutils cmake-utils python toolchain-funcs wxwidgets java-pkg-opt-2
-
-DESCRIPTION="Multi-language scientific plotting library"
-HOMEPAGE="http://plplot.sourceforge.net/"
-SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
-
-LICENSE="LGPL-2"
-SLOT="0"
-KEYWORDS="~amd64 ~x86"
-IUSE="ada cairo doc examples fortran gd gnome java jpeg latex octave
- pdf perl png python qhull qt4 svg svga tcl threads tk truetype wxwidgets X"
-
-RDEPEND="
- ada? ( virtual/gnat )
- cairo? ( x11-libs/cairo[svg?,X?] )
- java? ( >=virtual/jre-1.5 )
- gd? ( media-libs/gd[jpeg?,png?] )
- gnome? (
- gnome-base/libgnomeui
- gnome-base/libgnomeprintui
- python? ( dev-python/gnome-python ) )
- latex? ( virtual/latex-base app-text/ghostscript-gpl )
- octave? ( >=sci-mathematics/octave-3 )
- pdf? ( media-libs/libharu )
- perl? ( dev-perl/PDL dev-perl/XML-DOM )
- python? ( dev-python/numpy )
- qt4? (
- x11-libs/qt-gui:4
- x11-libs/qt-svg:4 )
- svga? ( media-libs/svgalib )
- tcl? ( dev-lang/tcl dev-tcltk/itcl )
- tk? ( dev-lang/tk dev-tcltk/itk )
- truetype? (
- media-fonts/freefont-ttf
- media-libs/lasi
- gd? ( media-libs/gd[truetype] ) )
- wxwidgets? ( x11-libs/wxGTK:2.8[X] x11-libs/agg[truetype?] )
- X? ( x11-libs/libX11 x11-libs/libXau x11-libs/libXdmcp )"
-DEPEND="${RDEPEND}
- >=dev-util/cmake-2.6
- dev-util/pkgconfig
- doc? (
- app-text/opensp
- app-text/jadetex
- app-text/docbook2X
- app-text/docbook-dsssl-stylesheets
- dev-perl/XML-DOM
- virtual/latex-base
- app-text/ghostscript-gpl
- sys-apps/texinfo )
- java? ( >=virtual/jdk-1.5 dev-lang/swig )
- python? ( dev-lang/swig )
- qhull? ( media-libs/qhull )"
-
-pkg_setup() {
- if use fortran; then
- export FC=$(tc-getFC) F77=$(tc-getF77)
- else
- export FC="" F77=""
- fi
- use wxwidgets && wxwidgets_pkg_setup
- use python && python_set_active_version 2
- use java && java-pkg-opt-2_pkg_setup
-}
-
-src_prepare() {
- # path for python independent of python version
- epatch "${FILESDIR}"/${P}-python.patch
-
- # remove license
- sed -i -e '/COPYING.LIB/d' CMakeLists.txt || die
-
- # change default install directories for doc and examples
- sed -i \
- -e 's:${DATA_DIR}/examples:${DOC_DIR}/examples:g' \
- examples/CMakeLists.txt examples/*/CMakeLists.txt || die
- sed -i \
- -e 's:${VERSION}::g' \
- -e "s:doc/\${PACKAGE}:doc/${PF}:" \
- cmake/modules/instdirs.cmake || die
-
- # haru pdf devide does not build with HPDF_SHARED
- sed -i \
- -e 's:-DHPDF_SHARED::' \
- cmake/modules/pdf.cmake || die
-
- # default location for docbook crap
- sed -i \
- -e 's:xml/declaration:sgml:' \
- cmake/modules/docbook.cmake || die
-
- # Problem if old version is installed
- sed "/TEST_DYNDRIVERS/s:ON:OFF:g" -i drivers/CMakeLists.txt
-
- use java && java-utils-2_src_prepare
-}
-
-src_configure() {
- # see http://www.miscdebris.net/plplot_wiki/index.php?title=CMake_options_for_PLplot
- cmake-utils_pld() { _use_me_now PLD "$@" ; }
-
- mycmakeargs="
- -DUSE_RPATH=OFF
- -DDEFAULT_ALL_DEVICES=ON
- -DCMAKE_INSTALL_LIBDIR=/usr/$(get_libdir)
- $(cmake-utils_use_has python numpy)
- $(cmake-utils_use_has qhull QHULL)
- $(cmake-utils_use_has threads PTHREAD)
- $(cmake-utils_use_with truetype FREETYPE)
- $(cmake-utils_use_enable ada ada)
- $(cmake-utils_use_enable fortran f77)
- $(cmake-utils_use_enable java java)
- $(cmake-utils_use_enable gnome gnome2)
- $(cmake-utils_use_enable octave octave)
- $(cmake-utils_use_enable perl pdl)
- $(cmake-utils_use_enable python python)
- $(cmake-utils_use_enable qt4 qt)
- $(cmake-utils_use_enable tcl tcl)
- $(cmake-utils_use_enable tcl itcl)
- $(cmake-utils_use_enable tk tk)
- $(cmake-utils_use_enable tk itk)
- $(cmake-utils_pld qt4 _svgqt)
- $(cmake-utils_pld wxwidgets _wxwidgets)
- $(cmake-utils_pld wxwidgets _wxpng)
- $(cmake-utils_pld pdf pdf)
- $(cmake-utils_pld truetype psttf)
- $(cmake-utils_pld latex pstex)
- $(cmake-utils_pld svga linuxvga)"
-
- use fortran && [[ $(tc-getFC) != g77 ]] && \
- mycmakeargs="${mycmakeargs} $(cmake-utils_use_enable fortran f95)"
-
- use truetype && mycmakeargs="${mycmakeargs}
- -DPL_FREETYPE_FONT_PATH:PATH=/usr/share/fonts/freefont-ttf"
-
- if use python && use gnome; then
- mycmakeargs="${mycmakeargs} -DENABLE_pygcw=ON"
- else
- mycmakeargs="${mycmakeargs} -DENABLE_pygcw=OFF"
- fi
- if use cairo; then
- # memcairo buggy, see cmake/modules/drivers-init.cmake
- mycmakeargs="${mycmakeargs}
- -DPLD_memcairo=OFF
- -DPLD_extcairo=OFF
- -DPLD_pdfcairo=ON
- -DPLD_pngcairo=ON
- -DPLD_pscairo=ON
- $(cmake-utils_pld svg svgcairo)
- $(cmake-utils_pld X xcairo)"
- else
- mycmakeargs="${mycmakeargs}
- -DPLD_memcairo=OFF
- -DPLD_extcairo=OFF
- -DPLD_pdfcairo=OFF
- -DPLD_pngcairo=OFF
- -DPLD_pscairo=OFF
- -DPLD_svgcairo=OFF
- -DPLD_xcairo=OFF"
- fi
- cmake-utils_src_configure
-}
-
-src_compile() {
- # separate doc and normal because doc building crashes with parallel
- cmake-utils_src_make
- if use doc; then
- mycmakeargs="${mycmakeargs} -DBUILD_DOC=ON"
- mycmakeargs="${mycmakeargs} -DHAVE_DB_DTD=ON"
- mycmakeargs="${mycmakeargs} -DHAVE_DSSSL_DTD=ON"
- mycmakeargs="${mycmakeargs} -DHAVE_HTML_SS=ON"
- mycmakeargs="${mycmakeargs} -DHAVE_PRINT_SS=ON"
- cmake-utils_src_configure
- VARTEXFONTS="${T}/fonts" cmake-utils_src_make -j1
- fi
-}
-
-src_install() {
- cmake-utils_src_install
- use examples || rm -rf "${D}"usr/share/doc/${PF}/examples
-}
diff --git a/sci-libs/plplot/plplot-5.9.7-r1.ebuild b/sci-libs/plplot/plplot-5.9.7-r1.ebuild
new file mode 100644
index 000000000000..2978eeebbf73
--- /dev/null
+++ b/sci-libs/plplot/plplot-5.9.7-r1.ebuild
@@ -0,0 +1,164 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sci-libs/plplot/plplot-5.9.7-r1.ebuild,v 1.1 2010/11/30 23:23:59 bicatali Exp $
+
+EAPI="3"
+
+WX_GTK_VER="2.8"
+PYTHON_DEPEND="python? 2"
+
+inherit eutils cmake-utils python toolchain-funcs virtualx wxwidgets java-pkg-opt-2
+
+DESCRIPTION="Multi-language scientific plotting library"
+HOMEPAGE="http://plplot.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
+
+LICENSE="LGPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="ada cairo d doc dynamic examples fortran gd java jpeg latex lua ocaml octave
+ pdf perl png python qhull qt4 svg tcl test threads tk truetype wxwidgets X"
+
+RDEPEND="
+ ada? ( virtual/gnat )
+ cairo? ( x11-libs/cairo[svg?,X?] )
+ java? ( >=virtual/jre-1.5 )
+ gd? ( media-libs/gd[jpeg?,png?] )
+ latex? ( virtual/latex-base app-text/ghostscript-gpl )
+ lua? ( dev-lang/lua )
+ ocaml? (
+ dev-lang/ocaml
+ dev-ml/camlidl
+ dev-ml/lablgtk )
+ octave? ( sci-mathematics/octave )
+ pdf? ( media-libs/libharu )
+ perl? ( dev-perl/PDL dev-perl/XML-DOM )
+ python? (
+ dev-python/numpy
+ qt4? ( dev-python/PyQt4 ) )
+ qhull? ( media-libs/qhull )
+ qt4? (
+ x11-libs/qt-gui:4
+ x11-libs/qt-svg:4 )
+ svga? ( media-libs/svgalib )
+ tcl? ( dev-lang/tcl dev-tcltk/itcl
+ tk? ( dev-lang/tk dev-tcltk/itk ) )
+ truetype? (
+ media-fonts/freefont-ttf
+ media-libs/lasi
+ gd? ( media-libs/gd[truetype] ) )
+ wxwidgets? ( x11-libs/wxGTK:2.8[X] x11-libs/agg[truetype?] )
+ X? ( x11-libs/libX11 x11-libs/libXau x11-libs/libXdmcp )"
+DEPEND="${RDEPEND}
+ dev-util/pkgconfig
+ java? ( >=virtual/jdk-1.5 dev-lang/swig )
+ ocaml? ( dev-ml/findlib )
+ python? ( dev-lang/swig )
+ test? ( media-fonts/font-misc-misc
+ media-fonts/font-cursor-misc )"
+
+pkg_setup() {
+ if use fortran; then
+ export FC=$(tc-getFC) F77=$(tc-getF77)
+ else
+ export FC="" F77=""
+ fi
+ use wxwidgets && wxwidgets_pkg_setup
+ use python && python_set_active_version 2
+ use java && java-pkg-opt-2_pkg_setup
+}
+
+src_prepare() {
+ # path for python independent of python version
+ epatch "${FILESDIR}"/${PN}-5.9.6-python.patch
+
+ # remove license
+ sed -i -e '/COPYING.LIB/d' CMakeLists.txt || die
+
+ # change default install directories for doc and examples
+ sed -i \
+ -e 's:${DATA_DIR}/examples:${DOC_DIR}/examples:g' \
+ examples/CMakeLists.txt examples/*/CMakeLists.txt || die
+ sed -i \
+ -e 's:${VERSION}::g' \
+ -e "s:doc/\${PACKAGE}:doc/${PF}:" \
+ cmake/modules/instdirs.cmake || die
+
+ use java && java-utils-2_src_prepare
+}
+
+src_configure() {
+ # see http://www.miscdebris.net/plplot_wiki/index.php?title=CMake_options_for_PLplot
+ cmake-utils_pld() { _use_me_now PLD "$1 _$2" ; }
+
+ mycmakeargs=(
+ -DUSE_RPATH=OFF
+ -DUSE_RELATIVE_PATH=OFF
+ -DDEFAULT_ALL_DEVICES=ON
+ -DTEST_DYNDRIVERS=OFF
+ -DCMAKE_INSTALL_LIBDIR="${EPREFIX}/usr/$(get_libdir)"
+ $(cmake-utils_use_build test)
+ $(cmake-utils_use_has python numpy)
+ $(cmake-utils_use_has qhull QHULL)
+ $(cmake-utils_use_has threads PTHREAD)
+ $(cmake-utils_use_with truetype FREETYPE)
+ $(cmake-utils_use_enable ada)
+ $(cmake-utils_use_enable d)
+ $(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 perl 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_pld cairo memcairo)
+ $(cmake-utils_pld cairo extcairo)
+ $(cmake-utils_pld cairo pdfcairo)
+ $(cmake-utils_pld cairo pngcairo)
+ $(cmake-utils_pld cairo pscairo)
+ $(cmake-utils_pld cairo svgcairo)
+ $(cmake-utils_pld cairo xcairo)
+ $(cmake-utils_pld qt4 bmpqt)
+ $(cmake-utils_pld qt4 epsqt)
+ $(cmake-utils_pld qt4 extqt)
+ $(cmake-utils_pld qt4 jpgqt)
+ $(cmake-utils_pld qt4 memqt)
+ $(cmake-utils_pld qt4 pdfqt)
+ $(cmake-utils_pld qt4 pngqt)
+ $(cmake-utils_pld qt4 ppmqt)
+ $(cmake-utils_pld qt4 qtwidgets)
+ $(cmake-utils_pld qt4 svgqt)
+ $(cmake-utils_pld qt4 tiffqt)
+ $(cmake-utils_pld wxwidgets wxwidgets)
+ $(cmake-utils_pld wxwidgets wxpng)
+ $(cmake-utils_pld pdf)
+ $(cmake-utils_pld truetype psttf)
+ $(cmake-utils_pld latex pstex)
+ )
+ use fortran && [[ $(tc-getFC) != *g77 ]] && \
+ mycmakeargs+=( $(cmake-utils_use_enable fortran f95) )
+
+ use truetype && mycmakeargs+=(
+ -DPL_FREETYPE_FONT_PATH:PATH="${EPREFIX}/usr/share/fonts/freefont-ttf" )
+
+ use python && use qt4 && mycmakeargs+=( $(cmake_utils_pld pyqt) )
+ use doc && mycmakeargs+=( -DPREBUILT_DOC=ON )
+ cmake-utils_src_configure
+}
+
+src_test() {
+ pushd "${S}_build" > /dev/null
+ Xemake test || die "tests failed"
+ popd > /dev/null
+}
+
+src_install() {
+ cmake-utils_src_install
+ use examples || rm -rf "${ED}"/usr/share/doc/${PF}/examples
+}
diff --git a/sci-libs/plplot/plplot-5.9.7.ebuild b/sci-libs/plplot/plplot-5.9.7.ebuild
deleted file mode 100644
index 6572b037f764..000000000000
--- a/sci-libs/plplot/plplot-5.9.7.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-libs/plplot/plplot-5.9.7.ebuild,v 1.1 2010/10/10 20:12:41 bicatali Exp $
-
-EAPI="2"
-
-WX_GTK_VER="2.8"
-PYTHON_DEPEND="python? 2"
-
-inherit eutils cmake-utils python toolchain-funcs wxwidgets java-pkg-opt-2
-
-DESCRIPTION="Multi-language scientific plotting library"
-HOMEPAGE="http://plplot.sourceforge.net/"
-SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
-
-LICENSE="LGPL-2"
-SLOT="0"
-KEYWORDS="~amd64 ~x86"
-IUSE="ada cairo d doc examples fortran gd gnome java jpeg latex octave
- pdf perl png python qhull qt4 svg svga tcl threads tk truetype wxwidgets X"
-
-RDEPEND="
- ada? ( virtual/gnat )
- cairo? ( x11-libs/cairo[svg?,X?] )
- java? ( >=virtual/jre-1.5 )
- gd? ( media-libs/gd[jpeg?,png?] )
- gnome? (
- gnome-base/libgnomeui
- gnome-base/libgnomeprintui
- python? ( dev-python/gnome-python ) )
- latex? ( virtual/latex-base app-text/ghostscript-gpl )
- octave? ( >=sci-mathematics/octave-3 )
- pdf? ( media-libs/libharu )
- perl? ( dev-perl/PDL dev-perl/XML-DOM )
- python? ( dev-python/numpy )
- qt4? (
- x11-libs/qt-gui:4
- x11-libs/qt-svg:4 )
- svga? ( media-libs/svgalib )
- tcl? ( dev-lang/tcl dev-tcltk/itcl )
- tk? ( dev-lang/tk dev-tcltk/itk )
- truetype? (
- media-fonts/freefont-ttf
- media-libs/lasi
- gd? ( media-libs/gd[truetype] ) )
- wxwidgets? ( x11-libs/wxGTK:2.8[X] x11-libs/agg[truetype?] )
- X? ( x11-libs/libX11 x11-libs/libXau x11-libs/libXdmcp )"
-DEPEND="${RDEPEND}
- >=dev-util/cmake-2.6
- dev-util/pkgconfig
- doc? (
- app-text/opensp
- app-text/jadetex
- app-text/docbook2X
- app-text/docbook-dsssl-stylesheets
- dev-perl/XML-DOM
- virtual/latex-base
- app-text/ghostscript-gpl
- sys-apps/texinfo )
- java? ( >=virtual/jdk-1.5 dev-lang/swig )
- python? ( dev-lang/swig )
- qhull? ( media-libs/qhull )"
-
-pkg_setup() {
- if use fortran; then
- export FC=$(tc-getFC) F77=$(tc-getF77)
- else
- export FC="" F77=""
- fi
- use wxwidgets && wxwidgets_pkg_setup
- use python && python_set_active_version 2
- use java && java-pkg-opt-2_pkg_setup
-}
-
-src_prepare() {
- # path for python independent of python version
- epatch "${FILESDIR}"/${PN}-5.9.6-python.patch
-
- # remove license
- sed -i -e '/COPYING.LIB/d' CMakeLists.txt || die
-
- # change default install directories for doc and examples
- sed -i \
- -e 's:${DATA_DIR}/examples:${DOC_DIR}/examples:g' \
- examples/CMakeLists.txt examples/*/CMakeLists.txt || die
- sed -i \
- -e 's:${VERSION}::g' \
- -e "s:doc/\${PACKAGE}:doc/${PF}:" \
- cmake/modules/instdirs.cmake || die
-
- # haru pdf devide does not build with HPDF_SHARED
- sed -i \
- -e 's:-DHPDF_SHARED::' \
- cmake/modules/pdf.cmake || die
-
- # default location for docbook crap
- sed -i \
- -e 's:xml/declaration:sgml:' \
- cmake/modules/docbook.cmake || die
-
- # Problem if old version is installed
- sed "/TEST_DYNDRIVERS/s:ON:OFF:g" -i drivers/CMakeLists.txt
-
- use java && java-utils-2_src_prepare
-}
-
-src_configure() {
- # see http://www.miscdebris.net/plplot_wiki/index.php?title=CMake_options_for_PLplot
- cmake-utils_pld() { _use_me_now PLD "$@" ; }
-
- mycmakeargs="
- -DUSE_RPATH=OFF
- -DDEFAULT_ALL_DEVICES=ON
- -DCMAKE_INSTALL_LIBDIR=/usr/$(get_libdir)
- $(cmake-utils_use_has python numpy)
- $(cmake-utils_use_has qhull QHULL)
- $(cmake-utils_use_has threads PTHREAD)
- $(cmake-utils_use_with truetype FREETYPE)
- $(cmake-utils_use_enable ada ada)
- $(cmake-utils_use_enable d)
- $(cmake-utils_use_enable fortran f77)
- $(cmake-utils_use_enable java java)
- $(cmake-utils_use_enable gnome gnome2)
- $(cmake-utils_use_enable octave octave)
- $(cmake-utils_use_enable perl pdl)
- $(cmake-utils_use_enable python python)
- $(cmake-utils_use_enable qt4 qt)
- $(cmake-utils_use_enable tcl tcl)
- $(cmake-utils_use_enable tcl itcl)
- $(cmake-utils_use_enable tk tk)
- $(cmake-utils_use_enable tk itk)
- $(cmake-utils_pld qt4 _svgqt)
- $(cmake-utils_pld wxwidgets _wxwidgets)
- $(cmake-utils_pld wxwidgets _wxpng)
- $(cmake-utils_pld pdf pdf)
- $(cmake-utils_pld truetype psttf)
- $(cmake-utils_pld latex pstex)
- $(cmake-utils_pld svga linuxvga)"
-
- use fortran && [[ $(tc-getFC) != g77 ]] && \
- mycmakeargs="${mycmakeargs} $(cmake-utils_use_enable fortran f95)"
-
- use truetype && mycmakeargs="${mycmakeargs}
- -DPL_FREETYPE_FONT_PATH:PATH=/usr/share/fonts/freefont-ttf"
-
- if use python && use gnome; then
- mycmakeargs="${mycmakeargs} -DENABLE_pygcw=ON"
- else
- mycmakeargs="${mycmakeargs} -DENABLE_pygcw=OFF"
- fi
- if use cairo; then
- # memcairo buggy, see cmake/modules/drivers-init.cmake
- mycmakeargs="${mycmakeargs}
- -DPLD_memcairo=OFF
- -DPLD_extcairo=OFF
- -DPLD_pdfcairo=ON
- -DPLD_pngcairo=ON
- -DPLD_pscairo=ON
- $(cmake-utils_pld svg svgcairo)
- $(cmake-utils_pld X xcairo)"
- else
- mycmakeargs="${mycmakeargs}
- -DPLD_memcairo=OFF
- -DPLD_extcairo=OFF
- -DPLD_pdfcairo=OFF
- -DPLD_pngcairo=OFF
- -DPLD_pscairo=OFF
- -DPLD_svgcairo=OFF
- -DPLD_xcairo=OFF"
- fi
- cmake-utils_src_configure
-}
-
-src_compile() {
- # separate doc and normal because doc building crashes with parallel
- cmake-utils_src_make
- if use doc; then
- mycmakeargs="${mycmakeargs} -DBUILD_DOC=ON"
- mycmakeargs="${mycmakeargs} -DHAVE_DB_DTD=ON"
- mycmakeargs="${mycmakeargs} -DHAVE_DSSSL_DTD=ON"
- mycmakeargs="${mycmakeargs} -DHAVE_HTML_SS=ON"
- mycmakeargs="${mycmakeargs} -DHAVE_PRINT_SS=ON"
- cmake-utils_src_configure
- VARTEXFONTS="${T}/fonts" cmake-utils_src_make -j1
- fi
-}
-
-src_install() {
- cmake-utils_src_install
- use examples || rm -rf "${D}"usr/share/doc/${PF}/examples
-}