mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
sci-visualization/gr: drop 0.73.3
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
This commit is contained in:
@@ -1,2 +1 @@
|
||||
DIST gr-0.73.3.tar.gz 10076655 BLAKE2B 13bd461b39a86473290912f5a9ba5a4b5ea3ffc8865f6909aad1fc92acf6d39fdb12910e2bf0f8108b7bef1016652515c6cc188db0b98dd052459400b30895ba SHA512 f45daefd880eec9380a2a31f1cd3b124469c1d33c34a9d13a3718b1978da507620b6f7cc025dd20be81a70f52537dbb4537548d8cc32e133693d9b7ae2f476e5
|
||||
DIST gr-0.73.6.tar.gz 10109682 BLAKE2B 15499dc9dbe42b3530edcba29a1ca82f05051a499a0656af1fa94a90d6b9ac3a321118694c80f2e52b092a8b3840105d92cf6df1fe079062183ea11de995c20b SHA512 4b96b55c540ec2984042ff308c7ef73cfed1008c4de8a4b77be3e13db06cfeb648e5e0ec511a2387b4c545005aa7924d40b74c0d8a62f30d2c36388e3f2b9128
|
||||
|
||||
@@ -1,85 +0,0 @@
|
||||
# Copyright 2019-2024 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:=
|
||||
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}"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}/${PN}-0.53.0-musl.patch"
|
||||
)
|
||||
|
||||
REQUIRED_USE="cairo? ( truetype )"
|
||||
|
||||
src_configure() {
|
||||
if use agg ; then
|
||||
mycmakeargs+=( -DAGG_LIBRARY=/usr/$(get_libdir)/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."
|
||||
}
|
||||
Reference in New Issue
Block a user