From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 51B7815ACFD for ; Fri, 5 May 2023 20:41:16 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id EB470E0A44; Fri, 5 May 2023 20:41:14 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id AF459E0A44 for ; Fri, 5 May 2023 20:41:14 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 50534341300 for ; Fri, 5 May 2023 20:41:13 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 8FDC48AC for ; Fri, 5 May 2023 20:41:11 +0000 (UTC) From: "Andreas K. Hüttel" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Andreas K. Hüttel" Message-ID: <1683319235.8c4849587319b39bbc1ca4775132df3f5239ec4e.dilfridge@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sci-visualization/gr/ X-VCS-Repository: repo/gentoo X-VCS-Files: sci-visualization/gr/Manifest sci-visualization/gr/gr-0.72.4.ebuild sci-visualization/gr/metadata.xml X-VCS-Directories: sci-visualization/gr/ X-VCS-Committer: dilfridge X-VCS-Committer-Name: Andreas K. Hüttel X-VCS-Revision: 8c4849587319b39bbc1ca4775132df3f5239ec4e X-VCS-Branch: master Date: Fri, 5 May 2023 20:41:11 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: a8e94cfd-4e9f-45c1-8d8a-91eb0185081f X-Archives-Hash: 5eaea85d5878c4822bb830f909abc166 commit: 8c4849587319b39bbc1ca4775132df3f5239ec4e Author: Andreas K. Hüttel gentoo org> AuthorDate: Fri May 5 20:40:35 2023 +0000 Commit: Andreas K. Hüttel gentoo org> CommitDate: Fri May 5 20:40:35 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8c484958 sci-visualization/gr: add 0.72.4 Signed-off-by: Andreas K. Hüttel gentoo.org> sci-visualization/gr/Manifest | 1 + sci-visualization/gr/gr-0.72.4.ebuild | 86 +++++++++++++++++++++++++++++++++++ sci-visualization/gr/metadata.xml | 3 ++ 3 files changed, 90 insertions(+) diff --git a/sci-visualization/gr/Manifest b/sci-visualization/gr/Manifest index ce352aa797d4..efd756ed1530 100644 --- a/sci-visualization/gr/Manifest +++ b/sci-visualization/gr/Manifest @@ -1,2 +1,3 @@ DIST gr-0.53.0.tar.gz 19267451 BLAKE2B bd243fac9df6222c4b9e3591adfcd1d37dd41628719bd7be7ab385402f0f97e21f3eb23df3ae5d2ed3e43df2b3d83ff66f4e0b478d717772b57dce5885a98721 SHA512 49eee39fd4abd62d6794a16eb023688a525f6906054610dccd85c1b7b0bed9b198d923834cbf661099f753ec40b383a911c295f781420aeead712c5712583c80 DIST gr-0.72.0.tar.gz 9064921 BLAKE2B 92f531cd308c8bcec0f36fd57b1aeddfeb555ae4ceb1a394276f37ae515d1b5172ef775d0b33d6aa429ac46021194a4327646a486112032722121c01885c6bfa SHA512 cb04cff65649c4f688c07afaa6959ba08f88f6f9d0935bbd7b29bf58dab2a114609ea45d9849a1acc5bbd0feab4083d692a4364ada653dcbfe7f99e2594d9a42 +DIST gr-0.72.4.tar.gz 9067899 BLAKE2B 827c80dbfc3483abe4af217c06549c64aa134446e831a5d7fab3906a3aac7bb23b66f8b98674220ff1b6fbd5fad60b9a8e7f7361a27370c033d9375a18f63234 SHA512 4ae1aae6854995ae58327d41930cedd96ef973ce65467f48f24d9985b27b5af2aa0eb6832a801b46e6fa71cade99117957c96738cb000306b0574b0e471692fb diff --git a/sci-visualization/gr/gr-0.72.4.ebuild b/sci-visualization/gr/gr-0.72.4.ebuild new file mode 100644 index 000000000000..51aaeb29fc39 --- /dev/null +++ b/sci-visualization/gr/gr-0.72.4.ebuild @@ -0,0 +1,86 @@ +# Copyright 2019-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +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="agg 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:= + net-libs/zeromq + sys-libs/zlib + virtual/opengl + x11-libs/libX11 + x11-libs/libXt + agg? ( x11-libs/agg ) + 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}/${PN}-0.53.0-musl.patch" +) + +REQUIRED_USE="cairo? ( truetype )" + +src_configure() { + if use agg ; then + mycmakeargs+=( -DAGG_LIBRARY=libagg.so -DAGG_INCLUDE_DIR=/usr/include/agg2 ) + else + mycmakeargs+=( -DAGG_LIBRARY= ) + fi + + 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." +} diff --git a/sci-visualization/gr/metadata.xml b/sci-visualization/gr/metadata.xml index 71a5bee94e5a..48e49d2a0db8 100644 --- a/sci-visualization/gr/metadata.xml +++ b/sci-visualization/gr/metadata.xml @@ -5,4 +5,7 @@ dilfridge@gentoo.org Andreas K. Huettel + + Enable the libagg anti-grain rendering engine +