From a466e94e21a5db6bf9c5e459725e26391fa582a1 Mon Sep 17 00:00:00 2001 From: "Andreas K. Hüttel" Date: Fri, 29 May 2020 14:30:10 +0300 Subject: sci-visualization/gr: New package. Somewhat WIP. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Closes: https://bugs.gentoo.org/683188 Package-Manager: Portage-2.3.99, Repoman-2.3.22 Signed-off-by: Andreas K. Hüttel --- sci-visualization/gr/gr-0.49.0.ebuild | 58 +++++++++++++++++++++++++++++++++++ 1 file changed, 58 insertions(+) create mode 100644 sci-visualization/gr/gr-0.49.0.ebuild (limited to 'sci-visualization/gr/gr-0.49.0.ebuild') diff --git a/sci-visualization/gr/gr-0.49.0.ebuild b/sci-visualization/gr/gr-0.49.0.ebuild new file mode 100644 index 000000000000..cf5992490cfb --- /dev/null +++ b/sci-visualization/gr/gr-0.49.0.ebuild @@ -0,0 +1,58 @@ +# Copyright 2019-2020 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="http://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 opengl postscript qt5 tiff truetype X" + +DEPEND=" + media-libs/fontconfig + media-libs/libjpeg-turbo + media-libs/libpng + media-libs/qhull + sys-libs/zlib + cairo? ( x11-libs/cairo ) + ffmpeg? ( media-video/ffmpeg ) + opengl? ( + media-libs/glfw + virtual/opengl + ) + postscript? ( app-text/ghostscript-gpl ) + qt5? ( dev-qt/qtgui:5 ) + tiff? ( media-libs/tiff ) + truetype? ( media-libs/freetype ) + X? ( x11-libs/libX11 ) +" +RDEPEND="${DEPEND}" +BDEPEND="" + +PATCHES=( + "${FILESDIR}/${P}-paths.patch" +) + +src_configure() { + use cairo || mycmakeargs+=( -DCAIRO_LIBRARY= ) + use opengl || mycmakeargs+=( -DGLFW_LIBRARY= ) + use postscript || mycmakeargs+=( -DGS_LIBRARY= ) + use ffmpeg || mycmakeargs+=( -DFFMPEG_INCLUDE_DIR= ) + use truetype || mycmakeargs+=( -DFREETYPE_LIBRARY= ) + use tiff || mycmakeargs+=( -DTIFF_LIBRARY= ) + + # todo: Qt5, X11 automagic + + cmake_src_configure +} + +src_install() { + cmake_src_install + find "${ED}" -name '*.a' -delete +} -- cgit v1.2.3-65-gdbad