diff options
author | Sebastien Fabbro <bicatali@gentoo.org> | 2013-10-28 19:36:30 +0000 |
---|---|---|
committer | Sebastien Fabbro <bicatali@gentoo.org> | 2013-10-28 19:36:30 +0000 |
commit | 1d32edba5a5a1519ee44a9a51e0065cf572f967e (patch) | |
tree | 5c8bcc213b4f3b86ad2bab33266b26494bbce69f /sci-libs | |
parent | Version bump (diff) | |
download | gentoo-2-1d32edba5a5a1519ee44a9a51e0065cf572f967e.tar.gz gentoo-2-1d32edba5a5a1519ee44a9a51e0065cf572f967e.tar.bz2 gentoo-2-1d32edba5a5a1519ee44a9a51e0065cf572f967e.zip |
Version bump
(Portage version: 2.2.7-prefix/cvs/Linux x86_64, signed Manifest commit with key 0x13CB1360)
Diffstat (limited to 'sci-libs')
-rw-r--r-- | sci-libs/plplot/ChangeLog | 8 | ||||
-rw-r--r-- | sci-libs/plplot/metadata.xml | 17 | ||||
-rw-r--r-- | sci-libs/plplot/plplot-5.9.10.ebuild | 197 |
3 files changed, 213 insertions, 9 deletions
diff --git a/sci-libs/plplot/ChangeLog b/sci-libs/plplot/ChangeLog index bab1eee87ae5..a8f38ae0be87 100644 --- a/sci-libs/plplot/ChangeLog +++ b/sci-libs/plplot/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for sci-libs/plplot # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sci-libs/plplot/ChangeLog,v 1.49 2013/04/18 06:09:30 patrick Exp $ +# $Header: /var/cvsroot/gentoo-x86/sci-libs/plplot/ChangeLog,v 1.50 2013/10/28 19:36:30 bicatali Exp $ + +*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) diff --git a/sci-libs/plplot/metadata.xml b/sci-libs/plplot/metadata.xml index e8c81d6b8fb7..c6cb1ea7cb53 100644 --- a/sci-libs/plplot/metadata.xml +++ b/sci-libs/plplot/metadata.xml @@ -1,8 +1,8 @@ <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> <pkgmetadata> - <herd>sci</herd> - <longdescription> +<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 @@ -15,10 +15,11 @@ 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="qhull">Add bindings for <pkg>media-libs/qhull</pkg></flag> - </use> +<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="qhull">Add bindings for <pkg>media-libs/qhull</pkg></flag> + <flag name="shapefile">Enable support for ESRI shapefiles</flag> +</use> </pkgmetadata> diff --git a/sci-libs/plplot/plplot-5.9.10.ebuild b/sci-libs/plplot/plplot-5.9.10.ebuild new file mode 100644 index 000000000000..563f8406d0fe --- /dev/null +++ b/sci-libs/plplot/plplot-5.9.10.ebuild @@ -0,0 +1,197 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sci-libs/plplot/plplot-5.9.10.ebuild,v 1.1 2013/10/28 19:36:30 bicatali Exp $ + +EAPI=5 + +WX_GTK_VER="2.8" +FORTRAN_NEEDED=fortran +PYTHON_COMPAT=( python{2_6,2_7} ) + +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" +KEYWORDS="~amd64 ~ppc ~x86 ~amd64-linux ~x86-linux" +IUSE="ada cairo cxx doc +dynamic examples fortran gd java jpeg latex lua + ocaml octave pdf perl png python qhull qt4 shapefile 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 + cairo? ( dev-ml/cairo-ocaml[gtk] ) ) + octave? ( sci-mathematics/octave ) + pdf? ( media-libs/libharu ) + perl? ( dev-perl/PDL dev-perl/XML-DOM ) + python? ( + dev-python/numpy[${PYTHON_USEDEP}] + qt4? ( dev-python/PyQt4[${PYTHON_USEDEP}] ) ) + qhull? ( media-libs/qhull ) + qt4? ( + dev-qt/qtgui:4 + dev-qt/qtsvg:4 ) + shapefile? ( sci-libs/shapelib ) + tcl? ( dev-lang/tcl dev-tcltk/itcl + tk? ( dev-lang/tk dev-tcltk/itk ) ) + truetype? ( + media-fonts/freefont + 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} + virtual/pkgconfig + doc? ( app-doc/doxygen ) + 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 )" +REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} ) qt4? ( dynamic ) test? ( latex )" + +pkg_setup() { + use wxwidgets && wxwidgets_pkg_setup + use python && python-single-r1_pkg_setup + java-pkg-opt-2_pkg_setup +} + +src_prepare() { + # path for python independent of python version + epatch "${FILESDIR}"/${PN}-5.9.6-python.patch + # 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() { + local mycmakeargs=( + -DDEFAULT_ALL_DEVICES=ON + -DTEST_DYNDRIVERS=OFF + -DCMAKE_INSTALL_LIBDIR="${EPREFIX}/usr/$(get_libdir)" + -DENABLE_d=OFF + $(cmake-utils_use_build doc DOX_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 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_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 python && mycmakeargs+=( $(cmake-utils_use_enable qt4 pyqt4) ) + use doc && mycmakeargs+=( -DPREBUILT_DOC=ON ) + 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" \ + "${CMAKE_BUILD_DIR}"/pkgcfg/*pc || die +} + +src_test() { + pushd "${BUILD_DIR}" > /dev/null + Xemake test || die "tests failed" + popd > /dev/null +} + +src_install() { + cmake-utils_src_install + use examples || rm -r "${ED}"/usr/share/doc/${PF}/examples + #use doc && dohtml -r doc/docbook/src/* + if use java; then + rm -r "${ED}"/usr/share/java "${ED}"/usr/$(get_libdir)/jni || die + java-pkg_dojar "${CMAKE_BUILD_DIR}"/examples/java/${PN}.jar + java-pkg_doso "${CMAKE_BUILD_DIR}"/bindings/java/plplotjavac_wrap.so + fi +} |