summaryrefslogtreecommitdiff
path: root/sci-visualization/gr
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2020-05-30 11:44:06 +0100
committerV3n3RiX <venerix@redcorelinux.org>2020-05-30 11:44:06 +0100
commitf516638b7fe9592837389826a6152a7e1b251c54 (patch)
tree8bfecb640b7b6403d7a3d662d923eed630033da7 /sci-visualization/gr
parent1a61119f9f7b057830e2ce0563f913ec86f282ad (diff)
gentoo resync : 30.05.2020
Diffstat (limited to 'sci-visualization/gr')
-rw-r--r--sci-visualization/gr/Manifest4
-rw-r--r--sci-visualization/gr/files/gr-0.49.0-paths.patch15
-rw-r--r--sci-visualization/gr/gr-0.49.0.ebuild58
-rw-r--r--sci-visualization/gr/metadata.xml8
4 files changed, 85 insertions, 0 deletions
diff --git a/sci-visualization/gr/Manifest b/sci-visualization/gr/Manifest
new file mode 100644
index 000000000000..24b5645b4702
--- /dev/null
+++ b/sci-visualization/gr/Manifest
@@ -0,0 +1,4 @@
+AUX gr-0.49.0-paths.patch 461 BLAKE2B e8ebc8f2ad6731d402c9d9bd8237b191b57268a27c0c4da67bad2a9efc30d1966ae39e38a8631a158babe6c1d5ba81ee74f85bfb7c8002ef3310613dce71d02f SHA512 e3a2916f8366796761049e6ac5d069ac65f270a195fdf48843042c85455c1e65d7369e10d00ac6a2c72cb9cd172d1535d521f4fe06bbe57584159ef7c1e32fd5
+DIST gr-0.49.0.tar.gz 8604669 BLAKE2B a4f14910b8b229e722018a00e7f7f1b0c354265282b16c49e536bb8771a1bd69c0e0c17a9e4e70593f185e6c58885fcb6842b2f2c121988c1c161f5d11548b1b SHA512 851deac9cc2f42a9f62883e6bfb4bcc6e71e46910ec97a7b5fec087299f12d09043365f594d47c315a23079342bf25893b1a0f59bbd0e92eb140cc2a11126a14
+EBUILD gr-0.49.0.ebuild 1319 BLAKE2B 3cb8e481e84708827d53ac1df595e3c04f8e8018ee9dc4eb7f259487036bf8770c338fdae63c64ddac150a46002980e83979bae2e78839c27ea0f5b832fe6ff1 SHA512 ea2701b3694bf8000f017b0fa7beef055b8ed3ae9c42a2983017a4198a9d9bce5875825492322ac9ea13d99cdf8fc4853029c2064d691e6e15d6634200409be2
+MISC metadata.xml 260 BLAKE2B 5eb8d87919aaab2f101cfc899ccb00b8efb723b67cb102ce580e0e69781639708cb8523b8967f9fb169e00455c548cff19d2827ce711c3f36d5ae58a1d3777ee SHA512 b6369aad1615446c9a4e1740a51a49d843868e114e49bc526e7b00cefdc795a601b9c508d866b065cc4ed750b85f48f136ee5925b9511a80f4056d7ef832eab2
diff --git a/sci-visualization/gr/files/gr-0.49.0-paths.patch b/sci-visualization/gr/files/gr-0.49.0-paths.patch
new file mode 100644
index 000000000000..73e23022f372
--- /dev/null
+++ b/sci-visualization/gr/files/gr-0.49.0-paths.patch
@@ -0,0 +1,15 @@
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index db08eeb7..46be6fab 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -907,8 +907,8 @@ if(GR_INSTALL)
+ install(FILES lib/gr/qtgr/grwidget.h DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/)
+ endif()
+ install(
+- DIRECTORY lib/gks/fonts
+- DESTINATION ${CMAKE_INSTALL_PREFIX}/
++ DIRECTORY lib/gks/fonts/
++ DESTINATION ${CMAKE_INSTALL_PREFIX}/share/fonts/gks
+ USE_SOURCE_PERMISSIONS
+ )
+ endif()
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
+}
diff --git a/sci-visualization/gr/metadata.xml b/sci-visualization/gr/metadata.xml
new file mode 100644
index 000000000000..80a71f597854
--- /dev/null
+++ b/sci-visualization/gr/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>dilfridge@gentoo.org</email>
+ <name>Andreas K. Huettel</name>
+ </maintainer>
+</pkgmetadata>