Added sci-mathematics/scilab-bin-2025.0.0

This commit is contained in:
saundersp 2025-02-01 16:10:16 +01:00
parent 551ae69d5a
commit 92bf8cfd1e
4 changed files with 95 additions and 0 deletions

View File

@ -0,0 +1,14 @@
DEFINED_PHASES=install postinst postrm preinst prepare
DESCRIPTION=Scientific software package for numerical computations
EAPI=8
HOMEPAGE=https://www.scilab.org/
IDEPEND=dev-util/desktop-file-utils x11-misc/shared-mime-info
INHERIT=xdg
KEYWORDS=-* ~amd64
LICENSE=GPL-2
RDEPEND=media-libs/alsa-lib media-libs/freetype media-libs/mesa sci-libs/lapack sys-libs/zlib x11-libs/libX11 x11-libs/libXcursor x11-libs/libXext x11-libs/libXi x11-libs/libXrandr x11-libs/libXrender x11-libs/libXtst x11-libs/libXxf86vm x11-libs/libdrm
RESTRICT=mirror strip test
SLOT=0
SRC_URI=https://www.scilab.org/download/2025.0.0/scilab-2025.0.0.bin.x86_64-linux-gnu.tar.xz
_eclasses_=xdg-utils 42869b3c8d86a70ef3cf75165a395e09 xdg 3ef49a87c52c8b77c476351195dfe575
_md5_=93ea90e29b879d0e4170b552b51a56a6

View File

@ -0,0 +1 @@
DIST scilab-2025.0.0.bin.x86_64-linux-gnu.tar.xz 236499356 BLAKE2B d64c3d0f66c7f7a4462ae187c0b85f8a22548cc0bab08e7fc9753d0d7a3e1ccacdc6113d1f305574379a07e13ff957cb5bee0df593a1c3cea35f402210b1fa24 SHA512 f34aa56452ead1fbdeb1bc2545f72851280251ea9786d646d97af55397e5ed3589b83da2a700f42ac80aa640bc39faea44c95b909a5991b91bbee2782bf27a31

View File

@ -0,0 +1,15 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<email>xgqt@riseup.net</email>
<name>Maciej Barć</name>
</maintainer>
<longdescription lang="en">
Open source, cross-platform numerical computational package and
a high-level, numerically oriented programming language.
</longdescription>
<upstream>
<remote-id type="github">scilab/scilab</remote-id>
</upstream>
</pkgmetadata>

View File

@ -0,0 +1,65 @@
# Copyright 2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit xdg
DESCRIPTION='Scientific software package for numerical computations'
HOMEPAGE='https://www.scilab.org/'
SRC_URI="https://www.scilab.org/download/${PV}/scilab-${PV}.bin.x86_64-linux-gnu.tar.xz"
S="${WORKDIR}/scilab-${PV}"
LICENSE='GPL-2'
SLOT='0'
KEYWORDS='-* ~amd64'
RESTRICT='mirror strip test'
RDEPEND='
media-libs/alsa-lib
media-libs/freetype
media-libs/mesa
sci-libs/lapack
sys-libs/zlib
x11-libs/libX11
x11-libs/libXcursor
x11-libs/libXext
x11-libs/libXi
x11-libs/libXrandr
x11-libs/libXrender
x11-libs/libXtst
x11-libs/libXxf86vm
x11-libs/libdrm
'
DESTDIR='/opt/scilab-bin'
QA_PREBUILT="${DESTDIR}/.*"
DOCS=( ACKNOWLEDGEMENTS COPYING CHANGES.md README.md )
src_prepare() {
default
# bug #709450
mv share/appdata share/metainfo || die
}
src_install() {
insinto "${DESTDIR}"
doins -r bin include lib thirdparty
for executable in {modelica{c,t},scilab{{,-bin},-adv-cli,-cli{,-bin}},scinotes,xcos,XML2Modelica}; do
fperms +x "${DESTDIR}/bin/${executable}"
# Only symlink shellscript if there is an option
if ! [[ ${executable} =~ *-bin ]]; then
dosym "${DESTDIR}/bin/${executable}" "/usr/bin/${executable}"
fi
done
insinto "${DESTDIR}/share"
doins -r share/{locale,scilab}
insinto /usr/share
doins -r share/{applications,icons,locale,metainfo,mime}
einstalldocs
}