diff options
author | V3n3RiX <venerix@koprulu.sector> | 2023-04-23 18:08:08 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2023-04-23 18:08:08 +0100 |
commit | 622b78d0d832282505f685f2f442c34ea0e8a7b1 (patch) | |
tree | 6c8da6dc24185f6abeac5388572b48fd1db79e04 /sci-visualization | |
parent | 57dda344760f34c8c8f93c3c161ab10e55dc3860 (diff) |
gentoo auto-resync : 23:04:2023 - 18:08:08
Diffstat (limited to 'sci-visualization')
-rw-r--r-- | sci-visualization/Manifest.gz | bin | 4859 -> 4860 bytes | |||
-rw-r--r-- | sci-visualization/gnuplot/Manifest | 1 | ||||
-rw-r--r-- | sci-visualization/gnuplot/gnuplot-5.4.6-r1.ebuild | 213 |
3 files changed, 214 insertions, 0 deletions
diff --git a/sci-visualization/Manifest.gz b/sci-visualization/Manifest.gz Binary files differindex cac85e8d9adc..39f9fffce588 100644 --- a/sci-visualization/Manifest.gz +++ b/sci-visualization/Manifest.gz diff --git a/sci-visualization/gnuplot/Manifest b/sci-visualization/gnuplot/Manifest index 72b0887c7c9b..29c14487223d 100644 --- a/sci-visualization/gnuplot/Manifest +++ b/sci-visualization/gnuplot/Manifest @@ -5,6 +5,7 @@ DIST gnuplot-5.4.5.tar.gz 5643171 BLAKE2B c9be50a170d14b7860a8bd0927ba81b06d5307 DIST gnuplot-5.4.6.tar.gz 5655661 BLAKE2B a4e42679c9942936bc4692ba71a17c748002e0ce216b7980a79866d6f4090ff012b7079a8a1fb1b7d91c5df86afa8b2cb9f8c0b458184a4e0044cf7fbe715e45 SHA512 a78333f7c0ed3429b24fcdeb6296e67fb760e6f8ffc0801a6b379fcb12ae7e80cebe65a2655cb3530c2a2d4083adc34060c9a7cbe67ce98b660682c0edba174b EBUILD gnuplot-5.4.4.ebuild 5012 BLAKE2B de1d4d656411e2dad93681f94cd118b13879cb825f8823e93283ace035c033a78d019d5873e6575a0c868d63204a5b2f30dbb70f6ec10485ecef63099421f7ff SHA512 714ec0dc1a3431c4237db3f8af6accd8124e30ec7ce0c2ccd7dd730f2b88e40f3f7b423657b0790a40ae8c5bf17a981fb23be976545ce121db7c770a2c8e9649 EBUILD gnuplot-5.4.5.ebuild 5019 BLAKE2B 9fcc4165466e2d5c1bf6f1cb92c87f75a73a132ab71fc513a619ea9e324938211ed9d4d98d5d10bb59b6ea5ceb0610be47d4d1dbd3889214fefa33aa596689e0 SHA512 9c647ded0ba038a07b6c88988629a311f472bfdfe912cdb4460121f81b8a6260e9b2319bd5c82a8e545909108cbe802aaa96b2c23f41a924fdff21b52dd2db98 +EBUILD gnuplot-5.4.6-r1.ebuild 5213 BLAKE2B e4103af296c58ae997bd94e448c1918358415beaa957ff74fc595194bea7ad0fd5c503f13375e02adbb16260b32db38679b5ba1157977b0b3490bd3e5a8786d5 SHA512 8343db6ce5eb5df65065eb5190330492f90110d19e91d95631a5acbfb83a09faa513f26bd5e3c29aeda1fae0249a73c0944889721d0f8c2f13fdd1e8bc8d2b5c EBUILD gnuplot-5.4.6.ebuild 5019 BLAKE2B 9fcc4165466e2d5c1bf6f1cb92c87f75a73a132ab71fc513a619ea9e324938211ed9d4d98d5d10bb59b6ea5ceb0610be47d4d1dbd3889214fefa33aa596689e0 SHA512 9c647ded0ba038a07b6c88988629a311f472bfdfe912cdb4460121f81b8a6260e9b2319bd5c82a8e545909108cbe802aaa96b2c23f41a924fdff21b52dd2db98 EBUILD gnuplot-5.5.9999-r1.ebuild 5004 BLAKE2B 50c97333406cb28a5a14405190815e8629dd69028da084ab3cef4720ba3be4b6e12e1382428c60a98e57d3013fabc2d74763239923c05860a59f88bcb5f70844 SHA512 df00dca2a95c77c21a75a68bd925401a6739b5666dd9b120ed133c73379be97fec81307f5e9f6584034520a4a64bc314155e8baefabcaa36024e66a45cff1749 MISC metadata.xml 1070 BLAKE2B 92ac6f016dedc1ee0aced2792c735e692efac0b0c045b7119d6f2268ed9a7ee3c2437a4038ff45799670265e01f74d8470e3c0abf45b35980a4e761fcd802d19 SHA512 04100f29255dd4d3caf3c81a39f7d6f8ad341598e89555219ba054e980484da00835c2226f35a2b63ec5f27238a97003c7bdac28ca504aed68af0fad737beb8a diff --git a/sci-visualization/gnuplot/gnuplot-5.4.6-r1.ebuild b/sci-visualization/gnuplot/gnuplot-5.4.6-r1.ebuild new file mode 100644 index 000000000000..79226df436c1 --- /dev/null +++ b/sci-visualization/gnuplot/gnuplot-5.4.6-r1.ebuild @@ -0,0 +1,213 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +LUA_COMPAT=( lua5-{1,2,3,4} ) +WX_GTK_VER="3.0-gtk3" + +inherit autotools lua-single readme.gentoo-r1 toolchain-funcs wxwidgets + +DESCRIPTION="Command-line driven interactive plotting program" +HOMEPAGE="http://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 ~loong ~ppc ~ppc64 ~riscv ~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 emacs examples +gd ggi latex libcaca libcerf lua qt5 readline regis wxwidgets X" +REQUIRED_USE=" + doc? ( gd ) + lua? ( ${LUA_REQUIRED_USE} )" + +RDEPEND=" + cairo? ( + x11-libs/cairo + x11-libs/pango ) + emacs? ( !<app-emacs/gnuplot-mode-0.8.1 ) + 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? ( ${LUA_DEPS} ) + 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:${WX_GTK_VER}[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 + dev-texlive/texlive-mathscience + app-text/ghostscript-gpl ) + emacs? ( app-editors/emacs ) + qt5? ( dev-qt/linguist-tools:5 )" + +IDEPEND="latex? ( virtual/latex-base )" + +GP_VERSION="${PV%.*}" +TEXMF="${EPREFIX}/usr/share/texmf-site" + +PATCHES=( + "${FILESDIR}"/${PN}-5.0.6-no-picins.patch +) + +pkg_setup() { + use lua && lua-single_pkg_setup +} + +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 + + use wxwidgets && setup-wxwidgets + + tc-export CC CXX #453174 + tc-export_build_env BUILD_CC + export CC_FOR_BUILD=${BUILD_CC} + + 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=$(usex emacs "${EPREFIX}/usr/bin/emacs" no) +} + +src_compile() { + # Prevent access violations, see bug 201871 + export VARTEXFONTS="${T}/fonts" + + emake all + + use emacs && emake -C docs info + + if use doc; then + 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 "${ED}"/usr/share/${PN}/${GP_VERSION}/demo/binary{1,2,3} || die + rm "${ED}"/usr/share/${PN}/${GP_VERSION}/demo/plugin/*.{o,so} || die + fi + + use emacs && doinfo docs/gnuplot.info + + 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 +} |