diff options
Diffstat (limited to 'sci-visualization')
27 files changed, 73 insertions, 1510 deletions
diff --git a/sci-visualization/fityk/fityk-1.3.1.ebuild b/sci-visualization/fityk/fityk-1.3.1.ebuild deleted file mode 100644 index 8233f353cdce..000000000000 --- a/sci-visualization/fityk/fityk-1.3.1.ebuild +++ /dev/null @@ -1,47 +0,0 @@ -# Copyright 1999-2020 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -WX_GTK_VER=3.0 - -inherit wxwidgets xdg - -DESCRIPTION="General-purpose nonlinear curve fitting and data analysis" -HOMEPAGE="https://fityk.nieto.pl/" -SRC_URI="https://github.com/wojdyr/${PN}/releases/download/v${PV}/${P}.tar.bz2" - -LICENSE="GPL-2" -SLOT="0" -KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" -IUSE="gnuplot nlopt readline wxwidgets" - -DEPEND=" - >=dev-lang/lua-5.1:0 - dev-libs/boost:= - >=sci-libs/xylib-1 - nlopt? ( sci-libs/nlopt ) - readline? ( sys-libs/readline:0= ) - wxwidgets? ( x11-libs/wxGTK:${WX_GTK_VER} )" -RDEPEND="${DEPEND} - gnuplot? ( sci-visualization/gnuplot )" -BDEPEND="dev-lang/swig" - -src_configure() { - use wxwidgets && setup-wxwidgets - - econf \ - --disable-python \ - --disable-static \ - $(use_enable nlopt) \ - $(use_enable wxwidgets GUI) \ - $(use_with readline) \ - --with-wx-config="${WX_CONFIG}" -} - -src_install() { - default - - # no static archives - find "${ED}" -name '*.la' -delete || die -} diff --git a/sci-visualization/ggobi/Manifest b/sci-visualization/ggobi/Manifest index 42f809f42b1d..b6808716cc84 100644 --- a/sci-visualization/ggobi/Manifest +++ b/sci-visualization/ggobi/Manifest @@ -1,2 +1 @@ -DIST ggobi_2.1.10.orig.tar.bz2 2776784 BLAKE2B 6e5f5bfcb3b10af425a552da1f0d9eb4ba445d0eced0e5b5a20d3ea88da782f9e333005b929408baeb895a1e62d5e1500a86de5c7353b60ee8fbf950521b00c0 SHA512 40bc4a7fae992bf327d6b36c5aea7802279a3b6229242f31386e771636b4561260914a7fefb6a6337c1e1ab5a0682fbdd626389b83d9b57d0c2d050fac3723e5 DIST ggobi_2.1.11.orig.tar.bz2 2787709 BLAKE2B e4b853f3212abda00150e6a3b3a344638225bdc564c109632c7ca2f9cb8cc41d35af9df1ee153d2ede3bd3191d9219e2bdd6bd6bc9c64f42447dfe17562361f1 SHA512 d34c6569d05d1e680101b62745012940c1e18c1588cd37b89b26b89e9eed9bab8fc53e0585a595b6cb4c9f2bb7d603ca4252cb6a6ba344bbc24e5cc5fd8a6dc1 diff --git a/sci-visualization/ggobi/files/ggobi-2.1.10-hardened.patch b/sci-visualization/ggobi/files/ggobi-2.1.10-hardened.patch deleted file mode 100644 index 63681a0a03ea..000000000000 --- a/sci-visualization/ggobi/files/ggobi-2.1.10-hardened.patch +++ /dev/null @@ -1,66 +0,0 @@ -Description: Upstream changes introduced in version 2.1.10-4 - This patch has been created by dpkg-source during the package build. - Here's the last changelog entry, hopefully it gives details on why - those changes were made: - . - ggobi (2.1.10-4) unstable; urgency=low - . - * src/ggobi.c: Applied patch kindly supplied by Michael Lawrence to - address issues found under hardened compiler flags (Closes: #646260) - . - The person named in the Author field signed this changelog entry. -Author: Dirk Eddelbuettel <edd@debian.org> -Bug-Debian: http://bugs.debian.org/646260 - ---- -The information above should follow the Patch Tagging Guidelines, please -checkout http://dep.debian.net/deps/dep3/ to learn about the format. Here -are templates for supplementary fields that you might want to add: - -Origin: <vendor|upstream|other>, <url of original patch> -Bug: <url in upstream bugtracker> -Bug-Debian: http://bugs.debian.org/<bugnumber> -Bug-Ubuntu: https://launchpad.net/bugs/<bugnumber> -Forwarded: <no|not-needed|url proving that it has been forwarded> -Reviewed-By: <name and email of someone who approved the patch> -Last-Update: <YYYY-MM-DD> - ---- ggobi-2.1.10.orig/src/ggobi.c -+++ ggobi-2.1.10/src/ggobi.c -@@ -698,10 +698,10 @@ ValidateGGobiRef (ggobid * gg, gboolean - } - - if (fatal) { -- g_error (error_msg); -+ g_error ("%s", error_msg); - } - else -- g_critical (error_msg); -+ g_critical ("%s", error_msg); - - return (NULL); - } -@@ -718,9 +718,9 @@ ValidateDatadRef (GGobiData * d, ggobid - } - - if (fatal) -- g_error (error_msg); -+ g_error ("%s", error_msg); - else -- g_critical (error_msg); -+ g_critical ("%s", error_msg); - - return (NULL); - } -@@ -739,9 +739,9 @@ ValidateDisplayRef (displayd * d, ggobid - } - - if (fatal) -- g_error (error_msg); -+ g_error ("%s", error_msg); - else -- g_critical (error_msg); -+ g_critical ("%s", error_msg); - - return (NULL); - } diff --git a/sci-visualization/ggobi/ggobi-2.1.10.ebuild b/sci-visualization/ggobi/ggobi-2.1.10.ebuild deleted file mode 100644 index 9b860ef03f6b..000000000000 --- a/sci-visualization/ggobi/ggobi-2.1.10.ebuild +++ /dev/null @@ -1,56 +0,0 @@ -# Copyright 1999-2020 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=5 -inherit eutils autotools xdg - -DESCRIPTION="Visualization program for exploring high-dimensional data" -HOMEPAGE="https://www.ggobi.org/" -# source code release is not well published -#SRC_URI="http://www.ggobi.org/downloads/${P}.tar.bz2" -SRC_URI="mirror://debian/pool/main/g/${PN}/${PN}_${PV}.orig.tar.bz2" - -LICENSE="CPL-1.0" -SLOT="0" -KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" -IUSE="doc minimal nls" - -RDEPEND=" - dev-libs/libxml2:2 - media-gfx/graphviz - x11-libs/gtk+:2" -DEPEND="${RDEPEND} - virtual/pkgconfig" - -src_prepare() { - sed -i \ - -e 's|ND_coord_i|ND_coord|' \ - plugins/GraphLayout/graphviz.c || die - rm m4/libtool.m4 m4/lt*m4 plugins/*/aclocal.m4 || die - epatch \ - "${FILESDIR}"/${PN}-2.1.8-plugindir.patch \ - "${FILESDIR}"/${PN}-2.1.9-as-needed.patch \ - "${FILESDIR}"/${PN}-2.1.10-hardened.patch \ - "${FILESDIR}"/${PN}-2.1.10-desktop.patch - # need the ${S} for recursivity lookup - AT_M4DIR="${S}"/m4 eautoreconf -} - -src_configure() { - econf \ - --docdir="${EPREFIX}/usr/share/doc/${PF}" \ - --disable-rpath \ - $(use_enable nls) \ - $(use_with !minimal all-plugins) -} - -src_compile() { - emake all ggobirc -} - -src_install() { - default - insinto /etc/xdg/ggobi - doins ggobirc - use doc || rm "${ED}"/usr/share/doc/${PF}/*.pdf -} diff --git a/sci-visualization/gnuplot/Manifest b/sci-visualization/gnuplot/Manifest index 5e56dc1dc99f..c6223eb5a98d 100644 --- a/sci-visualization/gnuplot/Manifest +++ b/sci-visualization/gnuplot/Manifest @@ -1,2 +1 @@ -DIST gnuplot-5.2.8.tar.gz 5340677 BLAKE2B 169f5bef44a64b3b7a5be40e28ea22ef24ebc7526fe13ab09e16495453c3922712603d63a03c3b4332368d2ae8cbe4ef57ec53e18bbb4ad2cde13e4cc534245a SHA512 513dff15236dcb58c3c5471cdaa0713242787dbf30ef860c3f69152cb87c6392e4973caff5eb178707bbb84c78548e806b2920864a37686bce49425fbfdc4e8c DIST gnuplot-5.4.1.tar.gz 5608076 BLAKE2B 7b2c30acd16b1aec3be9341c019449882a9231afe196bb05dc5d7925681296986de2be3463ca19d62ff1cea6dece0586b6bc8a54881c4fc2ec372635264ebb3d SHA512 2371830636d4c9ee93e9d6566dc2889e96ece3660b63ef4cfb6514e233510e5abaf4f93863bbe9a418f11db8e3b12a15242556aae52bb69591ad7d26e6581121 diff --git a/sci-visualization/gnuplot/files/gnuplot-5.2.2-regis.patch b/sci-visualization/gnuplot/files/gnuplot-5.2.2-regis.patch deleted file mode 100644 index 613a028ee79b..000000000000 --- a/sci-visualization/gnuplot/files/gnuplot-5.2.2-regis.patch +++ /dev/null @@ -1,43 +0,0 @@ -Add configure option for ReGIS support. -https://bugs.gentoo.org/643888 - ---- gnuplot-5.2.2-orig/configure.ac -+++ gnuplot-5.2.2/configure.ac -@@ -1057,6 +1057,13 @@ - AC_DEFINE(HAVE_MIF,1, - [ Define to include support for mif terminal ],)) - -+dnl ReGIS terminal -+AC_ARG_WITH(regis,dnl -+[ --with-regis ReGIS terminal]) -+AS_IF([test "x${with_regis}" = "xyes"], -+ AC_DEFINE(HAVE_REGIS,1, -+ [ Define to include support for ReGIS terminal ],)) -+ - AC_ARG_WITH(cairo,dnl - [ --without-cairo cairo-based terminals (default enabled)],, - [test -z "${with_cairo}" && with_cairo=yes]) -@@ -1350,6 +1357,12 @@ - AC_MSG_RESULT([ mif terminal: no (use --with-mif to enable)]) - fi - -+if test "$with_regis" = yes; then -+ AC_MSG_RESULT([ ReGIS terminal: yes]) -+else -+ AC_MSG_RESULT([ ReGIS terminal: no (use --with-regis to enable)]) -+fi -+ - if test "$is_msdos" = yes; then - AC_MSG_RESULT([ svga terminal (MSDOS/djgpp): yes]) - fi ---- gnuplot-5.2.2-orig/src/term.h -+++ gnuplot-5.2.2/src/term.h -@@ -182,7 +182,7 @@ - #endif - - /* REGIS graphics language */ --#ifdef VMS -+#if defined(VMS) || defined(HAVE_REGIS) - # include "regis.trm" - #endif - diff --git a/sci-visualization/gnuplot/files/gnuplot-5.2.8-caca.patch b/sci-visualization/gnuplot/files/gnuplot-5.2.8-caca.patch deleted file mode 100644 index 2ce464f04499..000000000000 --- a/sci-visualization/gnuplot/files/gnuplot-5.2.8-caca.patch +++ /dev/null @@ -1,33 +0,0 @@ -Patch backported from branch-5-4-stable. -https://bugs.gentoo.org/690014 - ---- gnuplot-5.2.8-orig/term/caca.trm -+++ gnuplot-5.2.8/term/caca.trm -@@ -1909,8 +1909,11 @@ - CACA_result loop = CACA_loop; - caca_event_t ev; - const int event_mask = -- CACA_EVENT_KEY_PRESS | CACA_EVENT_RESIZE | CACA_EVENT_QUIT | -- CACA_EVENT_MOUSE_MOTION | CACA_EVENT_MOUSE_PRESS | CACA_EVENT_MOUSE_RELEASE; -+ CACA_EVENT_KEY_PRESS | CACA_EVENT_RESIZE | CACA_EVENT_QUIT -+#ifdef USE_MOUSE -+ | CACA_EVENT_MOUSE_MOTION | CACA_EVENT_MOUSE_PRESS | CACA_EVENT_MOUSE_RELEASE -+#endif -+ ; - static int mx = 0, my = 0; /* current mouse position */ - static unsigned long last_event_time = 0; - -@@ -2577,11 +2580,13 @@ - } - } - -+#ifdef USE_MOUSE - if (changed) { - /* Replot only if something changed. */ - CACA_zoom_or_replot = TRUE; - process_event(GE_replot, 0, 0, 0, 0, 0); - } -+#endif - } - - diff --git a/sci-visualization/gnuplot/files/gnuplot-5.2.8-double-free.patch b/sci-visualization/gnuplot/files/gnuplot-5.2.8-double-free.patch deleted file mode 100644 index e3da8fc40577..000000000000 --- a/sci-visualization/gnuplot/files/gnuplot-5.2.8-double-free.patch +++ /dev/null @@ -1,21 +0,0 @@ -https://bugs.gentoo.org/746419 - -This backports the following commit from upstream git: - -commit 591c0f804b5a78421d28edf2adcd429c914bbca1 -Author: Ethan A Merritt <merritt@u.washington.edu> -Date: Wed Sep 9 11:00:59 2020 -0700 - - successive failures of "set print <foo>" could cause double-free - Bug #2312 - ---- gnuplot-5.2.8-orig/src/command.c -+++ gnuplot-5.2.8/src/command.c -@@ -1867,6 +1867,7 @@ - #endif - if (0 > fclose(print_out)) - perror(print_out_name); -+ print_out = stderr; - } - - free(print_out_name); diff --git a/sci-visualization/gnuplot/files/gnuplot-5.2.8-font-syntax.patch b/sci-visualization/gnuplot/files/gnuplot-5.2.8-font-syntax.patch deleted file mode 100644 index a1df2ae49952..000000000000 --- a/sci-visualization/gnuplot/files/gnuplot-5.2.8-font-syntax.patch +++ /dev/null @@ -1,36 +0,0 @@ -https://bugs.gentoo.org/746419 - -This backports and consolidates the following commits from upstream git: - -commit a7205eda482948a0408b0ed29cdde89593feedc7 -Author: Ethan A Merritt <merritt@u.washington.edu> -Date: Sat Sep 12 10:18:10 2020 -0700 - - Better error handling for faulty font syntax - - Commit 660e2fbd failed to deal with an error detected at the final character - of a text string. - - Bugs #2303 #2308 - -commit 660e2fbd681cb47acd42595f050fb2f938194b0e -Author: Ethan A Merritt <merritt@u.washington.edu> -Date: Tue Sep 1 17:57:37 2020 -0700 - - Better error handling for faulty font syntax - - A missing close-quote in an enhanced text font specification could - cause a segfault. - Bug #2303 - ---- gnuplot-5.2.8-orig/src/term.c -+++ gnuplot-5.2.8/src/term.c -@@ -2361,7 +2361,7 @@ - ++p; - if (*p != *start_of_fontname) { - int_warn(NO_CARET, "cannot interpret font name %s", start_of_fontname); -- p = start_of_fontname; -+ break; - } - start_of_fontname++; - end_of_fontname = p++; diff --git a/sci-visualization/gnuplot/gnuplot-5.2.8-r1.ebuild b/sci-visualization/gnuplot/gnuplot-5.2.8-r1.ebuild deleted file mode 100644 index e95493d2ee7e..000000000000 --- a/sci-visualization/gnuplot/gnuplot-5.2.8-r1.ebuild +++ /dev/null @@ -1,217 +0,0 @@ -# Copyright 1999-2021 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -inherit autotools flag-o-matic readme.gentoo-r1 toolchain-funcs wxwidgets - -DESCRIPTION="Command-line driven interactive plotting program" -HOMEPAGE="https://www.gnuplot.info/" - -if [[ -z ${PV%%*9999} ]]; then - inherit git-r3 - EGIT_REPO_URI="https://git.code.sf.net/p/gnuplot/gnuplot-main" - EGIT_BRANCH="branch-5-2-stable" - MY_P="${PN}" - EGIT_CHECKOUT_DIR="${WORKDIR}/${MY_P}" -else - MY_P="${P/_/.}" - SRC_URI="mirror://sourceforge/gnuplot/${MY_P}.tar.gz" - KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ppc ppc64 ~s390 sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~x64-solaris ~x86-solaris" -fi - -LICENSE="gnuplot" -SLOT="0" -IUSE="aqua bitmap cairo compat doc examples +gd ggi latex libcaca libcerf lua qt5 readline regis svga wxwidgets X" - -RDEPEND=" - cairo? ( - x11-libs/cairo - x11-libs/pango ) - gd? ( >=media-libs/gd-2.0.35-r3:2=[png] ) - ggi? ( media-libs/libggi ) - latex? ( - virtual/latex-base - lua? ( - dev-tex/pgf - >=dev-texlive/texlive-latexrecommended-2008-r2 ) ) - libcaca? ( media-libs/libcaca ) - lua? ( dev-lang/lua:0 ) - qt5? ( - dev-qt/qtcore:5= - dev-qt/qtgui:5= - dev-qt/qtnetwork:5= - dev-qt/qtprintsupport:5= - dev-qt/qtsvg:5= - dev-qt/qtwidgets:5= ) - readline? ( sys-libs/readline:0= ) - libcerf? ( sci-libs/libcerf ) - svga? ( media-libs/svgalib ) - wxwidgets? ( - x11-libs/wxGTK:3.0-gtk3[X] - x11-libs/cairo - x11-libs/pango - x11-libs/gtk+:2 ) - X? ( x11-libs/libXaw )" - -DEPEND="${RDEPEND}" - -BDEPEND=" - virtual/pkgconfig - doc? ( - virtual/latex-base - dev-texlive/texlive-latexextra - app-text/ghostscript-gpl ) - qt5? ( dev-qt/linguist-tools:5 )" - -S="${WORKDIR}/${MY_P}" - -GP_VERSION="${PV%.*}" -E_SITEFILE="lisp/50${PN}-gentoo.el" -TEXMF="${EPREFIX}/usr/share/texmf-site" - -src_prepare() { - eapply "${FILESDIR}"/${PN}-5.0.1-fix-underlinking.patch - eapply "${FILESDIR}"/${PN}-5.0.6-no-picins.patch - eapply "${FILESDIR}"/${PN}-5.2.2-regis.patch - eapply "${FILESDIR}"/${PN}-5.2.8-caca.patch - eapply "${FILESDIR}"/${PN}-5.2.8-double-free.patch - eapply "${FILESDIR}"/${PN}-5.2.8-font-syntax.patch - eapply_user - - if [[ -z ${PV%%*9999} ]]; then - local dir - for dir in config demo m4 term tutorial; do - emake -C "$dir" -f Makefile.am.in Makefile.am - done - fi - - # Add special version identification as required by provision 2 - # of the gnuplot license - sed -i -e "1s/.*/& (Gentoo revision ${PR})/" PATCHLEVEL || die - - DOC_CONTENTS='Gnuplot no longer links against pdflib, see the ChangeLog - for details. You can use the "pdfcairo" terminal for PDF output.' - use cairo || DOC_CONTENTS+=' It is available with USE="cairo".' - use svga && DOC_CONTENTS+='\n\nIn order to enable ordinary users to use - SVGA console graphics, gnuplot needs to be set up as setuid root. - Please note that this is usually considered to be a security hazard. - As root, manually "chmod u+s /usr/bin/gnuplot".' - use gd && DOC_CONTENTS+="\n\nFor font support in png/jpeg/gif output, - you may have to set the GDFONTPATH and GNUPLOT_DEFAULT_GDFONT - environment variables. See the FAQ file in /usr/share/doc/${PF}/ - for more information." - - eautoreconf - - # Make sure we don't mix build & host flags. - sed -i \ - -e 's:@CPPFLAGS@:$(BUILD_CPPFLAGS):' \ - -e 's:@CFLAGS@:$(BUILD_CFLAGS):' \ - -e 's:@LDFLAGS@:$(BUILD_LDFLAGS):' \ - -e 's:@CC@:$(CC_FOR_BUILD):' \ - docs/Makefile.in || die -} - -src_configure() { - if ! use latex; then - sed -i -e '/SUBDIRS/s/LaTeX//' share/Makefile.in || die - fi - - if use wxwidgets; then - WX_GTK_VER="3.0-gtk3" - setup-wxwidgets - fi - - tc-export CC CXX #453174 - tc-export_build_env BUILD_CC - export CC_FOR_BUILD=${BUILD_CC} - - use qt5 && append-cxxflags -std=c++11 - - econf \ - --with-texdir="${TEXMF}/tex/latex/${PN}" \ - --with-readline=$(usex readline gnu builtin) \ - $(use_with bitmap bitmap-terminals) \ - $(use_with cairo) \ - $(use_enable compat backwards-compatibility) \ - $(use_with doc tutorial) \ - $(use_with gd) \ - "$(use_with ggi ggi "${EPREFIX}/usr/$(get_libdir)")" \ - "$(use_with ggi xmi "${EPREFIX}/usr/$(get_libdir)")" \ - "$(use_with libcaca caca "${EPREFIX}/usr/$(get_libdir)")" \ - $(use_with libcerf) \ - $(use_with lua) \ - $(use_with regis) \ - $(use_with svga linux-vga) \ - $(use_with X x) \ - --enable-stats \ - $(use_with qt5 qt qt5) \ - $(use_enable wxwidgets) \ - DIST_CONTACT="https://bugs.gentoo.org/" \ - EMACS=no -} - -src_compile() { - # Prevent access violations, see bug 201871 - export VARTEXFONTS="${T}/fonts" - - # We believe that the following line is no longer needed. - # In case of problems file a bug report at bugs.gentoo.org. - #addwrite /dev/svga:/dev/mouse:/dev/tts/0 - - emake all - - if use doc; then - # Avoid sandbox violation in epstopdf/ghostscript - addpredict /var/cache/fontconfig - if use cairo && use gd; then - emake -C docs pdf - else - ewarn "Cannot build figures unless cairo and gd are enabled." - ewarn "Building documentation without figures." - emake -C docs pdf_nofig - mv docs/nofigures.pdf docs/gnuplot.pdf || die - fi - emake -C tutorial pdf - fi -} - -src_install() { - emake DESTDIR="${D}" install - - dodoc BUGS ChangeLog NEWS PGPKEYS README* RELEASE_NOTES TODO - newdoc term/PostScript/README README-ps - newdoc term/js/README README-js - use lua && newdoc term/lua/README README-lua - readme.gentoo_create_doc - - if use examples; then - # Demo files - insinto /usr/share/${PN}/${GP_VERSION} - doins -r demo - rm -f "${ED}"/usr/share/${PN}/${GP_VERSION}/demo/Makefile* - rm -f "${ED}"/usr/share/${PN}/${GP_VERSION}/demo/binary* - fi - - if use doc; then - # Manual, tutorial, FAQ - dodoc docs/gnuplot.pdf tutorial/{tutorial.dvi,tutorial.pdf} FAQ.pdf - # Documentation for making PostScript files - docinto psdoc - dodoc docs/psdoc/{*.doc,*.tex,*.ps,*.gpi,README} - fi -} - -src_test() { - GNUTERM="unknown" default_src_test -} - -pkg_postinst() { - use latex && texmf-update - readme.gentoo_print_elog -} - -pkg_postrm() { - use latex && texmf-update -} diff --git a/sci-visualization/gnuplot/gnuplot-5.4.1-r1.ebuild b/sci-visualization/gnuplot/gnuplot-5.4.1-r1.ebuild index fc153e0cb761..17690d002554 100644 --- a/sci-visualization/gnuplot/gnuplot-5.4.1-r1.ebuild +++ b/sci-visualization/gnuplot/gnuplot-5.4.1-r1.ebuild @@ -19,7 +19,7 @@ if [[ -z ${PV%%*9999} ]]; then else MY_P="${P/_/.}" SRC_URI="mirror://sourceforge/gnuplot/${MY_P}.tar.gz" - KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~x64-solaris ~x86-solaris" + KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ppc ppc64 ~s390 sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~x64-solaris ~x86-solaris" fi S="${WORKDIR}/${MY_P}" diff --git a/sci-visualization/gnuplot/gnuplot-5.4.1.ebuild b/sci-visualization/gnuplot/gnuplot-5.4.1.ebuild deleted file mode 100644 index caf4ab0deb6c..000000000000 --- a/sci-visualization/gnuplot/gnuplot-5.4.1.ebuild +++ /dev/null @@ -1,203 +0,0 @@ -# Copyright 1999-2021 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -inherit autotools flag-o-matic readme.gentoo-r1 toolchain-funcs wxwidgets - -DESCRIPTION="Command-line driven interactive plotting program" -HOMEPAGE="https://www.gnuplot.info/" - -if [[ -z ${PV%%*9999} ]]; then - inherit git-r3 - EGIT_REPO_URI="https://git.code.sf.net/p/gnuplot/gnuplot-main" - EGIT_BRANCH="master" - MY_P="${PN}" - EGIT_CHECKOUT_DIR="${WORKDIR}/${MY_P}" -else - MY_P="${P/_/.}" - SRC_URI="mirror://sourceforge/gnuplot/${MY_P}.tar.gz" - KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~x64-solaris ~x86-solaris" -fi - -S="${WORKDIR}/${MY_P}" - -LICENSE="gnuplot" -SLOT="0" -IUSE="aqua bitmap cairo doc examples +gd ggi latex libcaca libcerf lua qt5 readline regis wxwidgets X" - -RDEPEND=" - cairo? ( - x11-libs/cairo - x11-libs/pango ) - gd? ( >=media-libs/gd-2.0.35-r3:2=[png] ) - ggi? ( media-libs/libggi ) - latex? ( - virtual/latex-base - lua? ( - dev-tex/pgf - >=dev-texlive/texlive-latexrecommended-2008-r2 ) ) - libcaca? ( media-libs/libcaca ) - lua? ( dev-lang/lua:0 ) - qt5? ( - dev-qt/qtcore:5= - dev-qt/qtgui:5= - dev-qt/qtnetwork:5= - dev-qt/qtprintsupport:5= - dev-qt/qtsvg:5= - dev-qt/qtwidgets:5= ) - readline? ( sys-libs/readline:0= ) - libcerf? ( sci-libs/libcerf ) - wxwidgets? ( - x11-libs/wxGTK:3.0-gtk3[X] - x11-libs/cairo - x11-libs/pango - x11-libs/gtk+:3 ) - X? ( x11-libs/libXaw )" - -DEPEND="${RDEPEND}" - -BDEPEND=" - virtual/pkgconfig - doc? ( - virtual/latex-base - dev-texlive/texlive-latexextra - dev-texlive/texlive-langgreek - app-text/ghostscript-gpl ) - qt5? ( dev-qt/linguist-tools:5 )" - -GP_VERSION="${PV%.*}" -E_SITEFILE="lisp/50${PN}-gentoo.el" -TEXMF="${EPREFIX}/usr/share/texmf-site" - -PATCHES=( - "${FILESDIR}"/${PN}-5.0.1-fix-underlinking.patch - "${FILESDIR}"/${PN}-5.0.6-no-picins.patch -) - -src_prepare() { - default - - if [[ ${PV##*.} = 9999 ]]; then - local dir - for dir in config demo m4 term tutorial; do - emake -C "$dir" -f Makefile.am.in Makefile.am - done - fi - - # Add special version identification as required by provision 2 - # of the gnuplot license - sed -i -e "1s/.*/& (Gentoo revision ${PR})/" PATCHLEVEL || die - - eautoreconf - - # Make sure we don't mix build & host flags. - sed -i \ - -e 's:@CPPFLAGS@:$(BUILD_CPPFLAGS):' \ - -e 's:@CFLAGS@:$(BUILD_CFLAGS):' \ - -e 's:@LDFLAGS@:$(BUILD_LDFLAGS):' \ - -e 's:@CC@:$(CC_FOR_BUILD):' \ - docs/Makefile.in || die -} - -src_configure() { - if ! use latex; then - sed -i -e '/SUBDIRS/s/LaTeX//' share/Makefile.in || die - fi - - if use wxwidgets; then - WX_GTK_VER="3.0-gtk3" - setup-wxwidgets - fi - - tc-export CC CXX #453174 - tc-export_build_env BUILD_CC - export CC_FOR_BUILD=${BUILD_CC} - - use qt5 && append-cxxflags -std=c++11 - - econf \ - --with-texdir="${TEXMF}/tex/latex/${PN}" \ - --with-readline=$(usex readline gnu builtin) \ - $(use_with bitmap bitmap-terminals) \ - $(use_with cairo) \ - $(use_with gd) \ - "$(use_with ggi ggi "${EPREFIX}/usr/$(get_libdir)")" \ - "$(use_with libcaca caca "${EPREFIX}/usr/$(get_libdir)")" \ - $(use_with libcerf) \ - $(use_with lua) \ - $(use_with regis) \ - $(use_with X x) \ - --enable-stats \ - $(use_with qt5 qt qt5) \ - $(use_enable wxwidgets) \ - DIST_CONTACT="https://bugs.gentoo.org/" \ - EMACS=no -} - -src_compile() { - # Prevent access violations, see bug 201871 - export VARTEXFONTS="${T}/fonts" - - emake all - - if use doc; then - # Avoid sandbox violation in epstopdf/ghostscript - addpredict /var/cache/fontconfig - if use cairo; then - emake -C docs pdf - else - ewarn "Cannot build figures unless cairo is enabled." - ewarn "Building documentation without figures." - emake -C docs pdf_nofig - mv docs/nofigures.pdf docs/gnuplot.pdf || die - fi - fi -} - -src_install() { - emake DESTDIR="${D}" install - - dodoc BUGS NEWS PGPKEYS README* RELEASE_NOTES - newdoc term/PostScript/README README-ps - newdoc term/js/README README-js - use lua && newdoc term/lua/README README-lua - - local DOC_CONTENTS='Gnuplot no longer links against pdflib. You can - use the "pdfcairo" terminal for PDF output.' - use cairo || DOC_CONTENTS+=' It is available with USE="cairo".' - use gd && DOC_CONTENTS+="\n\nFor font support in png/jpeg/gif output, - you may have to set the GDFONTPATH and GNUPLOT_DEFAULT_GDFONT - environment variables. See the FAQ file in /usr/share/doc/${PF}/ - for more information." - readme.gentoo_create_doc - - if use examples; then - # Demo files - insinto /usr/share/${PN}/${GP_VERSION} - doins -r demo - rm -f "${ED}"/usr/share/${PN}/${GP_VERSION}/demo/Makefile* - rm -f "${ED}"/usr/share/${PN}/${GP_VERSION}/demo/binary* - fi - - if use doc; then - # Manual, FAQ - dodoc docs/gnuplot.pdf FAQ.pdf - # Documentation for making PostScript files - docinto psdoc - dodoc docs/psdoc/{*.doc,*.tex,*.ps,*.gpi,README} - fi -} - -src_test() { - emake check GNUTERM="dumb" -} - -pkg_postinst() { - use latex && texmf-update - readme.gentoo_print_elog -} - -pkg_postrm() { - use latex && texmf-update -} diff --git a/sci-visualization/gnuplot/gnuplot-5.5.9999.ebuild b/sci-visualization/gnuplot/gnuplot-5.5.9999.ebuild deleted file mode 100644 index f9878fe18cc9..000000000000 --- a/sci-visualization/gnuplot/gnuplot-5.5.9999.ebuild +++ /dev/null @@ -1,203 +0,0 @@ -# Copyright 1999-2021 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -inherit autotools flag-o-matic readme.gentoo-r1 toolchain-funcs wxwidgets - -DESCRIPTION="Command-line driven interactive plotting program" -HOMEPAGE="https://www.gnuplot.info/" - -if [[ -z ${PV%%*9999} ]]; then - inherit git-r3 - EGIT_REPO_URI="https://git.code.sf.net/p/gnuplot/gnuplot-main" - EGIT_BRANCH="master" - MY_P="${PN}" - EGIT_CHECKOUT_DIR="${WORKDIR}/${MY_P}" -else - MY_P="${P/_/.}" - SRC_URI="mirror://sourceforge/gnuplot/${MY_P}.tar.gz" - KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~x64-solaris ~x86-solaris" -fi - -S="${WORKDIR}/${MY_P}" - -LICENSE="gnuplot" -SLOT="0" -IUSE="aqua bitmap cairo doc examples +gd ggi latex libcaca libcerf lua qt5 readline regis wxwidgets X" - -RDEPEND=" - cairo? ( - x11-libs/cairo - x11-libs/pango ) - gd? ( >=media-libs/gd-2.0.35-r3:2=[png] ) - ggi? ( media-libs/libggi ) - latex? ( - virtual/latex-base - lua? ( - dev-tex/pgf - >=dev-texlive/texlive-latexrecommended-2008-r2 ) ) - libcaca? ( media-libs/libcaca ) - lua? ( dev-lang/lua:0 ) - qt5? ( - dev-qt/qtcore:5= - dev-qt/qtgui:5= - dev-qt/qtnetwork:5= - dev-qt/qtprintsupport:5= - dev-qt/qtsvg:5= - dev-qt/qtwidgets:5= ) - readline? ( sys-libs/readline:0= ) - libcerf? ( sci-libs/libcerf ) - wxwidgets? ( - x11-libs/wxGTK:3.0-gtk3[X] - x11-libs/cairo - x11-libs/pango - x11-libs/gtk+:3 ) - X? ( x11-libs/libXaw )" - -DEPEND="${RDEPEND}" - -BDEPEND=" - virtual/pkgconfig - doc? ( - virtual/latex-base - dev-texlive/texlive-latexextra - dev-texlive/texlive-langgreek - app-text/ghostscript-gpl ) - qt5? ( dev-qt/linguist-tools:5 )" - -GP_VERSION="${PV%.*}" -E_SITEFILE="lisp/50${PN}-gentoo.el" -TEXMF="${EPREFIX}/usr/share/texmf-site" - -PATCHES=( - "${FILESDIR}"/${PN}-5.0.1-fix-underlinking.patch - "${FILESDIR}"/${PN}-5.0.6-no-picins.patch -) - -src_prepare() { - default - - if [[ ${PV##*.} = 9999 ]]; then - local dir - for dir in config demo m4 term tutorial; do - emake -C "$dir" -f Makefile.am.in Makefile.am - done - fi - - # Add special version identification as required by provision 2 - # of the gnuplot license - sed -i -e "1s/.*/& (Gentoo revision ${PR})/" PATCHLEVEL || die - - eautoreconf - - # Make sure we don't mix build & host flags. - sed -i \ - -e 's:@CPPFLAGS@:$(BUILD_CPPFLAGS):' \ - -e 's:@CFLAGS@:$(BUILD_CFLAGS):' \ - -e 's:@LDFLAGS@:$(BUILD_LDFLAGS):' \ - -e 's:@CC@:$(CC_FOR_BUILD):' \ - docs/Makefile.in || die -} - -src_configure() { - if ! use latex; then - sed -i -e '/SUBDIRS/s/LaTeX//' share/Makefile.in || die - fi - - if use wxwidgets; then - WX_GTK_VER="3.0-gtk3" - setup-wxwidgets - fi - - tc-export CC CXX #453174 - tc-export_build_env BUILD_CC - export CC_FOR_BUILD=${BUILD_CC} - - use qt5 && append-cxxflags -std=c++11 - - econf \ - --with-texdir="${TEXMF}/tex/latex/${PN}" \ - --with-readline=$(usex readline gnu builtin) \ - $(use_with bitmap bitmap-terminals) \ - $(use_with cairo) \ - $(use_with gd) \ - "$(use_with ggi ggi "${EPREFIX}/usr/$(get_libdir)")" \ - "$(use_with libcaca caca "${EPREFIX}/usr/$(get_libdir)")" \ - $(use_with libcerf) \ - $(use_with lua) \ - $(use_with regis) \ - $(use_with X x) \ - --enable-stats \ - $(use_with qt5 qt qt5) \ - $(use_enable wxwidgets) \ - DIST_CONTACT="https://bugs.gentoo.org/" \ - EMACS=no -} - -src_compile() { - # Prevent access violations, see bug 201871 - export VARTEXFONTS="${T}/fonts" - - emake all - - if use doc; then - # Avoid sandbox violation in epstopdf/ghostscript - addpredict /var/cache/fontconfig - if use cairo; then - emake -C docs pdf - else - ewarn "Cannot build figures unless cairo is enabled." - ewarn "Building documentation without figures." - emake -C docs pdf_nofig - mv docs/nofigures.pdf docs/gnuplot.pdf || die - fi - fi -} - -src_install() { - emake DESTDIR="${D}" install - - dodoc BUGS NEWS PGPKEYS README* RELEASE_NOTES - newdoc term/PostScript/README README-ps - newdoc term/js/README README-js - use lua && newdoc term/lua/README README-lua - - local DOC_CONTENTS='Gnuplot no longer links against pdflib. You can - use the "pdfcairo" terminal for PDF output.' - use cairo || DOC_CONTENTS+=' It is available with USE="cairo".' - use gd && DOC_CONTENTS+="\n\nFor font support in png/jpeg/gif output, - you may have to set the GDFONTPATH and GNUPLOT_DEFAULT_GDFONT - environment variables. See the FAQ file in /usr/share/doc/${PF}/ - for more information." - readme.gentoo_create_doc - - if use examples; then - # Demo files - insinto /usr/share/${PN}/${GP_VERSION} - doins -r demo - rm -f "${ED}"/usr/share/${PN}/${GP_VERSION}/demo/Makefile* - rm -f "${ED}"/usr/share/${PN}/${GP_VERSION}/demo/binary* - fi - - if use doc; then - # Manual, FAQ - dodoc docs/gnuplot.pdf #FAQ.pdf - # Documentation for making PostScript files - docinto psdoc - dodoc docs/psdoc/{*.doc,*.tex,*.ps,*.gpi,README} - fi -} - -src_test() { - emake check GNUTERM="dumb" -} - -pkg_postinst() { - use latex && texmf-update - readme.gentoo_print_elog -} - -pkg_postrm() { - use latex && texmf-update -} diff --git a/sci-visualization/gnuplot/metadata.xml b/sci-visualization/gnuplot/metadata.xml index 24e59591e688..5e4f916e51f0 100644 --- a/sci-visualization/gnuplot/metadata.xml +++ b/sci-visualization/gnuplot/metadata.xml @@ -16,8 +16,6 @@ primarily for the visual display of scientific data. </longdescription> <use> - <flag name="compat">Enable backwards compatibility with version 4 - syntax</flag> <flag name="gd">Add support for <pkg>media-libs/gd</pkg>. Needed for GIF, JPEG, and PNG image output.</flag> <flag name="libcerf">Enable special functions from diff --git a/sci-visualization/gr/Manifest b/sci-visualization/gr/Manifest index 5101eb04b361..e71fd8144380 100644 --- a/sci-visualization/gr/Manifest +++ b/sci-visualization/gr/Manifest @@ -1 +1,2 @@ DIST gr-0.50.0.tar.gz 8612608 BLAKE2B 70f4a3c6ce1dac8556646a1632667e6e464a5048f3c44fb689709e3e8218e8d7375db6ff8ce73e11dbeda559fb27c83b7f2b42f0ab518df9b464c8443748c30e SHA512 34ca077ae729e6eda0e5df7046811c77d717f3ef0e34203d6ab3a7f4b67b3aa058a68b9b2d7d78adc8b2f0830a0298778198a6499bd3d6e5697e4b7270cb648a +DIST gr-0.53.0.tar.gz 19267451 BLAKE2B bd243fac9df6222c4b9e3591adfcd1d37dd41628719bd7be7ab385402f0f97e21f3eb23df3ae5d2ed3e43df2b3d83ff66f4e0b478d717772b57dce5885a98721 SHA512 49eee39fd4abd62d6794a16eb023688a525f6906054610dccd85c1b7b0bed9b198d923834cbf661099f753ec40b383a911c295f781420aeead712c5712583c80 diff --git a/sci-visualization/gr/gr-0.53.0.ebuild b/sci-visualization/gr/gr-0.53.0.ebuild new file mode 100644 index 000000000000..dbdaaca1611b --- /dev/null +++ b/sci-visualization/gr/gr-0.53.0.ebuild @@ -0,0 +1,71 @@ +# Copyright 2019-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit cmake + +DESCRIPTION="Universal framework for cross-platform visualization applications" +HOMEPAGE="https://gr-framework.org/" +SRC_URI="https://github.com/sciapp/gr/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="cairo ffmpeg postscript tiff truetype" + +DEPEND=" + dev-qt/qtgui:5 + media-libs/fontconfig + media-libs/glfw + media-libs/libjpeg-turbo:= + media-libs/libpng:= + media-libs/qhull:= + sys-libs/zlib + virtual/opengl + x11-libs/libX11 + x11-libs/libXt + cairo? ( x11-libs/cairo ) + ffmpeg? ( media-video/ffmpeg:= ) + postscript? ( app-text/ghostscript-gpl ) + tiff? ( media-libs/tiff ) + truetype? ( media-libs/freetype ) +" +RDEPEND="${DEPEND}" +BDEPEND="" + +src_configure() { + use cairo || mycmakeargs+=( -DCAIRO_LIBRARY= ) + use postscript || mycmakeargs+=( -DGS_LIBRARY= ) + use ffmpeg || mycmakeargs+=( -DFFMPEG_INCLUDE_DIR= ) + use truetype || mycmakeargs+=( -DFREETYPE_LIBRARY= ) + use tiff || mycmakeargs+=( -DTIFF_LIBRARY= ) + + # todo: X11 automagic + + mycmakeargs+=( -DCMAKE_INSTALL_PREFIX=/usr/gr ) + # + # I need to have a serious conversation with upstream. + # * The main consumer of this package is dev-lang/julia. + # * If I patch gr to install in standard locations, julia does + # not find it anymore. + # * I can't patch julia, since the corresponding scripts are + # downloaded at runtime from its package registry ... + # + + cmake_src_configure +} + +src_install() { + cmake_src_install + find "${ED}" -name '*.a' -delete + + echo "GRDIR=/usr/gr" > "${T}/99gr" + echo "LDPATH=/usr/gr/$(get_libdir)" >> "${T}/99gr" + doenvd "${T}/99gr" + + [[ -f "${ED}/usr/gr/bin/gksqt" ]] && dosym ../gr/bin/gksqt /usr/bin/gksqt + + elog "${P} relies on the environment variable GRDIR. If you want to use it in a running shell," + elog "e.g. with dev-lang/julia, then run \"source /etc/profile\" first." +} diff --git a/sci-visualization/grace/Manifest b/sci-visualization/grace/Manifest index 2814e7189753..cfd0de276438 100644 --- a/sci-visualization/grace/Manifest +++ b/sci-visualization/grace/Manifest @@ -1,4 +1,2 @@ DIST grace-5.1.25.tar.gz 2957689 BLAKE2B f46032c92aa2ed2484ca05c0eb858f47adfa88517e7d06c0d95a6d23c044356edfc52b9a7566a625ef5f4a1a4b5450b0ce065a94ba15c59fb8395d53c85872c9 SHA512 9ea68483af1dfc98d217ae730b7a51b66deae5aaa8dfda29d5a3337ed4b5728b45aa03f561bf7d4173e73d6af8dee03cbabd95c0c8dd36999303c89451a3728a -DIST grace.png 338 BLAKE2B 3a109acd9e44929b9efe1fd6b707459b71cfbb601b98a00619096becff8d89fb46f2fe34f4a5c5974b125b4bed9b5f2452fee669627146ba00976dd43a7778b0 SHA512 804a693b867ad63f34964c7388f61719c558d253cb2c7bc7b6bd0647ad9b3ddc6b23d3950091b6804e4a94736f024486cf3dcce5f877135def34712ee95e4031 -DIST grace.png.tar 10240 BLAKE2B 3e99cd04a92b547ed5440475363b140d0183c92d1865f0b4564890f705a87df4e55624d681fa77408948a841eac4358465e49e65fa02615e31ec54ffb84f059d SHA512 e94970b92894e58fd481d2f81e615c38b77fab7039985516a2ad9b2bb2bb7a82f4e3e8cdb639e7c0d55eaad6bf8abc636a342c94a356e3bd0520824252faddcf DIST grace_5.1.25-7.debian.tar.xz 108904 BLAKE2B 17265969d0501e1b1306733178a680b93d1d5fa96d63df4c14e5b3cba70b68d44d90a77d6ec0aa5243c2a79048bb75aedefeae1a2bab551a6315d253ee831735 SHA512 2fa34337858454c8a28b666fccb7157e9c4895b828f25171c4c6b68316abbf6d4bc54032f1de01ccb6b86068f7059ae2462d18b4a273341f588f49fc35f1bb61 diff --git a/sci-visualization/grace/files/grace-5.1.21-netcdf.patch b/sci-visualization/grace/files/grace-5.1.21-netcdf.patch deleted file mode 100644 index d843cb4b284c..000000000000 --- a/sci-visualization/grace/files/grace-5.1.21-netcdf.patch +++ /dev/null @@ -1,11 +0,0 @@ ---- a/configure 2007-02-16 22:44:49.000000000 +0000 -+++ b/configure 2007-09-28 23:03:29.000000000 +0100 -@@ -15181,7 +15181,7 @@ - int main(void) { - char *vlib; - vlib = nc_inq_libvers(); -- if (strcmp(vlib, "3.0") < 0) { -+ if (((vlib[0] == '"') && (strcmp(vlib, "\"3.0") < 0)) || ((vlib[0] != '"') && (strcmp(vlib, "3.0") < 0))){ - exit(1); - } - exit(0); diff --git a/sci-visualization/grace/files/grace-5.1.22-ldflags.patch b/sci-visualization/grace/files/grace-5.1.22-ldflags.patch deleted file mode 100644 index 2a65cd233361..000000000000 --- a/sci-visualization/grace/files/grace-5.1.22-ldflags.patch +++ /dev/null @@ -1,41 +0,0 @@ -Respect LDFLAGS - -http://bugs.gentoo.org/show_bug.cgi?id=336984 - ---- grace-5.1.22/src/Makefile -+++ grace-5.1.22/src/Makefile -@@ -37,10 +37,10 @@ - include Make.dep - - xmgrace$(EXE) : $(GROBJS) $(PARS_C) $(GUIOBJS) $(CEPHES_LIB) -- $(CC) $(CFLAGS) $(GROBJS) $(GUIOBJS) -o $@ $(LDFLAGS) $(LIBS) -+ $(CC) $(LDFLAGS) $(CFLAGS) $(GROBJS) $(GUIOBJS) -o $@ $(LIBS) - - grace$(EXE) : $(GROBJS) $(PARS_C) $(CEPHES_LIB) -- $(CC) $(CFLAGS) $(GROBJS) -o $@ $(LDFLAGS) $(LIBS) -+ $(CC) $(LDFLAGS) $(CFLAGS) $(GROBJS) -o $@ $(LIBS) - - - buildinfo$(EXE) : buildinfo$(O) ---- grace-5.1.22/auxiliary/Makefile -+++ grace-5.1.22/auxiliary/Makefile -@@ -22,7 +22,7 @@ - devclean : distclean - - convcal$(EXE) : convcal.c -- $(CC) $(CFLAGS0) $(CPPFLAGS) -o $@ convcal.c $(NOGUI_LIBS) -+ $(CC) $(LDFLAGS) $(CFLAGS0) $(CPPFLAGS) -o $@ convcal.c $(NOGUI_LIBS) - - install : $(AUXILIARIES) $(PROGRAMS) $(SCRIPTS) - $(MKINSTALLDIRS) $(DESTDIR)$(GRACE_HOME)/auxiliary ---- grace-5.1.22/grconvert/Makefile -+++ grace-5.1.22/grconvert/Makefile -@@ -23,7 +23,7 @@ - all : $(PROG) - - $(PROG) : $(OBJS) -- $(CC) -o $@ $(OBJS) $(LDFLAGS) $(LIBS) -+ $(CC) $(LDFLAGS) -o $@ $(OBJS) $(LIBS) - - $(OBJS) : grconvert.h - diff --git a/sci-visualization/grace/files/grace-5.1.22-mkstemp.patch b/sci-visualization/grace/files/grace-5.1.22-mkstemp.patch deleted file mode 100644 index 402a5162c584..000000000000 --- a/sci-visualization/grace/files/grace-5.1.22-mkstemp.patch +++ /dev/null @@ -1,55 +0,0 @@ -diff -Naur grace-5.1.22/src/editpwin.c grace-5.1.22.new/src/editpwin.c ---- grace-5.1.22/src/editpwin.c 2006-06-03 17:19:52.000000000 -0400 -+++ grace-5.1.22.new/src/editpwin.c 2008-07-26 12:45:21.000000000 -0400 -@@ -776,12 +776,12 @@ - */ - void do_ext_editor(int gno, int setno) - { -- char *fname, ebuf[256]; -+ char fname[64], ebuf[256]; - FILE *cp; - int save_autos; - -- fname = tmpnam(NULL); -- cp = grace_openw(fname); -+ strcpy(fname, "grace-XXXXXX"); -+ cp = fdopen(mkstemp(fname), "wb"); - if (cp == NULL) { - return; - } -diff -Naur grace-5.1.22/src/plotone.c grace-5.1.22.new/src/plotone.c ---- grace-5.1.22/src/plotone.c 2005-05-19 16:30:25.000000000 -0400 -+++ grace-5.1.22.new/src/plotone.c 2008-07-26 12:45:40.000000000 -0400 -@@ -121,19 +121,27 @@ - sprintf(print_file, "%s.%s", get_docbname(), dev.fext); - } - strcpy(fname, print_file); -+ prstream = grace_openw(fname); - } else { -+ int hdfd; - s = get_print_cmd(); - if (s == NULL || s[0] == '\0') { - errmsg("No print command defined, output aborted"); - return; - } -- tmpnam(fname); -- /* VMS doesn't like extensionless files */ -- strcat(fname, ".prn"); -+ strcpy(fname, "grace-hardcopy-XXXXXX"); -+ hdfd=mkstemp(fname); -+ if (hdfd == -1) { -+ errmsg("Could not create a temporary file, output aborted."); -+ return; -+ } -+ prstream = fdopen(hdfd, "wb"); -+ if (prstream == NULL) { -+ errmsg("Could not create a temporary file, output aborted."); -+ return; -+ } - } - -- prstream = grace_openw(fname); -- - if (prstream == NULL) { - return; - } diff --git a/sci-visualization/grace/grace-5.1.25.ebuild b/sci-visualization/grace/grace-5.1.25.ebuild deleted file mode 100644 index cc86861fbe77..000000000000 --- a/sci-visualization/grace/grace-5.1.25.ebuild +++ /dev/null @@ -1,107 +0,0 @@ -# Copyright 1999-2020 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=6 - -FORTRAN_NEEDED=fortran - -inherit eutils fortran-2 toolchain-funcs - -DESCRIPTION="Motif based XY-plotting tool" -HOMEPAGE="https://plasma-gate.weizmann.ac.il/Grace/" -SRC_URI=" - http://pkgs.fedoraproject.org/cgit/grace.git/plain/grace.png - https://dev.gentoo.org/~jlec/distfiles/${PN}.png.tar - ftp://plasma-gate.weizmann.ac.il/pub/${PN}/src/stable/${P}.tar.gz" - -SLOT="0" -LICENSE="GPL-2 LGPL-2" -KEYWORDS="~amd64 ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux" -IUSE="fftw fortran jpeg netcdf png" - -DEPEND=" - media-libs/t1lib - media-libs/tiff:0 - sys-libs/zlib - >=x11-libs/motif-2.3:0 - x11-libs/xbae - fftw? ( sci-libs/fftw:2.1= ) - jpeg? ( virtual/jpeg:0 ) - netcdf? ( sci-libs/netcdf ) - png? ( media-libs/libpng:0= )" -RDEPEND="${DEPEND} - x11-misc/xdg-utils" - -PATCHES=( - # move tmpnam to mkstemp (adapted from debian) - "${FILESDIR}"/${PN}-5.1.22-mkstemp.patch - # fix configure instead of aclocal.m4 - "${FILESDIR}"/${PN}-5.1.21-netcdf.patch - # fix for missing defines when fortran is disabled - "${FILESDIR}"/${PN}-5.1.21-fortran.patch - # fix a leak (from freebsd) - "${FILESDIR}"/${PN}-5.1.22-dlmodule.patch - "${FILESDIR}"/${PN}-5.1.22-ldflags.patch -) - -pkg_setup() { - fortran-2_pkg_setup -} - -src_prepare() { - default - - # don't strip if not asked for - sed -i \ - -e 's:$(INSTALL_PROGRAM) -s:$(INSTALL_PROGRAM):g' \ - {auxiliary,grconvert,src}/Makefile || die - - sed -i \ - -e 's:$(GRACE_HOME)/bin:$(PREFIX)/bin:g' \ - -e "s:\$(GRACE_HOME)/lib:\$(PREFIX)/$(get_libdir):g" \ - -e 's:$(GRACE_HOME)/include:$(PREFIX)/include:g' \ - -e 's:$(PREFIX)/man:$(PREFIX)/share/man:g' \ - Makefile */Makefile || die "sed failed" - - sed -i \ - -e 's:bin/grconvert:grconvert:' \ - -e 's:auxiliary/fdf2fit:fdf2fit:' \ - gracerc || die -} - -src_configure() { - tc-export CC AR - - # the configure script just produces a basic Make.conf - # and a config.h - econf \ - --disable-pdfdrv \ - --disable-xmhtml \ - --without-bundled-xbae \ - --without-bundled-t1lib \ - --enable-grace-home="${EPREFIX}"/usr/share/${PN} \ - --with-helpviewer="xdg-open %s" \ - --with-editor="xdg-open %s" \ - --with-printcmd="lpr" \ - --x-includes="${EPREFIX}"/usr/include \ - --x-libraries="${EPREFIX}"/usr/$(get_libdir) \ - $(use_with fftw) \ - $(use_enable fortran f77-wrapper) \ - $(use_enable netcdf) \ - $(use_enable jpeg jpegdrv) \ - $(use_enable png pngdrv) \ - $(use_with fortran f77 $(tc-getFC)) -} - -src_install() { - default - - dosym ../../${PN}/examples /usr/share/doc/${PF}/examples - dosym ../../${PN}/doc /usr/share/doc/${PF}/html - - doman "${ED%/}"/usr/share/doc/${PF}/html/*.1 - rm -f "${ED%/}"/usr/share/doc/${PF}/html/*.1 || die - - domenu "${FILESDIR}"/${PN}.desktop - doicon "${WORKDIR}"/${PN}.png -} diff --git a/sci-visualization/paraview/Manifest b/sci-visualization/paraview/Manifest index b26081a4c46b..121ce2a83172 100644 --- a/sci-visualization/paraview/Manifest +++ b/sci-visualization/paraview/Manifest @@ -1,2 +1 @@ -DIST ParaView-v5.8.0.tar.xz 49789116 BLAKE2B 25689220f506221731bb5a56c647c249df0de8654a4b3347a7c09067bb5755818597bd7cfff88c2d129f448189b107079995c93599d482f7bf8b4cc6c7430e72 SHA512 43304d62c3f55bc390e68c033fb4c7dc2c0789d0dadbb98ef734b7d9de0419af4c240ce94f36e2b52c939ac950fba1d70dbd9fc3a1e6da37c7ef847b5c8682a2 DIST ParaView-v5.8.1.tar.xz 49822084 BLAKE2B 1b99392a85c19fdc02f8f9f0f055fb7efd8a0b17eedfd84005d1af9b170c34ec4eedb25700f91c3a2241ee80e271fe1e744e3a729b7726deb8f9c7a9fd2e4191 SHA512 94861c01da2f98c47e7453d072a4de34a7f52f5df280a8745b44d58d8d6a1dba42a15d0bac31895bbe25f23d993d4d356e5af1f8415137e289afd60570070248 diff --git a/sci-visualization/paraview/paraview-5.8.0-r3.ebuild b/sci-visualization/paraview/paraview-5.8.0-r3.ebuild deleted file mode 100644 index 61746478824b..000000000000 --- a/sci-visualization/paraview/paraview-5.8.0-r3.ebuild +++ /dev/null @@ -1,255 +0,0 @@ -# Copyright 1999-2020 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -PYTHON_COMPAT=( python3_{6,7,8,9,10} ) -inherit cmake-utils desktop gnome2-utils python-single-r1 qmake-utils toolchain-funcs - -MAIN_PV=$(ver_cut 0-1) -MAJOR_PV=$(ver_cut 1-2) -MY_P="ParaView-v${PV}" - -DESCRIPTION="Powerful scientific data visualization application" -HOMEPAGE="https://www.paraview.org" -SRC_URI="https://www.paraview.org/files/v${MAJOR_PV}/${MY_P}.tar.xz" - -LICENSE="paraview GPL-2" -KEYWORDS="~amd64 ~x86" -SLOT="0" -IUSE="boost cg coprocessing development doc examples ffmpeg mpi mysql nvcontrol openmp offscreen plugins python +qt5 +sqlite test tk +webengine" - -RESTRICT="mirror test" - -# "vtksqlite, needed by vtkIOSQL" and "vtkIOSQL, needed by vtkIOMySQL" -REQUIRED_USE=" - python? ( mpi ${PYTHON_REQUIRED_USE} ) - mysql? ( sqlite ) - webengine? ( qt5 ) - qt5? ( sqlite ) - ?? ( offscreen qt5 )" - -RDEPEND=" - app-arch/lz4 - dev-libs/expat - dev-libs/jsoncpp:= - dev-libs/libxml2:2 - dev-libs/protobuf:= - dev-libs/pugixml - media-libs/freetype - media-libs/glew:0 - media-libs/libpng:0 - media-libs/libtheora - media-libs/tiff:0= - sci-libs/cgnslib - sci-libs/hdf5:=[mpi=] - >=sci-libs/netcdf-4.2[hdf5] - >=sci-libs/netcdf-cxx-4.2:3 - sys-libs/zlib - virtual/glu - virtual/jpeg:0 - x11-libs/libX11 - x11-libs/libXext - x11-libs/libXmu - x11-libs/libXt - coprocessing? ( - dev-python/PyQt5 - dev-qt/qtgui:5[-gles2-only] - ) - ffmpeg? ( media-video/ffmpeg ) - mpi? ( virtual/mpi[cxx,romio] ) - mysql? ( dev-db/mysql-connector-c ) - offscreen? ( >=media-libs/mesa-18.3.6[osmesa] ) - !offscreen? ( virtual/opengl ) - python? ( - ${PYTHON_DEPS} - $(python_gen_cond_dep ' - dev-python/constantly[${PYTHON_MULTI_USEDEP}] - dev-python/incremental[${PYTHON_MULTI_USEDEP}] - dev-python/matplotlib[${PYTHON_MULTI_USEDEP}] - dev-python/numpy[${PYTHON_MULTI_USEDEP}] - dev-python/pygments[${PYTHON_MULTI_USEDEP}] - dev-python/sip[${PYTHON_MULTI_USEDEP}] - dev-python/six[${PYTHON_MULTI_USEDEP}] - dev-python/twisted[${PYTHON_MULTI_USEDEP}] - dev-python/zope-interface[${PYTHON_MULTI_USEDEP}] - mpi? ( dev-python/mpi4py ) - qt5? ( dev-python/PyQt5[opengl,${PYTHON_MULTI_USEDEP}] ) - ') - ) - qt5? ( - dev-qt/designer:5 - dev-qt/qtgui:5[-gles2-only] - dev-qt/qthelp:5 - dev-qt/qtopengl:5[-gles2-only] - dev-qt/qtsql:5 - dev-qt/qtsvg:5 - dev-qt/qttest:5 - dev-qt/qtx11extras:5 - dev-qt/qtxmlpatterns:5 - ) - sqlite? ( dev-db/sqlite:3 ) - tk? ( dev-lang/tk:0= ) - webengine? ( dev-qt/qtwebengine:5[widgets] )" -DEPEND="${RDEPEND} - ${PYTHON_DEPS} - boost? ( - $(python_gen_cond_dep ' - dev-libs/boost[mpi?,${PYTHON_MULTI_USEDEP}] - ') - ) - doc? ( app-doc/doxygen )" - -S="${WORKDIR}/${MY_P}" - -PATCHES=( - "${FILESDIR}"/${PN}-4.0.1-xdmf-cstring.patch - "${FILESDIR}"/${PN}-5.3.0-fix_buildsystem.patch - "${FILESDIR}"/${PN}-5.5.0-allow_custom_build_type.patch - "${FILESDIR}"/${P}-w-vtk-8.2.0-qt-5.15.patch -) - -CMAKE_MAKEFILE_GENERATOR="emake" #579474 - -pkg_setup() { - [[ ${MERGE_TYPE} != "binary" ]] && use openmp && tc-check-openmp - use python && python-single-r1_pkg_setup - PVLIBDIR=$(get_libdir)/${PN}-${MAJOR_PV} -} - -src_prepare() { - - # Bug #661812 - mkdir -p Plugins/StreamLinesRepresentation/doc || die - - cmake-utils_src_prepare - - # lib64 fixes - sed -i \ - -e "s:/lib/python:/$(get_libdir)/python:g" \ - VTK/ThirdParty/xdmf3/vtkxdmf3/CMakeLists.txt || die - sed -i \ - -e "s:lib/paraview-:$(get_libdir)/paraview-:g" \ - Remoting/Application/vtkInitializationHelper.cxx || die -} - -src_configure() { - if use qt5; then - export QT_SELECT=qt5 - fi - - local mycmakeargs=( - -DCMAKE_INSTALL_LIBDIR="${PVLIBDIR}" - -UBUILD_SHARED_LIBS - -DPARAVIEW_BUILD_SHARED_LIBS=ON - -DCMAKE_VERBOSE_MAKEFILE=ON - - -DVTK_DEFAULT_RENDER_WINDOW_OFFSCREEN=TRUE - - -DVTK_USE_OGGTHEORA_ENCODER=TRUE - - -DVTK_GROUP_ENABLE_Imaging=YES - -DVTK_GROUP_ENABLE_Rendering=YES - -DVTK_GROUP_ENABLE_StandAlone=YES - -DVTK_GROUP_ENABLE_Views=YES - - # boost - -DVTK_MODULE_ENABLE_VTK_IOInfovis="$(usex boost YES NO)" - - # coprocessing -# -DVTK_MODULE_ENABLE_ParaView_Catalyst="$(usex coprocessing YES NO)" - - # doc - -DPARAVIEW_BUILD_DEVELOPER_DOCUMENTATION="$(usex doc)" - - # examples - -DBUILD_EXAMPLES="$(usex examples)" - - # ffmpeg - -DPARAVIEW_ENABLE_FFMPEG="$(usex ffmpeg)" - -DVTK_USE_FFMPEG_ENCODER="$(usex ffmpeg)" - - # mpi - -DPARAVIEW_USE_MPI="$(usex mpi)" - -DXDMF_BUILD_MPI="$(usex mpi)" - -DVTK_GROUP_ENABLE_MPI="$(usex mpi YES NO)" - - # mysql - -DVTK_MODULE_ENABLE_VTK_IOMySQL="$(usex mysql YES NO)" - - # offscreen - -DVTK_USE_X="$(usex !offscreen)" - -DVTK_OPENGL_HAS_OSMESA="$(usex offscreen)" - -DVTK_OPENGL_HAS_OSMESA="$(usex offscreen)" - - # plugins - -DPARAVIEW_PLUGINS_DEFAULT="$(usex plugins)" - - # python - -DModule_pqPython="$(usex python)" - -DPARAVIEW_USE_PYTHON="$(usex python)" - - # qt5 - -DPARAVIEW_INSTALL_DEVELOPMENT_FILES="$(usex development)" - -DPARAVIEW_USE_QT="$(usex qt5)" - -DModule_pqPython="$(usex qt5 "$(usex python)" "off")" - -DVTK_USE_NVCONTROL="$(usex nvcontrol)" - -DVTK_GROUP_ENABLE_Qt="$(usex qt5 YES NO)" - - # sqlite - -DVTK_MODULE_ENABLE_VTK_sqlite="$(usex sqlite YES NO)" - - # test - -DBUILD_TESTING="$(usex test)" - - # tk - -DVTK_USE_TK="$(usex tk)" - -DVTK_GROUP_ENABLE_Tk="$(usex tk YES NO)" - - # webengine - -DPARAVIEW_USE_QTWEBENGINE="$(usex webengine)" - -DVTK_GROUP_ENABLE_Web="$(usex webengine YES NO)" - ) - - if use openmp; then - mycmakeargs+=( -DVTK_SMP_IMPLEMENTATION_TYPE=OpenMP ) - fi - - if use qt5; then - mycmakeargs+=( - -DOPENGL_gl_LIBRARY="${EPREFIX}"/usr/$(get_libdir)/libGL.so - -DOPENGL_glu_LIBRARY="${EPREFIX}"/usr/$(get_libdir)/libGLU.so - -DQT_MOC_EXECUTABLE="$(qt5_get_bindir)/moc" - ) - fi - - cmake-utils_src_configure -} - -src_install() { - cmake-utils_src_install - - # remove wrapper binaries and put the actual executable in place - for i in {paraview-config,pvserver,pvdataserver,pvrenderserver,pvbatch,pvpython,paraview}; do - if [ -f "${ED}"/usr/lib/"$i" ]; then - mv "${ED}"/usr/lib/"$i" "${ED}"/usr/bin/"$i" || die - fi - done - - # set up the environment - echo "LDPATH=${EPREFIX}/usr/${PVLIBDIR}" > "${T}"/40${PN} || die - doenvd "${T}"/40${PN} - - newicon "${S}"/Clients/ParaView/pvIcon-96x96.png paraview.png - make_desktop_entry paraview "Paraview" paraview - - use python && python_optimize "${D}"/usr/$(get_libdir)/${PN}-${MAJOR_PV} - } - - pkg_postinst() { - xdg_icon_cache_update - } - - pkg_postrm() { - xdg_icon_cache_update - } diff --git a/sci-visualization/quickplot/Manifest b/sci-visualization/quickplot/Manifest index fc1b8c1e1c84..29730e1cad91 100644 --- a/sci-visualization/quickplot/Manifest +++ b/sci-visualization/quickplot/Manifest @@ -1,3 +1,2 @@ DIST quickplot-0.10.6.tar.xz 445172 BLAKE2B bcb2c694cc6a3777b7d88a5fbd6562d2612f76b0fabde67562ddba44708db0674336b72f5223aa6043524e9c6cb057e518b076086f2c05370bef6eb54b07e8bf SHA512 10b5277d8d0b8febc3c663256f3912bdd9d879b3038a5fdd3a7adc223419893ee56b825f04b5bee29883f30acb3b6a329d8e314b049fef26d6220192767d4adb -DIST quickplot-0.10.8.tar.bz2 531610 BLAKE2B 3092329b471b45c5a9c0387528ee65ac6c83ca3f21f2e4b7cd1b644a958c83eeb019e4da772a72343c45b478d1709b659372886c50b51623c5b756b4be6ba6d0 SHA512 e382206ba70849755e4110070a5e6b128bea4502ef623c59aa041ba84ed407e0ad06c62366b3bbcd71f8a76a3e651a04efab61edeb616ab6321c5680b03afa95 DIST quickplot-1.0.1rc.tar.gz 303055 BLAKE2B 52c8b60b0f79171358d81691f8824e39c1e3bafc1c084c3a52037e8cd1148e8bf68027ccc90593eca15fcbee0074d42ad7def1eb9d1f5c656b86e12adb6cfdcc SHA512 9cfaaafb7db379fb43b2975d588464288ac18eb21b3248fb02e5a30b0fa0950313a9818cfec23821046f9819d78255f02dff9970668a4b4ed8c4f452d6df3451 diff --git a/sci-visualization/quickplot/quickplot-0.10.8.ebuild b/sci-visualization/quickplot/quickplot-0.10.8.ebuild deleted file mode 100644 index c2b131eb4835..000000000000 --- a/sci-visualization/quickplot/quickplot-0.10.8.ebuild +++ /dev/null @@ -1,43 +0,0 @@ -# Copyright 1999-2020 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=5 - -AUTOTOOLS_AUTORECONF=true - -inherit autotools-utils eutils - -DESCRIPTION="A fast interactive 2D plotter" -HOMEPAGE="https://sourceforge.net/projects/quickplot/ https://github.com/lanceman2/quickplot" -SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2" - -SLOT="0" -LICENSE="GPL-3" -KEYWORDS="~amd64 ~ppc ~x86 ~amd64-linux ~x86-linux" -IUSE="static-libs" - -RDEPEND=" - media-libs/libsndfile - >=sys-libs/readline-0.6.2:0= - x11-libs/gtk+:3" -DEPEND="${RDEPEND} - virtual/pkgconfig" - -src_prepare() { - sed '/libquickplot_la_LIBADD/s:$: -lm:g' -i Makefile.am || die - autotools-utils_src_prepare -} - -src_configure() { - local myeconfargs=( - --htmldir="${EPREFIX}/usr/share/doc/${PF}/html" - ) - autotools-utils_src_configure -} - -src_install() { - autotools-utils_src_install - make_desktop_entry 'quickplot --no-pipe' Quickplot quickplot Graphics - mv "${ED}"/usr/share/applications/quickplot*.desktop \ - "${ED}"/usr/share/applications/quickplot.desktop || die -} diff --git a/sci-visualization/tensorboard/Manifest b/sci-visualization/tensorboard/Manifest index 5be2e2c09d44..838f59d63d11 100644 --- a/sci-visualization/tensorboard/Manifest +++ b/sci-visualization/tensorboard/Manifest @@ -1,2 +1 @@ -DIST tensorboard-2.3.0.zip 6789437 BLAKE2B 34fe0ac903f6b79fc1ddebd2fab3d64e48a4ef9bb6159494e6b3ec5444ab6ad339f5ca7e4e478ec03dc7a788bbce6a4bd3ce253640136079a7a470f01f7b3a48 SHA512 d4cfdc8dbf030c022ecd635249f643d158c92274b142cd3de93cd8877c47cf59b9aca9aab12a971b986b84c7396bed3d7a012837b08d9dee6b0e53dc56e9fcbe DIST tensorboard-2.4.0.zip 10631832 BLAKE2B e892c3f62855bd900320adbbea2758191296e2863e8865f4ffed3c5623fe5273a5a26554504b63db58c60d2a8c407e234d6cf3edc3868c88dfebd894def99859 SHA512 2301f526a98ac85cf5d182fff0f565c86883ec795bbaf2322696416621c8473d850a3f508079f89ca2a86a05fe020acde1282b72e2bb5ad77aab2d0e5ea2db4f diff --git a/sci-visualization/tensorboard/tensorboard-2.3.0.ebuild b/sci-visualization/tensorboard/tensorboard-2.3.0.ebuild deleted file mode 100644 index 76e9194a37c0..000000000000 --- a/sci-visualization/tensorboard/tensorboard-2.3.0.ebuild +++ /dev/null @@ -1,63 +0,0 @@ -# Copyright 1999-2020 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -PYTHON_COMPAT=( python3_{6,7,8,9,10} ) -inherit python-r1 - -DESCRIPTION="TensorFlow's Visualization Toolkit" -HOMEPAGE="https://www.tensorflow.org/" -SRC_URI="https://files.pythonhosted.org/packages/py3/${PN::1}/${PN}/${P}-py3-none-any.whl -> ${P}.zip" - -LICENSE="Apache-2.0" -SLOT="0" -KEYWORDS="~amd64" -IUSE="" -REQUIRED_USE=${PYTHON_REQUIRED_USE} - -RDEPEND=" - ${PYTHON_DEPS} - dev-python/bleach[${PYTHON_USEDEP}] - >=dev-python/google-auth-1.6.3[${PYTHON_USEDEP}] - >=dev-python/google-auth-oauthlib-0.4.1[${PYTHON_USEDEP}] - dev-python/grpcio[${PYTHON_USEDEP}] - dev-python/html5lib[${PYTHON_USEDEP}] - dev-python/markdown[${PYTHON_USEDEP}] - dev-python/numpy[${PYTHON_USEDEP}] - dev-python/protobuf-python[${PYTHON_USEDEP}] - dev-python/six[${PYTHON_USEDEP}] - >=dev-python/setuptools-41[${PYTHON_USEDEP}] - dev-python/werkzeug[${PYTHON_USEDEP}] - dev-python/wheel[${PYTHON_USEDEP}] - >=dev-python/scipy-1.4.1[${PYTHON_USEDEP}]" -BDEPEND="app-arch/unzip - ${PYTHON_DEPS}" -PDEPEND="sci-libs/tensorflow[python,${PYTHON_USEDEP}]" - -S="${WORKDIR}" - -src_prepare() { - eapply_user - - rm -rf "${S}/${PN}/_vendor/bleach" || die - rm -rf "${S}/${PN}/_vendor/html5lib" || die - sed -i -e '/_vendor.bleach/d' -e '/_vendor.html5lib/d' "${S}/${P}.dist-info/RECORD" || die "failed to unvendor" - - find "${S}/${PN}" -name '*.py' -exec sed -i \ - -e 's/^from tensorboard\._vendor import html5lib/import html5lib/' \ - -e 's/^from tensorboard\._vendor import bleach/import bleach/' \ - -e 's/^from tensorboard\._vendor\.html5lib/from html5lib/' \ - -e 's/^from tensorboard\._vendor\.bleach/from bleach/' \ - {} + || die "failed to unvendor" - - sed -i -e '/tensorboard-plugin-/d' "${S}/${P}.dist-info/METADATA" || die "failed to remove plugin deps" -} - -src_install() { - do_install() { - python_domodule "${PN}" - python_domodule "${P}.dist-info" - } - python_foreach_impl do_install -} |
