From e42aa308ca1c4308a22dace43f09f40e10adc47a Mon Sep 17 00:00:00 2001 From: "Andreas K. Hüttel" Date: Sat, 8 Apr 2023 00:54:06 +0200 Subject: sci-visualization/gr: fix path, yes I know it looks wrong MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Thanks to Devrin Talen Closes: https://bugs.gentoo.org/882619 Signed-off-by: Andreas K. Hüttel --- sci-visualization/gr/gr-0.53.0-r1.ebuild | 77 ------------------------------- sci-visualization/gr/gr-0.53.0-r2.ebuild | 78 ++++++++++++++++++++++++++++++++ 2 files changed, 78 insertions(+), 77 deletions(-) delete mode 100644 sci-visualization/gr/gr-0.53.0-r1.ebuild create mode 100644 sci-visualization/gr/gr-0.53.0-r2.ebuild (limited to 'sci-visualization/gr') diff --git a/sci-visualization/gr/gr-0.53.0-r1.ebuild b/sci-visualization/gr/gr-0.53.0-r1.ebuild deleted file mode 100644 index 241238ce4863..000000000000 --- a/sci-visualization/gr/gr-0.53.0-r1.ebuild +++ /dev/null @@ -1,77 +0,0 @@ -# Copyright 2019-2022 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="" - -PATCHES=( - "${FILESDIR}/${P}-musl.patch" -) - -REQUIRED_USE="cairo? ( truetype )" - -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/gr/gr-0.53.0-r2.ebuild b/sci-visualization/gr/gr-0.53.0-r2.ebuild new file mode 100644 index 000000000000..a8ba3a3bcf5e --- /dev/null +++ b/sci-visualization/gr/gr-0.53.0-r2.ebuild @@ -0,0 +1,78 @@ +# Copyright 2019-2023 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="" + +PATCHES=( + "${FILESDIR}/${P}-musl.patch" +) + +REQUIRED_USE="cairo? ( truetype )" + +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 ) + mycmakeargs+=( -DCMAKE_INSTALL_LIBDIR=lib ) + # + # 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 ... + # * See bug 882619 in addition. + + 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." +} -- cgit v1.2.3-65-gdbad